Skip to content

Remove unhittable methods in internals #24594

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
Jan 3, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

And one more 24024 in test cleanup

axis=axis, **kw)
except ValueError:

# older numpies don't handle an array for q
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm actually just assuming here that the relevant old numpies can by dropped. @h-vetinari any idea on this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbrockmendel

Sorry I was too late too see this. Can't really tell from first glance what's going on, but can have a second look if desired.

@@ -2400,8 +2346,6 @@ def _maybe_coerce_values(self, values, dtype=None):
values = self._holder(values)

if dtype is not None:
if isinstance(dtype, compat.string_types):
dtype = DatetimeTZDtype.construct_from_string(dtype)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let the DatetimeArray constructor handle this

def _try_cast_result(self, result, dtype=None):
return result

def _unstack(self, unstacker_func, new_columns, n_rows, fill_value):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this and the two methods above are in NonConsolodateableMixin, which is now only mixed in to ExtensionBlock, which directly defines these three methods.

@jreback jreback added the Clean label Jan 3, 2019
@jreback jreback added this to the 0.24.0 milestone Jan 3, 2019
@jreback
Copy link
Contributor

jreback commented Jan 3, 2019

lgtm. some lint issues. ping on green.

@codecov
Copy link

codecov bot commented Jan 3, 2019

Codecov Report

Merging #24594 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24594      +/-   ##
==========================================
+ Coverage   92.36%   92.38%   +0.02%     
==========================================
  Files         166      166              
  Lines       52497    52478      -19     
==========================================
- Hits        48490    48483       -7     
+ Misses       4007     3995      -12
Flag Coverage Δ
#multiple 90.81% <100%> (+0.01%) ⬆️
#single 43.04% <0%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/internals/blocks.py 94.49% <100%> (+0.7%) ⬆️

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 479ddcb...c8b3323. Read the comment docs.

@codecov
Copy link

codecov bot commented Jan 3, 2019

Codecov Report

Merging #24594 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #24594      +/-   ##
==========================================
+ Coverage   92.36%   92.38%   +0.02%     
==========================================
  Files         166      166              
  Lines       52497    52478      -19     
==========================================
- Hits        48490    48483       -7     
+ Misses       4007     3995      -12
Flag Coverage Δ
#multiple 90.81% <100%> (+0.01%) ⬆️
#single 43.04% <0%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/internals/blocks.py 94.49% <100%> (+0.7%) ⬆️

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 479ddcb...c0b544e. Read the comment docs.

@jbrockmendel
Copy link
Member Author

ping

@jreback jreback merged commit 62506ca into pandas-dev:master Jan 3, 2019
@jreback
Copy link
Contributor

jreback commented Jan 3, 2019

thanks!

@jbrockmendel jbrockmendel deleted the again2 branch January 3, 2019 17:22
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants