title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
Added AWS_S3_HOST environment variable workaround to user_guide for i…
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 3dba120c0c64b..42e12b9741d99 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1718,9 +1718,21 @@ at `fsimpl1`_ for implementations built into ``fsspec`` and `fsimpl2`_ for those not included in the main ``fss...
…ssue #26195 - [ ] closes #26195(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...
https://api.github.com/repos/pandas-dev/pandas/pulls/54279
2023-07-27T17:26:05Z
2023-07-28T23:08:52Z
2023-07-28T23:08:52Z
2023-07-28T23:08:58Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index dd9219f03abca..6ec41a153dc7d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -63,7 +63,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 Example by itself because it was not raising the warning every time locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/54278
2023-07-27T17:21:34Z
2023-07-28T14:16:57Z
2023-07-28T14:16:56Z
2023-07-28T16:36:14Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f872aaec6ec76..dd9219f03abca 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -63,8 +63,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54277
2023-07-27T15:22:06Z
2023-07-27T16:08:05Z
2023-07-27T16:08:05Z
2023-07-27T16:48:55Z
updated CODEOWNERS file
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index bacca20780191..f4eb236edeb9b 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,23 +1,24 @@ # github -.github/ @mroeschke +.github/ @https://github.com/mroeschke # ci -ci/ ...
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax
https://api.github.com/repos/pandas-dev/pandas/pulls/54276
2023-07-27T15:06:25Z
2023-07-27T15:14:36Z
null
2023-07-27T15:19:40Z
Remove test_groupby_agg_extension (marked xfail)
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index d0dae450735a3..eab1da837a640 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -643,6 +643,7 @@ Other - Bug in :meth:`DataFrame.reindex` with a ``fill_value`` that should be inferred with a :class:`Exte...
Remove special `test_groupby_agg_extension` in `test_json.py` as we can now pass the test generally with these fixes to `GroupBy.first` and `GroupBy.last`. - [x] closes #39098 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a b...
https://api.github.com/repos/pandas-dev/pandas/pulls/54272
2023-07-27T00:42:17Z
2023-07-28T17:57:09Z
2023-07-28T17:57:09Z
2023-07-29T16:10:34Z
TYP: Enable mypy stricter typing for defs/calls
diff --git a/environment.yml b/environment.yml index e85e55e76775b..c95f5090894fd 100644 --- a/environment.yml +++ b/environment.yml @@ -83,6 +83,7 @@ dependencies: # documentation - gitpython # obtain contributors from git for whatsnew - gitdb + - google-auth - natsort # DataFrame.sort_values doctest ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54271
2023-07-26T21:20:57Z
2023-07-27T18:01:53Z
2023-07-27T18:01:53Z
2023-07-27T18:01:57Z
Wrote test for Issue#29576 with resampling in non-unitary quarters
https://github.com/pandas-dev/pandas/pull/54269.diff
- [ ] closes #29576 - [ ] Added test to `tests/resample/test_datetime_index.py` following expected and actual output of original commenter - [ ] All [code checks passed] (https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/54269
2023-07-26T18:27:51Z
2023-08-21T19:33:16Z
null
2023-08-21T19:33:17Z
DEPS: Update reprs with numpy NEP51 scalar repr
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 074e9b19eaf72..e07d80dd04b31 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -492,8 +492,9 @@ cdef class Interval(IntervalMixin): def __repr__(self) -> str: left, right = self._repr_base() + disp = ...
xref https://github.com/numpy/numpy/pull/22449
https://api.github.com/repos/pandas-dev/pandas/pulls/54268
2023-07-26T17:02:15Z
2023-07-28T17:11:15Z
2023-07-28T17:11:15Z
2023-07-28T17:11:19Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 778c12c11ce93..f872aaec6ec76 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -85,7 +85,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionDtype \ pandas.api.extensions.ExtensionArray \ p...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 Example by itself because I have doubts if it's good enough
https://api.github.com/repos/pandas-dev/pandas/pulls/54267
2023-07-26T16:15:39Z
2023-07-26T20:29:41Z
2023-07-26T20:29:41Z
2023-07-27T08:44:48Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 0c9c0071d6292..778c12c11ce93 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -64,7 +64,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings.py...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54266
2023-07-26T11:04:27Z
2023-07-26T17:15:34Z
2023-07-26T17:15:34Z
2023-07-26T17:49:01Z
Modified doc/make.py to run sphinx-build -b linkcheck
diff --git a/doc/make.py b/doc/make.py index 9db4ea406bc1f..23b18d69acc04 100755 --- a/doc/make.py +++ b/doc/make.py @@ -123,14 +123,14 @@ def _sphinx_build(self, kind: str): Parameters ---------- - kind : {'html', 'latex'} + kind : {'html', 'latex', 'linkcheck'} Examples ...
- [x] xref #45409 (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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/54265
2023-07-26T10:44:22Z
2023-09-19T18:48:49Z
2023-09-19T18:48:49Z
2023-09-19T20:20:41Z
BUG: pivot_table mean of integer input casted back to int
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index d0dae450735a3..e2aac772a520f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -640,6 +640,7 @@ Other - Bug in :func:`api.interchange.from_dataframe` when converting an empty DataFrame object (:issue:`5...
- [x] closes #16676 - [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). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/54263
2023-07-26T08:25:24Z
2023-08-02T01:32:17Z
2023-08-02T01:32:17Z
2023-08-02T03:13:57Z
DEPR: fillna downcasting from object dtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 54e855f61905a..70b9b322f8b64 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -169,6 +169,7 @@ Deprecations - Deprecated strings ``T``, ``S``, ``L``, ``U``, and ``N`` denoting frequencies in :class:`Mi...
- [x] closes #11537 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54261
2023-07-26T01:08:57Z
2023-09-18T17:22:10Z
2023-09-18T17:22:10Z
2023-09-18T17:45:41Z
STYL: replace autotyping with ruff's ANN autofixes
diff --git a/.libcst.codemod.yaml b/.libcst.codemod.yaml deleted file mode 100644 index 985e69b772e52..0000000000000 --- a/.libcst.codemod.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# String that LibCST should look for in code which indicates that the -# module is generated code. -generated_code_marker: '@generated' -# Comma...
ruff's ANN has many of the autofixes from autotyping but it doesn't have all of them. Ruff doesn't annotate parameters with simple default values (autotyping would change `def foo(x=1)` to `def foo(x: int = 1)`).
https://api.github.com/repos/pandas-dev/pandas/pulls/54260
2023-07-25T20:35:37Z
2023-07-28T17:52:12Z
2023-07-28T17:52:11Z
2023-08-09T15:08:32Z
REF: de-duplicate ensure_np_dtype
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index 3b77540efcdd2..14969425e75a7 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -35,11 +35,7 @@ is_object_dtype, is_timedelta64_ns_dtype, ) -from pandas.core.dty...
- [ ] 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/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54258
2023-07-25T16:36:09Z
2023-07-31T18:15:21Z
2023-07-31T18:15:21Z
2023-07-31T20:38:21Z
BUG: Series.argsort validate axis
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 44318df408751..310b42e373dae 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -642,6 +642,7 @@ Other - Bug in :meth:`DataFrame.shift` with ``axis=1`` on a :class:`DataFrame` with a single :class:`Exten...
- [ ] closes #xxxx (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/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54257
2023-07-25T16:34:43Z
2023-07-25T17:56:53Z
2023-07-25T17:56:53Z
2023-07-25T18:00:25Z
DOC: User Guide correction on BaseIndexer
diff --git a/doc/source/user_guide/window.rst b/doc/source/user_guide/window.rst index 85e8762570736..d997aa119b359 100644 --- a/doc/source/user_guide/window.rst +++ b/doc/source/user_guide/window.rst @@ -244,7 +244,7 @@ a ``BaseIndexer`` subclass that allows a user to define a custom method for calc The ``BaseIndexer...
- [ x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). The BaseIndexer example on the User Guide was not working. It needed the parameter `step`. This parameter was added on this PR #45765
https://api.github.com/repos/pandas-dev/pandas/pulls/54256
2023-07-25T14:16:21Z
2023-07-25T17:43:44Z
2023-07-25T17:43:44Z
2023-07-26T09:17:56Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 019693ffa089e..0c9c0071d6292 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -81,8 +81,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.util.hash_array \ pandas.util.hash_pandas_object \ pandas_object \ - ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 Notes: On the web there are only 3 custom rolling windows: `BaseIndexer`, `FixedForwardWindowIndexer` and `VariableOffsetWindowInd...
https://api.github.com/repos/pandas-dev/pandas/pulls/54254
2023-07-25T13:56:38Z
2023-07-26T15:36:17Z
2023-07-26T15:36:17Z
2023-07-26T16:08:20Z
TST: Don't cast in test_cython_agg_nullable_int
diff --git a/pandas/tests/groupby/aggregate/test_cython.py b/pandas/tests/groupby/aggregate/test_cython.py index e05fee9d75b32..f00d87a3da455 100644 --- a/pandas/tests/groupby/aggregate/test_cython.py +++ b/pandas/tests/groupby/aggregate/test_cython.py @@ -338,13 +338,11 @@ def test_cython_agg_nullable_int(op_name): ...
xref https://github.com/pandas-dev/pandas/pull/54129/files#r1272774080 Nice find @rhshadrach!
https://api.github.com/repos/pandas-dev/pandas/pulls/54248
2023-07-24T23:59:53Z
2023-07-26T02:38:47Z
2023-07-26T02:38:47Z
2023-07-26T02:59:33Z
ENH: Support ffill/bfill on IntervalArray
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 65f5328189eeb..61118c6ed3302 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -132,6 +132,7 @@ to ``na_action=None``, like for all the other array types. Other enhancements ^^^^^^^^^^^^^^^^^^ +- :me...
- [ ] closes #xxxx (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/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54247
2023-07-24T20:47:53Z
2023-07-25T00:12:59Z
2023-07-25T00:12:59Z
2023-07-25T01:13:10Z
ENH: Implement interchange protocol for DatetimeTZDtype
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 8cf7543ae075b..eb0d946163cde 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -149,6 +149,7 @@ Other enhancements - Adding ``engine_kwargs`` parameter to :meth:`DataFrame.read_excel` (:issue:`52214`) ...
- [x] closes #54239 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54246
2023-07-24T20:27:54Z
2023-07-25T18:33:21Z
2023-07-25T18:33:21Z
2023-07-25T18:42:54Z
TST: add a test on mixed offsets for read_csv
diff --git a/pandas/tests/io/parser/test_parse_dates.py b/pandas/tests/io/parser/test_parse_dates.py index 571e09bb5e9dd..d4d8d909adef6 100644 --- a/pandas/tests/io/parser/test_parse_dates.py +++ b/pandas/tests/io/parser/test_parse_dates.py @@ -2237,3 +2237,19 @@ def test_parse_dates_arrow_engine(all_parsers): ...
xref #54014 added a test on mixed offsets to increase coverage for `read_csv`
https://api.github.com/repos/pandas-dev/pandas/pulls/54245
2023-07-24T18:36:53Z
2023-07-25T10:20:31Z
2023-07-25T10:20:31Z
2023-07-25T10:20:32Z
BLD: don't require ninja to come from PyPI
diff --git a/pyproject.toml b/pyproject.toml index 58671ee80d300..0662ab4632dcf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ # See https://github.com/scipy/scipy/pull/12940 for the AIX issue. requires = [ "meson-python==0.13.1", - "meson[ninja]==1.0.1", + "meson==1.0.1", "wheel", ...
In pyproject.toml, the baseline requirements for building are supposed to be listed. Many end users have a recent enough system-provided ninja, and don't need to install a new copy into every pandas isolated build virtual environment. This is handled inside meson-python itself, which dynamically adds an additional b...
https://api.github.com/repos/pandas-dev/pandas/pulls/54244
2023-07-24T18:04:41Z
2023-07-25T18:32:31Z
2023-07-25T18:32:31Z
2023-07-25T18:38:58Z
DOC Update Documentation in "missing_data" 54028
diff --git a/doc/source/conf.py b/doc/source/conf.py index 0d69e030f913a..9622fd141ca81 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -17,6 +17,12 @@ import sys import warnings +warnings.filterwarnings( + "ignore", + category=UserWarning, + message="Matplotlib is currently using agg, which is...
- [ ] closes #54028 Adds reference notes for importing NaType and NaTType
https://api.github.com/repos/pandas-dev/pandas/pulls/54243
2023-07-24T15:58:37Z
2023-08-07T15:42:19Z
null
2023-08-07T15:42:19Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 702e7d28a36d8..b0f4e8d0fae09 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -85,8 +85,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.util.hash_array \ pandas.util.hash_pandas_object \ pandas_object \ - ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54242
2023-07-24T15:34:22Z
2023-07-24T17:15:39Z
2023-07-24T17:15:39Z
2023-07-24T17:28:00Z
updated CITATION.cff
diff --git a/CITATION.cff b/CITATION.cff index 0161dfa92fdef..741e7e7ac8c85 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -3,8 +3,12 @@ title: 'pandas-dev/pandas: Pandas' message: 'If you use this software, please cite it as below.' authors: - name: "The pandas development team" +abstract: "Pandas is a powerful ...
![citation](https://github.com/pandas-dev/pandas/assets/105560839/6e03b323-0c9d-4089-ba1f-078e34eb25d3)
https://api.github.com/repos/pandas-dev/pandas/pulls/54241
2023-07-24T15:33:19Z
2023-07-24T17:14:41Z
2023-07-24T17:14:41Z
2023-07-24T17:15:30Z
Updated documentation pandas alignment when setting
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index e785376ab10a4..b574ae9cb12c7 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -155,7 +155,7 @@ columns. .. warning:: - pandas aligns all AXES when setting ``Series`` and ``DataFra...
- [x] closes #13950
https://api.github.com/repos/pandas-dev/pandas/pulls/54240
2023-07-24T13:01:04Z
2023-07-24T20:32:57Z
2023-07-24T20:32:57Z
2023-07-27T21:59:54Z
DEPR offsets: rename 'Y' to 'YE'
diff --git a/doc/source/getting_started/intro_tutorials/09_timeseries.rst b/doc/source/getting_started/intro_tutorials/09_timeseries.rst index 470b3908802b2..b0530087e5b84 100644 --- a/doc/source/getting_started/intro_tutorials/09_timeseries.rst +++ b/doc/source/getting_started/intro_tutorials/09_timeseries.rst @@ -295...
xref #52064
https://api.github.com/repos/pandas-dev/pandas/pulls/54238
2023-07-24T08:58:12Z
2023-10-16T19:56:40Z
null
2023-10-16T19:56:40Z
STY: Enable ruff perflint
diff --git a/doc/source/conf.py b/doc/source/conf.py index 71bc05f6fd6e1..0d69e030f913a 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -348,10 +348,8 @@ methods = [ x for x in dir(klass) if not x.startswith("_") or x in ("__iter__", "__array__") ] - - for method in methods: - #...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54236
2023-07-24T00:59:13Z
2023-07-25T00:00:56Z
2023-07-25T00:00:56Z
2023-07-25T00:00:59Z
PERF: Implement groupby idxmax/idxmin in Cython
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 4567b5b414301..54c240e84243a 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -73,6 +73,8 @@ "ffill", "first", "head", + "idxmax", + "idxmin", "last", "median", "...
- [x] closes #10694 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54234
2023-07-23T16:08:23Z
2023-10-27T02:10:30Z
2023-10-27T02:10:30Z
2023-10-27T19:11:16Z
DOC: Imporve `json_normalize` record_prefix and mate_prefix
diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py index b1e2210f9d894..56181526e0984 100644 --- a/pandas/io/json/_normalize.py +++ b/pandas/io/json/_normalize.py @@ -265,11 +265,11 @@ def json_normalize( meta : list of paths (str or list of str), default None Fields to use as metada...
- [ ] closes #54121 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/54232
2023-07-23T00:12:25Z
2023-08-25T18:11:51Z
null
2023-08-29T05:16:32Z
Fixed groupby error with nullable types
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index ed8646bafc4db..380c576fe1c4d 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -183,10 +183,13 @@ Notable bug fixes These are bug fixes that might have notable behavior changes. -.. _whatsnew_210.no...
- [x] closes #54206 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/54230
2023-07-22T19:27:49Z
2023-09-01T00:24:46Z
null
2023-09-01T00:24:46Z
Update CODEOWNERS
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 3783632bdbe84..bacca20780191 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -9,6 +9,7 @@ web/ @datapythonista # docs doc/cheatsheet @Dr-Irv +doc/source/development @noatamir # pandas...
Thanks for the suggestion @MarcoGorelli!
https://api.github.com/repos/pandas-dev/pandas/pulls/54228
2023-07-22T13:25:55Z
2023-07-22T13:29:29Z
2023-07-22T13:29:29Z
2023-07-22T13:29:29Z
DEPR: idxmin/idxmax with all-NA
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index ed8646bafc4db..18c76dd3cca08 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -309,6 +309,7 @@ Deprecations - Deprecated ``axis=1`` in :meth:`DataFrame.ewm`, :meth:`DataFrame.rolling`, :meth:`DataFrame...
- [x] closes #51276 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54226
2023-07-22T02:29:07Z
2023-07-24T20:29:00Z
2023-07-24T20:29:00Z
2023-11-07T12:47:36Z
CLN/ASV: remove downcast param (deprecated) from frame_methods.Interpolate
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 3490f99de2cb2..e3176830c23fb 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -565,10 +565,7 @@ def time_frame_object_unequal(self): class Interpolate: - params = [No...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54225
2023-07-22T01:01:37Z
2023-07-24T17:21:01Z
2023-07-24T17:21:01Z
2023-07-25T00:15:40Z
PERF: DataFrame.transpose for pyarrow-backed
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index bc187361493c0..95135049d44eb 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -403,6 +403,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.isin` for extension dtypes (:issue:...
- [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 annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/54224
2023-07-22T00:34:35Z
2023-07-24T17:23:16Z
2023-07-24T17:23:16Z
2023-07-25T00:15:38Z
PERF: ArrowDtype.__eq__
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 5d3d5a1a6b344..70575a97b9aff 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -2046,6 +2046,15 @@ def __init__(self, pyarrow_dtype: pa.DataType) -> None: def __repr__(self) -> str: return self.nam...
Micro-perf improvement: ``` import pandas as pd import pyarrow as pa a = pd.ArrowDtype(pa.float64()) b = pd.ArrowDtype(pa.float64()) %timeit a == b # 2.86 µs ± 214 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each) -> main # 473 ns ± 15.2 ns per loop (mean ± std. dev. of 7 runs, 1,000,000 lo...
https://api.github.com/repos/pandas-dev/pandas/pulls/54223
2023-07-22T00:12:28Z
2023-07-25T00:10:35Z
2023-07-25T00:10:35Z
2023-07-25T00:15:41Z
CI/TST: Address some warnings
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 91c30c4c0b333..ac83f50578573 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -103,7 +103,7 @@ jobs: services: mysql: - image: mysql + image: mysql:8.0.33 en...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54222
2023-07-22T00:10:14Z
2023-07-24T17:29:12Z
2023-07-24T17:29:12Z
2023-07-24T17:29:15Z
CLN/ASV: DataFrame.applymap (deprecated) -> DataFrame.map
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 86a983d3deb62..0d189bcd30b7c 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -341,7 +341,7 @@ def setup(self, sep, thousands, engine): if thousands is not None: fmt = f":{thousand...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54221
2023-07-22T00:05:28Z
2023-07-22T10:37:35Z
2023-07-22T10:37:35Z
2023-07-24T10:59:16Z
DOC: Simplify contributing intro
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 4b9a6ba1e069c..247f5cb0cb62d 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -9,37 +9,39 @@ Contributing to pandas .. contents:: Table of contents: :local: -W...
* Reduced some preamble * Updated some links * Use `code-block:: shell` where appropriate
https://api.github.com/repos/pandas-dev/pandas/pulls/54220
2023-07-21T22:30:48Z
2023-07-31T16:47:37Z
2023-07-31T16:47:37Z
2023-07-31T16:47:41Z
DEPR: Series.argsort NA behavior
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index ed8646bafc4db..415b9e9c21f52 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -318,6 +318,7 @@ Deprecations - Deprecated the ``axis`` keyword in :meth:`DataFrame.ewm`, :meth:`Series.ewm`, :meth:`DataFr...
- [ ] closes #xxxx (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/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54219
2023-07-21T21:44:26Z
2023-07-25T00:02:25Z
2023-07-25T00:02:25Z
2023-07-25T01:13:32Z
CI: Try out pre-commit.ci again
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml deleted file mode 100644 index 376aa8343c571..0000000000000 --- a/.github/workflows/autoupdate-pre-commit-config.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: "Update pre-commit config" - -on: - schedule: -...
Will need to enable the pre-commit Github app
https://api.github.com/repos/pandas-dev/pandas/pulls/54218
2023-07-21T18:52:41Z
2023-07-28T18:07:34Z
2023-07-28T18:07:34Z
2023-07-28T18:07:37Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 702e7d28a36d8..44d61658ec036 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -79,9 +79,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.io.stata.StataReader.variable_labels \ pandas.io.stata.StataWriter.write_file \ ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54217
2023-07-21T18:19:11Z
2023-07-24T14:35:16Z
2023-07-24T14:35:16Z
2023-07-24T15:03:23Z
DOC: Removed InvalidComparison and LossySetItemError from docs
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 086629d46429c..019693ffa089e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -64,8 +64,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings.py...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 https://github.com/pandas-dev/pandas/pull/48088 https://github.com/pandas-dev/pandas/pull/48687 @jorisvandenbossche @mroeschke ...
https://api.github.com/repos/pandas-dev/pandas/pulls/54216
2023-07-21T13:54:42Z
2023-07-25T08:18:13Z
2023-07-25T08:18:13Z
2023-07-25T09:20:06Z
DOC: Continueing backsticks formatting xml
diff --git a/pandas/io/xml.py b/pandas/io/xml.py index 0f0cf6f39ded1..c376b43f4d4dd 100644 --- a/pandas/io/xml.py +++ b/pandas/io/xml.py @@ -74,8 +74,8 @@ class _XMLFrameParser: URL schemes include http, ftp, s3, and file. xpath : str or regex - The XPath expression to parse required set of nodes...
- [ ] Toward https://github.com/pandas-dev/pandas/issues/53674 (specifically for pandas\io\xml.py). - [ ] Edited backsticks from single (`) to double (``) on missing parameters.
https://api.github.com/repos/pandas-dev/pandas/pulls/54215
2023-07-21T05:38:08Z
2023-07-21T17:32:58Z
2023-07-21T17:32:58Z
2023-07-21T17:33:04Z
FIX: query() and isin() fail on period type column
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 14dee202a9d8d..549a5144a4053 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -73,6 +73,7 @@ na_value_for_dtype, ) +from pandas.core.api import PeriodDtype from pandas.core.array_algos.take import take_nd from pa...
- [X] closes #54199 - [ ] [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]...
https://api.github.com/repos/pandas-dev/pandas/pulls/54214
2023-07-20T21:48:57Z
2023-08-25T18:11:23Z
null
2023-10-12T05:16:39Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index c63435b257032..fa42bedc625d8 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -76,7 +76,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.test \ pandas.NaT \ pandas.read_feather \ - pandas.DataFrame.to_f...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 Example by itself because I was having problems with it
https://api.github.com/repos/pandas-dev/pandas/pulls/54213
2023-07-20T19:22:24Z
2023-07-20T20:26:40Z
2023-07-20T20:26:40Z
2023-07-21T08:59:28Z
TST: add a test with freq=1MS to increase coverage of shift
diff --git a/pandas/tests/frame/methods/test_shift.py b/pandas/tests/frame/methods/test_shift.py index ebbb7ca13646f..2c36535d82ba5 100644 --- a/pandas/tests/frame/methods/test_shift.py +++ b/pandas/tests/frame/methods/test_shift.py @@ -656,3 +656,12 @@ def test_shift_axis1_many_periods(self): shifted2 = df....
xref #52064 Added a test with `freq=1MS` to increase coverage of `shift`. The reason: existing tests don't cover a case if the index of a DataFrame is a `DatetimeIndex`.
https://api.github.com/repos/pandas-dev/pandas/pulls/54211
2023-07-20T17:07:24Z
2023-07-21T07:28:18Z
2023-07-21T07:28:17Z
2023-07-21T07:34:04Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index fa42bedc625d8..702e7d28a36d8 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -73,13 +73,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.errors.PyperclipWindowsException \ pandas.errors.UnsortedIndexError \ p...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54210
2023-07-20T16:22:25Z
2023-07-20T20:40:52Z
2023-07-20T20:40:52Z
2023-07-21T08:58:55Z
TST: Use numpy random generator for testing data
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 61879e71702d0..aedf07c9c48cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -251,6 +251,9 @@ repos: # os.remove |os\.remove + + # Unseeded numpy default_rng + |default_rng\(\) ...
This PR diff is large, but essentially it enables a ruff rule `NPY002` to use the numpy random `Generator` instead of the legacy random methods. The change is replacing `np.random` with `np.random.default_rng(2)` before calling the data generation method. I think starting to use a fixed seed is good to make failures...
https://api.github.com/repos/pandas-dev/pandas/pulls/54209
2023-07-20T15:54:34Z
2023-08-01T17:02:21Z
2023-08-01T17:02:21Z
2023-08-01T17:02:24Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 5fc8f02a3fa8d..c63435b257032 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -99,7 +99,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionDtype \ pandas.api.extensions.ExtensionArray \ p...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54205
2023-07-20T09:29:05Z
2023-07-20T14:16:13Z
2023-07-20T14:16:13Z
2023-07-20T14:16:44Z
REF: more greppable names for ujson functions
diff --git a/pandas/_libs/json.pyi b/pandas/_libs/json.pyi index 8e7ba60ccce24..bc4fe68573b94 100644 --- a/pandas/_libs/json.pyi +++ b/pandas/_libs/json.pyi @@ -3,7 +3,7 @@ from typing import ( Callable, ) -def dumps( +def ujson_dumps( obj: Any, ensure_ascii: bool = ..., double_precision: int = ....
Discussed with @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/54202
2023-07-20T03:16:18Z
2023-07-20T20:30:57Z
2023-07-20T20:30:57Z
2023-07-20T21:14:26Z
CLN: Adjust namespace handling in to_xml
diff --git a/pandas/io/formats/xml.py b/pandas/io/formats/xml.py index 5725975bb6278..ee19f27fe8df6 100644 --- a/pandas/io/formats/xml.py +++ b/pandas/io/formats/xml.py @@ -251,18 +251,11 @@ def other_namespaces(self) -> dict: """ nmsp_dict: dict[str, str] = {} - if self.namespaces and self.p...
- [X] Relates to [note](https://github.com/pandas-dev/pandas/pull/54043#discussion_r1258888096) in #54043 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/54201
2023-07-20T00:40:15Z
2023-07-20T15:18:50Z
2023-07-20T15:18:50Z
2023-09-16T20:33:21Z
CI: Bump pandas-gbq to one that doesn't pin pyarrow
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 2ca9e328adf9c..c3b9379c7adc6 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -40,7 +40,8 @@ dependencies: - odfpy>=1.4.1 - qtpy>=2.2.0 - openpyxl>=3.0.10 - - pandas-gbq>=0.17.5 + # Bump pandas-gbq to one where pyar...
- [ ] 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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/54200
2023-07-19T23:03:59Z
2023-10-23T21:56:29Z
null
2023-10-23T21:56:39Z
POC: pass date_unit to values_for_json
diff --git a/pandas/_libs/src/vendored/ujson/python/objToJSON.c b/pandas/_libs/src/vendored/ujson/python/objToJSON.c index 1fa82215179a8..651577658a641 100644 --- a/pandas/_libs/src/vendored/ujson/python/objToJSON.c +++ b/pandas/_libs/src/vendored/ujson/python/objToJSON.c @@ -720,7 +720,25 @@ void PdBlock_iterBegin(JSO...
@WillAyd this isn't working (or even compiling), just putting it here to get your thoughts on passing date_unit to values_for_json instead of handling it in the C code. The relevant questions are 1) would this allow for non-trivial simplification of the C code? and 2) perf impact?
https://api.github.com/repos/pandas-dev/pandas/pulls/54198
2023-07-19T20:48:15Z
2023-08-22T15:28:40Z
null
2023-08-22T15:28:48Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 0d28dcd046a7b..5fc8f02a3fa8d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -108,18 +108,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray._hash_pandas_object \ pandas.api.extensions.Exte...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54197
2023-07-19T18:37:58Z
2023-07-19T22:02:11Z
2023-07-19T22:02:11Z
2023-07-20T08:17:58Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bb2dacd2ead61..0d28dcd046a7b 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -65,16 +65,9 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX01 --ignore_functions \ ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54196
2023-07-19T16:09:33Z
2023-07-19T18:22:29Z
2023-07-19T18:22:29Z
2023-07-19T18:36:36Z
Fix UserWarning in DataFrame.plot.scatter when invoked with c="b"
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 839870cb18a0b..7024e790265ce 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -547,6 +547,7 @@ Period Plotting ^^^^^^^^ - Bug in :meth:`Series.plot` when invoked with ``color=None`` (:issue:`51953`) ...
- [x] closes #53908 - [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]...
https://api.github.com/repos/pandas-dev/pandas/pulls/54189
2023-07-19T09:37:06Z
2023-07-19T18:23:50Z
2023-07-19T18:23:50Z
2023-07-20T07:47:06Z
Fix deprecation warning on Python 3.12
diff --git a/pandas/core/computation/expr.py b/pandas/core/computation/expr.py index f8c8e6d87ff13..7aaafc8edab87 100644 --- a/pandas/core/computation/expr.py +++ b/pandas/core/computation/expr.py @@ -550,7 +550,7 @@ def visit_Num(self, node, **kwargs) -> Term: return self.const_type(node.n, self.env) d...
`Constant.n` is now deprecated for removal in 3.14; it appears that `Constant.value` has existed since at least 3.9. - [n/a] closes #xxxx (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 fixi...
https://api.github.com/repos/pandas-dev/pandas/pulls/54188
2023-07-19T07:01:05Z
2023-07-24T17:41:19Z
null
2023-07-25T03:52:12Z
BUG: HDFStore select for large integer
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 6c2784bc93b0c..b0c2b845073f6 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -481,7 +481,7 @@ Conversion - Bug in :meth:`DataFrame.__repr__` incorrectly raising a ``TypeError`` when the dtype of a col...
- [x] closes #53323 - [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]...
https://api.github.com/repos/pandas-dev/pandas/pulls/54186
2023-07-19T03:03:28Z
2023-07-19T22:05:43Z
2023-07-19T22:05:42Z
2023-07-20T07:24:37Z
BUG: read_sql_table unable to read views
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 56bdd5df5a373..317ead27a251d 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -525,6 +525,7 @@ I/O - Bug in :func:`read_hdf` not properly closing store after a ``IndexError`` is raised (:issue:`52781`)...
- [x] closes #52969 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54185
2023-07-19T02:00:30Z
2023-07-20T15:25:36Z
2023-07-20T15:25:36Z
2023-07-20T15:25:40Z
BUG: PeriodDtype and IntervalDtype holding references to itself when object is deleted
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c7ddd10895efb..650185cc805b8 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -495,7 +495,7 @@ Strings Interval ^^^^^^^^ - :meth:`pd.IntervalIndex.get_indexer` and :meth:`pd.IntervalIndex.get_indexer...
Fixes this issue ``` In [1]: import pandas as pd In [2]: import weakref In [3]: pdt = pd.PeriodDtype(freq="D") In [4]: ref = weakref.ref(pdt) In [5]: del pdt In [6]: import gc; gc.collect() Out[6]: 1119 In [7]: ref() Out[7]: period[D] In [8]: idt = pd.IntervalDtype("interval[int64, right]") ...
https://api.github.com/repos/pandas-dev/pandas/pulls/54184
2023-07-18T22:51:56Z
2023-07-19T18:21:24Z
2023-07-19T18:21:24Z
2023-07-19T18:21:28Z
TST: add test with freq=2M to increase coverage asfreq
diff --git a/pandas/tests/indexes/period/methods/test_asfreq.py b/pandas/tests/indexes/period/methods/test_asfreq.py index 23b88fb6ab0d3..4f5cfbade4d84 100644 --- a/pandas/tests/indexes/period/methods/test_asfreq.py +++ b/pandas/tests/indexes/period/methods/test_asfreq.py @@ -2,6 +2,7 @@ from pandas import ( Pe...
xref #52064 Added a test in which a Series has a PeriodIndex with `freq=2M` to increase coverage `asfreq`. The reason: existing tests don't cover a case if the index of a Series is a PeriodIndex with `freq=2M`, then asfreq converts time series to a new one with the frequency `freq=M`.
https://api.github.com/repos/pandas-dev/pandas/pulls/54183
2023-07-18T21:27:06Z
2023-07-19T08:59:22Z
2023-07-19T08:59:22Z
2023-07-19T08:59:23Z
ENH: `ewm()` default to using DatetimeIndex as `times` when `halflife` is a timedelta
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index 775f3cd428677..541b6b07c0fd3 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -23,6 +23,7 @@ ExponentialMovingWindowIndexer, GroupbyIndexer, ) +from pandas.core.indexes.api import DatetimeIndex from pandas.core...
Allow `ewm()` to use a DatetimeIndex as the `times` parameter if it isn't provided and `halflife` is a timedelta convertible. Before: ``` >>> now = pd.Timestamp.now() >>> idx = [now + pd.Timedelta(seconds=i) for i in range(1, 4)] >>> df = pd.DataFrame({'a': [1,2,3]}, index=idx) >>> df.ewm(halflife=pd.Timedelta(...
https://api.github.com/repos/pandas-dev/pandas/pulls/54181
2023-07-18T17:49:08Z
2023-07-19T18:24:53Z
null
2023-07-19T18:24:53Z
DOC: changed description of value_counts function
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a469f4965117b..b3ee6f92257a2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6983,7 +6983,7 @@ def value_counts( dropna: bool = True, ) -> Series: """ - Return a Series containing counts of unique rows in the D...
Changed the description of value_counts function - [x] closes #48635 - [ ] [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/develo...
https://api.github.com/repos/pandas-dev/pandas/pulls/54180
2023-07-18T17:23:04Z
2023-07-20T20:27:29Z
2023-07-20T20:27:29Z
2023-07-20T20:27:37Z
BUG: Index.sort_values with key
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 84cc47e2823c5..ed8646bafc4db 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -633,11 +633,13 @@ Other - Bug in :meth:`DataFrame.reindex` with a ``fill_value`` that should be inferred with a :class:`Ex...
- [x] closes #52764 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54179
2023-07-18T16:37:04Z
2023-07-21T02:40:32Z
2023-07-21T02:40:32Z
2023-07-21T15:13:33Z
Fix for #54167
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index a7a6f481ebdde..325457f478ef5 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -1961,6 +1961,7 @@ def _trim_zeros_complex(str_complexes: np.ndarray, decimal: str = ".") -> list[s n = len(str_complexes) pad...
- [x] closes #54167 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/54177
2023-07-18T03:11:14Z
2023-08-16T18:29:40Z
null
2023-08-16T18:29:40Z
DOC: Simplify install.rst
diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index e7e637618eecc..572c695d0e09d 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -7,13 +7,14 @@ Installation ============ The easiest way to install pandas is to install...
* Simplified some preamble * Updates some links and references * Removed installing via Linux package managers since this is not managed by the team
https://api.github.com/repos/pandas-dev/pandas/pulls/54175
2023-07-18T00:42:38Z
2023-07-19T02:00:42Z
2023-07-19T02:00:42Z
2023-07-19T02:00:45Z
BUG: iter(ser.str) did not raise TypeError
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 839870cb18a0b..8de25db5c58e4 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -488,7 +488,7 @@ Conversion Strings ^^^^^^^ -- +- Bug in :meth:`Series.str` that did not raise a ``TypeError`` when iter...
- [x] closes #54173 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54174
2023-07-18T00:34:54Z
2023-07-24T18:07:13Z
2023-07-24T18:07:12Z
2023-07-24T18:07:16Z
Backport PR #54169 on branch 2.0.x (DEBUG: CY3 test_add_out_of_pydatetime_range)
diff --git a/pandas/tests/tseries/offsets/test_year.py b/pandas/tests/tseries/offsets/test_year.py index 480c875c36e04..28cbdcf6abecc 100644 --- a/pandas/tests/tseries/offsets/test_year.py +++ b/pandas/tests/tseries/offsets/test_year.py @@ -10,8 +10,6 @@ import numpy as np import pytest -from pandas.compat import i...
Backport PR #54169: DEBUG: CY3 test_add_out_of_pydatetime_range
https://api.github.com/repos/pandas-dev/pandas/pulls/54172
2023-07-17T23:43:25Z
2023-07-18T19:18:58Z
null
2023-07-18T19:18:59Z
DEPR: argmin/argmax with all-NA or skipa=False
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index f308c39048ec7..822dfa98fe79a 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -370,6 +370,7 @@ Deprecations - Deprecated the ``method`` and ``limit`` keywords in :meth:`DataFrame.replace` and :meth:`Se...
- [x] closes #33941 (Replace xxxx with the GitHub issue number) - [x] closes #33942 - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/54170
2023-07-17T21:22:39Z
2023-07-20T15:21:32Z
2023-07-20T15:21:32Z
2023-07-20T15:28:18Z
DEBUG: CY3 test_add_out_of_pydatetime_range
diff --git a/pandas/tests/tseries/offsets/test_year.py b/pandas/tests/tseries/offsets/test_year.py index 480c875c36e04..28cbdcf6abecc 100644 --- a/pandas/tests/tseries/offsets/test_year.py +++ b/pandas/tests/tseries/offsets/test_year.py @@ -10,8 +10,6 @@ import numpy as np import pytest -from pandas.compat import i...
- [ ] 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/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54169
2023-07-17T19:05:36Z
2023-07-17T23:42:18Z
2023-07-17T23:42:18Z
2023-07-17T23:42:23Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9123fd39c3b4f..1c6e23746352e 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -63,9 +63,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 Note: `pandas.errors.AccessorRegistrationWarning` definition was supposed to be removed. The warning was [removed](https://github....
https://api.github.com/repos/pandas-dev/pandas/pulls/54168
2023-07-17T18:11:43Z
2023-07-17T19:07:21Z
2023-07-17T19:07:21Z
2023-07-18T09:13:04Z
BUG: idxmin/max dtype
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 137f2e5c12211..e3652aa102d92 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -502,6 +502,7 @@ Missing ^^^^^^^ - Bug in :meth:`DataFrame.interpolate` failing to fill across multiblock data when ``meth...
- [x] closes #43587 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54166
2023-07-17T16:16:13Z
2023-07-18T20:18:54Z
2023-07-18T20:18:54Z
2023-07-18T20:26:55Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7dd347327f3cc..dcfb9e78be583 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -95,7 +95,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.read_sas \ pandas.read_spss \ pandas.read_sql_query \ - pandas.re...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54164
2023-07-17T14:24:11Z
2023-07-17T16:19:44Z
2023-07-17T16:19:44Z
2023-07-18T09:09:53Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7dd347327f3cc..0f331f969a718 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -63,9 +63,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then MSG='Partially validate docstrings (EX01)' ; echo $MSG $BASE_DIR/scripts/validate_docstrings....
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 We need to use /preview as the html for `groupby`can't be generated locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/54162
2023-07-17T13:43:38Z
2023-07-17T16:14:51Z
2023-07-17T16:14:51Z
2023-07-17T19:03:44Z
Bump pypa/cibuildwheel from 2.13.1 to 2.14.1
diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index f1f9646054132..e692b337f4b0d 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -110,7 +110,7 @@ jobs: path: ./dist - name: Build wheels - uses: pypa/cibuildwheel@v2.13.1 + u...
Bumps [pypa/cibuildwheel](https://github.com/pypa/cibuildwheel) from 2.13.1 to 2.14.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pypa/cibuildwheel/releases">pypa/cibuildwheel's releases</a>.</em></p> <blockquote> <h2>v2.14.1</h2> <ul> <li>🛠 Updates the prerelease CPytho...
https://api.github.com/repos/pandas-dev/pandas/pulls/54160
2023-07-17T08:33:27Z
2023-07-17T16:12:28Z
2023-07-17T16:12:28Z
2023-07-17T18:12:58Z
BUG: read_xml stripping whitespace in string data
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c3dff0c2e8449..ce42a8020a7b2 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -519,6 +519,7 @@ I/O - Bug in :func:`read_html`, style elements were read into DataFrames (:issue:`52197`) - Bug in :func:...
- [X] closes #53811 - [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]...
https://api.github.com/repos/pandas-dev/pandas/pulls/54159
2023-07-17T00:18:43Z
2023-07-17T16:54:17Z
2023-07-17T16:54:17Z
2023-07-17T17:55:15Z
Bug 54134
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c5df78f845ebc..4f4cff505d322 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -619,6 +619,7 @@ Other - Bug in :meth:`Series.map` when giving a callable to an empty series, the returned series had ``obj...
- [X] closes #54134 - [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]...
https://api.github.com/repos/pandas-dev/pandas/pulls/54158
2023-07-16T23:20:49Z
2023-08-21T19:29:07Z
null
2023-08-21T19:29:08Z
CLN/ASV: reduce size of join_merge.JoinIndex
diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py index ebdf91bf35455..4f325335829af 100644 --- a/asv_bench/benchmarks/join_merge.py +++ b/asv_bench/benchmarks/join_merge.py @@ -171,12 +171,12 @@ def time_join_dataframes_cross(self, sort): class JoinIndex: def setup(self): - ...
The existing `join_merge.JoinIndex.time_left_outer_join_index` ASV joins two frames with indexes containing lots of duplicates resulting in a large result (~25m rows). This is resulting in long (and inconsistent?) run times (700-3000 ms): <img width="304" alt="Screen Shot 2023-07-16 at 12 36 34 PM" src="https://gith...
https://api.github.com/repos/pandas-dev/pandas/pulls/54157
2023-07-16T16:45:19Z
2023-07-17T16:27:15Z
2023-07-17T16:27:15Z
2023-07-24T10:59:13Z
Update grouper.py
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 764b74f81e7ef..f38cc21a1308a 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -125,7 +125,7 @@ class Grouper: Examples -------- - Syntactic sugar for ``df.groupby('A')`` + ``df.groupby...
- [ ] 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/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54156
2023-07-16T16:39:34Z
2023-07-18T17:05:55Z
2023-07-18T17:05:55Z
2023-07-18T17:06:03Z
DEPR: Not passing tuple to get_group when grouping on length-1 list-likes
diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst index 66ee571d6b5a5..c0d2a14507383 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -466,7 +466,7 @@ Unlike agg, apply's callable is passed a sub-DataFrame which gives you access to .. ipyt...
- [x] closes #25971 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54155
2023-07-16T14:29:58Z
2023-08-21T18:32:16Z
2023-08-21T18:32:16Z
2023-08-29T06:01:06Z
DOC: Example missing in pandas.DataFrame.to_html #44945
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a469f4965117b..59d1d23d46f74 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3133,8 +3133,29 @@ def to_html( Examples -------- - >>> df = pd.DataFrame([[1, 2], [3, 4]], columns=['A', 'B']) - >>> df.to_html(...
- [x] closes DOC: Example missing in pandas.DataFrame.to_html #44945 - [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/developme...
https://api.github.com/repos/pandas-dev/pandas/pulls/54153
2023-07-16T04:04:32Z
2023-08-05T18:14:04Z
2023-08-05T18:14:04Z
2023-08-05T18:14:08Z
ASV: update Fillna benchmarks for method parameter deprecation
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index ae7cde961924f..3490f99de2cb2 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -388,7 +388,6 @@ def time_isnull_obj(self): class Fillna: params = ( [True, False...
Updates various `Fillna` benchmarks to not use `method` as `method` has been deprecated in favor of `DataFrame.ffill` and `DataFrame.bfill`. Also, removed `reindex.Fillna` ASV as it was just a subset of `series_methods.Fillna`.
https://api.github.com/repos/pandas-dev/pandas/pulls/54151
2023-07-16T00:43:26Z
2023-07-17T16:59:06Z
2023-07-17T16:59:06Z
2023-07-25T00:15:42Z
DOC: Provide examples of using read_parquet #49739
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 7dd347327f3cc..add06b34f9359 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -90,7 +90,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.NaT \ pandas.read_feather \ pandas.DataFrame.to_feather \ - panda...
- [x] closes #xDOC: Provide examples of using read_parquet #49739 - [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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/54150
2023-07-15T21:39:12Z
2023-07-18T20:16:41Z
2023-07-18T20:16:41Z
2023-07-18T20:16:47Z
TST: Added test for query method with string dtype and null values
diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py index ae199d5c373d5..3ec08b29d2e38 100644 --- a/pandas/tests/frame/test_query_eval.py +++ b/pandas/tests/frame/test_query_eval.py @@ -1070,6 +1070,34 @@ def test_query_string_scalar_variable(self, parser, engine): r = df...
- [x] closes #31516 - [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). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/54149
2023-07-15T19:14:47Z
2023-07-17T17:00:42Z
2023-07-17T17:00:42Z
2023-07-17T17:00:50Z
Add mixed int string entry.
diff --git a/pandas/conftest.py b/pandas/conftest.py index d7e8fbeb9336b..14a107d563d62 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -619,6 +619,7 @@ def _create_mi_with_dt64tz_level(): "tuples": MultiIndex.from_tuples(zip(["foo", "bar", "baz"], [1, 2, 3])), "mi-with-dt64tz-level": _create_mi_w...
- [X] closes #54072 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54148
2023-07-15T18:20:47Z
2023-08-21T19:25:53Z
null
2023-08-21T19:25:54Z
DOC: fix formatting of the validate keyword in DataFrame join docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a469f4965117b..74bd24901603d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10065,11 +10065,13 @@ def join( the order of the join key depends on the join type (how keyword). validate : str, optional If sp...
- [x] closes DOC: fix formatting of the validate keyword in DataFrame join docstring - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/54147
2023-07-15T17:41:02Z
2023-07-17T17:33:40Z
2023-07-17T17:33:40Z
2023-07-17T17:33:47Z
change code block for black
diff --git a/doc/source/development/contributing_documentation.rst b/doc/source/development/contributing_documentation.rst index f064c5eb07a9a..964f82be4fa7b 100644 --- a/doc/source/development/contributing_documentation.rst +++ b/doc/source/development/contributing_documentation.rst @@ -189,9 +189,7 @@ to speed up the...
Quick fix to resolve an underlying issue for #54137 @phofl
https://api.github.com/repos/pandas-dev/pandas/pulls/54146
2023-07-15T17:38:48Z
2023-07-17T17:52:49Z
2023-07-17T17:52:49Z
2023-07-17T17:52:53Z
TEST: Add test to check safe cast between UInt32 and np.uint32
diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py index 07a4e06db2e74..9fb247cdba67a 100644 --- a/pandas/tests/dtypes/test_dtypes.py +++ b/pandas/tests/dtypes/test_dtypes.py @@ -1193,3 +1193,9 @@ def test_multi_column_dtype_assignment(): df["b"] = 0 tm.assert_frame_equal(d...
PR from the SciPy 2023 Sprint session. @noatamir @phofl I implemented a test to check that the casting from `float` type to `UInt32` pandas type raises an error. This should be raising an error, as it is expected that Pandas types do not allow for casting to types that would remove information.
https://api.github.com/repos/pandas-dev/pandas/pulls/54145
2023-07-15T17:37:58Z
2023-08-21T19:27:45Z
null
2023-08-21T19:27:45Z
move indexslice below multiindex
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index e9f986e37ca86..25e5b3b46b4f3 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -251,10 +251,6 @@ IntervalIndex components MultiIndex ---------- -.. autosummary:: - :toctree: api/ - - ...
- [x] closes #50496 - [x] closes https://github.com/pandas-dev/pandas/issues/28871 - [ ] [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-doc...
https://api.github.com/repos/pandas-dev/pandas/pulls/54144
2023-07-15T17:34:54Z
2023-07-17T17:58:24Z
2023-07-17T17:58:24Z
2023-07-17T17:58:30Z
Removed indentation in documentation
diff --git a/doc/source/reference/index.rst b/doc/source/reference/index.rst index bc1202b3d5554..6d3ce3d31f005 100644 --- a/doc/source/reference/index.rst +++ b/doc/source/reference/index.rst @@ -11,18 +11,18 @@ methods. All classes and functions exposed in ``pandas.*`` namespace are public. The following subpackag...
Removed indentation in documentation https://github.com/noatamir/scipy-2023-sprint/issues/8 @phofl, @noatamir
https://api.github.com/repos/pandas-dev/pandas/pulls/54143
2023-07-15T17:21:46Z
2023-07-17T18:01:12Z
2023-07-17T18:01:12Z
2023-07-17T18:01:18Z
DOC: remove double curly braces in the DataFrame.add_prefix docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e0e9048b20a9d..5f63cac50cf19 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4830,7 +4830,7 @@ def add_prefix(self, prefix: str, axis: Axis | None = None) -> Self: ---------- prefix : str The string to...
- [ x] closes "https://github.com/noatamir/scipy-2023-sprint/issues/10" - [ 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/deve...
https://api.github.com/repos/pandas-dev/pandas/pulls/54142
2023-07-15T17:14:15Z
2023-07-16T20:26:05Z
2023-07-16T20:26:05Z
2023-07-16T20:26:13Z
Add type literals to engine argument in groupby aggregations
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 85ec8c1b86374..5f9740b4dcefc 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -351,6 +351,46 @@ class providing the base-class of operations. {example} """ +_groupby_agg_method_engine_template = """...
- [x] closes https://github.com/noatamir/scipy-2023-sprint/issues/7 groupby.py - [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#ty...
https://api.github.com/repos/pandas-dev/pandas/pulls/54141
2023-07-15T17:04:35Z
2023-07-17T17:52:11Z
2023-07-17T17:52:11Z
2023-07-17T17:52:17Z
Typing improvements for MultiIndex
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index ea9bf16a4e951..1961bd83d2fed 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -473,7 +473,7 @@ def _verify_integrity( def from_arrays( cls, arrays, - sortorder=None, + sorto...
SciPy 2023 sprint @phofl @noatamir Typing improvements for MultiIndex #6 - [x] Add sortorder for MultiIndex.from_arrays - [x] Add sortorder for MultiIndex.from_frame - [x] Add names for MultiIndex.from_frame - [x] Add name and names for MultiIndex.copy
https://api.github.com/repos/pandas-dev/pandas/pulls/54140
2023-07-15T17:04:10Z
2023-07-17T01:18:55Z
2023-07-17T01:18:55Z
2023-07-17T01:19:06Z
Scipy 2023 sprint: Added type hints
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 4b6b59898c199..16568ff591528 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -48,7 +48,9 @@ ArrayLike, Axes, Axis, + AxisInt, DropKeep, + Dtype, DtypeObj, F, IgnoreRaise, @...
Added type hints during the SciPy 2023 sprint. https://github.com/noatamir/scipy-2023-sprint/issues/5 - [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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/54139
2023-07-15T16:53:09Z
2023-08-21T19:27:25Z
null
2023-08-21T19:27:26Z
add test for GH#28871
diff --git a/pandas/tests/frame/indexing/test_setitem.py b/pandas/tests/frame/indexing/test_setitem.py index 6060f6b5e278a..c5cf792b30d64 100644 --- a/pandas/tests/frame/indexing/test_setitem.py +++ b/pandas/tests/frame/indexing/test_setitem.py @@ -1317,3 +1317,18 @@ def test_setitem_frame_dup_cols_dtype(self): ...
- [x] closes #28871 - [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). Sc...
https://api.github.com/repos/pandas-dev/pandas/pulls/54138
2023-07-15T16:44:59Z
2023-07-17T17:38:42Z
2023-07-17T17:38:42Z
2023-07-17T17:38:42Z
FIX: Add pre-commit Blacken-docs hooks
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 366db4337b0e1..69562854ef495 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.277 + rev: v0.0.278 ...
- [x] Part of #46865 (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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/54137
2023-07-15T16:35:47Z
2023-08-17T15:56:00Z
null
2023-08-17T15:56:00Z
Update the double quotes for the NA value to single quotes
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index d1fc29b9d317b..7fad2b779ab28 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -98,7 +98,7 @@ URL schemes include http, ftp, s3, gs, and file. For file URLs, a host is expected. A local file could be: ...
- [x] closes #54107 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/54136
2023-07-15T16:34:21Z
2023-07-21T07:59:29Z
2023-07-21T07:59:29Z
2023-07-21T07:59:34Z
Add type literal to engine argument in rolling functions
diff --git a/pandas/core/window/expanding.py b/pandas/core/window/expanding.py index ec4c23bfc5e49..aac10596ffc69 100644 --- a/pandas/core/window/expanding.py +++ b/pandas/core/window/expanding.py @@ -5,6 +5,7 @@ TYPE_CHECKING, Any, Callable, + Literal, ) from pandas.util._decorators import ( @@ -...
- [x] closes https://github.com/noatamir/scipy-2023-sprint/issues/7 rolling.py - [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#ty...
https://api.github.com/repos/pandas-dev/pandas/pulls/54135
2023-07-15T16:14:47Z
2023-07-17T17:36:19Z
2023-07-17T17:36:19Z
2023-07-17T17:36:19Z