From 8922030343a63edfc03ff920505a56830c994711 Mon Sep 17 00:00:00 2001 From: "Igoshev, Iaroslav" Date: Wed, 26 Jun 2024 16:19:53 +0000 Subject: [PATCH] FIX-#7329: Do not sort columns on df.update Signed-off-by: Igoshev, Iaroslav --- modin/core/dataframe/pandas/dataframe/dataframe.py | 2 +- modin/tests/pandas/dataframe/test_map_metadata.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modin/core/dataframe/pandas/dataframe/dataframe.py b/modin/core/dataframe/pandas/dataframe/dataframe.py index b8467ebe084..991d175932f 100644 --- a/modin/core/dataframe/pandas/dataframe/dataframe.py +++ b/modin/core/dataframe/pandas/dataframe/dataframe.py @@ -3886,7 +3886,7 @@ def n_ary_op( 1, new_right_frames, join_type, - sort=True, + sort=False, ) else: joined_columns = self.copy_columns_cache(copy_lengths=True) diff --git a/modin/tests/pandas/dataframe/test_map_metadata.py b/modin/tests/pandas/dataframe/test_map_metadata.py index 4b19d5fbd9d..d6980cd6761 100644 --- a/modin/tests/pandas/dataframe/test_map_metadata.py +++ b/modin/tests/pandas/dataframe/test_map_metadata.py @@ -1592,6 +1592,7 @@ def test_transpose(data): "data, other_data", [ ({"A": [1, 2, 3], "B": [400, 500, 600]}, {"B": [4, 5, 6], "C": [7, 8, 9]}), + ({"C": [1, 2, 3], "B": [400, 500, 600]}, {"B": [4, 5, 6], "A": [7, 8, 9]}), ( {"A": ["a", "b", "c"], "B": ["x", "y", "z"]}, {"B": ["d", "e", "f", "g", "h", "i"]},