Skip to content

Commit

Permalink
🖊️ code review
Browse files Browse the repository at this point in the history
  • Loading branch information
jvdd committed Feb 14, 2024
1 parent fd63668 commit 79a67a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tsflex/features/feature_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ def _calculate_group_by_all(
"""
global group_indices, group_id_name, get_group_func
group_indices = grouped_data.indices # dict - group_id as key; indices as value
# since in future versions of pandas grouper will be deprecated
group_attr = "_grouper" if hasattr(grouped_data, "_grouper") else "grouper"
group_id_name = getattr(grouped_data, group_attr).names # name of group col(s)
get_group_func = self._group_feat_generator(grouped_data)
Expand Down

0 comments on commit 79a67a9

Please sign in to comment.