-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pandas deprecations - offset warning #353
Pandas deprecations - offset warning #353
Conversation
Many thanks @finozzifa ! :D |
…psa-earth-sec into pandas_deprecations
Ping when this is ready :) |
@finozzifa I think you mentioned last week it is ready? |
@energyLS : ja it is ready for merging. Thanks for asking! |
On it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great @finozzifa :D
This PR looks great, just a minor fact that one file was removed.
Then this PR is ready to fly :D
Great @finozzifa :D |
Closes # (if applicable).
The pull request partially addresses what listed in Issue #314.
Changes proposed in this Pull Request
The changes proposed are:
DataFrame.applymap has been deprecated. Use DataFrame.map instead. production_base = cagr.applymap(lambda x: 1)
FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. snapshot_weightings = n.snapshot_weightings.resample(offset).sum()
FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. pnl[k] = df.resample(offset).mean()
FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. pnl[k] = df.resample(offset).max()
FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. export_profile = export_profile.resample(sopts[0]).mean()
Further work is needed for what follows. A new PR will be raised in the next days.
FutureWarning: DataFrame.groupby with axis=1 is deprecated. Do
frame.T.groupby(...)without axis instead. heat_demand[[sector + " water", sector + " space"]]
FutureWarning: DataFrame.groupby with axis=1 is deprecated. Do
frame.T.groupby(...)without axis instead. heat_shape = heat_shape.groupby(
Checklist
envs/environment.yaml
andenvs/environment.docs.yaml
.config.default.yaml
,config.tutorial.yaml
, andtest/config.test1.yaml
.doc/configtables/*.csv
and line references are adjusted indoc/configuration.rst
anddoc/tutorial.rst
.doc/release_notes.rst
is amended in the format of previous release notes, including reference to the requested PR.