Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
ENH: Convert datetimelike index to strings with astype(str) #10442
Comments
jorisvandenbossche
added Enhancement Timeseries
labels
Jun 25, 2015
jorisvandenbossche
added this to the
0.17.0
milestone
Jun 25, 2015
|
sure, this is pretty easy. this is competes a bit with |
jreback
added Difficulty Novice Effort Low
labels
Jun 25, 2015
|
yes, for more control over the conversion the Something else I was thinking: we are now using the numpy machinery I suppose to do the conversion, with the result that this also uses the odd numpy representation in local time:
Would it be possible to also have the second output for |
|
hmm, that's a problem, these should all go thru format (with no format specified) for consistency. Further I really though that we added |
jreback
referenced
this issue
Jun 26, 2015
Merged
ENH: support .strftime for datetimelikes (closes #10086) #10110
jreback
modified the milestone: Next Major Release, 0.17.0
Aug 20, 2015
jreback
added the
Prio-low
label
Aug 20, 2015
hamedhsn
referenced
this issue
Sep 20, 2015
Merged
BUG: astype(str) on datetimelike index #10442 #11148
jreback
modified the milestone: 0.17.1, Next Major Release
Sep 21, 2015
hamedhsn
pushed a commit
to hamedhsn/pandas
that referenced
this issue
Oct 14, 2015
|
|
c2f102f
|
jreback
closed this
in #11148
Oct 16, 2015
jreback
added a commit
that referenced
this issue
Oct 16, 2015
|
|
jreback |
472e6e0
|
Dr-Irv
added a commit
to Dr-Irv/pandas
that referenced
this issue
Oct 24, 2015
|
|
Dr-Irv + Dr-Irv |
4f62b99
|
jorisvandenbossche commentedJun 25, 2015
xref #10110
.astype(str)onDatetimeIndexto use call.format()(Index method)- [ ] Add(#10110 does this withSeries.dt.format()accessor to call.format().strftime)Series.astype(str)to call equiv ofSeries.dt.format()fordatetime64[ns]dtypeRecently the ability to convert a datetimelike series to strings with
astype(str)was introduced (#9758 by @evanpw):it would be nice if this also possible on a index (now you still get the same error as previously for a series):