Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 9 subjective questions Handling data with pandas

ECAP776 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Define pandas and explain its importance in Python data analysis.

  2. Question 2 of 20

    Describe the principal data structures provided by pandas.

  3. Question 3 of 20

    What is a pandas Series? Explain different ways of creating a Series with examples.

  4. Question 4 of 20

    Explain indexing and slicing in a pandas Series. Distinguish between loc and iloc.

  5. Question 5 of 20

    Describe arithmetic operations and index alignment in pandas Series.

  6. Question 6 of 20

    Define a pandas DataFrame and explain how it can be created from dictionaries, lists, and Series.

  7. Question 7 of 20

    Explain how rows and columns are selected from a DataFrame using bracket notation, loc, and iloc.

  8. Question 8 of 20

    Explain how columns and rows can be added, modified, renamed, and deleted in a DataFrame.

  9. Question 9 of 20

    Describe the attributes and methods used to inspect the structure and contents of a DataFrame.

  10. Question 10 of 20

    Differentiate between sort_values() and sort_index() in pandas, with suitable examples.

  11. Question 11 of 20

    Explain multi-column sorting and the treatment of missing values while sorting a DataFrame.

  12. Question 12 of 20

    What is a CSV file? Describe how read_csv() is used to load CSV data into a DataFrame.

  13. Question 13 of 20

    Explain how a DataFrame is written to a CSV file. Why is index=False commonly used?

  14. Question 14 of 20

    Describe a complete procedure for reading, validating, cleaning, sorting, and saving student data stored in a CSV file.

  15. Question 15 of 20

    Explain Boolean filtering in a DataFrame. How can multiple conditions be combined?

  16. Question 16 of 20

    Explain common statistical and aggregation operations performed on DataFrame columns.

  17. Question 17 of 20

    Describe how missing data is identified and handled in pandas. Compare dropna() and fillna().

  18. Question 18 of 20

    Explain grouping and aggregation in pandas using groupby(). Include an example with more than one aggregation.

  19. Question 19 of 20

    Compare vectorized DataFrame operations, apply(), and explicit Python loops.

  20. Question 20 of 20

    A DataFrame contains the columns Name, Math, Science, and English. Describe pandas operations to calculate totals and percentages, assign results, filter successful students, and rank them.

That's unit 9

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.