DataFrame.shape
- DataFrame.shape
Return a tuple representing the dimensionality of the DataFrame.
Returns
shape: tuple
number of rows
number of columns
Notes
number of rows
len(df)
queries OpenSearchnumber of columns
len(df.columns)
is cached. If mappings are updated, DataFrame must be updated.
Examples
>>> from tests import OPENSEARCH_TEST_CLIENT
>>> df = oml.DataFrame(OPENSEARCH_TEST_CLIENT, 'ecommerce') >>> df.shape (4675, 45)