Commit 46d12c2
committed
BUG: Group-by numeric type-coericion with datetime
GH Bug pandas-dev#14423
During a group-by/apply on a DataFrame, in the presence of one or more
DateTime-like columns, Pandas would incorrectly coerce the type of all
other columns to numeric. E.g. a String column would be coerced to
numeric, producing NaNs.
Fix the issue, and add a test.1 parent 32df1e6 commit 46d12c2
2 files changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
3566 | 3568 | | |
3567 | 3569 | | |
3568 | 3570 | | |
3569 | | - | |
| 3571 | + | |
3570 | 3572 | | |
3571 | 3573 | | |
3572 | 3574 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4314 | 4314 | | |
4315 | 4315 | | |
4316 | 4316 | | |
4317 | | - | |
| 4317 | + | |
| 4318 | + | |
| 4319 | + | |
| 4320 | + | |
| 4321 | + | |
| 4322 | + | |
| 4323 | + | |
| 4324 | + | |
4318 | 4325 | | |
4319 | 4326 | | |
4320 | 4327 | | |
| |||
0 commit comments