Skip to content

Commit b3f045a

Browse files
author
FelixAbrahamsson
committed
fix: sort dataframe key column in split
1 parent 7f19810 commit b3f045a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datastream/tools/split_dataframes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def split_dataframes(
4141
for split_name in proportions.keys()
4242
}
4343

44-
key_dataframe = pd.DataFrame({key_column: dataframe[key_column].unique()})
44+
key_dataframe = pd.DataFrame({key_column: np.sort(dataframe[key_column].unique())})
4545

4646
if frozen:
4747
if sum(map(len, split.values())) == 0:

0 commit comments

Comments
 (0)