equinor / fmu-ensemble

Python objectification of reservoir model ensembles left on disk by ERT.
GNU General Public License v3.0
12 stars 19 forks source link

Incompatibility with Pandas 2.x #231

Closed berland closed 7 months ago

berland commented 1 year ago

When running pytest with pandas==2.0.1:

FAILED tests/test_ensemble.py::test_filter - AttributeError: 'DataFrame' object has no attribute 'append'
FAILED tests/test_ensemble_eclfail.py::test_ens_premature_ecl - AttributeError: 'DataFrame' object has no attribute 'append'
FAILED tests/test_ensemblecombination.py::test_ensemblecomb_observations - AttributeError: 'Series' object has no attribute 'iteritems'
FAILED tests/test_observations.py::test_virtual_observations - AttributeError: 'Series' object has no attribute 'iteritems'
FAILED tests/test_realization.py::test_get_smry_meta - TypeError: Passing a set as an indexer is not supported. Use a list instead.
FAILED tests/test_realizationcombination.py::test_realizationcomb_virt_meta - TypeError: Passing a set as an indexer is not supported. Use a list instead.
FAILED tests/test_virtualensemble.py::test_todisk - TypeError: dropna() takes 1 positional argument but 2 were given
FAILED tests/test_virtualensemble.py::test_get_smry_meta - TypeError: Passing a set as an indexer is not supported. Use a list instead.
FAILED tests/test_virtualrealization.py::test_get_smry_meta - TypeError: Passing a set as an indexer is not supported. Use a list instead.