Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
MultiIndex DataFrame to_csv() ignores date_format #7791
Comments
|
jreback
added Bug MultiIndex
labels
Jul 18, 2014
jreback
added this to the
0.15.0
milestone
Jul 18, 2014
This was referenced Jul 18, 2014
Poquaruse
commented
Jul 19, 2014
|
Thanks! :-) |
jreback
added the
Output-Formatting
label
Jul 19, 2014
|
ok, since #7746 fix was just merged, this is a separate issue. I think that the multi-index |
jreback
modified the milestone: 0.15.1, 0.15.0
Sep 10, 2014
jreback
added the
Good as first PR
label
Sep 21, 2014
jreback
modified the milestone: 0.16.0, Next Major Release
Mar 6, 2015
|
@jreback i've been looking at that issue, and i would not say the difficulty is "novice"... The issue I'm struggling with is that (if i understand things correctly) a So when we need to format a On the other hand, a I could try to go through the individual values of the Is it possible to transform a |
|
I'll bump the difficulty up 1 :) here's what you have to do redefine for each level, call
something like this:
|
jreback
added Difficulty Intermediate Effort Low and removed Difficulty Novice
labels
Nov 8, 2015
|
Nice! I didn't know the concept of "level", and this is exactly what i was missing, thx ;) Here we go |
nbonnotte
referenced
this issue
Nov 8, 2015
Closed
BUG: multi-index to_native_types is not passing thru parameters #11551
jreback
modified the milestone: 0.17.1, Next Major Release
Nov 8, 2015
jreback
referenced
this issue
Nov 8, 2015
Closed
to_csv date format flag not behaving as expected with multiindex #6797
jreback
added a commit
that referenced
this issue
Nov 11, 2015
|
|
nbonnotte + jreback |
9cbe8b9
|
|
closed by #11151 |
Poquaruse commentedJul 18, 2014
Hi all,
I'm running pandas 0.14.1:
INSTALLED VERSIONS
commit: None
python: 3.4.1.final.0
python-bits: 64
OS: Windows
OS-release: 8
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: DE
pandas: 0.14.1
nose: 1.3.3
Cython: 0.20.1
numpy: 1.8.1
scipy: 0.14.0
statsmodels: None
IPython: 2.1.0
sphinx: 1.2.2
patsy: 0.2.1
scikits.timeseries: None
dateutil: 2.1
pytz: 2014.4
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.3.1
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: None
xlsxwriter: 0.5.5
lxml: 3.3.5
bs4: 4.3.1
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.4
pymysql: None
psycopg2: None
I'm experiencing a bug which might be related to pydata#7622
How to reproduce the bug:
At first, a new DataFrame is created
Then, this DataFrame is exported as csv with a custom date_format:
This does work: ',a,b\n2014 demo,-0.5582228932333034,1.0\n2014 demo,[...]'
Now, the other scenario. Same DataFrame but a groupby('b') and a resample:
Here, the custom date_format is not used:
'b,,a\n-4.0,2014-01-01 00:12:00,1.571130069273494[...]'
Thanks and best regards