Repository navigation
Commit d31f6df
committed
Handle mixed-type and missing groupby values in joined categories
np.unique raises TypeError on object columns mixing ints and strings
or containing missing values. Fall back to pd.unique in appearance
order with missing values dropped, and cover the case with a
mixed-type/missing-value regression test. Addresses review on #4385.1 parent 682a0c3 commit d31f6df
2 files changed
Lines changed: 33 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1970 | 1970 | | |
1971 | 1971 | | |
1972 | 1972 | | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
1973 | 1984 | | |
1974 | 1985 | | |
1975 | 1986 | | |
| |||
2085 | 2096 | | |
2086 | 2097 | | |
2087 | 2098 | | |
2088 | | - | |
| 2099 | + | |
2089 | 2100 | | |
2090 | 2101 | | |
2091 | 2102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
449 | 470 | | |
450 | 471 | | |
451 | 472 | | |
| |||
0 commit comments