Commit 3ed8551
committed
BUG: Parse two date columns broken in read_csv with multiple headers
Fix for GH15376
In `io/parsers/_try_convert_dates()` when selecting columns based on a
column index from a set of columns with multi-level names, the column
`name` was converted to a string. This appears to be a bug since the
`name` was a tuple before the conversion. This causes problems
downstream when threre is an attempt to use this name to lookup a
column, and that lookup fails becuase the desired column is keyed from
the tuple, not its string representation.1 parent 1bcc10d commit 3ed8551
File tree
3 files changed
+19
-1
lines changed- doc/source/whatsnew
- pandas
- io
- tests/io
3 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
| 583 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2856 | 2856 | | |
2857 | 2857 | | |
2858 | 2858 | | |
2859 | | - | |
| 2859 | + | |
2860 | 2860 | | |
2861 | 2861 | | |
2862 | 2862 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
0 commit comments