IP Pract Question With Solution
IP Pract Question With Solution
2. Write a program to print a DataFrame one row at a time and print only first 5 rows.
3. Write a program to create a DataFrame to store weight, age and name of 3 people. Print the
DataFrame and Transpose it.
4. Write a program to create a Series and change the indexes of the series object with any random
order.
5. Write a program to create a series object temp1 that stores temperatures of seven days in it.
Take any random temperature.
8. Write a program to sort the values of a series object s1 in ascending order of its values and store
it into series object s2.
9. Create a DataFrame for exam result and display row labels, column label datatypes of each
column and dimensions.
10. Write a program to create pandas DataFrame using list of lists.
18. Write a program to import and export data from pandas and csv files.
19. Write a program to create a histogram.
20. Write a python program to create a line chart.
1. Create a student table with student id,name and marks as attributes where the student id is the
primary key
4. Use select command to get the details of students with marks more than 80
5. Find the min,max,sum,and average of the marks in a student mark table
6. Write a SQL query to order the (student ID,marks) table in descending order of the marks.
7. Write a SQL query to change marks of student to 600 whose student id is 03,if the existing marks
is less than 400.
10. Write a SQL query to change the Salary of customer table with 250000 for all customer
11. Write a SQL query to change salary of customer with 1250000 fro those customer whose
country is ‘Australia’
12. Delete the details of a students in the above table.
13. Write a SQL query to order the (student ID,marks) table in descending order of the marks.