Request: Multi-line header for to_csv when column is MultiIndex #1651
Labels
Enhancement
IO Data
IO issues that don't fit into a more specific label
Output-Formatting
__repr__ of pandas objects, to_string
Milestone
Having tuple as string in header line is not what I expected.
Any particular reason for this behavior?:
It would be nice if there is an option to output multi-line header with
df.to_csv
, like whatprint df
ordf.to_html
does. Or even make it as default.Also,
header_format
option to format would be nice, e.g.:The text was updated successfully, but these errors were encountered: