BrandonFors/pandas-github-issues huggingface dataset:
PERF: RangeIndex.value_counts/searchsorted/to_numpy
State: closed

```python
In [1]: import pandas as pd

In [2]: ri = pd.RangeIndex(100_000)

In [3]: %timeit ri.to_numpy(na_value=1)
1.29 µs ± 12.3 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 loops each)  # pr
21.2 µs ± 218 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each)  # main

In [4]: %timeit ri.value_counts()
47.4 µs ± 4.41 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)  # pr
2.75 ms ± 20.7 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)  # main

In [5]: %timeit ri.searchsorted(2500)
4.14 µs ± 22.4 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)  # pr
5.03 µs ± 18 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each)  # main
```

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

Comments:
Going to merge, but happy to follow up if needed
BUG: Fix multiplying Timedelta Series with a pandas nullable dtype Series
State: closed

- [X] closes #58054 
- [ ] [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).
- [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.


Tests were added, but raise an error. Does anyone know how to fix it?

<img width="1005" alt="Screenshot 2024-04-22 at 3 01 50 PM" src="https://github.com/pandas-dev/pandas/assets/71472955/6e227d40-cebd-451a-830e-01da815dd52b">

This is my first pull request, please let me know if I need to change anything :)

Labels:
name: Numeric Operations
description: Arithmetic, Comparison, and Logical operations
name: Timedelta
description: Timedelta data type
name: NA - MaskedArrays
description: Related to pd.NA and nullable extension arrays

Comments:
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.
DOC-Enforce Numpy Docstring Validation
State: closed

- [x] Makes fixes to #58068
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).


Labels:
name: Docs

Comments:
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.
BUG: as_index=False can return a MultiIndex in groupby.apply
State: closed

- [x] closes #58291
- [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: Groupby
name: MultiIndex
name: Apply
description: Apply, Aggregate, Transform, Map

Comments:
Removed the addition of multi index, instead of using `reset_index()`, not sure if there is a use case that would require using `reset_index()` instead. 
Thank you for the review, I have updated the pr according to the comments

Thanks @undermyumbrella1!
TST: Add tests for #55431
State: closed

- [x] closes #55431 
- [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).

















Created unit test in `tests/reshape/test_cut.py` to ensure `pd.cut` handles `DatetimeArray` without raising an `AttributeError`. 

Labels:
name: Testing
description: pandas testing functions or related to the test suite

Comments:
Thanks @jasonmokk
DOC: Fix SA01 Docstring Errors for DataFrame
State: closed

- [ ] xref #58065

Fixed SA01 issues for the following methods:

`pandas.DataFrame.__iter__`
`pandas.DataFrame.columns`
`pandas.DataFrame.droplevel`

Fixed functions also removed from code_checks.sh

Labels:
name: Docs

Comments:
Thanks @gboeker 

(Note: if your PR doesn't completely close the linked issue, could you replace `closes` with `xref` next time)
DOC: Enforce Numpy Docstring Validation for DataFrame 
State: closed

- [ ] xref #58065

Fixed SA01 issues for the following methods:

`pandas.DataFrame.mean`
`pandas.DataFrame.median`
`pandas.DataFrame.plot`
`pandas.DataFrame.pop`
`pandas.Series.mean`
`pandas.Series.median`
`pandas.Series.plot`
`pandas.core.groupby.DataFrameGroupBy.plot`
`pandas.core.groupby.SeriesGroupBy.plot`

Fixed functions also removed from code_checks.sh

Labels:
name: Docs
name: Stale

Comments:
Hii, I'm not sure why I'm getting this error, even though I added the See Also section
`pandas.DataFrame.mean:See Also section not found`
`pandas.DataFrame.median:See Also section not found`
LGTM. merge conflicts need to be resolved. 
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 pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.
BUG - False drops groupings
State: closed

- [x] closes #58337
- [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
- [ ] 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: Groupby

Comments:
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.
ENH: Implement cummax and cummin in _accumulate() for ordered Categorical arrays
State: closed

- [ ] closes #52335 (addresses first example but not second)
- [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.

We implemented the operations cummax and cummin in the _accumulate() function for the Categorical array class. The implementation includes a check that the Categorical array is ordered and is based on other implementations of _accumulate(). Tests for the implementation have also been written and included.

Coauthored with @xiangchris

Labels:
name: Categorical
description: Categorical Data Type
name: Reduction Operations
description: sum, mean, min, max, etc.

Comments:
Thanks @bdwzhangumich
Doc: Fixing SA01 error for DataFrame: pop and columns
State: closed

- [ ] xref #58065 
- [ ] [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 @KeiOshima
Add mailing list link
State: closed

- [x] closes #58340 
- [N/A] [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).
- [N/A] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [N/A] 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
name: Admin
description: Administrative tasks related to the pandas project

Comments:
Thanks @shriyakalakata
DOC: Enforce Numpy Docstring Validation for pandas.HDFStore.groups
State: closed

- [ ] xref #58067 
- [ ] [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 @tuhinsharma121
More idiomatic example code in BaseIndexer
State: closed

No need to loop when NumPy supports range and array addition

- [ ] ~~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 @wjandrea
DOC: fixing SA01 errors for Index: name, dtype, and equals
State: closed

- [ ] xref #58068 
- [ ] [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 @KeiOshima
DOC: Enforce Numpy Docstring Validation for DatetimeIndex
State: closed

- [ ] xref #58066

Fixed SA01 issues for the following methods:

`pandas.DatetimeIndex.quarter`
`pandas.DatetimeIndex.round`
`pandas.DatetimeIndex.snap`
`pandas.DatetimeIndex.std`
`pandas.DatetimeIndex.time`
`pandas.DatetimeIndex.timetz`
`pandas.Series.dt.quarter`
`pandas.TimedeltaIndex.round`
`pandas.Series.dt.time`
`pandas.Series.dt.timetz`
`pandas.Series.dt.round`
`pandas.Series.dt.ceil`
`pandas.DatetimeIndex.floor`
`pandas.DatetimeIndex.ceil`
`pandas.TimedeltaIndex.floor`
`pandas.TimedeltaIndex.ceil`

Fixed functions also removed from code_checks.sh

Labels:
name: Docs

Comments:
Thanks @gboeker
DOC: Fix SA01 errors for pandas.Index.astype
State: closed

- [ ] xref #58068 
- [ ] [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 @Nrezhang
TYP: export SASReader in pandas.api.typing
State: closed

- [x] closes #55689 (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
- [ ] 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: Typing
description: type annotations, mypy/pyright type checking

Comments:
Thanks @twoertwein
Csv issue
State: closed

- [ ] closes #57944
- [ ] [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: IO CSV
description: read_csv, to_csv

Comments:
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.
1d array
State: closed

- [ ] closes #57923
- [ ] [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: Indexing
description: Related to indexing on series/frames, not to indexes themselves

Comments:
Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.
DOC: Fix SA01 errors for Index.hasnans, Index.map, Index.nbytes
State: closed

- [x] xref #58068 
- [ ] [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 @shriyakalakata
DOC: fixing SA01 error for DatetimeIndex: second, nanosecond, and microsecond
State: closed

- [ ] xref #58066 
- [ ] [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 @KeiOshima
DOC: Enforce Numpy Docstring Validation for pandas.HDFStore.get
State: closed

- [ ] xref #58067 
- [ ] [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 @tuhinsharma121
TYP: register_*_accessor decorators
State: closed

- [ ] closes #58244 (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: Typing
description: type annotations, mypy/pyright type checking

Comments:
Thanks @twoertwein
BUG: Fix possible wrong format guess if first element had May as month
State: closed

- [x] closes #58328
- [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:

Comments:
Nice!  But - are there other languages / locales for which the abbreviated month is the same as the full month?   How about `Mai` (French) for example?   Can the test be generalized to find the first element for which `full_month != abbrev_month` somehow?
No clue how I would accomplish that without making the code even more complicated.
To be quite frank I did not even know you could pass dates in different languages than English and I would have no way of testing that
Going to close for now
BUG: Ignore warning for duplicate columns in `to_dict` when orient='tight'
State: closed

- [x] closes #58281  (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
- [ ] 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: Output-Formatting
description: __repr__ of pandas objects, to_string
name: Warnings
description: Warnings that appear or should be added to pandas

Comments:
Thank you for replying so quickly, all the comments are fixed.
Thanks @luke396
Allow `tan` to be used in `df.eval`.
State: closed

- [x] closes #55091 (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 (not explicitly adding brand new tests but there are tests covering all the `_unary_math_ops`.
- [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: expressions
description: pd.eval, query

Comments:
While at it, is it feasible to also add other functions? I noticed the functions supported by NumExpr [here](https://numexpr.readthedocs.io/en/latest/user_guide.html#supported-functions), such as conj, real, imag.
> While at it, is it feasible to also add other functions? I noticed the functions supported by NumExpr [here](https://numexpr.readthedocs.io/en/latest/user_guide.html#supported-functions), such as conj, real, imag.

Probably, but I'd prefer to keep this PR as is, since this is pure straight-forward fix.
Adding `where` is discussed here: #34834 .
I can imagine that adding complex-number operation should be easier than that but I'm not sure how well pandas handles them, so I'd prefer to delegate it to separate PR (at very least it would require adding tests)
Thanks @domsmrz
DOC: fixing SA01 errors for index.size, shape, and ndim.
State: closed

- [ ] xref #58068  
- [ ] [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 @KeiOshima