Skip to content

Commit

Permalink
fix ranked
Browse files Browse the repository at this point in the history
  • Loading branch information
dayesouza committed Oct 18, 2024
1 parent b69cfb4 commit 6de9295
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions toolkit/compare_case_groups/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def create_data_summary(
attributes_df = build_attribute_df(self.filtered_df, groups, aggregates)

temporal_df = pl.DataFrame()
temporal_atts = []
if temporal is not None and temporal != "":
window_df = create_window_df(groups, temporal, aggregates, self.filtered_df)

Expand All @@ -107,14 +106,14 @@ def create_data_summary(
window_df, groups, temporal_atts, temporal
)

ranked_df = build_ranked_df(
temporal_df,
grouped_df,
attributes_df,
temporal,
groups,
)
self._select_columns_ranked_df(ranked_df)
ranked_df = build_ranked_df(
temporal_df,
grouped_df,
attributes_df,
temporal,
groups,
)
self._select_columns_ranked_df(ranked_df)

def _format_list(self, items, bold=True, escape_colon=False) -> str:
formatted_items = []
Expand Down

0 comments on commit 6de9295

Please sign in to comment.