0 votes
in Python Pandas by
What will be output for the following code?

Choose the correct option from below list

import pandas as pd

import numpy as np

s = pd.Series(np.random.randnd) )

print s.ndim

a) 0

b) 1

c) 2

d) 3

1 Answer

0 votes
by

Correct Answer of the above question is :   B

Explanation: Returns the number of dimensions of the object. By definition, a Series is a 1D data structure, so it returns 1.

Related questions

0 votes
asked Nov 9, 2021 in Python Pandas by Robin
0 votes
asked Aug 13, 2021 in Python Pandas by SakshiSharma
...