8 questions · timed · auto-graded
(a) To create the, Data Frame with columns Name, Occupation, Date of join, Age. The datafrme should contain only 2 rows.
(b) Add the index Emp001 and Emp002.
(c) Print the data
(d) Add a new row [Emp003]


The below code shows how to create an empty DataFrame in Pandas:
# importing the pandas library
import pandas as pd
info = pd.DataFrame()
print (info)
Output:
Empty DataFrame
Columns: []
Index: []
• Memory Efficient
• Data Alignment
• Reshaping
• Merge and join
• Time Series
It consists of the following properties:
• The columns can be heterogeneous types like int and bool.
• It is a dictionary of Series structure where both the rows and columns are indexed. It is denoted as "columns" in the case of columns and "index" in case of rows.