PDS Viva
PDS Viva
Name,Salary
abc,10000
xyz,20000
pqr,40000
Write a python program to read data from given csv file and print each pair of names
and salaries in the format "Name -> Salary". (Example: abc -> 10000 and so on)
ABC
0714
1258
2369
11. Write a code to sort this dataframe by column A. Write a code to sort this dataframe
by row 0 (first row).
12. Write a python code to draw a bar chart utilizing at least three properties of it.
13. Write a Python programming to create a pie chart with a title of the popularity of
programming Languages.
Sample data:
Programming languages: Java, Python, PHP, JavaScript, C#,C++
Popularity: 22.2, 17.6, 8.8, 8, 7.7, 6.7
14. Data of marks for five students in three subjects is as given below.
Maths = [100, 82, 76, 51, 88]
Physics = [92, 89, 81, 83, 80]
Chemistry = [71, 90, 75, 88, 45]
Write a python program to create boxplot from the above data. What type of important
observation about data can be derived from the boxplot?
15. Below is the data about average temperature (in °C) at a place for 15 days.
temp = [30, 34, 35, 32, 38, 26, 29, 45, 42, 32, 40, 33, 36, 34, 36]
Write a python program to create histogram with 4 bins from the above data. What type
of important observation about data can be derived from the histogram?
16. Write a small code to perform following operations on data: Slicing, Dicing,
Concatenation, Transformation