Skip to content

CLN: Rolling helper attributes #38664

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 1 commit into from
Dec 23, 2020

Conversation

mroeschke
Copy link
Member

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

is_datetimelike was just an internal check and can be in-lined

_on can just be calculated once in the init

@mroeschke mroeschke added Clean Window rolling, ewma, expanding labels Dec 23, 2020
@mroeschke mroeschke added this to the 1.3 milestone Dec 23, 2020
@jreback
Copy link
Contributor

jreback commented Dec 23, 2020

sure merge on green-ish

@mroeschke mroeschke merged commit b34d8c7 into pandas-dev:master Dec 23, 2020
@mroeschke mroeschke deleted the clean/rolling_attributes branch December 23, 2020 21:40
@@ -1822,37 +1829,16 @@ def _get_corr(a, b):


class Rolling(RollingAndExpandingMixin):
@cache_readonly
def is_datetimelike(self) -> bool:
Copy link
Member

@jorisvandenbossche jorisvandenbossche Jan 4, 2021

Choose a reason for hiding this comment

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

Note that those attributes are public (whether we like that or not ..), and so should ideally be deprecated first if we remove them.

Copy link
Member

Choose a reason for hiding this comment

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

(note I was looking at some rolling-related PRs because of a dask failure, see #38641 (comment), but this change about is_datetimelike didn't actually cause an issue in dask, to be clear)

Copy link
Contributor

Choose a reason for hiding this comment

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

I am -1 on deprecating anything here. these are internal and never documented as public.

luckyvs1 pushed a commit to luckyvs1/pandas that referenced this pull request Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants