KEMBAR78
Pandas Assignment | PDF
0% found this document useful (0 votes)
9 views1 page

Pandas Assignment

The document contains a series of questions related to performing various operations on a Pandas DataFrame, including loading data, checking data types, selecting and renaming columns, handling missing values, and performing aggregations. It also covers data manipulation techniques such as merging, concatenating, and pivoting DataFrames, as well as calculating statistical measures. Additionally, it addresses filtering, sorting, and removing duplicates, along with the differences between .loc and .iloc methods.

Uploaded by

Nikunj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views1 page

Pandas Assignment

The document contains a series of questions related to performing various operations on a Pandas DataFrame, including loading data, checking data types, selecting and renaming columns, handling missing values, and performing aggregations. It also covers data manipulation techniques such as merging, concatenating, and pivoting DataFrames, as well as calculating statistical measures. Additionally, it addresses filtering, sorting, and removing duplicates, along with the differences between .loc and .iloc methods.

Uploaded by

Nikunj Kumar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Q1. How do you load a CSV file into a Pandas DataFrame?

Q2. How do you check the data type of a column in a Pandas DataFrame?

Q3. How do you select rows from a Pandas DataFrame based on a condition?

Q4. How do you rename columns in a Pandas DataFrame?

Q5. How do you drop columns in a Pandas DataFrame?

Q6. How do you find the unique values in a column of a Pandas DataFrame?

Q7. How do you find the number of missing values in each column of a Pandas
DataFrame?

Q8. How do you fill missing values in a Pandas DataFrame with a specific value?

Q9. How do you concatenate two Pandas DataFrames?

Q10. How do you merge two Pandas DataFrames on a specific column?

Q11. How do you group data in a Pandas DataFrame by a specific column and apply an
aggregation function?

Q12. How do you pivot a Pandas DataFrame?

Q13. How do you change the data type of a column in a Pandas DataFrame?

Q14. How do you sort a Pandas DataFrame by a specific column?

Q15. How do you create a copy of a Pandas DataFrame?

Q16. How do you filter rows of a Pandas DataFrame by multiple conditions?

Q17. How do you calculate the mean of a column in a Pandas DataFrame?

Q18. How do you calculate the standard deviation of a column in a Pandas DataFrame?

Q19. How do you calculate the correlation between two columns in a Pandas
DataFrame?

Q20. How do you select specific columns in a DataFrame using their labels?

Q21. How do you select specific rows in a DataFrame using their indexes?

Q22. How do you sort a DataFrame by a specific column?

Q23. How do you create a new column in a DataFrame based on the values of another
column?

Q24. How do you remove duplicates from a DataFrame?

Q25. What is the difference between .loc and .iloc in Pandas?

You might also like