-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Fixing EX01 - Added examples #53336
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
pandas/core/indexes/base.py
Outdated
-------- | ||
>>> idx = pd.Index(['a', 'b', 'c']) | ||
>>> new_idx = idx.copy(name="idx2") | ||
>>> ser = pd.Series([1, 2, 3], index=new_idx) |
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.
Probably better to show that idx is new_idx
(without changing the name
) returns False
instead
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.
Changed, thanks.
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 one, thanks @DeaMariaLeon !
EDIT: oops, docs build ended up not being green
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.
changes look good, but looks like there's some CI failures
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.itemsize'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.na_value'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.names'. Check your autosummary_generate setting.
looking for now-outdated files... none found
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.numpy_dtype'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.construct_array_type'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.construct_from_string'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.empty'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.from_numpy_dtype'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.is_dtype'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float32Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float32Dtype.type'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.itemsize'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.na_value'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.names'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:33: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.numpy_dtype'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.construct_array_type'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.construct_from_string'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.empty'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.from_numpy_dtype'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.is_dtype'. Check your autosummary_generate setting.
/home/runner/work/pandas/pandas/pandas/core/arrays/floating.py:docstring of pandas.core.arrays.floating.Float64Dtype:51: WARNING: autosummary: stub file not found 'pandas.Float64Dtype.type'. Check your autosummary_generate setting.
pandas/core/arrays/floating.py
Outdated
Attributes | ||
---------- | ||
None |
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.
this one (and methods) might need to stay (for CI)
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.
Done, thanks
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.
cool, let's get this in, thanks @DeaMariaLeon !
Index.drop, identical, insert DOC: Fixing EX01 - Added examples (pandas-dev#53336) * Examples * Changed Index.copy * Corrected Float32Dtype & Float64Dtype Added is_, take, putmask, unique
* Examples * Changed Index.copy * Corrected Float32Dtype & Float64Dtype
* DOC Added Index examples Index.drop, identical, insert DOC: Fixing EX01 - Added examples (#53336) * Examples * Changed Index.copy * Corrected Float32Dtype & Float64Dtype Added is_, take, putmask, unique * Modified Index.is_ and take examples
* DOC Added Index examples Index.drop, identical, insert DOC: Fixing EX01 - Added examples (pandas-dev#53336) * Examples * Changed Index.copy * Corrected Float32Dtype & Float64Dtype Added is_, take, putmask, unique * Modified Index.is_ and take examples
* DOC Added Index examples Index.drop, identical, insert DOC: Fixing EX01 - Added examples (pandas-dev#53336) * Examples * Changed Index.copy * Corrected Float32Dtype & Float64Dtype Added is_, take, putmask, unique * Modified Index.is_ and take examples
* Examples * Changed Index.copy * Corrected Float32Dtype & Float64Dtype
* DOC Added Index examples Index.drop, identical, insert DOC: Fixing EX01 - Added examples (pandas-dev#53336) * Examples * Changed Index.copy * Corrected Float32Dtype & Float64Dtype Added is_, take, putmask, unique * Modified Index.is_ and take examples
Towards #37875