Skip to content

REGR: fix DataFrame.diff with read-only data #35707

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

Conversation

jorisvandenbossche
Copy link
Member

Closes #35559

@jorisvandenbossche jorisvandenbossche added this to the 1.1.1 milestone Aug 13, 2020
@jorisvandenbossche jorisvandenbossche added Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff Regression Functionality that used to work in a prior pandas version labels Aug 13, 2020
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression where :func:`pandas.testing.assert_series_equal` would raise an error when non-numeric dtypes were passed with ``check_exact=True`` (:issue:`35446`)
- Fixed regression in :class:`pandas.core.groupby.RollingGroupby` where column selection was ignored (:issue:`35486`)
- Fixed regression in :meth:`DataFrame.shift` with ``axis=1`` and heterogeneous dtypes (:issue:`35488`)
- Fixed regression in :meth:`DataFrame.diff` with read-only data (:issue:`35559`).
Copy link
Member

Choose a reason for hiding this comment

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

i think no period at the end, otherwise LGTM

Copy link
Contributor

Choose a reason for hiding this comment

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

we are likely inconsistent about this generally, but fixed here.

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.

lgtm. i am not sure i would actually leave the commented code, or if you do add a specific tag: TODO (or TODO-CYTHON or something)

@jorisvandenbossche
Copy link
Member Author

@jreback that's what I already did ( # TODO(cython 3) update to "const diff_t[:, :] arr")

@jreback
Copy link
Contributor

jreback commented Aug 13, 2020

@jreback that's what I already did ( # TODO(cython 3) update to "const diff_t[:, :] arr")

ahh right, ok then.

@simonjayhawkins simonjayhawkins merged commit 21eb4e6 into pandas-dev:master Aug 14, 2020
@simonjayhawkins
Copy link
Member

Thanks @jorisvandenbossche

@simonjayhawkins
Copy link
Member

@meeseeksdev backport 1.1.x

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 14, 2020
@jorisvandenbossche jorisvandenbossche deleted the GH35559-diff-readonly branch August 14, 2020 14:42
simonjayhawkins pushed a commit that referenced this pull request Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: A read-only DataFrame cannot be .diff()'ed
4 participants