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 13 subjective questions NumPy and Pandas

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

Read the notes Practice MCQs
  1. Question 1 of 20

    Define Python and explain why it is widely used in data science.

  2. Question 2 of 20

    Describe the main built-in data structures in Python and give a suitable use case for each.

  3. Question 3 of 20

    What is NumPy? Explain the important features of a NumPy ndarray.

  4. Question 4 of 20

    Compare Python lists and NumPy arrays with respect to data type, memory usage, speed, and operations.

  5. Question 5 of 20

    Explain different methods of creating NumPy arrays, with suitable examples.

  6. Question 6 of 20

    Explain the concepts of shape, dimension, size, axes, and reshaping in NumPy.

  7. Question 7 of 20

    Describe indexing, slicing, and Boolean masking in NumPy arrays. Include examples for one-dimensional and two-dimensional arrays.

  8. Question 8 of 20

    What are vectorization and broadcasting in NumPy? Explain the broadcasting rules with examples.

  9. Question 9 of 20

    Explain data types in Python and distinguish dynamically typed Python objects from fixed-type NumPy arrays.

  10. Question 10 of 20

    Describe NumPy data types, type inference, type casting, and the possible risks of conversion.

  11. Question 11 of 20

    What is Pandas? Explain the structure and major differences between a Series and a DataFrame.

  12. Question 12 of 20

    Explain how Pandas Series objects can be created from lists, dictionaries, scalar values, and NumPy arrays.

  13. Question 13 of 20

    Explain data selection in a Pandas Series using bracket notation, loc, iloc, slicing, and Boolean masks.

  14. Question 14 of 20

    Describe different ways to create a Pandas DataFrame and explain the role of its row index and column labels.

  15. Question 15 of 20

    Explain data selection in a Pandas DataFrame using column selection, loc, iloc, slicing, and conditional filtering.

  16. Question 16 of 20

    Distinguish between loc, iloc, at, and iat in Pandas. When should each indexer be used?

  17. Question 17 of 20

    What is missing data in Pandas? Explain how Pandas represents and detects missing values.

  18. Question 18 of 20

    Explain how dropna() is used to handle missing data. Discuss the effects of axis, how, thresh, and subset.

  19. Question 19 of 20

    Describe different strategies for filling missing values in Pandas using fillna(), forward filling, backward filling, and statistical imputation.

  20. Question 20 of 20

    Design and explain a Pandas workflow for inspecting, selecting, cleaning, and summarizing a dataset containing missing values.

That's unit 13

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.