Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/hotfixes' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
fit-alessandro-berti committed Jan 4, 2024
2 parents ec2895b + 99efc59 commit f05718f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pm4py/algo/discovery/declare/variants/classic.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ def __col_to_dict_rule(col_name: Union[Tuple[str, str], Tuple[str, str, str]]) -
if len(col_name) == 2:
return col_name[0], col_name[1]
else:
if col_name[2] is None or pd.isna(col_name[2]):
return col_name[0], col_name[1]

return col_name[0], (col_name[1], col_name[2])


Expand Down

0 comments on commit f05718f

Please sign in to comment.