Skip to content

Remove Pandas Future Warning #682

@AlexanderJuestel

Description

@AlexanderJuestel

Current test results in a Pandas Future warning:

tests/test_utils.py::test_show_number_of_data_points[dem0-gdf_orientations10-gdf_interfaces1_lines0]
  /usr/share/miniconda/envs/gemgis_testing/lib/python3.9/site-packages/gempy/core/model.py:792: FutureWarning: The `inplace` parameter in pandas.Categorical.add_categories is deprecated and will be removed in a future version. Removing unused categories will always return a new Categorical object.

https://github.com/cgre-aachen/gempy/blob/c64023b8b3b1da10797b566d2bacd8f74079c88b/gempy/core/model.py#L790-L795

I will remove the inplace parameter in a PR soon.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions