English

Assertion (A): To create a series from array, we have to import the NumPy module and then use array () method.

Advertisements
Advertisements

Question

Assertion (A): To create a series from array, we have to import the NumPy module and then use array () method.

Reason (R): NumPy is an open-source numerical Python library. NumPy contains a multi-dimensional array and matrix data structures.

Options

  • Both Assertion (A) and reason (R) are true and reason (R) is the correct explanation of Assertion (A).

  • Both Assertion (A) and reason (R) are true but reason (R) is not the correct explanation of Assertion (A).

  • Assertion (A) is true but reason (R) is false.

  • Assertion (A) is false but reason (R) is true.

MCQ
Advertisements

Solution

Both Assertion (A) and reason (R) are true and reason (R) is the correct explanation of Assertion (A).

Explanation:

NumPy, which stands for Numerical Python, is a library that contains multidimensional array objects as well as functions for manipulating those arrays. NumPy can conduct mathematical and logical operations on arrays. NumPy is a Python library. Pandas employ NumPy arrays as the concrete objects enclosed with alndex, Series, or DataFrame for the majority of data types.

shaalaa.com
A Series
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×