Skip to content

Commit

Permalink
[anilist] fix pivot call for polars 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
odrling committed Jul 1, 2024
1 parent c43c372 commit 844f836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanapi/utils/anilist.py
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,7 @@ async def get_entries_df():


def entries_to_scores_df(entries: pl.DataFrame) -> pl.DataFrame:
scores = entries.pivot(columns='discord_id', index='id_al',
scores = entries.pivot('discord_id', index='id_al',
values='score', aggregate_function='max')
return scores

Expand Down

0 comments on commit 844f836

Please sign in to comment.