Skip to content

BUG : Adding *kwargs for name retention in Index args #21703

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from

Conversation

uds5501
Copy link
Contributor

@uds5501 uds5501 commented Jul 2, 2018

@pep8speaks
Copy link

pep8speaks commented Jul 2, 2018

Hello @uds5501! Thanks for updating the PR.

Line 596:21: E722 do not use bare except'

Comment last updated on July 09, 2018 at 12:12 Hours UTC

Copy link
Member

@mroeschke mroeschke left a comment

Choose a reason for hiding this comment

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

Needs tests and whatsnew note (0.24.0.txt). Could you also modify this PR title to be a little more descriptive of the issue that this solves?

@uds5501
Copy link
Contributor Author

uds5501 commented Jul 2, 2018

@mroeschke Sure sir, would do

@mroeschke mroeschke added the Bug label Jul 3, 2018
@uds5501 uds5501 changed the title BUG : Adding name in *kwargs BUG : Adding *kwargs for name retention in Index args Jul 3, 2018
@uds5501
Copy link
Contributor Author

uds5501 commented Jul 3, 2018

@mroeschke I had a quick question. I made a commit regarding the whatsnew note in another path. If I want to add the commit in this PR itself.. how do I do that?

@WillAyd
Copy link
Member

WillAyd commented Jul 3, 2018

@uds5501 I am not sure if I completely follow but you could potentially merge the other branch into this branch locally or just re-do the whatsnew entry. The latter is probably easiest since we are just talking about a one-liner

@@ -526,6 +526,119 @@ def to_datetime(arg, errors='raise', dayfirst=False, yearfirst=False,
pandas.DataFrame.astype : Cast argument to a specified dtype.
pandas.to_timedelta : Convert argument to timedelta.
"""
from pandas.core.indexes.datetimes import DatetimeIndex
Copy link
Member

Choose a reason for hiding this comment

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

This block below already exists in _convert_listlike_datetimes

@jreback
Copy link
Contributor

jreback commented Jul 20, 2018

closing as dupe of #21848 which is farther along

@jreback jreback closed this Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: to_datetime with Index arg does not retain name in all cases
5 participants