-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
PERF: slow tests #44727
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
PERF: slow tests #44727
Conversation
pandas/core/dtypes/missing.py
Outdated
@@ -644,3 +646,8 @@ def is_valid_na_for_dtype(obj, dtype: DtypeObj) -> bool: | |||
|
|||
# fallback, default to allowing NaN, None, NA, NaT | |||
return not isinstance(obj, (np.datetime64, np.timedelta64, Decimal)) | |||
|
|||
|
|||
def _is_string_dtype(dtype: np.dtype) -> bool: |
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.
hmm can you simply move this to dtypes.core.common next to the other one
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.
Sure. most recent commit also added an improvement for random_text
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.
Looks good!
Thanks! |
Biggest difference is in test_get_loc_tuple_monotonic_above_size_cutoff going from 12.92 seconds t 4.72, all in improving DatetimeLikeArray.astype.