Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/unitxt/text2sql_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,10 @@ def rows_to_multisets(df):

def sort_df(df):
sorted_df = df.copy()
for col in sorted_df.columns:
sorted_df[col] = sorted_df[col].astype(str).sort_values(ignore_index=True)
for i in range(len(sorted_df.columns)):
sorted_df.iloc[:, i] = (
sorted_df.iloc[:, i].astype(str).sort_values(ignore_index=True)
)
return sorted_df

if df1.empty or df2.empty or len(df1) != len(df2):
Expand Down