SlideShare a Scribd company logo
1 of 3
Experiment no. – 6.1
Student Name: Ankur Vikas UID: 19BCS2606
Branch: CSE - 11 Section/Group: ‘C’
Semester:5th
Date of Performance:01 Oct 2021
Subject Name:Artificial intelligence Subject Code: CSP - 303
& Machine learning Lab
1. Aim/Overview of the practical: Write a codeto fetch the details of all the persons who
. are working in the IT department from the following csvfile:
id,name,salary,start_date,dept
1. 1,Shubham,613.3,2012-01-01,IT
2. 2,Arpita,525.2,2013-09-23,Operations
3. 3,Vaishali,63,2014-11-15,IT
4. 4,Nishka,749,2014-05-11,HR
5. 5,Gunjan,863.25,2015-03-27,Finance
6. 6,Sumit,588,2013-05-21,IT
7. 7,Anisha,932.8,2013-07-30,Operations
8. 8,Akash,712.5,2014-06-17,Finance
2. Task to be done: To construct CSV file of IT department
3. Algorithm :
Step 1: Start.
Step 2: Creating a data using data.frame and store in df.
Step 3: Creating csv file ‘user-data-1.csv’ and saving df data in csv file
write.csv(df,"user-data-1.csv")
Step 4: Reading data by using function
df1 = read.csv("user-data-1.csv",TRUE,",")
Step 5: print data save in csv file
Step 5: end
[Cite your source here.]
4. Programming Code:
df <- data.frame(id=c(1,2,3,4,5,6,7,8),
name=c("Shubham","Arpita","Vaishali","Nishka","Gunjan","Sumit","Anisha","Aksah"),
salary=c(613.3,525.2,63,749,863,588,932,712),
start_date = as.Date(c("2012-01-01", "2013-09-23", "2014-11-15", "2014-05-11",
"2015-03-27","2013-05-21","2013-07-30","2014-06-17")),
dept=c("IT","Operation","IT","HR","Finance","IT","Operations","Finance"),
stringsAsFactors = FALSE
)
write.csv(df,"user-data-1.csv")
df1 = read.csv("user-data-1.csv",TRUE,",")
print(df1)
5. Output:
6. Learning outcomes (What I have learnt):
1. learn to to create data frame of IT department file.
2. learn how to write the csv file in R.Studio
3. learn how to read the csv file in R.Studio
7. valuation Grid (To be created as per the SOP and Assessment guidelines by the faculty):
Sr. No. Parameters Marks Obtained Maximum Marks
1.
2.
3.

More Related Content

Similar to Artifical_intiligence_worksheet-exp-6.1.docx (20)

CV_Al Muttaqin_Cilacap
CV_Al Muttaqin_CilacapCV_Al Muttaqin_Cilacap
CV_Al Muttaqin_Cilacap
 
abhijeet desai resume EXP-1.5
abhijeet desai resume EXP-1.5abhijeet desai resume EXP-1.5
abhijeet desai resume EXP-1.5
 
shrikant_resume_23_jan_2017
shrikant_resume_23_jan_2017shrikant_resume_23_jan_2017
shrikant_resume_23_jan_2017
 
Ajit
AjitAjit
Ajit
 
Resume
Resume Resume
Resume
 
Resume vikash
Resume vikashResume vikash
Resume vikash
 
Sayan CV Aug,2016-2
Sayan CV Aug,2016-2Sayan CV Aug,2016-2
Sayan CV Aug,2016-2
 
Abhishek Garg Resume
Abhishek Garg ResumeAbhishek Garg Resume
Abhishek Garg Resume
 
Predicting Student Ability in Competition in Work World Using Naïve Bayes Met...
Predicting Student Ability in Competition in Work World Using Naïve Bayes Met...Predicting Student Ability in Competition in Work World Using Naïve Bayes Met...
Predicting Student Ability in Competition in Work World Using Naïve Bayes Met...
 
Sneha_Resume (1)
Sneha_Resume (1)Sneha_Resume (1)
Sneha_Resume (1)
 
My Latest Resume
My Latest ResumeMy Latest Resume
My Latest Resume
 
Presentation-CSE.pptx
Presentation-CSE.pptxPresentation-CSE.pptx
Presentation-CSE.pptx
 
NITHYA_Resume
NITHYA_ResumeNITHYA_Resume
NITHYA_Resume
 
ashish_mahapure
ashish_mahapureashish_mahapure
ashish_mahapure
 
Minimalist Vintage Medieval Brown Museum Brochure (1).pdf
Minimalist Vintage Medieval Brown Museum Brochure (1).pdfMinimalist Vintage Medieval Brown Museum Brochure (1).pdf
Minimalist Vintage Medieval Brown Museum Brochure (1).pdf
 
Neil CV - pdf4
Neil CV - pdf4Neil CV - pdf4
Neil CV - pdf4
 
Vaishali Sangle
Vaishali SangleVaishali Sangle
Vaishali Sangle
 
kunal IT resume
kunal IT resumekunal IT resume
kunal IT resume
 
MANISH_CGI_MSBI
MANISH_CGI_MSBIMANISH_CGI_MSBI
MANISH_CGI_MSBI
 
Resume (2)
Resume (2)Resume (2)
Resume (2)
 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
Health
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 

Recently uploaded (20)

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Bridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptxBridge Jacking Design Sample Calculation.pptx
Bridge Jacking Design Sample Calculation.pptx
 
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
+97470301568>> buy weed in qatar,buy thc oil qatar,buy weed and vape oil in d...
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Rums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdfRums floating Omkareshwar FSPV IM_16112021.pdf
Rums floating Omkareshwar FSPV IM_16112021.pdf
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 

Artifical_intiligence_worksheet-exp-6.1.docx

  • 1. Experiment no. – 6.1 Student Name: Ankur Vikas UID: 19BCS2606 Branch: CSE - 11 Section/Group: ‘C’ Semester:5th Date of Performance:01 Oct 2021 Subject Name:Artificial intelligence Subject Code: CSP - 303 & Machine learning Lab 1. Aim/Overview of the practical: Write a codeto fetch the details of all the persons who . are working in the IT department from the following csvfile: id,name,salary,start_date,dept 1. 1,Shubham,613.3,2012-01-01,IT 2. 2,Arpita,525.2,2013-09-23,Operations 3. 3,Vaishali,63,2014-11-15,IT 4. 4,Nishka,749,2014-05-11,HR 5. 5,Gunjan,863.25,2015-03-27,Finance 6. 6,Sumit,588,2013-05-21,IT 7. 7,Anisha,932.8,2013-07-30,Operations 8. 8,Akash,712.5,2014-06-17,Finance 2. Task to be done: To construct CSV file of IT department 3. Algorithm : Step 1: Start. Step 2: Creating a data using data.frame and store in df. Step 3: Creating csv file ‘user-data-1.csv’ and saving df data in csv file write.csv(df,"user-data-1.csv") Step 4: Reading data by using function df1 = read.csv("user-data-1.csv",TRUE,",") Step 5: print data save in csv file Step 5: end [Cite your source here.]
  • 2. 4. Programming Code: df <- data.frame(id=c(1,2,3,4,5,6,7,8), name=c("Shubham","Arpita","Vaishali","Nishka","Gunjan","Sumit","Anisha","Aksah"), salary=c(613.3,525.2,63,749,863,588,932,712), start_date = as.Date(c("2012-01-01", "2013-09-23", "2014-11-15", "2014-05-11", "2015-03-27","2013-05-21","2013-07-30","2014-06-17")), dept=c("IT","Operation","IT","HR","Finance","IT","Operations","Finance"), stringsAsFactors = FALSE ) write.csv(df,"user-data-1.csv") df1 = read.csv("user-data-1.csv",TRUE,",") print(df1)
  • 3. 5. Output: 6. Learning outcomes (What I have learnt): 1. learn to to create data frame of IT department file. 2. learn how to write the csv file in R.Studio 3. learn how to read the csv file in R.Studio 7. valuation Grid (To be created as per the SOP and Assessment guidelines by the faculty): Sr. No. Parameters Marks Obtained Maximum Marks 1. 2. 3.