Skip to content
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

Fix zillion deprecation warnings in core.dtypes.common #22142

Merged
merged 3 commits into from
Aug 1, 2018

Conversation

jbrockmendel
Copy link
Member

Looking through a recent Travis log I see tons of these:

  /home/travis/build/pandas-dev/pandas/pandas/core/dtypes/common.py:2026: DeprecationWarning: elementwise == comparison failed; this will raise an error in the future.
    if dtype in [object, np.object_, 'object', 'O']:

This is driven by (probably not desired) cases where dtype is array-like at this point (also showed up in #22092). Easily avoided by checking for hashability before checking for inclusion.

@pep8speaks
Copy link

pep8speaks commented Jul 31, 2018

Hello @jbrockmendel! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on July 31, 2018 at 17:39 Hours UTC

@jreback
Copy link
Contributor

jreback commented Jul 31, 2018

this is #22101

@codecov
Copy link

codecov bot commented Aug 1, 2018

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #22142      +/-   ##
==========================================
- Coverage   92.07%   92.06%   -0.01%     
==========================================
  Files         170      170              
  Lines       50688    50689       +1     
==========================================
- Hits        46671    46669       -2     
- Misses       4017     4020       +3
Flag Coverage Δ
#multiple 90.47% <100%> (-0.01%) ⬇️
#single 42.29% <100%> (-0.03%) ⬇️
Impacted Files Coverage Δ
pandas/core/dtypes/common.py 94.87% <100%> (-0.34%) ⬇️
pandas/util/testing.py 85.69% <0%> (-0.21%) ⬇️
pandas/core/arrays/datetimes.py 95.44% <0%> (-0.03%) ⬇️
pandas/core/dtypes/dtypes.py 96.05% <0%> (+0.02%) ⬆️
pandas/core/indexes/period.py 93.5% <0%> (+0.1%) ⬆️

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 c272c52...5d14359. Read the comment docs.

@jreback jreback added Deprecate Functionality to remove in pandas Compat pandas objects compatability with Numpy or Python functions labels Aug 1, 2018
@jreback jreback added this to the 0.24.0 milestone Aug 1, 2018
@jreback jreback merged commit 59c3132 into pandas-dev:master Aug 1, 2018
@jreback
Copy link
Contributor

jreback commented Aug 1, 2018

thanks!

dberenbaum pushed a commit to dberenbaum/pandas that referenced this pull request Aug 3, 2018
@jbrockmendel jbrockmendel deleted the warns3 branch August 8, 2018 15:52
Sup3rGeo pushed a commit to Sup3rGeo/pandas that referenced this pull request Oct 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants