To write a python program for reading content from a CSV file.
Import pandas as pd.
Read the CSV file using read_csv method.
Use head and tail method to get the required contents from the file.
Use len() method to get the number of rows and columns.
Print the output
#Program to read contents from csv file.
#Developed by:Bhuvanesh.S.R
#Register Number:212223240017
import pandas as pd
df=pd.read_csv('nba.csv')
print(df.head(10))
print(df.tail(5))
print("Number of rows: ",len(df.axes[0]))
print("Number of coloumns: ",len(df.axes[1]))
Thus the program is written to copy the contents from one file to another file