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
CLN: Refactor validate_min_versions_in_sync.py
diff --git a/scripts/validate_min_versions_in_sync.py b/scripts/validate_min_versions_in_sync.py index 9edce3a00a502..dfd6ee5ee0b1d 100755 --- a/scripts/validate_min_versions_in_sync.py +++ b/scripts/validate_min_versions_in_sync.py @@ -37,10 +37,7 @@ YAML_PATH = pathlib.Path("ci/deps") ENV_PATH = pathlib.Path("envir...
- Follow up pull request for #51189
https://api.github.com/repos/pandas-dev/pandas/pulls/51981
2023-03-15T04:32:53Z
2023-03-17T17:42:41Z
2023-03-17T17:42:41Z
2023-03-17T17:42:49Z
BUG: map method on datetimelikes should not work arraywise
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 5ee61d3df1062..99fa9c0ca75c6 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -137,13 +137,13 @@ Categorical Datetimelike ^^^^^^^^^^^^ - Bug in :meth:`Timestamp.round` with values close to the implem...
- [x] closes #51977 - [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/51979
2023-03-15T03:01:49Z
2023-03-17T17:55:43Z
2023-03-17T17:55:43Z
2023-03-17T18:08:17Z
BUG/API: preserve non-nano in factorize/unique
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c927dc2ac4a96..2d499b6e3dd4a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -767,6 +767,7 @@ Other API changes - Division by zero with :class:`ArrowDtype` dtypes returns ``-inf``, ``nan``, or ``inf``...
- [ ] closes #51961 (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/51978
2023-03-15T02:32:48Z
2023-03-15T21:10:55Z
2023-03-15T21:10:54Z
2023-03-16T00:02:46Z
BUG: read_csv for arrow with mismatching dtypes does not work
diff --git a/pandas/io/parsers/c_parser_wrapper.py b/pandas/io/parsers/c_parser_wrapper.py index 4b8bc5c402157..3d3e343050421 100644 --- a/pandas/io/parsers/c_parser_wrapper.py +++ b/pandas/io/parsers/c_parser_wrapper.py @@ -23,8 +23,10 @@ is_categorical_dtype, pandas_dtype, ) -from pandas.core.dtypes.concat...
- [x] closes #51876 (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/51976
2023-03-15T01:12:14Z
2023-03-15T17:58:02Z
2023-03-15T17:58:02Z
2023-03-15T18:07:28Z
BUG: astype_view check raising on minimum versions build
diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py index cd91f06d7ff04..09e338d205bbc 100644 --- a/pandas/core/dtypes/astype.py +++ b/pandas/core/dtypes/astype.py @@ -263,6 +263,9 @@ def astype_is_view(dtype: DtypeObj, new_dtype: DtypeObj) -> bool: ------- True if new data is a view or n...
- [ ] 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/51974
2023-03-14T22:30:54Z
2023-03-15T10:25:15Z
2023-03-15T10:25:15Z
2023-03-15T10:25:19Z
CLN: Assorted
diff --git a/.gitignore b/.gitignore index 07b1f056d511b..88ed58b70925d 100644 --- a/.gitignore +++ b/.gitignore @@ -53,6 +53,9 @@ dist # type checkers pandas/py.typed +# pyenv +.python-version + # tox testing tool .tox # rope diff --git a/pandas/_libs/tslibs/src/datetime/np_datetime.c b/pandas/_libs/tslibs/src/...
- [ ] 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/51973
2023-03-14T22:11:38Z
2023-03-17T22:01:05Z
2023-03-17T22:01:05Z
2023-03-18T00:05:42Z
BLD: Try g0 on macos?
diff --git a/pyproject.toml b/pyproject.toml index 90e5292aaf913..d5e72c55afe46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,7 +143,7 @@ parentdir_prefix = "pandas-" [tool.cibuildwheel] skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*" build-verbosity = "3" -environment = { LD...
- [ ] closes #51900 (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/51971
2023-03-14T21:44:14Z
2023-03-15T17:12:13Z
2023-03-15T17:12:13Z
2023-03-15T17:24:06Z
REF/TYP: avoid need for NDFrameTb
diff --git a/pandas/_typing.py b/pandas/_typing.py index 9d64842373573..3d9872c55ca2d 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -131,9 +131,6 @@ # Series is passed into a function, a Series is always returned and if a DataFrame is # passed in, a DataFrame is always returned. NDFrameT = TypeVar("NDFra...
We have a method align_as_utc that implemented at the module-level instead of as a method, requiring some annotation gymnastics. This refactors so that it is only used in one place instead of two, then inlines the function inside `align`.
https://api.github.com/repos/pandas-dev/pandas/pulls/51969
2023-03-14T19:03:51Z
2023-03-15T16:11:51Z
2023-03-15T16:11:51Z
2023-03-15T16:22:30Z
DEPR: method, limit, fill_axis keywords in align
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 5ee61d3df1062..e63d9c7b85a55 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -102,6 +102,7 @@ Deprecations - Deprecated ``axis=1`` in :meth:`DataFrame.groupby` and in :class:`Grouper` constructor, do ...
- [ ] 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/51968
2023-03-14T18:54:35Z
2023-03-16T00:14:32Z
2023-03-16T00:14:32Z
2023-03-16T00:51:53Z
Series.plot doesn't allow color=None
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 410a324be829e..2434da4123e9c 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -195,7 +195,7 @@ Period Plotting ^^^^^^^^ -- +- Bug in :meth:`Series.plot` when invoked with ``color=None`` (:issue:`519...
- [X] closes #51953 - [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/51967
2023-03-14T17:20:09Z
2023-03-15T20:05:25Z
2023-03-15T20:05:25Z
2023-03-16T01:03:02Z
CoW: __array__ not recognizing ea dtypes
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bb3573d148e98..2d8627722280e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -103,6 +103,7 @@ validate_inclusive, ) +from pandas.core.dtypes.astype import astype_is_view from pandas.core.dtypes.common import ( ensure_ob...
- [ ] 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/51966
2023-03-14T15:32:09Z
2023-04-02T14:11:13Z
2023-04-02T14:11:13Z
2023-04-02T14:11:52Z
Backport PR #51871 on branch 2.0.x (ERR: Check that dtype_backend is valid)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 495f151dd47eb..9b426dd2448e2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -94,6 +94,7 @@ from pandas.util._decorators import doc from pandas.util._exceptions import find_stack_level from pandas.util._validators import ( + ch...
- [ ] 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/51964
2023-03-14T14:06:51Z
2023-03-14T16:43:03Z
2023-03-14T16:43:03Z
2023-03-15T20:03:53Z
Backport PR #51944 on branch 2.0.x (BUG: CoW not tracking references when indexing midx with slice)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0fae6dca08aae..6650077355615 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -206,6 +206,9 @@ Copy-on-Write improvements - Arithmetic operations that can be inplace, e.g. ``ser *= 2`` will now respect...
Backport PR #51944: BUG: CoW not tracking references when indexing midx with slice
https://api.github.com/repos/pandas-dev/pandas/pulls/51963
2023-03-14T13:15:41Z
2023-03-14T16:42:52Z
2023-03-14T16:42:52Z
2023-03-14T16:42:53Z
Backport PR #51945 on branch 2.0.x (BUG: swapaxes creating result with read_only array)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 495f151dd47eb..f97ec256a1c5d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -748,7 +748,7 @@ def swapaxes( mapping = {i: j, j: i} new_axes = [self._get_axis(mapping.get(k, k)) for k in range(self._AXIS_LEN)] - ...
Backport PR #51945: BUG: swapaxes creating result with read_only array
https://api.github.com/repos/pandas-dev/pandas/pulls/51962
2023-03-14T13:15:31Z
2023-03-14T16:42:39Z
2023-03-14T16:42:39Z
2023-03-14T16:42:40Z
DEPR: DataFrame.swapaxes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 1f5c3c88c5ff5..71fda39a05e55 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -114,6 +114,7 @@ Deprecations - Deprecated 'method', 'limit', and 'fill_axis' keywords in :meth:`DataFrame.align` and :meth...
- [x] closes #51946 (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/51960
2023-03-14T10:38:37Z
2023-03-25T20:44:00Z
2023-03-25T20:44:00Z
2023-03-26T00:07:37Z
Backport PR #51917 on branch 2.0.x (Series.astype(np.integer) doesn't show numpy warning)
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 3be290ca2dfac..4b33fd8ed412c 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -7,6 +7,7 @@ Any, Callable, ) +import warnings import numpy as np @@ -1678,7 +1679,12 @@ def pandas_dtype(dtype) -> ...
Backport PR #51917: Series.astype(np.integer) doesn't show numpy warning
https://api.github.com/repos/pandas-dev/pandas/pulls/51958
2023-03-14T02:23:16Z
2023-03-14T04:25:49Z
2023-03-14T04:25:49Z
2023-03-14T04:25:50Z
Backport PR #51943 on branch 2.0.x (BUG: Count creates result with read_only array)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 36fd0dda5d2bc..00518647baf1e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10408,7 +10408,7 @@ def count(self, axis: Axis = 0, numeric_only: bool = False): else: # GH13407 series_counts = not...
Backport PR #51943: BUG: Count creates result with read_only array
https://api.github.com/repos/pandas-dev/pandas/pulls/51957
2023-03-14T00:53:55Z
2023-03-14T04:25:37Z
2023-03-14T04:25:37Z
2023-03-14T04:25:37Z
Backport PR #51949 on branch 2.0.x (CI: Remove workflows on 1.5.x branch)
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index 4e363c7fd573d..08026a5fd637f 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -5,12 +5,10 @@ on: branches: - main - 2.0.x - - 1.5.x pull_request: branches...
Backport PR #51949: CI: Remove workflows on 1.5.x branch
https://api.github.com/repos/pandas-dev/pandas/pulls/51956
2023-03-14T00:52:09Z
2023-03-14T02:23:29Z
2023-03-14T02:23:29Z
2023-03-14T02:23:30Z
Add replace test for nil gh32075
diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py index 466d48fba4779..ad89ccd6e3c60 100644 --- a/pandas/tests/frame/methods/test_replace.py +++ b/pandas/tests/frame/methods/test_replace.py @@ -1498,6 +1498,13 @@ def test_replace_value_none_dtype_numeric(self, val): ...
- [ ] closes #32075 - [ ] [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).
https://api.github.com/repos/pandas-dev/pandas/pulls/51954
2023-03-14T00:32:11Z
2023-03-14T16:51:10Z
2023-03-14T16:51:10Z
2023-03-14T22:53:59Z
Revert "Re-enable parallel builds in CI"
diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh index 7f82b613f8cb8..52a8cab1cd2de 100755 --- a/.circleci/setup_env.sh +++ b/.circleci/setup_env.sh @@ -55,7 +55,8 @@ if pip list | grep -q ^pandas; then fi echo "Build extensions" -python setup.py build_ext -q -j4 +# GH 47305: Parallel build can causes f...
Reverts pandas-dev/pandas#51902 Depends on #51525 which is reverted by #51951
https://api.github.com/repos/pandas-dev/pandas/pulls/51952
2023-03-13T23:26:53Z
2023-03-14T23:23:57Z
2023-03-14T23:23:57Z
2023-03-15T02:33:59Z
Revert "Use PyCapsule for internal datetime functions"
diff --git a/MANIFEST.in b/MANIFEST.in index 361cd8ff9ec22..d2b1b8cb887bc 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -58,5 +58,3 @@ prune pandas/tests/io/parser/data # Selectively re-add *.cxx files that were excluded above graft pandas/_libs/src graft pandas/_libs/tslibs/src -include pandas/_libs/pd_parser.h -in...
Reverts pandas-dev/pandas#51525 This is making #50960 a PITA.
https://api.github.com/repos/pandas-dev/pandas/pulls/51951
2023-03-13T23:26:33Z
2023-03-14T23:23:39Z
2023-03-14T23:23:39Z
2023-03-15T16:52:20Z
BUG: Series.getitem not respecting CoW with MultiIndex
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 200ba9af508b6..df9b828d702b1 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -209,6 +209,9 @@ Copy-on-Write improvements - :meth:`DataFrame.__getitem__` will now respect the Copy-on-Write mechanism wh...
- [ ] 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/51950
2023-03-13T23:15:51Z
2023-03-15T22:36:30Z
2023-03-15T22:36:30Z
2023-03-15T22:36:34Z
CI: Remove workflows on 1.5.x branch
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml index e14be521ff523..03925991ec632 100644 --- a/.github/workflows/32-bit-linux.yml +++ b/.github/workflows/32-bit-linux.yml @@ -5,12 +5,10 @@ on: branches: - main - 2.0.x - - 1.5.x pull_request: branches...
Additionally freezes the `python-dev` workflow by using `if: False` instead of commenting out branches
https://api.github.com/repos/pandas-dev/pandas/pulls/51949
2023-03-13T23:06:23Z
2023-03-14T00:51:59Z
2023-03-14T00:51:59Z
2023-03-14T00:52:44Z
ENH include the first incompatible key in error message when merging
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 7e8403c94ceef..b3ea6fbd4ae2d 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -32,7 +32,8 @@ Other enhancements - :meth:`MultiIndex.sortlevel` and :meth:`Index.sortlevel` gained a new keyword ``na_posi...
- [x] Closes #51861 - [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/51947
2023-03-13T22:57:45Z
2023-03-14T17:41:56Z
2023-03-14T17:41:55Z
2023-09-23T13:26:55Z
BUG: swapaxes creating result with read_only array
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5b77bb9651073..de99effdfe579 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -750,7 +750,7 @@ def swapaxes( mapping = {i: j, j: i} new_axes = [self._get_axis(mapping.get(k, k)) for k in range(self._AXIS_LEN)] - ...
- [ ] 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/51945
2023-03-13T22:40:04Z
2023-03-14T13:14:54Z
2023-03-14T13:14:54Z
2023-03-14T13:15:42Z
BUG: CoW not tracking references when indexing midx with slice
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ea7bc06746689..c71301a2714ca 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -206,6 +206,9 @@ Copy-on-Write improvements - Arithmetic operations that can be inplace, e.g. ``ser *= 2`` will now respect...
- [ ] 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/51944
2023-03-13T22:39:24Z
2023-03-14T13:15:24Z
2023-03-14T13:15:24Z
2023-03-14T13:15:32Z
BUG: Count creates result with read_only array
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 70019030da182..2052d84b1e6ff 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10870,7 +10870,7 @@ def count(self, axis: Axis = 0, numeric_only: bool = False): else: # GH13407 series_counts = not...
- [ ] 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/51943
2023-03-13T22:38:31Z
2023-03-14T00:53:47Z
2023-03-14T00:53:47Z
2023-03-14T10:51:36Z
TST: Avoid datetime.now in tests for DST dependence
diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py index 1848872335518..eaeef4d00e23e 100644 --- a/pandas/tests/dtypes/cast/test_promote.py +++ b/pandas/tests/dtypes/cast/test_promote.py @@ -374,10 +374,10 @@ def test_maybe_promote_any_with_datetime64(any_numpy_dtype, fill_...
Looks like this test failed over the weekend due to DST: https://github.com/pandas-dev/pandas/actions/runs/4395351454/jobs/7697080729
https://api.github.com/repos/pandas-dev/pandas/pulls/51942
2023-03-13T22:25:07Z
2023-03-14T11:52:54Z
2023-03-14T11:52:54Z
2023-03-14T16:35:45Z
Backport PR #51931 on branch 2.0.x (BLD: Try strip-all instead of strip-debug)
diff --git a/pyproject.toml b/pyproject.toml index 51236159b1f74..5e5da840c2835 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,7 +143,7 @@ parentdir_prefix = "pandas-" [tool.cibuildwheel] skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*" build-verbosity = "3" -environment = { LD...
Backport PR #51931: BLD: Try strip-all instead of strip-debug
https://api.github.com/repos/pandas-dev/pandas/pulls/51938
2023-03-13T20:02:50Z
2023-03-13T22:16:12Z
2023-03-13T22:16:12Z
2023-03-13T22:16:12Z
Backport PR #51832 on branch 2.0.x (BUG / CoW: Series.view not respecting CoW)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 317eca7dc8723..e829d1f4c986b 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -221,6 +221,8 @@ Copy-on-Write improvements - Arithmetic operations that can be inplace, e.g. ``ser *= 2`` will now respect...
Backport PR #51832: BUG / CoW: Series.view not respecting CoW
https://api.github.com/repos/pandas-dev/pandas/pulls/51937
2023-03-13T19:18:10Z
2023-03-13T21:00:03Z
2023-03-13T21:00:03Z
2023-03-13T21:00:03Z
BUG/API: DTI/TDI/PI.map na_action="ignore"
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index c6783e46faaee..4e4ac14c37961 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -140,13 +140,17 @@ Categorical Datetimelike ^^^^^^^^^^^^ - Bug in :meth:`Timestamp.round` with values close to the implem...
- [x] closes #51644 - [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/51936
2023-03-13T19:02:14Z
2023-03-20T17:04:24Z
2023-03-20T17:04:24Z
2023-03-20T21:16:15Z
Backport PR #51853 on branch 2.0.x (Remove use_nullable_dtypes and add dtype_backend keyword)
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 3c3a655626bb6..c4e5ad773ca09 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -170,12 +170,15 @@ dtype : Type name or dict of column -> type, default ``None`` the default determines the dtype of the colum...
- [ ] 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/51935
2023-03-13T18:46:23Z
2023-03-13T22:16:32Z
2023-03-13T22:16:32Z
2023-03-14T14:04:35Z
REF: move ExtensionIndex.map to be part of DatetimeLikeArrayMixin.map
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 5295f89626e04..b1e2cdd104937 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -119,6 +119,7 @@ from pandas.core.algorithms import ( checked_add_with_arr, isin, + map_array,...
Follow-up to #51809. `ExtensionIndex.map` is only used by the datetime-like indexes (`DatetimeIndex.map` etc.) and contains no index-specific functionality, so shouldn't be an index method. By moving this method to `DatetimeLikeArrayMixin.map` we simplify the code paths quite a bit when dealing with `DatetimeArra...
https://api.github.com/repos/pandas-dev/pandas/pulls/51934
2023-03-13T18:31:58Z
2023-03-14T18:01:33Z
2023-03-14T18:01:33Z
2023-03-14T18:13:57Z
Backport PR #51082 on branch 2.0.x (API / CoW: return read-only numpy arrays in .values/to_numpy())
diff --git a/pandas/core/base.py b/pandas/core/base.py index f83825d5ef6e1..a454bfce279f4 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -20,6 +20,8 @@ import numpy as np +from pandas._config import using_copy_on_write + from pandas._libs import lib from pandas._typing import ( Axis, @@ -545,...
Backport PR #51082: API / CoW: return read-only numpy arrays in .values/to_numpy()
https://api.github.com/repos/pandas-dev/pandas/pulls/51933
2023-03-13T17:50:30Z
2023-03-13T21:00:34Z
2023-03-13T21:00:34Z
2023-03-13T21:00:35Z
DOC: add examples to offsets CustomBusinessDay, Business/MonthBegin
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 9b626b9ee4f6a..d780cf0c4ffe3 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -2574,11 +2574,28 @@ cdef class MonthBegin(MonthOffset): """ DateOffset of one month at beginning. + Mont...
This pr is related to pr #50182, #49958 and #50027. - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Updated docs for `BusinessMonthBegin`, `CustomBusinessDay` and `MonthBegin`. Added more examples to highlight “the first day of the month” ...
https://api.github.com/repos/pandas-dev/pandas/pulls/51932
2023-03-13T16:20:04Z
2023-03-15T16:36:42Z
2023-03-15T16:36:42Z
2023-03-15T16:36:42Z
BLD: Try strip-all instead of strip-debug
diff --git a/pyproject.toml b/pyproject.toml index 16143706196ef..90e5292aaf913 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -143,7 +143,7 @@ parentdir_prefix = "pandas-" [tool.cibuildwheel] skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*" build-verbosity = "3" -environment = { LD...
- [ ] 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/51931
2023-03-13T15:38:57Z
2023-03-13T20:02:41Z
2023-03-13T20:02:41Z
2023-03-13T20:02:43Z
Backport PR #51918 on branch 2.0.x (Replace deprecated BadZipfile with BadZipFile)
diff --git a/pandas/tests/io/parser/test_compression.py b/pandas/tests/io/parser/test_compression.py index 121784d5a45ed..ab00e31bd9b43 100644 --- a/pandas/tests/io/parser/test_compression.py +++ b/pandas/tests/io/parser/test_compression.py @@ -85,7 +85,7 @@ def test_zip_error_invalid_zip(parser_and_data): with ...
Backport PR #51918: Replace deprecated BadZipfile with BadZipFile
https://api.github.com/repos/pandas-dev/pandas/pulls/51927
2023-03-13T11:56:51Z
2023-03-13T15:26:18Z
2023-03-13T15:26:18Z
2023-03-13T15:26:19Z
CoW: change ChainedAssignmentError exception to a warning
diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst index 94dde9a6ffd70..b1d9166782128 100644 --- a/doc/source/user_guide/copy_on_write.rst +++ b/doc/source/user_guide/copy_on_write.rst @@ -114,10 +114,11 @@ two subsequent indexing operations, e.g. The column ``foo`` is updat...
See https://github.com/pandas-dev/pandas/issues/51315 for context. Currently the detection gives false positives if the changed assignment comes from cython code. Therefore, changing this to a warning to still allow more broadly testing this without causing failures.
https://api.github.com/repos/pandas-dev/pandas/pulls/51926
2023-03-13T11:01:26Z
2023-03-15T15:29:08Z
2023-03-15T15:29:08Z
2023-03-15T15:47:00Z
PERF: Reject non-string object arrays faster in factorize
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index eef81242abc7c..2584e1f13853a 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -23,6 +23,7 @@ class Factorize: "uint", "float", "object", + ...
- [ ] 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/51921
2023-03-13T00:27:22Z
2023-03-13T17:11:11Z
2023-03-13T17:11:11Z
2023-03-14T12:15:53Z
Replace deprecated BadZipfile with BadZipFile
diff --git a/pandas/tests/io/parser/test_compression.py b/pandas/tests/io/parser/test_compression.py index 121784d5a45ed..ab00e31bd9b43 100644 --- a/pandas/tests/io/parser/test_compression.py +++ b/pandas/tests/io/parser/test_compression.py @@ -85,7 +85,7 @@ def test_zip_error_invalid_zip(parser_and_data): with ...
- [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 an entry in th...
https://api.github.com/repos/pandas-dev/pandas/pulls/51918
2023-03-12T17:07:42Z
2023-03-13T11:56:13Z
2023-03-13T11:56:13Z
2023-03-13T11:58:19Z
Series.astype(np.integer) doesn't show numpy warning
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 6802cf096e868..23bc0e6280e27 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -8,6 +8,7 @@ Any, Callable, ) +import warnings import numpy as np @@ -1694,7 +1695,12 @@ def pandas_dtype(dtype) -> ...
- [X] closes #51523 - [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/51917
2023-03-12T16:34:21Z
2023-03-14T02:23:08Z
2023-03-14T02:23:08Z
2023-03-14T17:27:11Z
DOC Trying to improve Group by split-apply-combine guide
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 56e62ba20e030..4ec7bfeed93c1 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -31,20 +31,20 @@ following: * Filling NAs within groups with a value derived from each group. * **Filtra...
- [ ] 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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51916
2023-03-12T15:09:46Z
2023-03-18T14:36:45Z
2023-03-18T14:36:45Z
2023-03-19T12:55:41Z
TYP: misc return types
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index 2de970466e19f..0408dfd83fedc 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -9,7 +9,6 @@ Callable, Hashable, Literal, - TypeVar, ) import numpy as...
xref #47521 Most changes are from renaming `T` to `_<class>T`.
https://api.github.com/repos/pandas-dev/pandas/pulls/51912
2023-03-11T23:31:00Z
2023-03-14T02:25:10Z
2023-03-14T02:25:10Z
2023-03-14T02:25:17Z
CI: parallel build follow up
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 23bb988ef4d73..11601564c5d79 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -16,7 +16,5 @@ runs: python -m pip install -e . --no-build-isolation --no-use-p...
Follow up to https://github.com/pandas-dev/pandas/pull/51902/ Also added strict channel priority back to conda env creation.
https://api.github.com/repos/pandas-dev/pandas/pulls/51911
2023-03-11T20:45:37Z
2023-03-12T02:36:38Z
2023-03-12T02:36:38Z
2023-03-12T02:36:42Z
DOC: add example for sparse.density and sparse.coo
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8fefa47c16bab..eeaa277b1ab2c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -547,8 +547,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DataFrame.last_valid_index \ pandas.DataFrame.attrs \ pandas.DataFrame...
- [ ] 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 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51909
2023-03-11T19:25:20Z
2023-03-16T18:10:53Z
2023-03-16T18:10:53Z
2023-03-16T22:44:34Z
Update integer_na.rst with multiple improvements.
diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst index cda1d0181b789..a3ccb5b0d4019 100644 --- a/doc/source/user_guide/integer_na.rst +++ b/doc/source/user_guide/integer_na.rst @@ -32,7 +32,7 @@ implemented within pandas. arr = pd.array([1, 2, None], dtype=pd.Int64Dtype()) ...
updating and improving multiple problems in the documentation. - [ ] 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...
https://api.github.com/repos/pandas-dev/pandas/pulls/51907
2023-03-11T17:10:39Z
2023-03-13T17:12:20Z
2023-03-13T17:12:20Z
2023-03-13T17:12:29Z
DOC: typo fix contributing_environment
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index a648b18a554ee..d870c67d37e2c 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -21,7 +21,7 @@ locally before pushing yo...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Just a small typo fixed in the contributing_environment docs
https://api.github.com/repos/pandas-dev/pandas/pulls/51906
2023-03-11T16:48:56Z
2023-03-11T16:52:22Z
2023-03-11T16:52:22Z
2023-03-11T16:53:12Z
ENH: add LaTeX math mode with parentheses
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 3a749708fb526..c65f346f85dff 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -38,6 +38,7 @@ Other enhancements - Let :meth:`DataFrame.to_feather` accept a non-default :class:`Index` and non-string col...
This pr is related to pr #50398 - [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-com...
https://api.github.com/repos/pandas-dev/pandas/pulls/51903
2023-03-11T13:16:55Z
2023-03-31T17:25:16Z
2023-03-31T17:25:16Z
2023-03-31T17:25:23Z
Re-enable parallel builds in CI
diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh index 52a8cab1cd2de..7f82b613f8cb8 100755 --- a/.circleci/setup_env.sh +++ b/.circleci/setup_env.sh @@ -55,8 +55,7 @@ if pip list | grep -q ^pandas; then fi echo "Build extensions" -# GH 47305: Parallel build can causes flaky ImportError from pandas/_libs...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/51902
2023-03-11T12:40:18Z
2023-03-11T19:38:13Z
2023-03-11T19:38:13Z
2023-03-12T02:13:29Z
DEPR: DataFrame.resample axis parameter
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index db900ddd1f85b..0cb1641e40e05 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -107,6 +107,7 @@ Deprecations - Deprecated accepting slices in :meth:`DataFrame.take`, call ``obj[slicer]`` or pass a seque...
- [X] closes #51778(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/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/51901
2023-03-11T08:18:50Z
2023-03-23T23:32:00Z
2023-03-23T23:32:00Z
2023-03-23T23:36:06Z
assert_frame_equal for set
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 3f898ca23bd6f..aff30d113438e 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -240,11 +240,10 @@ Styler Other ^^^^^ -- +- Bug in :func:`assert_almost_equal` now throwing assertion error for two uneq...
- [x] closes #51727 - [x] [Tests added and passed] - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/51899
2023-03-11T06:14:30Z
2023-03-20T09:09:36Z
2023-03-20T09:09:36Z
2023-03-20T09:09:54Z
DEPS: Address np.cumproduct deprecation
diff --git a/pandas/core/reshape/util.py b/pandas/core/reshape/util.py index 1154940f2c4a6..a92b439927fff 100644 --- a/pandas/core/reshape/util.py +++ b/pandas/core/reshape/util.py @@ -41,7 +41,7 @@ def cartesian_product(X) -> list[np.ndarray]: return [] lenX = np.fromiter((len(x) for x in X), dtype=np....
Looks to be failing on the 2.0.x branch: https://github.com/pandas-dev/pandas/actions/runs/4387938078/jobs/7683838893
https://api.github.com/repos/pandas-dev/pandas/pulls/51897
2023-03-11T02:09:17Z
2023-03-11T05:43:26Z
2023-03-11T05:43:26Z
2023-03-11T05:43:29Z
BUG: disallow resample with non-Tick on TimedeltaIndex
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 2dea25d6f10f4..e74629e63f2c7 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -200,6 +200,7 @@ Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ - Bug in :meth:`DataFrameGroupBy.idxmin`, :meth:`Series...
- [ ] 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/51896
2023-03-11T01:12:26Z
2023-03-13T19:35:41Z
2023-03-13T19:35:41Z
2023-03-13T19:39:16Z
BUG: Fix getitem dtype preservation with multiindexes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b0e9fa2cea0ee..742324c18428f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -347,8 +347,8 @@ Missing MultiIndex ^^^^^^^^^^ +- Bug in :meth:`DataFrame.__getitem__` not preserving dtypes for :class:...
- [x] closes #51261 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] ~~Added [type annotations](https://pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/51895
2023-03-11T01:01:31Z
2023-04-25T17:27:05Z
2023-04-25T17:27:05Z
2023-09-16T01:26:30Z
CI/STYLE: Add auto-fix to ruff
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f10cfac5f1276..98dc671a8b35f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,7 @@ repos: rev: v0.0.253 hooks: - id: ruff + args: [--exit-non-zero-on-fix] - repo: https://github.com/jendrikseip...
- [x] closes #51814 (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/51894
2023-03-11T00:56:16Z
2023-03-12T08:42:22Z
2023-03-12T08:42:22Z
2023-03-12T10:11:36Z
Backport PR #51886 on branch 2.0.x (CI: Pin moto image to specific version)
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 2ca22e6356b11..7e91ff8051148 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -141,7 +141,7 @@ jobs: - 5432:5432 moto: - image: motoserver/moto + image: motoserver/moto:4.1.4 ...
Backport PR #51886: CI: Pin moto image to specific version
https://api.github.com/repos/pandas-dev/pandas/pulls/51893
2023-03-11T00:47:06Z
2023-03-11T03:24:21Z
2023-03-11T03:24:21Z
2023-03-11T03:24:22Z
DOC: change 8610 -> 8601 in Timestamp.isoformat() docstring
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index 398f26723b508..fb351f1e41f60 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -978,7 +978,7 @@ cdef class _Timestamp(ABCTimestamp): def isoformat(self, sep: str = "T", timespec: s...
- [ ] 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/51890
2023-03-10T21:16:36Z
2023-03-10T21:30:18Z
2023-03-10T21:30:18Z
2023-03-10T21:32:07Z
DOC: Fix dangling hyphens.
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 1d0232c80ffcc..165be2a092535 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -377,8 +377,8 @@ aggregations for step functions defined over real numbers, datetime and timedelt xarray brings the labeled data power of pandas ...
Dangling hyphens gets rendered with a space, see screenshot: ![Screenshot 2023-03-10 at 21-46-19 pandas ecosystem — pandas 1 5 3 documentation](https://user-images.githubusercontent.com/239510/224425105-e9cef4ea-2aac-4e99-bb80-ea164947453f.png) It's currently been added sphinx-lint side in https://github.com/sphi...
https://api.github.com/repos/pandas-dev/pandas/pulls/51889
2023-03-10T20:47:07Z
2023-03-11T01:57:58Z
2023-03-11T01:57:58Z
2023-03-11T01:58:05Z
fixed "pandas/util/*" = ["TCH"]
diff --git a/pandas/util/_print_versions.py b/pandas/util/_print_versions.py index 2526fafe5851f..e3cd3a3f227a2 100644 --- a/pandas/util/_print_versions.py +++ b/pandas/util/_print_versions.py @@ -7,8 +7,11 @@ import platform import struct import sys +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from p...
- [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/51888
2023-03-10T20:11:12Z
2023-03-11T10:43:24Z
2023-03-11T10:43:24Z
2023-03-11T14:05:19Z
Backport PR #51854 on branch 2.0.x (ENH: Add misc pyarrow types to ArrowDtype.type)
diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py index b6515c2875718..33b13b895b7c8 100644 --- a/pandas/core/arrays/arrow/dtype.py +++ b/pandas/core/arrays/arrow/dtype.py @@ -27,6 +27,7 @@ StorageExtensionDtype, register_extension_dtype, ) +from pandas.core.dtypes.dtypes imp...
Backport PR #51854: ENH: Add misc pyarrow types to ArrowDtype.type
https://api.github.com/repos/pandas-dev/pandas/pulls/51887
2023-03-10T19:49:44Z
2023-03-10T21:53:32Z
2023-03-10T21:53:32Z
2023-03-10T21:53:33Z
CI: Pin moto image to specific version
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 951cf24c2168d..1b82816796e10 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -142,7 +142,7 @@ jobs: - 5432:5432 moto: - image: motoserver/moto + image: motoserver/moto:4.1.4 ...
Should help fix the failing `single_cpu` builds
https://api.github.com/repos/pandas-dev/pandas/pulls/51886
2023-03-10T19:46:44Z
2023-03-11T00:46:56Z
2023-03-11T00:46:56Z
2023-03-11T00:46:59Z
Backport PR #51877 on branch 2.0.x (CI/DEPS: Use np.prod in tests for np deprecation)
diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py index d7ee7744ebcd4..34f7b756bfb40 100644 --- a/pandas/tests/resample/test_datetime_index.py +++ b/pandas/tests/resample/test_datetime_index.py @@ -1843,7 +1843,7 @@ def test_resample_apply_product(duplicates, unit)...
Backport PR #51877: CI/DEPS: Use np.prod in tests for np deprecation
https://api.github.com/repos/pandas-dev/pandas/pulls/51884
2023-03-10T18:23:41Z
2023-03-10T19:58:19Z
2023-03-10T19:58:19Z
2023-03-10T19:58:19Z
DOC update DataFrame.to_csv write modes (#51839)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 95ac522833b35..cbe270d143aee 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3635,9 +3635,14 @@ def to_csv( sequence should be given if the object uses MultiIndex. If False do not print fields for index nam...
- [ ] closes #51839
https://api.github.com/repos/pandas-dev/pandas/pulls/51881
2023-03-10T15:02:43Z
2023-03-17T18:04:21Z
2023-03-17T18:04:21Z
2023-03-17T18:04:30Z
CI/DEPS: Use np.prod in tests for np deprecation
diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py index 3c46887dad859..01e11c779e957 100644 --- a/pandas/tests/resample/test_datetime_index.py +++ b/pandas/tests/resample/test_datetime_index.py @@ -1842,7 +1842,7 @@ def test_resample_apply_product(duplicates, unit)...
Failing on the numpy dev build due to a deprecation https://github.com/pandas-dev/pandas/actions/runs/4380199790/jobs/7667001150 https://github.com/numpy/numpy/pull/23314
https://api.github.com/repos/pandas-dev/pandas/pulls/51877
2023-03-10T02:07:12Z
2023-03-10T18:23:05Z
2023-03-10T18:23:05Z
2023-03-10T18:23:09Z
PERF: Improve performance of MultiIndex._verify_integrity
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 66714ea326576..5484407520148 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -117,6 +117,7 @@ Performance improvements - Performance improvement when parsing strings to ``boolean[pyarrow]`` dtype (:is...
- [ ] 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/51873
2023-03-09T22:33:40Z
2023-03-14T02:28:25Z
2023-03-14T02:28:25Z
2023-03-14T10:51:18Z
ERR: Check that dtype_backend is valid
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5b77bb9651073..1bedf07103086 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -96,6 +96,7 @@ from pandas.util._decorators import doc from pandas.util._exceptions import find_stack_level from pandas.util._validators import ( + ch...
- [ ] 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/51871
2023-03-09T22:16:04Z
2023-03-14T13:14:04Z
2023-03-14T13:14:04Z
2023-03-14T14:07:10Z
Backport PR #51869 on branch 2.0.x (ENH: Add to_pydatetime for ArrowExtensionArray)
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index fbd7626c8637d..e9122544a18f5 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1958,6 +1958,9 @@ def _dt_round( ): return self._round_temporally("round", freq, ambiguous, nonex...
Backport PR #51869: ENH: Add to_pydatetime for ArrowExtensionArray
https://api.github.com/repos/pandas-dev/pandas/pulls/51870
2023-03-09T21:50:41Z
2023-03-10T00:23:58Z
2023-03-10T00:23:58Z
2023-03-10T00:23:58Z
ENH: Add to_pydatetime for ArrowExtensionArray
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index d8b0b53331229..6084634503d97 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -2090,6 +2090,9 @@ def _dt_round( ): return self._round_temporally("round", freq, ambiguous, nonex...
- [x] closes #51859 (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/51869
2023-03-09T19:36:11Z
2023-03-09T21:50:32Z
2023-03-09T21:50:32Z
2023-03-09T23:43:24Z
TYP: fix NDFrame.align
diff --git a/pandas/_typing.py b/pandas/_typing.py index 6059bced4a7d4..b54b8d6adb50e 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -125,6 +125,9 @@ # Series is passed into a function, a Series is always returned and if a DataFrame is # passed in, a DataFrame is always returned. NDFrameT = TypeVar("NDFra...
- [ ] closes #51863 (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/51867
2023-03-09T18:20:39Z
2023-03-11T21:26:25Z
2023-03-11T21:26:25Z
2023-08-09T15:08:37Z
Backport PR #50936 on branch 2.0.x (DOC: Fix dark mode styles)
diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index 2a348e5b84e6e..2eb69beb05cb5 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -236,11 +236,11 @@ ul.task-bullet > li > p:first-child { .tutorial-card ....
Backport PR #50936: DOC: Fix dark mode styles
https://api.github.com/repos/pandas-dev/pandas/pulls/51864
2023-03-09T16:32:35Z
2023-03-09T20:03:42Z
2023-03-09T20:03:42Z
2023-03-09T20:03:43Z
Backport PR #51704 on branch 2.0.x (DOC: Improve groupby in the User Guide)
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 15baedbac31ba..b0aafbc22562e 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -478,41 +478,71 @@ Or for an object grouped on multiple columns: Aggregation ----------- -Once the GroupBy o...
- [ ] 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/51857
2023-03-09T10:42:33Z
2023-03-09T15:22:22Z
2023-03-09T15:22:22Z
2023-03-09T15:22:23Z
ENH: Add misc pyarrow types to ArrowDtype.type
diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py index a262a45feb9c5..2ba0711de98f9 100644 --- a/pandas/core/arrays/arrow/dtype.py +++ b/pandas/core/arrays/arrow/dtype.py @@ -27,6 +27,7 @@ StorageExtensionDtype, register_extension_dtype, ) +from pandas.core.dtypes.dtypes imp...
- [ ] closes #51845 (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/51854
2023-03-09T00:43:39Z
2023-03-10T19:49:35Z
2023-03-10T19:49:35Z
2023-03-10T19:49:40Z
Remove use_nullable_dtypes and add dtype_backend keyword
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 3c3a655626bb6..c4e5ad773ca09 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -170,12 +170,15 @@ dtype : Type name or dict of column -> type, default ``None`` the default determines the dtype of the colum...
- [ ] 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/51853
2023-03-08T23:40:13Z
2023-03-13T18:20:41Z
2023-03-13T18:20:41Z
2023-03-13T18:47:02Z
TST/CLN: `test_query_eval.py`
diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py index fc0c81339de08..db68c4cd2546b 100644 --- a/pandas/tests/frame/test_query_eval.py +++ b/pandas/tests/frame/test_query_eval.py @@ -385,17 +385,15 @@ def to_series(mi, level): @td.skip_if_no_ne class TestDataFrameQueryNumEx...
Use fixtures instead of `setup/teardown_class`
https://api.github.com/repos/pandas-dev/pandas/pulls/51851
2023-03-08T22:31:16Z
2023-03-09T00:21:37Z
2023-03-09T00:21:37Z
2023-03-09T00:25:42Z
PERF: faster dir() calls
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index f1f24ab7a101b..6e2f444aac887 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -346,6 +346,7 @@ Performance improvements - Performance improvement in :meth:`RollingGroupby.count` (:issue:`35625`) - Sma...
I experience slow tab-completion in iPython, so I've optimized `dir` calls in pandas, e.g. ```python >>> n = 100_000 >>> ser = pd.Series(['a'] * n] >>> %timeit dir(ser) 3.73 ms ± 34.7 µs per loop # master 253 µs ± 4.3 µs per loop # this PR ``` It does this by caching the output for the info axis, when the...
https://api.github.com/repos/pandas-dev/pandas/pulls/37450
2020-10-27T18:27:26Z
2020-10-29T01:17:55Z
2020-10-29T01:17:55Z
2020-10-29T14:01:01Z
TST/REF: collect tests by method
diff --git a/pandas/tests/base/test_conversion.py b/pandas/tests/base/test_conversion.py index 7867d882befa0..538cf2c78b50e 100644 --- a/pandas/tests/base/test_conversion.py +++ b/pandas/tests/base/test_conversion.py @@ -5,7 +5,7 @@ from pandas.core.dtypes.dtypes import DatetimeTZDtype import pandas as pd -from pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/37449
2020-10-27T18:25:18Z
2020-10-29T00:59:20Z
2020-10-29T00:59:20Z
2020-10-29T01:59:54Z
Backport PR #37221 on branch 1.1.x (Fix regression for is_monotonic_increasing with nan in MultiIndex)
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index c0aa1afc34c8f..0f07f46cf4a1f 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -25,6 +25,7 @@ Fixed regressions - Fixed regression where slicing :class:`DatetimeIndex` raised :exc:`AssertionError` on ir...
Backport PR #37221: Fix regression for is_monotonic_increasing with nan in MultiIndex
https://api.github.com/repos/pandas-dev/pandas/pulls/37446
2020-10-27T13:01:56Z
2020-10-27T14:30:47Z
2020-10-27T14:30:47Z
2020-10-27T14:30:47Z
Backport PR #37428 on branch 1.1.x (Failing test_missing_required_dependency in pandas-wheels)
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index b32c5e91af295..4113ff6bb27d3 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -150,6 +150,18 @@ def test_missing_required_dependency(): # https://github.com/MacPython/pandas-wheels/pull/50 ...
Backport PR #37428: Failing test_missing_required_dependency in pandas-wheels
https://api.github.com/repos/pandas-dev/pandas/pulls/37445
2020-10-27T12:57:46Z
2020-10-27T14:30:04Z
2020-10-27T14:30:04Z
2020-10-27T14:30:04Z
Backport PR #37433 on branch 1.1.x (REGR: fix groupby std() with nullable dtypes)
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index c0aa1afc34c8f..a717e46692a19 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`Series.astype` converting ``None`` to ``"nan"`` when casting ...
Backport PR #37433: REGR: fix groupby std() with nullable dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/37444
2020-10-27T12:51:22Z
2020-10-27T14:49:09Z
2020-10-27T14:49:08Z
2020-10-27T14:49:09Z
Upgrade pygrep, use in-built rst-directive-colons
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 443789f9f46d3..315aeb6423254 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,8 +15,7 @@ repos: - id: flake8 name: flake8 (cython template) files: \.pxi\.in$ - types: - - file + ...
I got a PR in to pre-commit/pygrep-hooks to make the "incorrect-sphinx-directives" hook a built-in one (as it's not specific to pandas) :tada: So, let's use it? They also have another useful hook (`rst-inline-touching-normal`), which caught a couple of errors which I've fixed below. The reason why I've kept `rst-...
https://api.github.com/repos/pandas-dev/pandas/pulls/37440
2020-10-27T08:47:40Z
2020-10-27T12:52:15Z
2020-10-27T12:52:15Z
2020-10-27T13:28:49Z
REGR: fix rank algo for read-only data
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index c0aa1afc34c8f..458d735b42b7f 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression where :meth:`DataFrame.agg` would fail with :exc:`TypeError` when passe...
Closes #37290
https://api.github.com/repos/pandas-dev/pandas/pulls/37439
2020-10-27T08:05:41Z
2020-10-27T22:09:06Z
2020-10-27T22:09:06Z
2020-10-28T07:23:30Z
ENH: std for dt64 dtype
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 812af544ed9d8..83614d7a9628b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -225,6 +225,7 @@ Other enhancements - :class:`DataFrame` now supports ``divmod`` operation (:issue:`37165`) - :meth:`DataF...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37436
2020-10-27T01:25:48Z
2020-10-30T16:26:35Z
2020-10-30T16:26:35Z
2020-10-30T17:00:08Z
CI: xfail windows numexpr test
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 3869bf8f7ddcd..a4f1b1828bbc6 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -9,6 +9,8 @@ from numpy.random import rand, randint, randn import pytest +from pandas.compat...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37435
2020-10-26T23:34:39Z
2020-10-27T02:57:28Z
2020-10-27T02:57:28Z
2020-10-27T02:57:54Z
TST/REF: collect tests by method
diff --git a/pandas/tests/frame/test_join.py b/pandas/tests/frame/methods/test_join.py similarity index 100% rename from pandas/tests/frame/test_join.py rename to pandas/tests/frame/methods/test_join.py diff --git a/pandas/tests/frame/methods/test_values.py b/pandas/tests/frame/methods/test_values.py index c2f084c0eb8b...
https://api.github.com/repos/pandas-dev/pandas/pulls/37434
2020-10-26T22:25:19Z
2020-10-27T02:43:17Z
2020-10-27T02:43:17Z
2020-10-27T02:44:59Z
REGR: fix groupby std() with nullable dtypes
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index 043b817bb9026..c5f7905bc8a20 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`Series.astype` converting ``None`` to ``"nan"`` when casting ...
Fixes #37415
https://api.github.com/repos/pandas-dev/pandas/pulls/37433
2020-10-26T21:56:27Z
2020-10-27T12:38:15Z
2020-10-27T12:38:14Z
2020-10-29T19:31:00Z
Fix regression in iloc with boolean list
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index 33a52353bed7e..332be365e3763 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -26,6 +26,7 @@ Fixed regressions - Fixed regression where slicing :class:`DatetimeIndex` raised :exc:`AssertionError` on ir...
- [x] closes #36741 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Run tests in ``indexes`` and ``indexing`` locally without failure.
https://api.github.com/repos/pandas-dev/pandas/pulls/37432
2020-10-26T21:48:22Z
2020-10-28T00:22:30Z
2020-10-28T00:22:30Z
2020-10-28T09:26:50Z
TST/REF: collect multilevel tests by method
diff --git a/pandas/tests/frame/methods/test_append.py b/pandas/tests/frame/methods/test_append.py index 133e8c03fab3d..c08a77d00a96d 100644 --- a/pandas/tests/frame/methods/test_append.py +++ b/pandas/tests/frame/methods/test_append.py @@ -7,6 +7,18 @@ class TestDataFrameAppend: + @pytest.mark.parametrize("kla...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37431
2020-10-26T21:41:28Z
2020-10-28T00:23:09Z
2020-10-28T00:23:09Z
2020-10-28T00:36:58Z
TST/REF: collect tests by method
diff --git a/pandas/tests/frame/methods/test_reset_index.py b/pandas/tests/frame/methods/test_reset_index.py index 0de7eef3aff9f..3be45e2d48e19 100644 --- a/pandas/tests/frame/methods/test_reset_index.py +++ b/pandas/tests/frame/methods/test_reset_index.py @@ -516,6 +516,32 @@ def test_reset_index_with_drop( a...
https://api.github.com/repos/pandas-dev/pandas/pulls/37430
2020-10-26T21:33:45Z
2020-10-27T12:53:31Z
2020-10-27T12:53:30Z
2020-10-27T15:06:46Z
Failing test_missing_required_dependency in pandas-wheels
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index c03e8e26952e5..392be699b6fc0 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -150,6 +150,18 @@ def test_missing_required_dependency(): # https://github.com/MacPython/pandas-wheels/pull/50 ...
- [ ] closes #33999 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry tested at https://github.com/simonjayhawkins/pandas-release/actions/runs/329803554 ( patched from Gist https://gist.github.com/simonjayhawkins/f26d3...
https://api.github.com/repos/pandas-dev/pandas/pulls/37428
2020-10-26T19:57:06Z
2020-10-27T12:49:45Z
2020-10-27T12:49:45Z
2020-10-27T12:57:40Z
PERF: reverted change from commit 7d257c69 to solve issue #37081
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 049d2c4888a69..0772cc6b3a437 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8746,11 +8746,6 @@ def _reduce( cols = self.columns[~dtype_is_dt] self = self[cols] - any_object = np.array( - [is_ob...
reverted change from commit 7d257c697 to solve issue #37081 - [x] closes #37081 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37426
2020-10-26T19:10:02Z
2020-11-08T03:01:28Z
2020-11-08T03:01:28Z
2020-11-08T03:01:32Z
BUG: DataFrame.min/max dt64 with skipna=False
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index f1f24ab7a101b..d6169d6a61038 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -404,6 +404,7 @@ Numeric - Bug in :class:`IntervalArray` comparisons with :class:`Series` not returning :class:`Series` (:i...
- [x] closes #36907 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37425
2020-10-26T17:52:06Z
2020-10-29T01:06:26Z
2020-10-29T01:06:25Z
2020-10-29T01:59:05Z
TST/REF: misplaced tests in frame.test_dtypes
diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/methods/test_dtypes.py similarity index 53% rename from pandas/tests/frame/test_dtypes.py rename to pandas/tests/frame/methods/test_dtypes.py index 1add4c0db2e53..0105eef435121 100644 --- a/pandas/tests/frame/test_dtypes.py +++ b/pandas/tests/frame/met...
After moving them, test_dtypes is specific to DataFrame.dtypes, so move that file to tests/frame/methods/test_dtypes.py
https://api.github.com/repos/pandas-dev/pandas/pulls/37424
2020-10-26T17:46:38Z
2020-10-26T22:05:21Z
2020-10-26T22:05:21Z
2020-10-26T22:07:47Z
REF: avoid special case in DTA/TDA.median, flesh out tests
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index cd312b09ab6c1..c460e4fe23248 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1356,21 +1356,20 @@ def median(self, axis: Optional[int] = None, skipna: bool = True, *args, **kwarg ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Also fixes currently-incorrect empty case.
https://api.github.com/repos/pandas-dev/pandas/pulls/37423
2020-10-26T17:30:04Z
2020-10-31T18:57:37Z
2020-10-31T18:57:37Z
2020-10-31T20:53:18Z
REF: avoid special-casing inside DTA/TDA.mean, flesh out tests
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 4523ea1030ef1..8e3b26503a61b 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1304,7 +1304,7 @@ def max(self, axis=None, skipna=True, *args, **kwargs): # Don't have to worry ab...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37422
2020-10-26T15:40:02Z
2020-10-26T20:13:48Z
2020-10-26T20:13:48Z
2020-10-26T20:54:54Z
TST/REF: collect tests by method from generic
diff --git a/pandas/tests/frame/methods/test_rename.py b/pandas/tests/frame/methods/test_rename.py index eb908e9472fe2..ccd365044942a 100644 --- a/pandas/tests/frame/methods/test_rename.py +++ b/pandas/tests/frame/methods/test_rename.py @@ -3,11 +3,19 @@ import numpy as np import pytest -from pandas import DataFram...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37421
2020-10-26T15:26:37Z
2020-10-27T13:26:02Z
2020-10-27T13:26:02Z
2020-11-05T18:33:32Z
TST/REF: collect tests by method from tests.internals
diff --git a/pandas/tests/frame/methods/test_equals.py b/pandas/tests/frame/methods/test_equals.py new file mode 100644 index 0000000000000..c024390297fec --- /dev/null +++ b/pandas/tests/frame/methods/test_equals.py @@ -0,0 +1,23 @@ +from pandas import DataFrame +import pandas._testing as tm + + +class TestEquals: + ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37420
2020-10-26T15:25:27Z
2020-10-26T18:52:23Z
2020-10-26T18:52:23Z
2020-10-26T19:09:10Z
fix windows issue pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7e9a1ec890fba..443789f9f46d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,7 +41,7 @@ repos: name: Generate pip dependency from conda description: This hook checks if the conda environment.yml and requirem...
By not explicitly using `python` in the entry, we would get ``` Executable `python3` not found ``` on Windows xref https://github.com/pandas-dev/pandas/pull/37023#issuecomment-716607730
https://api.github.com/repos/pandas-dev/pandas/pulls/37419
2020-10-26T15:13:43Z
2020-10-26T17:17:19Z
2020-10-26T17:17:19Z
2020-10-26T17:17:23Z
Backport PR #37023 on branch 1.1.x (REGR: fix bug in DatetimeIndex slicing with irregular or unsorted indices)
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index 18ba5fd46696a..375143aa3a233 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`Series.astype` converting ``None`` to ``"nan"`` when casting ...
Backport PR #37023: REGR: fix bug in DatetimeIndex slicing with irregular or unsorted indices
https://api.github.com/repos/pandas-dev/pandas/pulls/37418
2020-10-26T14:52:40Z
2020-10-26T15:46:48Z
2020-10-26T15:46:48Z
2020-10-26T15:46:48Z
DOC: move release note for 35792
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index eb68ca38ea5b6..3e4e6f530c7a7 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -35,6 +35,7 @@ Bug fixes - Bug in :meth:`Series.isin` and :meth:`DataFrame.isin` raising a ``ValueError`` when the target w...
follow-on from #37416
https://api.github.com/repos/pandas-dev/pandas/pulls/37417
2020-10-26T13:26:39Z
2020-10-26T15:05:40Z
2020-10-26T15:05:40Z
2020-10-26T15:24:31Z
Backport PR #35792 on branch 1.1.x: CLN/BUG: Clean/Simplify _wrap_applied_output
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index 18ba5fd46696a..ee76fe9398002 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -34,6 +34,7 @@ Bug fixes - Bug in :meth:`Series.isin` and :meth:`DataFrame.isin` raising a ``ValueError`` when the target w...
Backport PR #35792 https://github.com/pandas-dev/pandas/pull/37305#issuecomment-716498455 cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/37416
2020-10-26T12:00:57Z
2020-10-26T15:41:26Z
2020-10-26T15:41:26Z
2020-10-26T15:41:32Z