Skip to content

Commit

Permalink
Fix pandas incompatible dtype setting deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
has2k1 committed Feb 19, 2024
1 parent 217b7f9 commit 7f6a356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plotnine/_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ def add_margins(
for vlst in margin_vars[1:]:
dfx = df.copy()
for v in vlst:
dfx.loc[0:, v] = "(all)"
dfx[v] = "(all)"
margin_dfs.append(dfx)

merged = pd.concat(margin_dfs, axis=0)
Expand Down

0 comments on commit 7f6a356

Please sign in to comment.