Skip to content

Commit

Permalink
fix FutureWarning: ChainedAssignmentError, refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
quant12345 committed Dec 18, 2024
1 parent 1cb9a65 commit 3d7735f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ def test_line_color_fill_between_interpolate(plot_df):
]
df.loc[len(df) + 1] = newdata
columns_ = ['model', 'scenario', 'region', 'variable', 'unit', 'year']
df = df.drop_duplicates(subset=columns_)
df = df.drop_duplicates(subset=columns_).reset_index(drop=True)
df = pyam.IamDataFrame(df)
df.plot(ax=ax, color="model", fill_between=True, legend=True)
return fig
Expand Down

0 comments on commit 3d7735f

Please sign in to comment.