-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: EX01 ({Categorical, Interval, Multi, Datetime, Timedelta}-Index) #53925
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
Thank you for your PR @Charlie-XIAO! Some of items that you removed from the file For example I only checked a couple of methods that were removed. It would be great if you could double check the rest please. Thanks a lot, your help is very much appreciated. :-) |
@DeaMariaLeon Thanks for the reminder! I see what you mean, so those examples should be modified. Maybe I can just do them in this PR as well. I also need to run |
{Categorical, Interval, Multi, Datetime, Timedelta}Index
)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For :class:`pandas.Series`: | ||
|
||
For Series: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Examples | ||
-------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great example here!
>>> raw_cat = pd.Categorical(["a", "b", "c", "a"], categories=["b", "c", "d"],) | ||
>>> raw_cat = pd.Categorical(['a', 'b', 'c', 'a'], categories=['b', 'c', 'd']) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just for the future - in general, let's not bother with stylistic changes like changing double quotes to single quotes, at least until we have an automated tool to enforce this on docstrings
…pandas-dev#53925) * add examples for CategoricalIndex.equals * add examples for MultiIndex.dtypes * add examples for MultiIndex.drop * add examples for DatetimeIndex.to_pydatetime/std * add examples for TimedeltaIndex * minor modifications * fix docstrings and make up for removed ones * fix doctests
Also removing some items from
ci/code_checks.sh
that have already had examples on the main branch.