0% found this document useful (0 votes)
26 views3 pages

AIML 1.4 Vishal

The document summarizes an experiment conducted by a student to implement Python libraries Pandas and Matplotlib for machine learning applications. The student created sample datasets using Pandas and plotted bar charts of the datasets using Matplotlib to visualize the data. The objectives of the experiment were to demonstrate using Pandas to handle data and Matplotlib for data visualization. Key learning outcomes included data handling, exploration, cleaning, visualization, and presentation skills.

Uploaded by

vishalknox92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views3 pages

AIML 1.4 Vishal

The document summarizes an experiment conducted by a student to implement Python libraries Pandas and Matplotlib for machine learning applications. The student created sample datasets using Pandas and plotted bar charts of the datasets using Matplotlib to visualize the data. The objectives of the experiment were to demonstrate using Pandas to handle data and Matplotlib for data visualization. Key learning outcomes included data handling, exploration, cleaning, visualization, and presentation skills.

Uploaded by

vishalknox92
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DEPARTMENT OF

COMPUTER SCIENCE & ENGINEERING

Experiment No. 1.4

Student Name: Vishal Kumar Singh UID: 21BCS2439


Branch: CSE Section/Group: 702/B
Semester: 5th Date of Performance: 11/09/23
Subject Name: AIML Subject Code: 21CSH-316

Aim of the practical: Implementation of Python Libraries for ML application such


as Pandas and Matplotlib

Objective of the practical: The objective of this experiment is to demonstrate the


implementation of Python libraries for machine learning applications, specifically
Pandas and Matplotlib.

Source code:
import pandas as pd
import matplotlib.pyplot as plt

# Create table using pandas


student=pd.DataFrame({"Name":["Rohit","Ritik","Priyanshu","Sonu
"],"Marks":[78,88,99,90]})
print(student)

#reading csv file from fileManager


temp=pd.read_csv('temp.csv')
print(temp)

# Plotting a bar chart using matplotlib


plt.bar(student["Name"], student["Marks"])
plt.xlabel("Name")
plt.ylabel("Marks")
plt.title("Student Marks")
plt.show()

plt.bar(temp["Industry"],temp["Number of employees"])
plt.xlabel("Industry")
plt.ylabel("Number of employees")
plt.show()
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Output:

Graph:
DEPARTMENT OF
COMPUTER SCIENCE & ENGINEERING

Learning outcomes:

 Data Handling: You'll learn how to efficiently load, manipulate, and process
datasets for machine learning tasks.

 Data Exploration: You'll gain skills in understanding the characteristics of


the data, identifying patterns, and making initial insights.

 Data Cleaning: You'll become proficient in cleaning and preparing data,


which is a crucial step in any machine learning project.

 Data Visualization: You'll learn how to create visual representations of data


which is crucial for understanding patterns and making insights.

 Presentation Skills: You'll develop the ability to present data in a clear and
visually appealing manner, which is important for conveying findings in a
machine learning project.

You might also like