eland.DataFrame.shape#

DataFrame.shape#

Return a tuple representing the dimensionality of the DataFrame.

shape: tuple

  1. number of rows

  2. number of columns

  • number of rows len(df) queries Elasticsearch

  • number of columns len(df.columns) is cached. If mappings are updated, DataFrame must be updated.

>>> df = ed.DataFrame('http://localhost:9200', 'ecommerce')
>>> df.shape
(4675, 45)