Skip to content

BUG: item_cache invalidation in get_numeric_data #35882

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 21 commits into from
Sep 5, 2020

Conversation

jbrockmendel
Copy link
Member

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

@@ -191,6 +191,23 @@ def test_corr_nullable_integer(self, nullable_column, other_column, method):
expected = pd.DataFrame(np.ones((2, 2)), columns=["a", "b"], index=["a", "b"])
tm.assert_frame_equal(result, expected)

def test_corr_item_cache(self):
# Check that corr does not lead to incorrect entries in item_cache
Copy link
Member

Choose a reason for hiding this comment

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

Is there an open issue for this? If not can you add a whatsnew?

Copy link
Member Author

Choose a reason for hiding this comment

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

whatsnew added

@jreback jreback added Internals Related to non-user accessible pandas implementation Bug labels Sep 5, 2020
@jreback jreback added this to the 1.2 milestone Sep 5, 2020
@@ -719,7 +719,6 @@ def get_numeric_data(self, copy: bool = False) -> "BlockManager":
copy : bool, default False
Whether to copy the blocks
"""
self._consolidate_inplace()
Copy link
Contributor

Choose a reason for hiding this comment

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

if you are removing this then get_bool_data right above looks suspicious.

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 agree. thats part of the _reduce trouble we discussed this afternoon. #34918 removes that usage.

@jreback jreback merged commit cf1aa9e into pandas-dev:master Sep 5, 2020
@jreback
Copy link
Contributor

jreback commented Sep 5, 2020

thanks @jbrockmendel

@jbrockmendel jbrockmendel deleted the bug-get_numeric_data branch September 5, 2020 19:58
@simonjayhawkins
Copy link
Member

whatsnew in 1.1.2. should this be backported and milestone changed or release note moved?

in release readiness I now check whatsnew on master and backport in sync

https://github.com/simonjayhawkins/pandas-release/runs/1078142445?check_suite_focus=true

@simonjayhawkins simonjayhawkins mentioned this pull request Sep 7, 2020
@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.1.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants