Skip to content

Commit

Permalink
Merge pull request #34 from lakhoune/fix
Browse files Browse the repository at this point in the history
fix num_cases being undefined
  • Loading branch information
infer742 authored Jan 14, 2023
2 parents 9ccda3e + 4d0af21 commit 09e2967
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pyinsights/log_skeleton/log_skeleton.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ def _get_always_after(self, noise_threshold, case_id=None):
query.add(self._get_case_id_filter(case_id))

df = datamodel.get_data_frame(query)

num_cases = df[case_col].nunique()
# group by activity
grouped = df.groupby(by=[act_col], axis=0)
# get groups as dict
Expand Down

0 comments on commit 09e2967

Please sign in to comment.