Commit 6c73617
committed
Adapt to new location of pandas is_categorical_dtype
I'm not sure what version this changed in, but originally the only way
to get is_categorical_dtype was as a private export from
pandas.core.common. Now that's deprecated, and you're supposed to get it
from pandas.api.type. We try both, to cover both periods.1 parent bf503bb commit 6c73617
2 files changed
+21
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
46 | 57 | | |
47 | 58 | | |
48 | 59 | | |
| |||
637 | 648 | | |
638 | 649 | | |
639 | 650 | | |
640 | | - | |
641 | | - | |
642 | | - | |
643 | | - | |
| 651 | + | |
644 | 652 | | |
645 | 653 | | |
646 | 654 | | |
| |||
0 commit comments