IAMconsortium / pyam

Analysis & visualization of energy & climate scenarios
https://pyam-iamc.readthedocs.io/
Apache License 2.0
226 stars 118 forks source link

More pandas future warnings #636

Closed coroa closed 2 years ago

coroa commented 2 years ago

PR with small fixes for lines that were throwing FutureWarning's with the newest pandas.

Please confirm that this PR has done the following:

codecov[bot] commented 2 years ago

Codecov Report

Merging #636 (99c148a) into main (38897ff) will decrease coverage by 0.0%. The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #636     +/-   ##
=======================================
- Coverage   94.6%   94.5%   -0.1%     
=======================================
  Files         57      57             
  Lines       5651    5664     +13     
=======================================
+ Hits        5347    5358     +11     
- Misses       304     306      +2     
Impacted Files Coverage Δ
pyam/plotting.py 92.9% <ø> (ø)
pyam/core.py 94.6% <100.0%> (-0.4%) :arrow_down:
pyam/iiasa.py 85.8% <100.0%> (+<0.1%) :arrow_up:
pyam/utils.py 91.2% <100.0%> (+0.4%) :arrow_up:
tests/test_io.py 100.0% <0.0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 38897ff...99c148a. Read the comment docs.