Skip to content

DOC: add closed and dtype in TimedeltaIndex parameters #49167

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

Conversation

MarceloCMiguel
Copy link

@MarceloCMiguel MarceloCMiguel commented Oct 18, 2022

@MarceloCMiguel MarceloCMiguel changed the title Doc: add closed and dtype in TimedeltaIndex parameters #49153 Doc: add closed and dtype in TimedeltaIndex parameters Oct 18, 2022
@MarceloCMiguel MarceloCMiguel changed the title Doc: add closed and dtype in TimedeltaIndex parameters DOC: add closed and dtype in TimedeltaIndex parameters Oct 18, 2022
@mroeschke mroeschke added Docs Timedelta Timedelta data type labels Oct 18, 2022
@@ -60,6 +60,11 @@ class TimedeltaIndex(DatetimeTimedeltaMixin):
One of pandas date offset strings or corresponding objects. The string
'infer' can be passed in order to set the frequency of the index as the
inferred frequency upon creation.
closed : str, default None
Copy link
Member

Choose a reason for hiding this comment

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

@jbrockmendel should the TimedeltaIndex constructor accept closed? It appears not to do anything with the argument

Copy link
Contributor

Choose a reason for hiding this comment

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

Same was noticed in pandas-stubs by @Dr-Irv. We thought deprecation or just removal made the most sense.

Copy link
Member

Choose a reason for hiding this comment

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

agreed

Copy link
Author

Choose a reason for hiding this comment

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

Should I remove the closed parameter then?

Copy link
Contributor

@bashtage bashtage Oct 20, 2022

Choose a reason for hiding this comment

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

Ideally remove and deprecate closed using @deprecate_kwarg

Copy link
Author

Choose a reason for hiding this comment

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

I tried to find some other function that uses @depreceate_kwarg but couldn't find any, would it be something like this?

@deprecate_kwarg
closed : str, default None
    Make the interval closed with respect to the given frequency to
    the 'left', 'right', or both sides (None).

Copy link
Member

Choose a reason for hiding this comment

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

You can reference the @deprecate_kwarg usage from this older PR: #47912

@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2022

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Dec 9, 2022
@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Stale Timedelta Timedelta data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: closed and dtype missing from TimedeltaIndex docs
4 participants