We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#Example In [17]: idx = pd.Index([15e9], name='name') In [18]: pd.to_datetime(idx, errors='ignore', box=True, unit='s').name In [19]: pd.__version__ Out[19]: '0.24.0.dev0+193.gdc45fba'
There are certain cases where the name attribute of the passed Index are not retained after to_datetime.
Index
to_datetime
The name kwarg looks to be missing from these locations:
name
pandas/pandas/core/tools/datetimes.py
Line 102 in dc45fba
Line 139 in dc45fba
Line 344 in dc45fba
The text was updated successfully, but these errors were encountered:
@mroeschke Sir, for adding kwargs, will the following work?
return Index(result , {"name": name})
Sorry, something went wrong.
Just simply, Index(..., name=name)
Index(..., name=name)
Update v0.24.0.txt
aa1a563
Adding BUG pandas-dev#21697
20ef9b8
Adding whatsnew for pandas-dev#21697
Successfully merging a pull request may close this issue.
There are certain cases where the name attribute of the passed
Index
are not retained afterto_datetime
.The
name
kwarg looks to be missing from these locations:pandas/pandas/core/tools/datetimes.py
Line 102 in dc45fba
pandas/pandas/core/tools/datetimes.py
Line 139 in dc45fba
pandas/pandas/core/tools/datetimes.py
Line 344 in dc45fba
The text was updated successfully, but these errors were encountered: