xorbitsai / xorbits

Scalable Python DS & ML, in an API compatible & lightning fast way.
https://xorbits.readthedocs.io
Apache License 2.0
1.1k stars 67 forks source link

BUG: df.dtypes is None after calling `pd.pivot_table` #667

Closed aresnow1 closed 1 year ago

aresnow1 commented 1 year ago

Describe the bug

The result.dtypes of pd.pivot_table is None after execution.

To Reproduce

In [50]: df = pd.DataFrame({'col1': [1]*5, "col2":[1,2,3,4,4]}, chunk_size=2)

In [51]: r = pd.pivot_table(df, index="col1")

In [52]: r
100%|████████████████████████████████████████████████████████████████████████████████████| 100.00/100 [00:00<00:00, 1364.40it/s]

      col2
col1
1      2.8

In [53]: r.dtypes

In [54]:

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.