BrandonFors/pandas-github-issues huggingface dataset:
DOC: Fix EX03 flake8 errors in docstrings
State: closed

- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

For `pandas.Series.cat.set_categories`
<img width="459" alt="image" src="https://github.com/pandas-dev/pandas/assets/77875500/bbde9ea6-5d8f-4597-a8ab-3d873af66863">

For `pandas.Series.plot.bar`
<img width="308" alt="image" src="https://github.com/pandas-dev/pandas/assets/77875500/d59ffaad-ae12-4ca1-b1ee-cb2da4126a26">

For `pandas.Series.plot.hist`
<img width="379" alt="image" src="https://github.com/pandas-dev/pandas/assets/77875500/a36e946c-1774-4b7b-a175-e2beb7934385">

Some errors remain, but unrelated to EX03.


Labels:
name: Docs

Comments:
Could you resolve the merge conflict?
Thanks @luke396
BUG: Negative freq in date_range produces values out of start and endpoints
State: closed

- [X] closes https://github.com/pandas-dev/pandas/issues/56147
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [X] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [X] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Stale

Comments:
pre-commit.ci autofix
thanks, taking a look next week - could you fix up the conflicts please?
pre-commit.ci autofix
Awaiting https://github.com/pandas-dev/pandas/pull/56873 to fix the test failure in:
```
__________________ test_api_categorical[postgresql_adbc_conn] __________________
[gw0] linux -- Python 3.9.18 /home/runner/micromamba/envs/test/bin/python3.9
[XPASS(strict)] categorical dtype not implemented for ADBC postgres driver
```
whoops I didn't mean to delete that, will try to rectify
This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this.
this is probably fine, I just haven't had a chance yet to check how (in?)consistently negative ranges are currently handled. I'm aiming to get this in by 3.0 if it's ready
pre-commit.ci autofix
Thanks @jrmylow
BUG fix for date_range 56134
State: closed

- [X] closes https://github.com/pandas-dev/pandas/issues/56134
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [X] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [X] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Edit, the first commit is incorrectly named - it fixes 56134 instead


Labels:
name: Datetime
description: Datetime data dtype

Comments:
pre-commit.ci autofix
Thanks for updating!

> Edit, the first commit is incorrectly named - it fixes 56134 instead

it's fine, commits are squashed together anyway, the title of the PR is more important
DOC: fix EX03 errors in docstrings -pandas.DataFrame for idxmax, idxmin, pivot
State: closed

Checked if validation docstrings passes for :

1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.idxmax
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.idxmin
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.pivot

OUTPUT:

1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.idxmax
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.idxmax" correct. :)
```

2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.idxmin
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.idxmin" correct. :)
```

3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.pivot
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.pivot" correct. :)
```

- [ ] xref https://github.com/pandas-dev/pandas/issues/56804
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Docs

Comments:
@mroeschke can you please review this PR if you get a chance? Thank you! 🙂
Thanks @jordan-d-murphy
Remove pandas.core.resample.Resampler.fillna, pandas.core.groupby.SeriesGroupBy.describe, pandas.DataFrame.last, pandas.DataFrame.plot.hist from ci/code_checks.sh
State: closed

Checked if validation docstrings passes for :

1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.resample.Resampler.fillna
2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.groupby.SeriesGroupBy.describe
3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.last
4. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.plot.hist

OUTPUT:

1. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.resample.Resampler.fillna
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.core.resample.Resampler.fillna" correct. :)
```

2. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.core.groupby.SeriesGroupBy.describe
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.core.groupby.SeriesGroupBy.describe" correct. :)
```

3. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.last
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.last" correct. :)
```

4. scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.plot.hist
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.plot.hist" correct. :)
```

- [ ] xref https://github.com/pandas-dev/pandas/issues/56804
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Docs

Comments:
thanks @jordan-d-murphy, looks good to me.
Thanks @jordan-d-murphy
ENH: Add missing parameters to read_gbq for BigQuery
State: closed

There are some missing params from pandas-gbq needed to be added: progress_bar_type, dtypes, auth_redirect_uri, client_id, columns, which col_order is now an alias of

- [ ] ~closes #xxxx~
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [X] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [X] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:

Comments:
@tswast Not sure how to add you as a reviewer so I will mention you here
Thanks for the pull request, but `read_gbq` will be deprecated in pandas 2.2 in favor of using the core `pandas_gbq.read_gbq` so this functionality is no longer accepting any changes so closing
DOC: 2.2.0 whatsnew cleanups
State: closed

- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Docs

Comments:
Thanks @lithomas1
DOC: Change 2.3.0 to 3.0.0
State: closed

- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Docs

Comments:
I think we want to give this some priority, as it will affect many other PRs now. Do you want help with this @lithomas1 ?
> I think we want to give this some priority, as it will affect many other PRs now. Do you want help with this @lithomas1 ?

Thx, for the ping. Updated.
TST: Additions/updates to tests
State: closed

wrote a test for https://github.com/pandas-dev/pandas/issues/56717

test function name is test_deprecation_warning_for_usage_of_aaply_map_index_method_of_styler_object
The original function that was tested was the Styler.applymap_index in the style module
The new test was appended to the test_style module file
The test checks for the FutureWarning

- [ ] closes #56717 
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).




Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: Styler
description: conditional formatting using DataFrame.style

Comments:
Thanks @jomorodi
CI: Fix failing builds
State: closed

- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: CI
description: Continuous Integration
name: Warnings
description: Warnings that appear or should be added to pandas

Comments:
Thanks @lithomas1
PERF: Join non unique
State: closed

- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/v2.3.0.rst` file if fixing a bug or adding a new feature.

Seeing ~10% improvement when `how` is "left", "right", or "inner".

```
import pandas as pd 
import numpy as np

idx1 = pd.Index(np.tile(np.arange(1000), 1000))
idx2 = pd.Index(np.arange(100))

%timeit idx1.join(idx2, how="left")

# 103 ms ± 1.61 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)  -> main
# 90.6 ms ± 504 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)  -> PR
```

Labels:
name: Performance
description: Memory or execution speed performance
name: Reshaping
description: Concat, Merge/Join, Stack/Unstack, Explode

Comments:
Thanks @lukemanley
Backport PR #56481 on branch 2.2.x (Revert "DEPR: make_block (#56422)")
State: closed

Backport PR #56481: Revert "DEPR: make_block (#56422)"

Labels:
name: Internals
description: Related to non-user accessible pandas implementation
name: Compat
description: pandas objects compatability with Numpy or Python functions
name: Blocker
description: Blocking issue or pull request for an upcoming release

Comments:
Merging now, #56819 should fix the remaining failures.
Removed describe, loc and iloc methods from code_checks.sh
State: closed

**PR Summary**
Checked if validation docstrings passes for : 
- pandas.DataFrame.loc by running >python scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.loc
- pandas.DataFrame.iloc by running >python scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.iloc
- pandas.DataFrame.describe by running >python scripts/validate_docstrings.py --format=actions --errors=EX03 pandas.DataFrame.describe

*OUTPUT*
1. pandas.DataFrame.describe
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.describe" correct. :)`
```
2. pandas.DataFrame.iloc
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.iloc" correct. :)
```
3. pandas.DataFrame.iloc
```
################################################################################
################################## Validation ##################################
################################################################################

Docstring for "pandas.DataFrame.loc" correct. :)
```

**PR checklist**
- [ ] xref #56804 
- [x] Tests  passed
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Docs

Comments:
Thanks @Deekshita-S
PERF: Index.take to check for full range indices
State: closed

- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/v2.3.0.rst` file if fixing a bug or adding a new feature.


```
import pandas as pd
import numpy as np

N = 1_000_000
idx = pd.Index(np.arange(N))
indices = np.arange(N)

%timeit idx.take(indices)

# 11.1 ms ± 271 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)   -> main
# 1.33 ms ± 279 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)  -> PR
```

Motivating use-case:

```
idx1 = pd.Index(np.tile(np.arange(1000), 1000))
idx2 = pd.Index(np.arange(100))

%timeit idx1.join(idx2, how="left")

# 132 ms ± 1.43 ms per loop (mean ± std. dev. of 7 runs, 10 loops each)  -> main
# 110 ms ± 587 µs per loop (mean ± std. dev. of 7 runs, 10 loops each)   -> PR
```

Labels:
name: Performance
description: Memory or execution speed performance
name: Index
description: Related to the Index class or subclasses

Comments:
Thanks @lukemanley
BUG: Change the prompt on non list record path errors (PR: #56405)
State: closed

- [x] closes #56405
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Error Reporting
description: Incorrect or improved errors from pandas
name: IO JSON
description: read_json, to_json, json_normalize

Comments:
Thanks @xiaohuanlin
BUG: NDFrame.__setattr__ calls object.__setattribute__ on the same name, which can cause unexpected behavior
State: closed

- [x] closes #56793
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Bug
name: Stale

Comments:
This pull request is stale because it has been open for thirty days with no activity. Please [update](https://pandas.pydata.org/pandas-docs/stable/development/contributing.html#updating-your-pull-request) and respond to this comment if you're still interested in working on this.
Thanks for the PR but it has appears to gone stale. Additionally, this probably needs more discussion on the issue regarding the fix so closing until that discussion has resolved
Series.str.find fix for pd.ArrowDtype(pa.string())
State: closed

- [x] closes #56791(Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.


Labels:
name: Strings
description: String extension data type and string data
name: Arrow
description: pyarrow functionality

Comments:
Extended e2e test to cover strings of different lengths.
@WillAyd @mroeschke 

Any thoughts on this PR? I agree conditional code is not good, but I don't have a better solution with current arrow compute surface area. Should I close this PR if this solution is not desirable?
Sorry this PR slipped through. I am OK with the changes in this PR could you merge in main once more?
Merged.
Thanks @rohanjain101
Bug: Interchange protocol implementation does not allow for empty string columns
State: closed

- [x] closes #56703
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/v2.2.0.rst` file if fixing a bug or adding a new feature.


Labels:
name: Interchange
description: Dataframe Interchange Protocol

Comments:
Thanks @roadrollerdafjorst