-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: assorted cleanups #33297
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
CLN: assorted cleanups #33297
Conversation
pandas/_libs/tslibs/timedeltas.pyx
Outdated
@@ -308,7 +313,7 @@ cdef inline int64_t cast_from_unit(object ts, object unit) except? -1: | |||
int64_t m | |||
int p | |||
|
|||
m, p = precision_from_unit(unit) | |||
m, p = precision_from_unit(unit or "ns") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this hit? (the ns)
pandas/core/indexes/base.py
Outdated
@@ -5516,9 +5516,9 @@ def ensure_index(index_like, copy=False): | |||
# clean_index_list does the equivalent of copying | |||
# so only need to do this if not list instance | |||
if copy: | |||
from copy import copy | |||
from copy import copy as copy_func |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be at the top of the file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Thanks @jbrockmendel |
Mostly annotations