Question

    Which of the following statements is true about the

    usage of Pandas and NumPy in data analysis?
    A Pandas is used for numerical data operations, and NumPy is used for data cleaning. Correct Answer Incorrect Answer
    B Pandas provides tools for data manipulation and analysis, and NumPy is used for efficient numerical calculations. Correct Answer Incorrect Answer
    C Pandas is optimized for working with arrays, and NumPy is suited for tabular data. Correct Answer Incorrect Answer
    D Pandas is only used for statistical operations, while NumPy handles graphical visualizations. Correct Answer Incorrect Answer
    E Pandas is only used for statistical operations, while NumPy handles graphical visualizations. Correct Answer Incorrect Answer

    Solution

    Explanation: Pandas is a powerful library that primarily deals with data manipulation and analysis . It provides data structures like DataFrame (tabular data) and Series (one-dimensional data), making it excellent for tasks such as cleaning, transforming, filtering, and aggregating data. Pandas is built on top of NumPy and offers additional capabilities for handling structured data such as missing values, time series, and categorical data.   NumPy , on the other hand, is designed for numerical computing . It is used to perform efficient operations on large datasets stored as arrays or matrices, enabling operations like linear algebra, statistical calculations, and other complex numerical tasks. NumPy arrays are much more efficient for numerical data than native Python lists due to their support for vectorized operations.  

    Practice Next