Following up on issue 687 from pypsa-earth , the same pandas deprecations ought to be addressed in pypsa-earth-sec
Checklist
[x] I am using the current main branch or the latest release. Please indicate.
[ ] I am running on an up-to-date pypsa-africa environment. Update via conda env update -f envs/environment.yaml.
Describe the Bug and Error Message
The deprecations are:
[x] build_industry_demand: DataFrame.applymap has been deprecated. Use DataFrame.map instead. production_base = cagr.applymap(lambda x: 1)
[x] prepare_sector_network: FutureWarning: DataFrame.groupby with axis=1 is deprecated. Doframe.T.groupby(...)without axis instead. heat_demand[[sector + " water", sector + " space"]]
[x] prepare_sector_network: FutureWarning: DataFrame.groupby with axis=1 is deprecated. Doframe.T.groupby(...)without axis instead. heat_shape = heat_shape.groupby(
[x] prepare_sector_network: FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. snapshot_weightings = n.snapshot_weightings.resample(offset).sum()
[x] prepare_sector_network: FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. pnl[k] = df.resample(offset).mean()
[x] prepare_sector_network: FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. pnl[k] = df.resample(offset).max()
[x] add_export: FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. export_profile = export_profile.resample(sopts[0]).mean()
Following up on issue 687 from pypsa-earth , the same pandas deprecations ought to be addressed in pypsa-earth-sec
Checklist
main
branch or the latest release. Please indicate.pypsa-africa
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug and Error Message
The deprecations are:
DataFrame.applymap has been deprecated. Use DataFrame.map instead. production_base = cagr.applymap(lambda x: 1)
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(
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()