To write a python program to read data from CSV files.
Start the python.
Import pandas.
Mention the CSV file which is to be read.
Read the contents of the CSV file using df.read function
End the program.
#Developed by: Jegathish s
#Register number: 212221230041
import pandas as pd
df = pd.read_csv('data.csv')
print(df.head(10))
print(df.tail())
print("No of rows",len(df.axes[0]))
print("No of columns",len(df.axes[1]))
A python program to read data from CSV files has been created successfully.