Commit ccec504
BUG: int dtype for get_dummies
closes #8725 Changes `get_dummies` return columns with `uint8`
dtypes instead of coercing to floats if they were alongside other
float columns.
Author: Tom Augspurger <tom.augspurger88@gmail.com>
Closes #13796 from TomAugspurger/get_dummies_dtype and squashes the following commits:
cace0f7 [Tom Augspurger] BUG: int dtype for get_dummies1 parent 362a561 commit ccec504
File tree
5 files changed
+179
-94
lines changed- doc/source/whatsnew
- pandas
- core
- stats/tests
- tests
5 files changed
+179
-94
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
371 | 371 | | |
372 | 372 | | |
373 | 373 | | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
374 | 400 | | |
375 | 401 | | |
376 | 402 | | |
| |||
479 | 505 | | |
480 | 506 | | |
481 | 507 | | |
482 | | - | |
483 | 508 | | |
484 | 509 | | |
485 | 510 | | |
| |||
1355 | 1380 | | |
1356 | 1381 | | |
1357 | 1382 | | |
1358 | | - | |
| 1383 | + | |
1359 | 1384 | | |
1360 | 1385 | | |
1361 | 1386 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
1165 | | - | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
1166 | 1167 | | |
1167 | 1168 | | |
1168 | | - | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1169 | 1172 | | |
1170 | 1173 | | |
1171 | | - | |
| 1174 | + | |
1172 | 1175 | | |
1173 | 1176 | | |
1174 | 1177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
645 | 645 | | |
646 | 646 | | |
647 | 647 | | |
| 648 | + | |
648 | 649 | | |
649 | 650 | | |
650 | 651 | | |
| |||
659 | 660 | | |
660 | 661 | | |
661 | 662 | | |
| 663 | + | |
662 | 664 | | |
663 | 665 | | |
664 | 666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2429 | 2429 | | |
2430 | 2430 | | |
2431 | 2431 | | |
2432 | | - | |
| 2432 | + | |
2433 | 2433 | | |
2434 | 2434 | | |
2435 | 2435 | | |
2436 | | - | |
| 2436 | + | |
2437 | 2437 | | |
2438 | 2438 | | |
2439 | 2439 | | |
2440 | 2440 | | |
2441 | 2441 | | |
2442 | 2442 | | |
2443 | | - | |
| 2443 | + | |
2444 | 2444 | | |
2445 | 2445 | | |
2446 | 2446 | | |
| |||
2450 | 2450 | | |
2451 | 2451 | | |
2452 | 2452 | | |
2453 | | - | |
| 2453 | + | |
2454 | 2454 | | |
2455 | 2455 | | |
2456 | 2456 | | |
| |||
0 commit comments