-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CLN: miscellaneous cleanups / fixes #21861
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #21861 +/- ##
==========================================
- Coverage 91.92% 91.91% -0.01%
==========================================
Files 160 160
Lines 49906 49909 +3
==========================================
+ Hits 45875 45876 +1
- Misses 4031 4033 +2
Continue to review full report at Codecov.
|
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.
just some minor followup comments.
""" | ||
|
||
return (isinstance(obj, Iterable) and | ||
not isinstance(obj, string_and_binary_types)) |
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.
in the future PR can you add some comments around what each of these clauses do
@@ -7679,6 +7679,9 @@ def convert(v): | |||
try: | |||
if is_list_like(values[0]) or hasattr(values[0], 'len'): | |||
values = np.array([convert(v) for v in values]) | |||
elif isinstance(values[0], np.ndarray) and values[0].ndim == 0: |
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.
maybe could add is_numpy_scalar
method in common
thanks @jbrockmendel keep em coming! |
#21365 made good progress on #21336 so I copied the test from there and referenced it in the whatsnew.
closes #19700
closes #19011
closes #21336
git diff upstream/master -u -- "*.py" | flake8 --diff