How should I get the shape of a dask dataframe?

后端 未结 5 1484
醉话见心
醉话见心 2021-01-03 22:12

Performing .shape is giving me the following error.

AttributeError: \'DataFrame\' object has no attribute \'shape\'

How should

5条回答
  •  别那么骄傲
    2021-01-03 22:31

    To get the shape we can try this way:

     dask_dataframe.describe().compute()  

    "count" column of the index will give the number of rows

     len(dask_dataframe.columns) 

    this will give the number of columns in the dataframe

提交回复
热议问题