xorbitsai / xorbits

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

BUG: set column when using fallback results #746

Open ChengjieLi28 opened 8 months ago

ChengjieLi28 commented 8 months ago

Note that the issue tracker is NOT the place for general support. For discussions about development, questions about usage, or any general questions, contact us on https://discuss.xorbits.io/.

import xorbits.pandas as pd
xdf = pd.DataFrame([[1,2], [3,4]], columns=[["a", "b"], ["c", "d"]])
xdf.columns = xdf.columns.droplevel(0)
print(xdf)
print(xdf.columns)

The result is not correct.