To write a python program for copying the contents from one file to another file.
PC Anaconda - Python 3.7
Load the CSV into a DataFrame.
Print the number of contents to be displayed using df.head().
The number of rows returned is defined in Pandas option settings.
Check your system's maximum column with the pd.options.display.max_column statement.
Increase the maximum number of rows to display the entire DataFrame
End the program.
To write a python program for reading content from a CSV file.
Developed by: HAREVASU S
Register Number: 212223230069
import pandas as pd
df = pd.read_csv('nba.csv')
print(df.head(10))
print(df.tail())
print("Number of rows:",len(df.axes[0]))
print("Number of columns:",len(df.axes[1]))
Thus the program is written to copy the contents from one file to another file.