To write a python program to read contents from a CSV file.
import panda module as pd
Read the csv file
print the first 10rows
print the next 5rows
print the toal no.of rows and columns with argument 0 for row and argument 1 for column.
#Program to read contents from a CSV file.
#Developed by:N.Neethiventhan
#Reg No: 23006643
import pandas as pd
df=pd.read_csv("nba.csv")
print(df.head(10))
print(df.tail())
print("rows",df.axes[0])
print("columns",df.axes[1])
print("no of rows",len(df.axes[0]))
print("no. of columns",len(df.axes[1]))
The program is executed successfully