pydata / patsy

Describing statistical models in Python using symbolic formulas
Other
947 stars 103 forks source link

Avoid deprecated pandas `is_categorical_dtype` API #204

Closed matthewwardrop closed 10 months ago

matthewwardrop commented 10 months ago

This patch side-steps the issues addressed by #198 and #199, but avoiding recently deprecated APIs.

codecov-commenter commented 10 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (ae3e8cb) 98.37% compared to head (f23e3bc) 98.46%. Report is 1 commits behind head on master.

Files Patch % Lines
patsy/util.py 50.00% 1 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #204 +/- ## ========================================== + Coverage 98.37% 98.46% +0.09% ========================================== Files 30 30 Lines 3140 3133 -7 Branches 695 693 -2 ========================================== - Hits 3089 3085 -4 + Misses 26 25 -1 + Partials 25 23 -2 ``` | [Flag](https://app.codecov.io/gh/pydata/patsy/pull/204/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydata) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/pydata/patsy/pull/204/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydata) | `98.05% <50.00%> (+0.09%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pydata#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.