pandas.api.extensions.ExtensionArray.nbytes#

property ExtensionArray.nbytes[source]#

The number of bytes needed to store this object in memory.

If computing this is expensive, implementations may return an approximate lower bound on the number of bytes needed.

See also

ExtensionArray.shape

Return a tuple of the array dimensions.

ExtensionArray.size

The number of elements in the array.

Examples

>>> pd.array([1, 2, 3]).nbytes
27