Skip to content

Commit

Permalink
Fixed an indexing bug in make_distinct custom constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
gherka committed Oct 10, 2023
1 parent ede00ac commit 82b974b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exhibit/core/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ def _make_distinct_within_group(group):
group = group.cat.add_categories([""])
new_group = group.where(~group.duplicated(), "").tolist()

return pd.Series(new_group, name=target_col)
return pd.Series(new_group, index=group.index, name=target_col)

final_result = []
target_cols = [x.strip() for x in target_str.split(",")]
Expand Down

0 comments on commit 82b974b

Please sign in to comment.