BrandonFors/pandas-github-issues huggingface dataset:
Fix Bug with NA value in Grouping for Groupby.nth
State: closed

- [X] closes #26011
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry

Would ideally like to combine first, nth and last implementations. Consider this a precursor


Labels:
name: Groupby

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/26152?src=pr&el=h1) Report
> Merging [#26152](https://codecov.io/gh/pandas-dev/pandas/pull/26152?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/9feb3ad92cc0397a04b665803a49299ee7aa1037?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `93.75%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/26152/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/26152?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #26152      +/-   ##
==========================================
- Coverage   91.97%   91.96%   -0.01%     
==========================================
  Files         175      175              
  Lines       52368    52371       +3     
==========================================
- Hits        48164    48163       -1     
- Misses       4204     4208       +4
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.52% <93.75%> (ø)` | :arrow_up: |
| #single | `40.69% <12.5%> (-0.15%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/26152?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/groupby/groupby.py](https://codecov.io/gh/pandas-dev/pandas/pull/26152/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ3JvdXBieS9ncm91cGJ5LnB5) | `97.24% <93.75%> (+0.01%)` | :arrow_up: |
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/26152/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `78.94% <0%> (-10.53%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/26152/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.9% <0%> (-0.12%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/26152?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/26152?src=pr&el=footer). Last update [9feb3ad...c2a0b8e](https://codecov.io/gh/pandas-dev/pandas/pull/26152?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

@WillAyd has a failure in the checks (not the numpy_dev issue)
looks reasonable but i need to look again
thanks @WillAyd
DOC: Add test for encoding of docstring validation for Windows
State: closed

Add a test for PR #25466

Labels:

Comments:
Hello @kpapdac! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`scripts/tests/test_validate_docstrings.py`](https://github.com/pandas-dev/pandas/blob/61e65258fb443fb26aae44b72345f0ce6f6a5f4d/scripts/tests/test_validate_docstrings.py):

> [Line 1157:32](https://github.com/pandas-dev/pandas/blob/61e65258fb443fb26aae44b72345f0ce6f6a5f4d/scripts/tests/test_validate_docstrings.py#L1157): [W292](https://duckduckgo.com/?q=pep8%20W292) no newline at end of file
#26020 Fixed type annotations for pandas.plotting._core
State: closed

- [X] closes ##26020
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:
name: Typing
description: type annotations, mypy/pyright type checking

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/26021?src=pr&el=h1) Report
> Merging [#26021](https://codecov.io/gh/pandas-dev/pandas/pull/26021?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/6de813364fd4ebfd16e2794e5ac3422d3bef87e7?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/26021/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/26021?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #26021      +/-   ##
==========================================
- Coverage   91.82%   91.82%   -0.01%     
==========================================
  Files         175      175              
  Lines       52539    52540       +1     
==========================================
- Hits        48246    48243       -3     
- Misses       4293     4297       +4
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.38% <100%> (ø)` | :arrow_up: |
| #single | `40.73% <100%> (-0.14%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/26021?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/plotting/\_core.py](https://codecov.io/gh/pandas-dev/pandas/pull/26021/diff?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb3JlLnB5) | `83.86% <100%> (+0.01%)` | :arrow_up: |
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/26021/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `75% <0%> (-12.5%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/26021/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.79% <0%> (-0.12%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/26021?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/26021?src=pr&el=footer). Last update [6de8133...b92dee9](https://codecov.io/gh/pandas-dev/pandas/pull/26021?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

lgtm. @WillAyd 
Thanks @gwrome keep them coming!
BUG: Series/DataFrame with IntervalIndex doesn't display NaN in index
State: closed

- [x] closes #25984
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry


Labels:
name: Output-Formatting
description: __repr__ of pandas objects, to_string
name: Interval
description: Interval data type

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25993?src=pr&el=h1) Report
> Merging [#25993](https://codecov.io/gh/pandas-dev/pandas/pull/25993?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/013f4b4e41f309b839be1de39ab42815af447050?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25993/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25993?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #25993      +/-   ##
==========================================
- Coverage   91.86%   91.85%   -0.01%     
==========================================
  Files         175      175              
  Lines       52547    52547              
==========================================
- Hits        48271    48266       -5     
- Misses       4276     4281       +5
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.41% <100%> (ø)` | :arrow_up: |
| #single | `41.9% <100%> (-0.07%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25993?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/interval.py](https://codecov.io/gh/pandas-dev/pandas/pull/25993/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9pbnRlcnZhbC5weQ==) | `95.25% <100%> (ø)` | :arrow_up: |
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/25993/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `75% <0%> (-12.5%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/25993/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.79% <0%> (-0.12%)` | :arrow_down: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25993/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `90.62% <0%> (-0.11%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25993?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25993?src=pr&el=footer). Last update [013f4b4...71b8805](https://codecov.io/gh/pandas-dev/pandas/pull/25993?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

lgtm. i restarted the build, ping on green.
green
thanks @simonjayhawkins
Type annotation pandas/compat/pickle compat.py
State: closed

- [ ] closes #25988 
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:
name: Code Style
description: Code style, linting, code_checks
name: Typing
description: type annotations, mypy/pyright type checking

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25991?src=pr&el=h1) Report
> Merging [#25991](https://codecov.io/gh/pandas-dev/pandas/pull/25991?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/70773d952bf52229d7214707ce6d66cee70607cb?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25991/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25991?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #25991      +/-   ##
==========================================
- Coverage   91.86%   91.85%   -0.01%     
==========================================
  Files         175      175              
  Lines       52543    52543              
==========================================
- Hits        48267    48263       -4     
- Misses       4276     4280       +4
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.4% <100%> (ø)` | :arrow_up: |
| #single | `41.9% <100%> (-0.08%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25991?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/compat/pickle\_compat.py](https://codecov.io/gh/pandas-dev/pandas/pull/25991/diff?src=pr&el=tree#diff-cGFuZGFzL2NvbXBhdC9waWNrbGVfY29tcGF0LnB5) | `76.38% <100%> (ø)` | :arrow_up: |
| [pandas/io/gbq.py](https://codecov.io/gh/pandas-dev/pandas/pull/25991/diff?src=pr&el=tree#diff-cGFuZGFzL2lvL2dicS5weQ==) | `75% <0%> (-12.5%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/25991/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `96.79% <0%> (-0.12%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25991?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25991?src=pr&el=footer). Last update [70773d9...c6013eb](https://codecov.io/gh/pandas-dev/pandas/pull/25991?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

thanks @vaibhavhrt
REF: handling of max_colwidth parameter
State: closed

- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

this would be a precursor to fixes for #7059, #9784 and #6491.

getting the display.max_colwidth value is moved from `_make_fixed_width` to `format_array` to be consistent with the handling of the `column_space`, `float_format` and `precision` display options.

the PR also includes refactoring of the prior fix to `to_html` #24841

`_format_col` is moved from `DataFrameFormatter` to `TableFormatter` to make it available to `HTMLFormatter` and `NotebookFormatter`.

at the moment `_make_fixed_width` is called by `format_array`, but also by `_to_str_columns` and `_get_formatted_index`.

`_to_str_columns` is not an issue because the calls are preceded to calls to `format_array`

IMO `_get_formatted_index` needs to be refactored to call `format_array` directly and probably some additional tests as a precursor to this PR.

thoughts?

cc @TomAugspurger 

Labels:
name: Output-Formatting
description: __repr__ of pandas objects, to_string

Comments:
can you merge master and update
@simonjayhawkins can you rebase and update when possible
@simonjayhawkins whats the status of this?
> @simonjayhawkins whats the status of this?

still need to do a precursor. checks were passing and i don't think they should have been. so holding as draft unless you'd rather it be closed for now.

> @simonjayhawkins can you rebase and update when possible

comments addressed.

> looks good, can you add a whatsnew note

this should be a pure refactor. no whatsnew needed?


@simonjayhawkins is this still active?
can close for now.
Change fname to path in to_parquet
State: closed


- [X] closes #23574
- [N/A ] tests added / passed
- [X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ N/A?] whatsnew entry

https://github.com/pandas-dev/pandas/issues/23574

Labels:

Comments:
@WillAyd 

Ok!

I see other functions in this file use `deprecate_kwarg`

Looking at decorators:

https://github.com/pandas-dev/pandas/blob/master/pandas/util/_decorators.py#L78

I only see one for deprecating functions and keyword arguments.

Should I just do `@deprecate_kwarg(old_arg_name='fname', new_arg_name='path')` ?

Or should I just add  a deprecated comment in the functiondocstring?
I think you’ll need to do both. If you look at past PRs labeled Deprecate could give you an idea of what to do

> On Apr 3, 2019, at 10:52 AM, ssikdar1 <notifications@github.com> wrote:
> 
> @WillAyd <https://github.com/WillAyd>
> Ok!
> 
> I see other functions in this file use deprecate_kwarg
> 
> Looking at decorators:
> 
> https://github.com/pandas-dev/pandas/blob/master/pandas/util/_decorators.py#L78 <https://github.com/pandas-dev/pandas/blob/master/pandas/util/_decorators.py#L78>
> I only see one for deprecating functions and keyword arguments.
> 
> Should I just do @deprecate_kwarg(old_arg_name='fname', new_arg_name='path') ?
> 
> Or should I just add a deprecated comment in the functiondocstring?
> 
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub <https://github.com/pandas-dev/pandas/pull/25976#issuecomment-479593018>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAlOUc0qJ7djWk2gg5gZ59tzUBLlIowKks5vdOprgaJpZM4cajor>.
> 

William Ayd
william.ayd@icloud.com




this is even more complicated. we have a number of ``to_*`` methods. *most* use ``fname``, but some like ``to_csv`` use ``path_or_buf``.

So i think we actually need to decide a common arg and then *possibly* deprecate these
Makes sense - @ssikdar1 I think in light of that this needs a little more discussion, so going to close out this PR because we should agree on approach first.

Do you have a point of view on how to tackle and if so could you post that to the original issue to lead that discussion? That would be the most constructive way to go about this one
STY: Check for pytest.raises without context
State: closed

xref #24332 

First commit adds the script code for checking.  Remaining commits will fix any vestigial errors.

Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: Code Style
description: Code style, linting, code_checks

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25866?src=pr&el=h1) Report
> Merging [#25866](https://codecov.io/gh/pandas-dev/pandas/pull/25866?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/af6ccf64dab57cc90cce1582fea60fba13b2998a?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25866/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25866?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #25866   +/-   ##
=======================================
  Coverage   91.48%   91.48%           
=======================================
  Files         175      175           
  Lines       52885    52885           
=======================================
  Hits        48380    48380           
  Misses       4505     4505
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.04% <ø> (ø)` | :arrow_up: |
| #single | `41.82% <ø> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25866?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/computation/pytables.py](https://codecov.io/gh/pandas-dev/pandas/pull/25866/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29tcHV0YXRpb24vcHl0YWJsZXMucHk=) | `90.24% <0%> (-0.31%)` | :arrow_down: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25866/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `89.84% <0%> (+0.1%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25866?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25866?src=pr&el=footer). Last update [af6ccf6...2733901](https://codecov.io/gh/pandas-dev/pandas/pull/25866?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

@jreback : All is green now.  PTAL.
thanks @gfyoung does this close the issue?
@jreback : That number is a PR number (there was no issue for this).
Safe version of ascii macros, add missing tolower_ascii
State: closed

- [x] fixes a warning introduced in #23981
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Using unparenthesized macro parameters is dangerous, so wrap `c` in braces.

Example warning fixed by adding `tolower_ascii()`:

```
In file included from pandas/_libs/lib.c:643:0:
pandas/_libs/src/parse_helper.h: In function ‘lowercase’:
pandas/_libs/src/parse_helper.h:141:26: warning: implicit declaration of function ‘tolower_ascii’; did you mean ‘toupper_ascii’? [-Wimplicit-function-declaration]
     for (; *p; ++p) *p = tolower_ascii(*p);
                          ^~~~~~~~~~~~~
                          toupper_ascii
```

Labels:
name: Clean

Comments:
lgtm - thanks! I did this originally, I always forget the right wrapping to make macros safe(er)
 @jreback 
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25836?src=pr&el=h1) Report
> Merging [#25836](https://codecov.io/gh/pandas-dev/pandas/pull/25836?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/f2bcb9f0060d030085cdbaeeb638664c6f73e636?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/25836/graphs/tree.svg?width=650&token=eZ4WkYLtcO&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/25836?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #25836      +/-   ##
==========================================
- Coverage    91.3%    91.3%   -0.01%     
==========================================
  Files         173      173              
  Lines       53004    53004              
==========================================
- Hits        48397    48396       -1     
- Misses       4607     4608       +1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `89.87% <ø> (ø)` | :arrow_up: |
| #single | `41.77% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/25836?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/25836/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `89.3% <0%> (-0.11%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25836?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/25836?src=pr&el=footer). Last update [f2bcb9f...0d75c62](https://codecov.io/gh/pandas-dev/pandas/pull/25836?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

thanks @vnlitvin
fix length_of_indexer to handle boolean array indexer.
State: closed

- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

To fix the issue #25774 .

Labels:
name: Indexing
description: Related to indexing on series/frames, not to indexes themselves

Comments:
Please make sure to add tests for any PR. Should also run locally to make sure no issues before pushing to GH
I'm not willing to have my PR accepted. I just wanted to show a workaround to fix the bug.
DOC: Fix typo in docstring of DataFrame.memory_usage 
State: closed

Cherry picked commit from #25761 and removed trailing whitespace.

@jorisvandenbossche if you don't mind taking a look

Labels:
name: Docs

Comments:
Looks good! (I merged since the failures are unrelated and master is already red, and it is already being handled elsewhere)

I added a "Co-authored-by: " note in the commit message when squashing on github, so the original author gets proper credit (otherwise, due to the squashing, it is only the user that opened the PR that becomes the commit author).
Great thanks @jorisvandenbossche