Commit 6654c02
authored
[backport 2.3.x] BUG: preserve (object) dtype in factorize (pandas-dev#60118) (pandas-dev#60174)
BUG: preserve (object) dtype in factorize (pandas-dev#60118)
* BUG: preserve (object) dtype in factorize
* add fallback for float16
(cherry picked from commit 13926e5)1 parent 826c230 commit 6654c02
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
1198 | 1199 | | |
1199 | 1200 | | |
1200 | 1201 | | |
1201 | | - | |
1202 | | - | |
| 1202 | + | |
| 1203 | + | |
1203 | 1204 | | |
1204 | 1205 | | |
1205 | 1206 | | |
1206 | 1207 | | |
1207 | | - | |
| 1208 | + | |
| 1209 | + | |
| 1210 | + | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1208 | 1214 | | |
1209 | 1215 | | |
1210 | 1216 | | |
| |||
0 commit comments