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 5 subjective questions Handling Data with Pandas; Data Visualisation with Matplotlib

ECE181 — Introduction To Python 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    Define Pandas. Explain the main features of the Pandas library and why it is preferred for data analysis in Python.

  2. Question 2 of 20

    What is a Pandas Series? Explain how to create a Series with a suitable example.

  3. Question 3 of 20

    What is a DataFrame? Describe its structure and list various ways of creating a DataFrame.

  4. Question 4 of 20

    Distinguish between a Series and a DataFrame in Pandas.

  5. Question 5 of 20

    Explain how to read from and write to CSV files using Pandas with examples.

  6. Question 6 of 20

    Describe various operations that can be performed on a DataFrame with suitable code examples.

  7. Question 7 of 20

    Explain the functions head(), tail(), info(), and describe() in Pandas with their uses.

  8. Question 8 of 20

    What is Matplotlib? Explain its importance in data visualisation and describe the basic steps to create a plot.

  9. Question 9 of 20

    Explain how to create a line plot in Matplotlib. Describe common customizations available for line plots with code.

  10. Question 10 of 20

    Explain the concept of subplots in Matplotlib. How do you create multiple subplots in a single figure? Illustrate with an example.

  11. Question 11 of 20

    What is a histogram? Explain how histograms are created in Matplotlib and where they are used.

  12. Question 12 of 20

    Distinguish between a histogram and a bar chart.

  13. Question 13 of 20

    Explain how to create a bar chart in Matplotlib. Describe the difference between vertical and horizontal bar charts with examples.

  14. Question 14 of 20

    What is a pie chart? Explain how to create a pie chart in Matplotlib and mention its advantages and limitations.

  15. Question 15 of 20

    Explain how to handle missing data in a Pandas DataFrame with appropriate methods and examples.

  16. Question 16 of 20

    Explain indexing and selection in a DataFrame using loc[] and iloc[]. Distinguish between the two.

  17. Question 17 of 20

    Describe how to add titles, labels, legends, and grids to a Matplotlib plot. Why are these elements important?

  18. Question 18 of 20

    Explain the following DataFrame attributes: shape, size, columns, index, dtypes, and values.

  19. Question 19 of 20

    How can Pandas and Matplotlib be used together for data visualisation? Explain with an example of plotting data directly from a DataFrame.

  20. Question 20 of 20

    Compare line plots, bar charts, histograms, and pie charts. When should each be used?

That's unit 5

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.