To develop a python program to read a file rom csv.
Import the pandas function as pd.
Read the file and store it in the variable f.
Print the head and tail.
Print the number of rows using the length function(len).
Print the number of coloumns using the same length function(len).
Program developed by: Mathiyazhagan.A
Reference number:22005215
Python program to read a file from csv.
import pandas as pd
f=pd.read_csv('cars.csv')
print(f.head(10))
print(f.tail())
print("Row:",len(f.axes[0]))
print("Col:",len(f.axes[1]))
Thus the program is successfully executed.