pydata / patsy

Describing statistical models in Python using symbolic formulas
Other
956 stars 104 forks source link

Pandas 0.22.0 `DeprecationWarning` from `util.py:652` #122

Closed macks22 closed 6 years ago

macks22 commented 6 years ago

The warning basically says it all:

/Users/<user>/anaconda2/envs/py3k/lib/python3.6/site-packages/patsy/util.py:652: DeprecationWarning: pandas.core.common.is_categorical_dtype is deprecated. import from the public API: pandas.api.types.is_categorical_dtype instead
  return safe_is_pandas_categorical_dtype(data.dtype)

Would be good to switch over to the new API soon to get rid of the warning and prevent breakage with future pandas versions.

njsmith commented 6 years ago

What version of patsy are you seeing this on?

macks22 commented 6 years ago

0.4.1

njsmith commented 6 years ago

0.5.0 was released a few months ago, and I think upgrading will fix this :-)

macks22 commented 6 years ago

That did it, thanks!