Showing posts with the label Python Pandas - 2

Popular Python Libraries Built with C (and Why It Matters)

Python is loved for its simplicity and flexibility, but sometimes pure Python …

Write statements so that the data is fetched based on query from SQL database Mydata.db.

Q. If query is a string storing an SQL statement, write statements so that the …

Given data-set for weather forecast:

Q. Given the data-set for weather forecast: day: ['01/01/2018', '01…

Give output for following code: import pandas as pd

Q. Give the output for the following code: import pandas as pd data = [{'a&…

What is pivoting? Name any two functions of Pandas which support pivoting.

Q. What is pivoting? Name any two functions of Pandas which support pivoting. A…

Assume that following data is stored in dataframe named df1. Write commands to:

Q. Assume that the following data is stored in a dataframe named df1. Write the…

Consider following Python code and write output for statement S1.

Q. Consider the following Python code and write the output for statement S1. im…

Write the code fragment to sort the given dataframe in descending order of AdmNo.

Q. Write the code fragment to sort the given dataframe (say df and consisting o…

Explain the transform dataframe function.

Q. Explain the transform dataframe function. Answer :- The transform function t…

Write Python statement using above dataframe Student to get new dataframe with name taken as index and implementing pivoting.

Q. Write a Python statement using the above dataframe Student to get a new data…

Write the output for the Python statement based on the dataframe cricket provided below.

Q. Write the output for the Python statement based on the dataframe cricket pro…

Important Questions For Python Panda 2 Class 12 IP

Important Questions For Python Panda 2 Class 12 Informatics Practices (IP) …

Create a Data Frame QtrSales where each row contains the item category

Q. Create a Data Frame QtrSales where each row contains the item category, item…

Write a program to create a dataframe that stores the merged dataframes emp and dept

Q. Consider the dataframes emp and dept. Write a program to create a dataframe …

Write a program to join these two dataframes on their indexes, but keep in mind that

Q. Consider the two data-frames namely emp and dept given below: DataFrame emp …

Write command to compute sum of every column of the data frame.

Q. Given a data frame df1 as shown below: City    MaxTemp    MinTemp    RainFal…

Write the code to find mean value from above dataframe df over the index and column axis

Q. Consider the following data-frame, and answer the questions given below: imp…

Write a program to calculate mean absolute deviation for all the states.

Q. Consider the crop statistics DataFrame prodf. Write a program to calculate m…

Write a program to calculate mean absolute deviation for all the crops.

Q. Consider the crop statistics Data Frame prodf. Write a program to calculate …

Write a program to fill the missing values in pdf with corresponding values.

Q. Consider Data Frames pdf and pdf2 as shown below: DataFrame pdf :-       Sea…

Load More That is All