You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
-+import collections
from itertools import izip
from StringIO import StringIO
import csv
@@ -889,7 +889,9 @@ class DataFrame(NDFrame):
cols = self.columns
series = self._series
- if header:+ if isinstance(header, collections.Iterable):+ writer.writerow([h or '' for h in header])+ elif header:
if index:
# should write something for index label
if index_label is None:
The text was updated successfully, but these errors were encountered:
* commit 'v0.8.0rc2-26-g76c6351': (42 commits)
BUG/TST: typo caused read_csv to lose index name pandas-dev#1536
BUG: incorrect tick label positions pandas-dev#1531 (zooming is still wrong)
ENH: register converters with matplotlib for better datetime convesion
ENH: handle datetime.date in Period constructor
DOC: small doc for pandas-dev#1450
BUG: repr of pre-1900 datetime64 values in a DataFrame column closepandas-dev#1518
BUG: workaround vstack/concat bug in numpy 1.6 pandas-dev#1518
DOC: lreshape docstring, release note
ENH: experimental lreshape function
BUG: plotting DataFrame with freq with offset
BUG: DataFrame plotting with inferred freq
BUG: timedelta.total_seconds only in 2.7 and 3.2
DOC: release notes
ENH: Add raise on conflict keyword to update
DOC: release notes re: pandas-dev#921
overload header keyword instead of extra col_aliases keyword
ENH: column aliases for to_csv/to_excel pandas-dev#921
ENH: handle weekly resampling via daily
BUG: plot mixed frequencies pandas-dev#1517
BUG/TST: plot irregular and reg freq on same subplot
...
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.
The text was updated successfully, but these errors were encountered: