Skip to content

Commit

Permalink
set() doesn't maintain char_vals order, added sort to keep it consist…
Browse files Browse the repository at this point in the history
…ent (see #51)
  • Loading branch information
jbousquin committed Feb 5, 2024
1 parent 9b2ef05 commit e275b85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions harmonize_wq/harmonize.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ def harmonize_all(df_in, errors='raise'):
"""
df_out = df_in.copy()
char_vals = list(set(df_out['CharacteristicName']))
char_vals.sort()

for char_val in char_vals:
df_out = harmonize(df_out, char_val, errors=errors)
Expand Down

0 comments on commit e275b85

Please sign in to comment.