Practical Questions
Practical Questions
2) Given a series, print all the elements that are above 75.
3) Create two series S1 and S2 using range function to perform various mathematical
operations( +,-,*,/)
4) Create a DataFrame quarterly_sales where each row contains the item category, item name and
expenditure. Group the rows by category and print the total expenditure per category.
5) Create a DataFrame for examination result and display row labels, column labels, datatypes and
dimensions.
6) Filter out rows based on different criteria such as duplicate rows.
7) Importing and exporting data between pandas and CSV file.
8) Given the school result data, analyses the performance of the students on different parameters. Eg:-
subject wise and class wise.
9) For the DataFrames created above, analyze and plot appropriate bar and line charts with title and
legend.
10) Take data of your interest from an open source(eg:- data.gov.in) aggregate and summarize it. Then
plot it using plotting functions of the Matplotlib library.
11) Create a student table with the student id,name and marks as attribute where the student id is the
primary key.
12) Insert atleast 5rows of details of a new student in the above table.
13) Delete the details of a student in the above table.
14) Use the select command to get details of the students with marks more than 80
15) Add a new column subjects in above table.
16) Display the details of students whose marks are in between 80-100.
17)
18) Find the max, min, sum and average of the marks in a above table.
19) Find the total number of customers from the each country in the table( customer_id, customer
name, country) using group by.
20) WAQ to order the Students marks from the table student in decending order.
21) Count the number of customer from the different countries.
22) Change the name of the customer who belongs to USA.
23) Display the names of the students whose names ends with character “a” and also arrange the
students in alphabetical order.
24) Add a new column date of birth in table customer.
25) Display the month name and day of month of customer whose name is “anuj”.