A CSV file named customer.csv contains records of customers. The first row of the file represents the header. Sample data from the file is shown below:
Name, Age, City
Rudra,17,Kolkata
Divya,19,Dehradun
Nabeel,22,LucknowWrite a Python program to import data from the CSV file into a Pandas DataFrame named DF and display the last two rows.
import pandas as pd
DF = pd.read_csv('customer.csv') print(DF.iloc[-2:]) Name Age City
1 Divya 19 Dehradun
2 Nabeel 22 Lucknow