-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Added examples to pd.Index.get_loc #17380
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
Closed
topper-123
wants to merge
58
commits into
pandas-dev:master
from
topper-123:Add_example_to_index.get_loc
Closed
Changes from 2 commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
0f16e2e
Added examples to pd.Index.get_loc
2c098cd
use target_klass so class name is properly updated for subclasses
9e425d6
TST: Enable tests in test_tools.py (#17405)
jschendel f7fe429
TST: remove tests and docs for legacy (pre 0.12) hdf5 support (#17404)
topper-123 8351f86
Tslib unused (#17402)
jbrockmendel 1981b67
DOC: Cleaned references to pandas <v0.12 in docs (#17375)
topper-123 c2d0481
Remove unused _day and _month attrs (#17431)
jbrockmendel 5bca6ce
DOC: Clean-up references to v12 to v14 (both included) (#17420)
topper-123 25d5299
BUG: Plotting Timedelta on y-axis #16953 (#17430)
s-weigand 84a39f9
COMPAT: handle pyarrow deprecation of timestamps_to_ms in .from_panda…
jreback d457791
DOC/TST: Add examples to MultiIndex.get_level_values + related change…
topper-123 b869446
Dont re-pin total_seconds as it is already implemented (#17432)
jbrockmendel 3a12687
BUG: Return local Timestamp.weekday_name attribute (#17354) (#17377)
mroeschke fd137f5
BUG: intersection of decreasing RangeIndexes (#17374)
toobaz 93e23a7
Remove property that re-computed microsecond (#17331)
jbrockmendel 20fee85
cleaned references to pandas v0.15 and v0.16 in docs (#17442)
topper-123 24b440e
BUG: revert collision warning (#17298)
deniederhut 8a8a4fd
cdef out dtype for _Timestamp._get_field (#17457)
mroeschke 9dc01c4
DOC: Add Timestamp, Period, Timedelta, and Interval to api.rst (#17424)
GuessWhoSamFoo aee2ae0
DOC: to_json (#17461)
majiang 3a291bb
BUG: Index._searchsorted_monotonic(..., side='right') returns the lef…
jschendel ee6185e
COMPAT: Pypy tweaks (#17351)
mattip 46832ac
Replace * imports with explicit imports; remove unused declared const…
jbrockmendel 9c4e4c8
Removed Timedelta.is_populated and fixed spelling errors (#17469)
GuessWhoSamFoo 7e4e8ac
PERF: Implement get_freq_code in cython frequencies (#17422)
jbrockmendel 3ccb88c
Fix typo in setup.py introduced by 17422 (#17473)
jbrockmendel d6df8ea
Follow up to #17422 (#17472)
jbrockmendel fdbc6b8
MAINT: calcurate --> calculate in _doctools.py
gfyoung 23050dc
BUG: Fix TypeError caused by GH13374 (#17465)
matthax c3ad501
Remove incorrect kwds from DateOffset tests (#17486)
jbrockmendel e6aed2e
Remove pyx dependencies from setup (#17478)
jbrockmendel 42ed4f1
ENH: Add Styler.where (#17474)
Licht-T f3b6d1f
Add file-like object to docs (#17492)
rvernica 46856c3
Implement _is_utc in timezones (#17419)
jbrockmendel 34cc2e8
Follow-up to #17419 (#17497)
jbrockmendel 9a84274
DOC: fix parquet example to not use ns
jreback d46b027
Prevent UnicodeDecodeError in pivot_table under Py2 (#17489)
mpenkov e682902
DEPR: Add warning for True for dropna of SeriesGroupBy.nth (#17493)
tnir 83436af
COMPAT: Iteration should always yield a python scalar (#17491)
jreback 633be31
DOC: grammatical mistake (#17511)
Giftlin f6d4d70
removed versionadded <0.17 (#17504)
topper-123 f11bbf2
DOC: grammatical mistakes (#17512)
Giftlin eef810e
COMPAT: followup to #17491 (#17503)
jreback fa557f7
De-privatize timezone funcs (#17502)
jbrockmendel 2cf2566
Make *_range functions consistent (#17482)
jschendel 97abd2c
TST: Made s3 related tests mock boto (#17388)
kirkhansen 0097cb7
PERF: Avoid values in Categorical.set_categories (#17515)
TomAugspurger 06a6e63
remove period_helper from non-period reqs (#17531)
jbrockmendel ad70ed4
Fix bug where offset.copy() != offset (#17452)
jbrockmendel 94266d4
PERF: Faster CategoricalIndex from categorical (#17513)
TomAugspurger 9b21c54
Remove unnecessary iNaT checks from _Period properties (#17421)
jbrockmendel 72c3888
CLN: Fix Spelling Errors (#17535)
jschendel 328c7e1
Cut/paste (most) remaining tz funcs to tslibs/timezones (#17526)
jbrockmendel 9ec157b
DOC: Spelling + grammar in chainmap_impl.py (#17548)
Giftlin f5cfdbb
BUG: Set index when reading Stata file (#17328)
bashtage 0674c42
Added examples to pd.Index.get_loc
71dfe09
use klass + add examples for CategoricalIndex, IntervalIndex and
12ce8d5
merge conflict
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
hmm these are only valid for Index/CategoricalIndex. Do these examples show up for other indexes (IIR we are using this combined doc-string for all sub-classes). You'll have to do this as an additional
@Appender
to those classes only.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.
I think I will do this all over again. Many of the
.get_loc
methods are subtlely different, so it's difficult to have a common doc-string.Before I do that, could you please explain how
IntervalIndex.get_loc
gets its doc-string? From the code it seems it shouldn't have one, but it does....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.
hmm, I think its inheriting it from Index.get_loc, instead this should use the appender method (guess it was omitted somehow).