Skip to content

Commit

Permalink
fix: polars groupby -> group_by
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Jul 29, 2024
1 parent a9607ca commit 1ad63e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ summary_category_1_df = df \
freq = "MS",
agg_func = 'sum',
wide_format = False,
# engine = "polars"
engine = "polars"
)
# First 5 rows shown
Expand Down
4 changes: 2 additions & 2 deletions src/pytimetk/core/summarize_by_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def _summarize_by_time_polars(
exploded_df
.select(groups + [date_column] + value_column)
.with_columns(pl.col(date_column).dt.truncate(polars_freq))
.groupby(groups + [date_column])
.group_by(groups + [date_column])
.agg(agg_columns)
.sort(groups + [date_column])
)
Expand Down Expand Up @@ -393,7 +393,7 @@ def _summarize_by_time_polars(
data = (df_pl
.select([date_column] + value_column)
.with_columns(pl.col(date_column).dt.truncate(polars_freq))
.groupby([date_column])
.group_by([date_column])
.agg(agg_columns)
.sort([date_column]))

Expand Down

0 comments on commit 1ad63e8

Please sign in to comment.