modin-project / modin

Modin: Scale your Pandas workflows by changing a single line of code
http://modin.readthedocs.io
Apache License 2.0
9.91k stars 653 forks source link

BUG: columns mismatch after df.update #7329

Closed YarShev closed 5 months ago

YarShev commented 5 months ago

Modin version checks

Reproducible Example

import modin.pandas as pd

df = pd.DataFrame({'C': [1, 2, 3], 'B': [400, 500, 600]})
new_df = pd.DataFrame({'B': [4, 5, 6], 'A': [7, 8, 9]})
df.update(new_df)
print(df)
   B  C
0  4  1
1  5  2
2  6  3

Issue Description

Columns get ordered while in pandas not.

Expected Behavior

Should match pandas.

Error Logs

```python-traceback Replace this line with the error backtrace (if applicable). ```

Installed Versions

Replace this line with the output of pd.show_versions()