pandas.Series.shape#
- property Series.shape[source]#
Return a tuple of the shape of the underlying data.
See also
Series.ndimNumber of dimensions of the underlying data.
Series.sizeReturn the number of elements in the underlying data.
Series.nbytesReturn the number of bytes in the underlying data.
Examples
>>> s = pd.Series([1, 2, 3]) >>> s.shape (3,)