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

CLN: Remove deprecated method #22324

Closed
wants to merge 3 commits into from
Closed

CLN: Remove deprecated method #22324

wants to merge 3 commits into from

Conversation

alimcmaster1
Copy link
Member

These params are no longer in the method, therefore can remove the docs strings

@gfyoung gfyoung added Docs Indexing Related to indexing on series/frames, not to indexes themselves Clean labels Aug 13, 2018
weekmask of valid business days, passed to ``numpy.busdaycalendar``
holidays : list
list/array of dates to exclude from the set of valid business days,
passed to ``numpy.busdaycalendar``
Copy link
Member

Choose a reason for hiding this comment

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

If you look at the implementation, although they may not be explicit parameters, but they should be documented. Not sure if plain removal is the right move here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh apologies I looked at bdate_range and saw they where optional params there opposed to kwargs. It's a deprecated method anyway, but how about documenting it something like below So its clear they are kwargs?

closed : string, default None
    Make the interval closed with respect to the given frequency to
    the 'left', 'right', or both sides (None)
**weekmask : string, Default 'Mon Tue Wed Thu Fri'
    weekmask of valid business days, passed to ``numpy.busdaycalendar``
**holidays : list
    list/array of dates to exclude from the set of valid business days,
    passed to ``numpy.busdaycalendar``

Copy link
Member

@gfyoung gfyoung Aug 13, 2018

Choose a reason for hiding this comment

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

Actually, I'll do you one better. Let's just remove it (it's been long enough).

How does that sound?

@alimcmaster1 alimcmaster1 changed the title Remove outdated docs Remove deprecated method Aug 13, 2018
``bdate_range``. Note that ``cdate_range`` only utilizes the ``weekmask``
and ``holidays`` parameters when custom business day, 'C', is passed
as the frequency string. Support has been expanded with ``bdate_range``
to work with any custom frequency string.
Copy link
Member

Choose a reason for hiding this comment

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

Do we still need to reference cdate_range in the docs? Or can we rewrite to remove it?

Copy link
Member Author

Choose a reason for hiding this comment

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

Im thinking of just removing that warning altogether since it just mentions some subtleties of cdate_range. Alternatively potential rewrite could look like:
This functionality was originally exclusive to ``cdate_range``, which is deprecated as of version 0.21.0 (deleted in 0.24.0) in favor of ``bdate_range`` which works with any custom frequency string.
Thoughts?

Copy link
Member

Choose a reason for hiding this comment

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

I would just remove it altogether.

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes sense! updated

@gfyoung gfyoung added Deprecate Functionality to remove in pandas and removed Docs labels Aug 13, 2018
@alimcmaster1 alimcmaster1 changed the title Remove deprecated method CLN: Remove deprecated method Aug 13, 2018
@codecov
Copy link

codecov bot commented Aug 13, 2018

Codecov Report

Merging #22324 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #22324      +/-   ##
==========================================
- Coverage   92.08%   92.08%   -0.01%     
==========================================
  Files         169      169              
  Lines       50706    50699       -7     
==========================================
- Hits        46691    46684       -7     
  Misses       4015     4015
Flag Coverage Δ
#multiple 90.48% <ø> (-0.01%) ⬇️
#single 42.33% <ø> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/indexes/datetimes.py 95.5% <ø> (-0.05%) ⬇️

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 601d71f...376e48c. Read the comment docs.

``cdate_range`` only utilizes the ``weekmask`` and ``holidays`` parameters
when custom business day, 'C', is passed as the frequency string. Support has
been expanded with ``bdate_range`` to work with any custom frequency string.

.. versionadded:: 0.21.0
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 this line can be removed as well.

@jreback
Copy link
Contributor

jreback commented Aug 13, 2018

we are not removing 0.21.0 deprecations yet, see the list here: #6581

things deprecated in 0.20.0 are fair game however.

@jreback jreback closed this Aug 13, 2018
@jreback jreback added this to the No action milestone Aug 13, 2018
@alimcmaster1
Copy link
Member Author

Okay no worries, thanks @jreback for the info!

@gfyoung
Copy link
Member

gfyoung commented Aug 14, 2018

@jreback : That was my mistake. I was under the impression that 0.21.0 was fair game.

@alimcmaster1 : Sorry about that! I think given we'll remove this method soon, let's leave the docs as is. We can always make this removal later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Deprecate Functionality to remove in pandas Indexing Related to indexing on series/frames, not to indexes themselves
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants