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.
DF = pd.read_csv('customer.csv') import pandas as pd
DF = pd.read_csv('customer.csv')
print(DF.tail(2)) Name Age City
1 Divya 19 Dehradun
2 Nabeel 22 Lucknow State whether the following statement is True or False:
In Pandas Series, the Positional index can be a string or an integer.
We can add a new row to a DataFrame DF using the ______ method.
Naveen discarded various types of waste material without realizing that e-waste contains harmful substances that could pollute the environment. He wants to know which of the following will be considered as e-waste?
In which scenario is a bar chart preferred over a line chart?
Which of the following network topology uses a central cable (backbone) to connect all devices?