IP Class 12th RecordFile Part2
IP Class 12th RecordFile Part2
Q1.Write a program to create two Series Object, one from a dictionary and
one from a numpy array.
Q2. Write a program to generate a series of float numbers from 41.0 to 60.0
with an increment of 2.5 each.
Q3. Create the following dataframe, and locate the three largest ‘Age’ values.
Q4. Create a dataframe for examination result and display the row labels,
column labels, data types of each column and the dimension of the
dataframe.
Q6. Create a df storing salesmen details (name, zone, sales) of five salesmen.
Q7 Write a Pandas program to create and display a DataFrame from a
specified dictionary data which has the index labels.
Q9. Write a Pandas program to create the following dataframe and get the last 3
rows of a given DataFrame df.
Q11. Write a program to create data series and then change the indexes of the
Series object in any random order.
1 34
0 32
3 78
2 56
dtype: int64
SecA 1 Rishi 97
SecB 2 Arun 98
SecC 3 Rohan 98
SecD 4 Soham 99
Q13. Given the df, write a program to print only name, age and position
columns.
Q17.Navya has started an online business. A list stores the number of orders
in last 6 months. Write a program to plot this data on a horizontal bar chart.
Q18. Given a data frame df1 as shown below-
SecA 1 Rishi 97
SecB 2 Arun 98
SecC 3 Rohan 98
SecD 4 Soham 99