laminlabs / bionty-base

Access public biological ontologies.
https://bionty-base.lamin.ai
Apache License 2.0
15 stars 3 forks source link

Future Warning for Pandas 3.0 #557

Closed Zethson closed 3 months ago

Zethson commented 3 months ago

/home/zeth/miniconda3/envs/swarm/lib/python3.11/site-packages/bionty_base/_ontology.py:113: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method. The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.

For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.

df["name"].fillna("", inplace=True)