Python Codes[1]
Python Codes[1]
Information practices
Create a pandas series from a dictionary of values and an ndarray
#1
Given a Series, print all the elements that are above the 75th
percentile
#2
Create a Data Frame quarterly sales where each row contains
the item category, item name, and expenditure. Group the rows
by the category
#3
Create a data frame based on ecommerce data and generate
descriptive statistics (mean, median, mode, quartile, and variance)
#4
Create a data frame for examination result and display row labels,
column labels data types of each column and the dimension
#5
Filter out rows based on different criteria such as duplicate rows
#6
Find the sum of each column, or find the column with the lowest
mean
#7
Locate the 3 largest values in a data frame
#8
Subtract the mean of a row from each element of the row in a Data
Frame
#9
Replace all negative values in a data frame with a 0
#10
Replace all missing values in a data frame with a 999
#11
Importing and exporting data between pandas and CSV file
#12
Create a python program to store 2018 drivers world champion and
print the maximum Points and age.
#14
Write a program to show the example of Reindexing in Pandas
DataFrame
#15
Write a program to show changing a column name and index
#16
Create a dataframe with columns (Name, Age, Stream, Percentage)
and print the rows on the basis of percentage above 80.
#17
Write a program to show deleting a column in dataframe with two
different methods
#18
Write a program to create dataframe with columns Name, English,
Math, science
#19
Write any example code to show the use of Limiting row selection
with given column
#20
Display the Batsman name along with runs scored in ODI using loc
#21
Given the school result data, analyse the performance of the
students on different parameters, e.g subject wise or class wise
#22
For the Data frames created above, analyze and plot appropriate
charts with title and legend
#23
Take data of your interest from an open source (e.g. data.gov.in),
aggregate and summarize it. Then plot it using different plotting
functions of the Matplotlib
#24
The list of IQ scores of students of a class are: 118, 123, 124, 125,
127, 128, 129, 130,130, 133, 136, 138, 141, 142, 149, 150, 154
#25
Suppose the runs scored by the 11 players of the Indian cricket
team in a match are given as: 25,65,3,12,35,46,67,36,0,31,17. In
order to know the number of players who scored runs in the given
range of values, write code to create a histogram. Add appropriate
labels for better understanding
#26
In a quiz, the marks obtained by 20 students are given as:
12,15,15,29,30,21,30,30,15,17,19,15,20,20,16,21,23,24,23,21 Write
code to create the histogram with default number of bins. Add code
to make the edges of the bars clear. Also add the required labels
#27
Histogram of scores received by 20 students
#28