Harsh Chauhan 12c
Harsh Chauhan 12c
Practical file
Program.1 create a panda’s series from a dictionary,list and
a ndarray ?
From a Dictionary
Input
Output
From a list
Input
Output
From a ndarray
Input
Output
Output
Program 3.create a Data frame quarterly sales where
each row contains the item category, item name and
expenditure. Group the rows by the category and print
the total expenditure per category.
Input
Output
Program 4.create a data frame for examination result
and display row labels
,columnlabels, data types of each column and the
dimensions.
Input
output
Program 5. Filter out rows based on different
criteria such as duplicate rows.
Input
Output
Program 6. create a pandas Data Frame from a
dictionary of lists.
Input
Output
Program 7. Given a Data Frame, print all rows
where a specific column’s value is greater.
Input
Output
Program 8. Create a Data Frame and rename all the
columns.
Input
Output
Program 9.create a Data Frame and drop a
specific column.
Input
Output
Program 10.Given a Data Frame, reset its index.
Input
Output