iiasa / message-ix-models

Tools for the MESSAGEix-GLOBIOM family of models
https://docs.messageix.org/models
Apache License 2.0
17 stars 34 forks source link

Adjust for pandas 2.0.0 #92

Closed khaeru closed 1 year ago

khaeru commented 1 year ago

Parallel to iiasa/ixmp#470; see description there for details.

Here is the latest nightly run of the "pytest" CI workflow:

=============================== warnings summary ===============================
../../../../hostedtoolcache/Python/3.10.10/x64/lib/python3.10/site-packages/jupyter_client/connect.py:20
  /Users/runner/hostedtoolcache/Python/3.10.10/x64/lib/python3.10/site-packages/jupyter_client/connect.py:20: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs
  given by the platformdirs library.  To remove this warning and
  see the appropriate new directories, set the environment variable
  `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`.
  The use of platformdirs will be the default in `jupyter_core` v6
    from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write

message_ix_models/tests/model/test_emissions.py::test_add_tax_emission
message_ix_models/tests/model/test_emissions.py::test_add_tax_emission
  /Users/runner/hostedtoolcache/Python/3.10.10/x64/lib/python3.10/site-packages/pandas/core/construction.py:616: UnitStrippedWarning: The unit of the quantity is stripped when downcasting to ndarray.
    data = np.array(data, copy=copy)

At a glance, it seems there are no deprecated usages in message-ix-models.

khaeru commented 1 year ago

We are now passed the pandas 2.1.0 release with no issues particular to message-ix-models (some indirect via genno), so I think we can consider this complete.