How should I get the shape of a dask dataframe?

后端 未结 5 1560
醉话见心
醉话见心 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:34

    With shape you can do the following

    a = df.shape
    a[0].compute(),a[1]
    

    This will shop the shape just as it is shown with pandas

提交回复
热议问题