Skip to content

Conversation

chris-b1
Copy link
Contributor

Addresses #10875, when Index is converted via to_datetime, to_timedelta
part of #9862 master issue

@jreback jreback added Bug Datetime Datetime data dtype Indexing Related to indexing on series/frames, not to indexes themselves Timedelta Timedelta data type labels Aug 31, 2015
@jreback jreback added this to the 0.17.0 milestone Aug 31, 2015
@@ -282,11 +283,15 @@ def _convert_listlike(arg, box, format):
if isinstance(arg, (list,tuple)):
arg = np.array(arg, dtype='O')

name = None
if isinstance(arg, ABCIndexClass):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would put this in the top-level if-else (e.g. where Series) is (same for timedelta)

in to_datetime, to_timedelta
@chris-b1 chris-b1 force-pushed the timeseries-index-name branch from dfc9ad7 to 03f6f40 Compare August 31, 2015 01:14
@chris-b1
Copy link
Contributor Author

@jreback moved where you noted

jreback added a commit that referenced this pull request Aug 31, 2015
@jreback jreback merged commit 910895d into pandas-dev:master Aug 31, 2015
@jreback
Copy link
Contributor

jreback commented Aug 31, 2015

@chris-b1 thank you sir!

your contributions have been awesome! keep em coming!

@chris-b1 chris-b1 deleted the timeseries-index-name branch August 31, 2015 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Indexing Related to indexing on series/frames, not to indexes themselves Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants