ENH: specify header=['list', 'of', 'headers'] in DataFrame.write_csv() · Issue #921 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@brentp

Description

@brentp

As with R's write.table col.names which can take a list of column headers to output instead of the
headers.

here's a start, though I'm unsure about hwo it interacts with the index label stuff.

diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 248a4e9..8c93488 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -13,7 +13,7 @@ labeling information

pylint: disable=E1101,E1103

pylint: disable=W0212,W0231,W0703,W0622