Skip to content

CLN: Exception in NDFrame._maybe_update_cacher #29066

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 8 commits into from
Oct 22, 2019

Conversation

jbrockmendel
Copy link
Member

Only need to catch AssertionError

except Exception:
pass
assert ref.ndim == self.ndim, (ref.ndim, self.ndim)
except AssertionError:
Copy link
Contributor

Choose a reason for hiding this comment

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

does this raise in the test suite?

Copy link
Member Author

Choose a reason for hiding this comment

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

moved the first assertion to the else block to clarify that it is not the assertion that is raising.

There are places in the test suite where the ref._maybe_cache_changed call raises an AssertionError because of a shape mismatch, but AFAICT checking for that situation and only calling it in non-raising cases breaks several tests

@jreback jreback added the Clean label Oct 18, 2019
@jreback jreback added this to the 1.0 milestone Oct 18, 2019
@jreback jreback merged commit dd193d8 into pandas-dev:master Oct 22, 2019
@jreback
Copy link
Contributor

jreback commented Oct 22, 2019

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the faster29 branch October 22, 2019 15:02
HawkinsBA pushed a commit to HawkinsBA/pandas that referenced this pull request Oct 29, 2019
Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
bongolegend pushed a commit to bongolegend/pandas that referenced this pull request Jan 1, 2020
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.

2 participants