Commit 41411d4
committed
BUG: fix issue with sparse concatting
This was originally brought up in :issue:`18686` and :issue:`18914`.
Basically the problem is when you use get_dummies with sparse=True it
will return a SparseDataFrame with sparse and dense columns. This is in
fact not what we want. What we want is a DataFrame with sparse and dense
columns.
Inside of pandas.core.dtypes.concat is a function that defines the
factory class which needed to be changed.1 parent c19bdc9 commit 41411d4
File tree
5 files changed
+26
-19
lines changed- doc/source/whatsnew
- pandas
- core
- dtypes
- sparse
- tests
- reshape
- sparse
5 files changed
+26
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | | - | |
172 | 171 | | |
173 | 172 | | |
174 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
457 | 466 | | |
458 | 467 | | |
459 | 468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
317 | 318 | | |
318 | 319 | | |
319 | 320 | | |
320 | | - | |
321 | | - | |
322 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
323 | 324 | | |
324 | 325 | | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | 326 | | |
335 | | - | |
336 | | - | |
337 | 327 | | |
338 | 328 | | |
339 | 329 | | |
340 | 330 | | |
341 | 331 | | |
| 332 | + | |
342 | 333 | | |
343 | 334 | | |
344 | 335 | | |
345 | 336 | | |
346 | 337 | | |
347 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
348 | 344 | | |
349 | 345 | | |
350 | 346 | | |
351 | 347 | | |
352 | | - | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
353 | 351 | | |
0 commit comments