-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: update the pandas.IntervalIndex docstring #20188
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,20 +142,24 @@ class IntervalIndex(IntervalMixin, Index): | |
|
||
Parameters | ||
---------- | ||
data : array-like (1-dimensional) | ||
data : array-Like (1-dimensional) | ||
Array-like containing Interval objects from which to build the | ||
IntervalIndex | ||
IntervalIndex. | ||
closed : {'left', 'right', 'both', 'neither'}, default 'right' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you swap the order of |
||
Whether the intervals are closed on the left-side, right-side, both or | ||
neither. | ||
dtype : dtype or None, default None | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. numpy dtype, optional |
||
If None, dtype will be inferred. | ||
copy : boolean, default False | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. boolean -> bool |
||
Copy the meta-data. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this refers to copying of the input data |
||
name : object, optional | ||
Name to be stored in the index. | ||
copy : boolean, default False | ||
Copy the meta-data | ||
dtype : dtype or None, default None | ||
If None, dtype will be inferred | ||
|
||
..versionadded:: 0.23.0 | ||
fastpath : boolean, default False | ||
Create IntervalIndex without verifying integrity. | ||
verify_integrity : boolean, default True | ||
Verify that the IntervalIndex is valid. | ||
..versionadded:: 0.23.0. | ||
|
||
Attributes | ||
---------- | ||
|
@@ -198,11 +202,11 @@ class IntervalIndex(IntervalMixin, Index): | |
|
||
See Also | ||
-------- | ||
Index : The base pandas Index type | ||
Interval : A bounded slice-like interval; the elements of an IntervalIndex | ||
interval_range : Function to create a fixed frequency IntervalIndex | ||
cut, qcut : Convert arrays of continuous data into Categoricals/Series of | ||
Intervals | ||
Index : The base pandas Index type. | ||
Interval : A bounded slice-like interval; the elements of an IntervalIndex. | ||
qcut : Quantile-based discretization function. | ||
cut : Return indices of half-open bins to which each value of x belongs. | ||
interval_range : Function to create a fixed frequency IntervalIndex. | ||
""" | ||
_typ = 'intervalindex' | ||
_comparables = ['name'] | ||
|
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.
array-like is correct