Skip to content

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

Merged
merged 5 commits into from
May 23, 2023
Merged

Conversation

DeaMariaLeon
Copy link
Member

Towards #37875

@DeaMariaLeon DeaMariaLeon requested a review from MarcoGorelli May 22, 2023 15:16
@DeaMariaLeon DeaMariaLeon added this to the 2.1 milestone May 22, 2023
--------
>>> idx = pd.Index(['a', 'b', 'c'])
>>> new_idx = idx.copy(name="idx2")
>>> ser = pd.Series([1, 2, 3], index=new_idx)
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed, thanks.

Copy link
Member

@MarcoGorelli MarcoGorelli left a 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

Copy link
Member

@MarcoGorelli MarcoGorelli left a 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.

Comment on lines 130 to 132
Attributes
----------
None
Copy link
Member

@MarcoGorelli MarcoGorelli May 22, 2023

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)

Copy link
Member Author

Choose a reason for hiding this comment

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

Done, thanks

Copy link
Member

@MarcoGorelli MarcoGorelli left a 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 !

@MarcoGorelli MarcoGorelli merged commit 7a7d684 into pandas-dev:main May 23, 2023
@DeaMariaLeon DeaMariaLeon deleted the interval branch May 23, 2023 10:00
DeaMariaLeon added a commit to DeaMariaLeon/pandas that referenced this pull request May 23, 2023
Index.drop, identical, insert

DOC: Fixing EX01 - Added examples (pandas-dev#53336)

* Examples

* Changed Index.copy

* Corrected Float32Dtype & Float64Dtype

Added is_, take, putmask, unique
DeaMariaLeon added a commit to DeaMariaLeon/pandas that referenced this pull request May 24, 2023
* Examples

* Changed Index.copy

* Corrected Float32Dtype & Float64Dtype
mroeschke pushed a commit that referenced this pull request May 24, 2023
* 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
topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 27, 2023
* 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
topper-123 pushed a commit to topper-123/pandas that referenced this pull request Jun 5, 2023
* 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
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* Examples

* Changed Index.copy

* Corrected Float32Dtype & Float64Dtype
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants