8000 BUG : Adding *kwargs for name retention in Index args by uds5501 · Pull Request #21703 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

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
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update datetimes.py
  • Loading branch information
uds5501 authored Jul 2, 2018
commit dcdb2411ab1eceb79a7014971eeabe0022ea9d8e
4 changes: 2 additions & 2 deletions pandas/core/tools/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@ def _convert_and_box_cache(arg, cache_array, box, errors, name=None):
result = Series(arg).map(cache_array)
if box:
if errors == 'ignore':
return Index(result, name=name)
return Index(result, **name)
else:
return DatetimeIndex(result, name=name)
return DatetimeIndex(result, **name)
return result.values


Expand Down
0