KaveIO / PhiK

Phi_K correlation analyzer library
Other
156 stars 28 forks source link

fix pandas warning #74

Closed sapountzis closed 10 months ago

sapountzis commented 10 months ago

Currently the groupby raises a warning by pandas as the default behavior will change

From pandas documentation:

observed : bool, default False This only applies if any of the groupers are Categoricals. If True: only show observed values for categorical groupers. If False: show all values for categorical groupers.

Deprecated since version 2.1.0: The default value will change to True in a future version of pandas.

To retain the old behavior we need to set observed=False which also fixes the warning

mbaak commented 10 months ago

Thank you! Will have a quick test run and merge :)

sapountzis commented 10 months ago

Thanks! Any plans for a new release in pip?

mbaak commented 10 months ago

We're working on it :)