Skip to content

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

Merged
merged 5 commits into from
Jul 12, 2018
Merged

Conversation

jbrockmendel
Copy link
Member

@jbrockmendel jbrockmendel commented Jul 11, 2018

#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

  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@codecov
Copy link

codecov bot commented Jul 11, 2018

Codecov Report

Merging #21861 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            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
Flag Coverage Δ
#multiple 90.3% <100%> (-0.01%) ⬇️
#single 42.11% <83.33%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/dtypes/inference.py 98.41% <ø> (ø) ⬆️
pandas/core/series.py 94.11% <100%> (-0.09%) ⬇️
pandas/core/indexes/datetimes.py 95.21% <100%> (ø) ⬆️
pandas/core/frame.py 97.19% <100%> (ø) ⬆️
pandas/core/tools/timedeltas.py 98.41% <100%> (ø) ⬆️
pandas/core/indexes/datetimelike.py 96.94% <0%> (-0.24%) ⬇️
pandas/core/internals.py 95.42% <0%> (-0.04%) ⬇️
pandas/core/base.py 97.05% <0%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5d0daa0...84e9663. Read the comment docs.

@jreback jreback changed the title Fix #19700, #19011, #21336 CLN: miscellaneous cleanups / fixes Jul 12, 2018
@jreback jreback added this to the 0.24.0 milestone Jul 12, 2018
Copy link
Contributor

@jreback jreback left a 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))
Copy link
Contributor

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:
Copy link
Contributor

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

@jreback jreback merged commit 712a085 into pandas-dev:master Jul 12, 2018
@jreback
Copy link
Contributor

jreback commented Jul 12, 2018

thanks @jbrockmendel keep em coming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants