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
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
CLN: Clean DirNameMixin
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 41212fd49113d..29dc76a4adf1a 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -11,27 +11,19 @@ class DirNamesMixin: - _accessors: Set[str] = set() _hidden_attrs: FrozenSet[str] = frozenset() def _dir_deletions(...
The available accessors are already supplied by the `__dir__` method's `super().__dir__()` call, so simplifications are possible.
https://api.github.com/repos/pandas-dev/pandas/pulls/37437
2020-10-27T06:08:52Z
2020-10-27T07:37:49Z
null
2021-06-13T10:09:02Z
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
DOC: small clean ups
diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index cd61f17220f22..df481e8c986f7 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -28,20 +28,20 @@ Installing pandas Installing with Anaconda ~~~~~~~~~~~~~~~~~~~~~~~~ -In...
small clean ups - [ ] 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/37412
2020-10-26T04:02:40Z
2020-10-26T13:47:37Z
2020-10-26T13:47:37Z
2022-07-15T23:39:28Z
TST/CLN: misplaced factorize tests
diff --git a/pandas/tests/base/test_factorize.py b/pandas/tests/base/test_factorize.py deleted file mode 100644 index f8cbadb987d29..0000000000000 --- a/pandas/tests/base/test_factorize.py +++ /dev/null @@ -1,41 +0,0 @@ -import numpy as np -import pytest - -import pandas as pd -import pandas._testing as tm - - -@pytest...
https://api.github.com/repos/pandas-dev/pandas/pulls/37411
2020-10-26T02:15:20Z
2020-10-26T12:04:12Z
2020-10-26T12:04:12Z
2020-10-26T15:03:30Z
TST/REF: misplaced tests in tests.base
diff --git a/pandas/tests/base/test_drop_duplicates.py b/pandas/tests/base/test_drop_duplicates.py index 4032890b4db18..8cde7aae5df05 100644 --- a/pandas/tests/base/test_drop_duplicates.py +++ b/pandas/tests/base/test_drop_duplicates.py @@ -1,12 +1,14 @@ from datetime import datetime import numpy as np +import pyte...
https://api.github.com/repos/pandas-dev/pandas/pulls/37410
2020-10-26T01:56:41Z
2020-10-26T12:12:24Z
2020-10-26T12:12:24Z
2020-10-26T15:17:33Z
TST: rename generic/, base/ test directories
diff --git a/pandas/tests/base/__init__.py b/pandas/tests/frame_or_series/__init__.py similarity index 100% rename from pandas/tests/base/__init__.py rename to pandas/tests/frame_or_series/__init__.py diff --git a/pandas/tests/generic/methods/__init__.py b/pandas/tests/frame_or_series/methods/__init__.py similarity ind...
base -> index_or_series generic -> frame_or_series
https://api.github.com/repos/pandas-dev/pandas/pulls/37409
2020-10-26T00:34:11Z
2020-10-26T02:13:36Z
null
2021-01-04T06:19:33Z
TST: Set timeoffset as the window parameter
diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py index e919812be9fce..02365906c55bb 100644 --- a/pandas/tests/window/test_rolling.py +++ b/pandas/tests/window/test_rolling.py @@ -919,6 +919,67 @@ def test_rolling_var_numerical_issues(func, third_value, values): tm.assert_serie...
- [X] closes #28266 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Hi guys, just added tests for issue #28266. I'm participating in the Hacktoberfest event and would much appreciate it if someone put the label ‘hacktoberfest-accepted’ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37407
2020-10-25T22:51:15Z
2020-10-26T03:18:19Z
2020-10-26T03:18:18Z
2020-10-27T15:45:14Z
BUG: Fix inconsistent ordering between left and right in merge
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index cea42cbffa906..68b13c2fe28f5 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -712,6 +712,7 @@ Reshaping - Fixed regression in :func:`merge` on merging DatetimeIndex with empty DataFrame (:issue:`36895...
- [x] closes #35382 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Passed sort through for right join too. Did not see a reason why not. On a related note: I think outer joins return a inconsistent order too. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37406
2020-10-25T22:18:48Z
2020-11-21T22:23:28Z
2020-11-21T22:23:27Z
2020-11-21T23:50:46Z
DEPR: Add FutureWarning when matching NaN with NaN in merge/join
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 5012be593820e..491e3cb39ef3d 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -1978,7 +1978,13 @@ def _factorize_keys( lany = lmask.any() rmask = rlab == -1 rany = rmask.any() - + if lany and ...
- [x] xref #32306 (and a few others, will add them later - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @WillAyd I started with raising a FutureWarning when merging nan on nan. This works, if ``left_index`` a...
https://api.github.com/repos/pandas-dev/pandas/pulls/37405
2020-10-25T21:13:07Z
2021-02-12T22:48:25Z
null
2023-04-27T19:52:11Z
CLN: Fix unwanted pattern in unittest
diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index e224c20ca84d3..c85f65cd62563 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -694,7 +694,7 @@ def test_constructor_invalid_coerce_ints_with_float_nan(self, any_i...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Introduced with #37090
https://api.github.com/repos/pandas-dev/pandas/pulls/37404
2020-10-25T19:38:48Z
2020-10-25T19:45:50Z
2020-10-25T19:45:49Z
2020-10-25T19:54:02Z
TST/REF: collect tests by method
diff --git a/pandas/tests/arrays/categorical/test_indexing.py b/pandas/tests/arrays/categorical/test_indexing.py index 91992da594288..c589b72fa2895 100644 --- a/pandas/tests/arrays/categorical/test_indexing.py +++ b/pandas/tests/arrays/categorical/test_indexing.py @@ -91,6 +91,22 @@ def test_setitem_tuple(self): ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37403
2020-10-25T18:11:28Z
2020-10-26T12:10:55Z
2020-10-26T12:10:55Z
2020-10-26T15:08:26Z
TST: check_comprehensiveness compat for --lf and -k
diff --git a/pandas/tests/indexing/test_coercion.py b/pandas/tests/indexing/test_coercion.py index d37b5986b57c1..436b2aa838b08 100644 --- a/pandas/tests/indexing/test_coercion.py +++ b/pandas/tests/indexing/test_coercion.py @@ -29,11 +29,21 @@ def has_test(combo): klass in x.name and dtype in x.name and m...
- [x] closes #23930 - [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/37402
2020-10-25T16:02:28Z
2020-10-29T00:58:49Z
2020-10-29T00:58:48Z
2020-10-29T02:01:57Z
CI/CLN: Lint more class references in tests
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index a9cce9357b531..7c48905135f89 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -38,8 +38,8 @@ function invgrep { } function check_namespace { - local -r CLASS="${1}" - grep -R -l --include "*.py" " ${CLASS}(" pandas/tests | xargs grep -n "pd\.${...
https://api.github.com/repos/pandas-dev/pandas/pulls/37401
2020-10-25T14:43:14Z
2020-10-30T23:15:23Z
2020-10-30T23:15:23Z
2020-10-31T00:42:12Z
REGR/PERF: Index.is_ performance regression
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 006469f79780d..24caf6ee49b4a 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -545,7 +545,7 @@ def is_(self, other) -> bool: return True elif not hasattr(other, "_id"): return Fal...
Fixes https://github.com/pandas-dev/pandas/pull/37321#issuecomment-715878012 The offender is actually #37321. Apparantly is's a bit slow to do the check using a generator like `com.any_none`. ```python In [1]: from pandas import * In [2]: idx_large_fast = RangeIndex(100000) ...: idx_small_slow = date_range(...
https://api.github.com/repos/pandas-dev/pandas/pulls/37400
2020-10-25T11:30:35Z
2020-10-26T03:06:07Z
2020-10-26T03:06:07Z
2020-10-26T08:03:30Z
CLN: nanops
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index b101da196fdd8..c7b6e132f9a74 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -381,18 +381,16 @@ def _na_for_min_count( if is_numeric_dtype(values): values = values.astype("float64") fill_value = na_value_for_dtype(valu...
This sits on top of #37394. The cleanup in _maybe_get_mask means that we end up getting a correctly-dtyped result instead of object-dtype, which becomes important in the upcoming nanmean PR.
https://api.github.com/repos/pandas-dev/pandas/pulls/37396
2020-10-25T03:19:21Z
2020-10-26T12:13:15Z
2020-10-26T12:13:15Z
2020-10-26T15:11:01Z
TST/REF: collect tests by method
diff --git a/pandas/tests/frame/indexing/test_setitem.py b/pandas/tests/frame/indexing/test_setitem.py index 87c6ae09aac11..c317e90181a8f 100644 --- a/pandas/tests/frame/indexing/test_setitem.py +++ b/pandas/tests/frame/indexing/test_setitem.py @@ -10,10 +10,12 @@ Interval, NaT, Period, + PeriodIndex,...
https://api.github.com/repos/pandas-dev/pandas/pulls/37395
2020-10-25T02:37:34Z
2020-10-26T03:07:17Z
2020-10-26T03:07:17Z
2020-10-26T03:33:00Z
BUG: Series[td64].sum() wrong on empty series, closes #37151
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index a9b4ad2e5374a..1e2747d3bc463 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -374,6 +374,7 @@ Datetimelike - Bug in :class:`DatetimeIndex.shift` incorrectly raising when shifting empty indexes (:issue...
- [x] closes #37151 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Will handle min_count on the next pass.
https://api.github.com/repos/pandas-dev/pandas/pulls/37394
2020-10-25T02:32:00Z
2020-10-26T12:06:46Z
2020-10-26T12:06:46Z
2020-10-26T15:19:15Z
DOC: make RST files conform to pandas token usage
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index b281c7cfc7d39..61d4a8bcb3205 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -134,7 +134,7 @@ want to clone your fork to your machine:: git remote add upstream ...
See also: #32316 - [x] closes #32316 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry In #36845 the RST files were updated to normalize usage of the word "pandas". The following tokens were replaced: + \`pandas\...
https://api.github.com/repos/pandas-dev/pandas/pulls/37393
2020-10-25T02:19:23Z
2020-12-29T17:17:34Z
null
2020-12-29T17:17:34Z
BUG: DataFrame.std(skipna=False) with td64 dtype
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index a9b4ad2e5374a..f54fa9d98a592 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -402,6 +402,7 @@ Numeric - Bug in :class:`DataFrame` arithmetic ops incorrectly accepting keyword arguments (:issue:`36843`...
- [ ] 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/37392
2020-10-25T00:36:44Z
2020-10-26T03:14:07Z
2020-10-26T03:14:07Z
2020-10-26T03:33:43Z
BUG: nanstd with td64 and skipna=False
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 64e5f78d961d1..d32ca356f96ca 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -385,10 +385,10 @@ def sum( return NaT result = nanops.nansum( - self._data, axis...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The actual bugfix is the one line changed in nanops; the test is rolled in to the existing TDA.std test. Everything else is cleanup that was involve...
https://api.github.com/repos/pandas-dev/pandas/pulls/37391
2020-10-24T23:53:22Z
2020-10-24T23:54:24Z
null
2020-10-24T23:55:40Z
CLN: Deprecate dayofweek/hello day_of_week (#9606)
diff --git a/doc/redirects.csv b/doc/redirects.csv index bceb4b5961324..de69d0168835d 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -542,7 +542,9 @@ generated/pandas.DatetimeIndex.date,../reference/api/pandas.DatetimeIndex.date generated/pandas.DatetimeIndex.day,../reference/api/pandas.DatetimeIndex.day g...
Rename dayofweek properties in Period, Datetime, and PeriodArray classes. Add day_of_week property to respective tests for each class. - [x] closes #9606 - [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/37390
2020-10-24T22:39:20Z
2020-10-29T01:18:57Z
2020-10-29T01:18:57Z
2020-10-29T01:19:03Z
PERF: release gil for ewma_time
diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx index b2dbf7802e6f0..3556085bb300b 100644 --- a/pandas/_libs/window/aggregations.pyx +++ b/pandas/_libs/window/aggregations.pyx @@ -1,14 +1,13 @@ # cython: boundscheck=False, wraparound=False, cdivision=True import cython -from...
The performance changes for `rolling.EWMMethods` are not stable. I've seen those and no changes in separate runs. ``` + 1.35±0.02ms 2.17±0.5ms 1.61 rolling.EWMMethods.time_ewm('Series', 1000, 'float', 'std') ``` ``` - 2.58±0.2ms 1.36±0.01ms 0.53 rolling.EWMMethods.time_ewm('Series', 1...
https://api.github.com/repos/pandas-dev/pandas/pulls/37389
2020-10-24T18:50:04Z
2020-11-04T02:57:03Z
2020-11-04T02:57:03Z
2022-11-18T02:21:02Z
PERF: release gil for ewmc_time
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 7fbd2e1188901..b281c7cfc7d39 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -598,7 +598,7 @@ Building master branch documentation When pull requests are merged i...
no perf change for `rolling.EWMMethods`
https://api.github.com/repos/pandas-dev/pandas/pulls/37388
2020-10-24T18:30:14Z
2020-10-24T18:31:52Z
null
2020-10-24T18:32:01Z
TST: split up test_concat.py #37243 - more follows up
diff --git a/pandas/tests/reshape/concat/__init__.py b/pandas/tests/reshape/concat/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/reshape/concat/conftest.py b/pandas/tests/reshape/concat/conftest.py new file mode 100644 index 0000000000000..62b8c59ba8855 --- /dev/null +++ ...
* created test_categorical.py - [x] closes #37243 - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/37387
2020-10-24T18:27:03Z
2020-10-28T12:04:17Z
2020-10-28T12:04:16Z
2020-10-28T12:31:53Z
DOC: Improve clarity and fix grammar
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 41c12fe63d047..1c271e74aafba 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5686,7 +5686,7 @@ ignored. dtypes: float64(1), int64(1) memory usage: 15.3 MB -Given the next test set: +The following te...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This PR improves the "Performance considerations" section of the IO tools user guide: https://pandas.pydata.org/pandas-docs/stable/user_guide/io.htm...
https://api.github.com/repos/pandas-dev/pandas/pulls/37386
2020-10-24T17:38:39Z
2020-10-25T18:38:23Z
2020-10-25T18:38:23Z
2020-10-26T14:38:14Z
replace Appender decorator with doc
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 049d2c4888a69..e9634bc3aabd6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6032,7 +6032,8 @@ def __rdivmod__(self, other) -> Tuple[DataFrame, DataFrame]: # ---------------------------------------------------------------------- #...
- [x] ref #31942 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] replaces Appender with doc for NDFrame.compare()
https://api.github.com/repos/pandas-dev/pandas/pulls/37384
2020-10-24T17:15:24Z
2020-11-11T01:26:37Z
2020-11-11T01:26:37Z
2020-11-11T01:26:46Z
CI fix failing codecheck
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index 25e6142476d65..ddca67306d804 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -1233,17 +1233,17 @@ def test_sum_timedelta64_skipna_false(): arr = np.arange(8).astype(np.int6...
https://api.github.com/repos/pandas-dev/pandas/pulls/37383
2020-10-24T16:05:58Z
2020-10-24T17:21:59Z
2020-10-24T17:21:59Z
2020-10-24T17:23:12Z
TST: Different tests were collected between gw0 and gw1
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 4c670e56613ed..3869bf8f7ddcd 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -117,7 +117,7 @@ def _is_py3_complex_incompat(result, expected): return isinstance(expected...
not sure if anyone else if having issue running tests locally. have created a clean pandas-dev env on a different machine so maybe a transient thing. https://github.com/pytest-dev/pytest-xdist/issues/432 <details> ``` INSTALLED VERSIONS ------------------ commit : dce547ea2fe7f8c5c51c04d0a87704a2b...
https://api.github.com/repos/pandas-dev/pandas/pulls/37382
2020-10-24T15:58:59Z
2020-10-25T21:56:55Z
2020-10-25T21:56:55Z
2020-10-26T09:40:48Z
Fixed Metadata Propogation in DataFrame
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 7111d54d65815..669265dddd4ff 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -558,7 +558,7 @@ Other - Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly raising ``AssertionError``...
In reference to #28283 Added finalize reference to append, merge, eval, diff, applymap, and update. Removed the ignore marks from the associated tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/37381
2020-10-24T15:25:35Z
2020-11-04T16:52:45Z
2020-11-04T16:52:45Z
2021-06-06T19:22:15Z
TST: Update unreliable num precision component of test_binary_arith_ops (GH37328)
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index a4f1b1828bbc6..728ffc6f85ba4 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -316,10 +316,13 @@ def check_alignment(self, result, nlhs, ghs, op): # TypeError, A...
- [x] closes #37328 - [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/37380
2020-10-24T14:11:12Z
2020-10-28T12:04:57Z
2020-10-28T12:04:56Z
2020-10-28T12:05:00Z
CI move validate unwanted patterns over to pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e7738fb9a2979..7e9a1ec890fba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -99,6 +99,28 @@ repos: language: pygrep entry: (\.\. code-block ::|\.\. ipython ::) files: \.(py|pyx|rst)$ + - id: unwan...
This becomes much simpler with pre-commit :smile: As with other PRs of this kind, the motivation for moving checks like these over to pre-commit is that they become cross-platform and that they provide faster feedback to devs ---- example: if I apply ```diff diff --git a/pandas/io/formats/info.py b/pandas/io/fo...
https://api.github.com/repos/pandas-dev/pandas/pulls/37379
2020-10-24T11:29:40Z
2020-10-26T12:07:18Z
2020-10-26T12:07:18Z
2020-10-26T12:51:10Z
ENH/BUG: implement __iter__ for IntegerArray so conversions (to_dict, tolist, etc.) return python native types
diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py index 2c3b3d3c2f0b4..ab65d02cebf20 100644 --- a/pandas/core/arrays/floating.py +++ b/pandas/core/arrays/floating.py @@ -213,17 +213,17 @@ class FloatingArray(NumericArray): -------- Create an FloatingArray with :func:`pandas.array`: ...
- [x] closes #29738 - [x] closes #34665 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Reheating #31328 (as it's been stale for a few months)
https://api.github.com/repos/pandas-dev/pandas/pulls/37377
2020-10-24T01:17:17Z
2021-02-11T01:31:17Z
null
2021-02-11T01:31:17Z
TST: on_offset_implementations closes #34751
diff --git a/pandas/tests/tseries/offsets/test_offsets_properties.py b/pandas/tests/tseries/offsets/test_offsets_properties.py index 0fa9081d606b0..8d9b54cf3f0df 100644 --- a/pandas/tests/tseries/offsets/test_offsets_properties.py +++ b/pandas/tests/tseries/offsets/test_offsets_properties.py @@ -13,6 +13,7 @@ from hyp...
- [x] closes #34751 - [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/37376
2020-10-24T01:11:58Z
2020-10-24T02:55:20Z
2020-10-24T02:55:20Z
2020-10-24T02:59:55Z
CI: troubleshoot windows parallel tests
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index fda2005ce7843..09f41f9fdc689 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -20,7 +20,14 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then XVFB="xvfb-run " fi -PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile -s --strict ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37375
2020-10-24T00:46:31Z
2020-10-24T01:07:36Z
null
2020-10-24T01:07:38Z
DEPR: Index.__and__, __or__, __xor__ behaving as set ops
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 2bc7e13e39ec4..4493ddd0b2822 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -1594,19 +1594,16 @@ See :ref:`Advanced Indexing <advanced>` for usage of MultiIndexes. Set operations on I...
- [x] closes #36758 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry xref #30228
https://api.github.com/repos/pandas-dev/pandas/pulls/37374
2020-10-23T23:25:38Z
2020-11-02T01:02:40Z
2020-11-02T01:02:40Z
2020-11-02T15:00:08Z
CLN: de-duplicate _isnan
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index ff014ac249fc3..ebe1ddb07cad0 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -377,11 +377,6 @@ def astype(self, dtype, copy=True): return Index.astype(self, dtype=dtype, copy=copy) - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37373
2020-10-23T23:03:30Z
2020-10-24T02:50:42Z
2020-10-24T02:50:42Z
2020-10-24T03:00:20Z
TST/REF: collect tests by method
diff --git a/pandas/tests/frame/indexing/test_getitem.py b/pandas/tests/frame/indexing/test_getitem.py new file mode 100644 index 0000000000000..47d53ef6f3619 --- /dev/null +++ b/pandas/tests/frame/indexing/test_getitem.py @@ -0,0 +1,16 @@ +import pytest + +from pandas import DataFrame, MultiIndex + + +class TestGetite...
https://api.github.com/repos/pandas-dev/pandas/pulls/37372
2020-10-23T22:34:40Z
2020-10-24T17:53:39Z
2020-10-24T17:53:39Z
2020-10-24T18:00:19Z
PERF: ensure_string_array with non-numpy input array
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index d8b35abb94b9d..7c75ad031e7cd 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -2,7 +2,7 @@ import numpy as np -from pandas import DataFrame, Series +from pandas import Categorical, DataFrame, S...
Currently, if the input array to `ensure_string_array` is a python object (e.g. an `ExtensionArray`), the function will constantly switch between python and cython level code, which is slow. This PR fixes that by ensuring we always have a numpy array, avoiding the trips to python level code. ``` python >>> n = 5...
https://api.github.com/repos/pandas-dev/pandas/pulls/37371
2020-10-23T21:11:34Z
2020-10-26T17:37:54Z
2020-10-26T17:37:54Z
2020-10-26T22:45:48Z
DOC: add searchsorted examples #36411
diff --git a/pandas/core/base.py b/pandas/core/base.py index 10b83116dee58..67d5d4a24ae49 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1182,6 +1182,16 @@ def factorize(self, sort: bool = False, na_sentinel: Optional[int] = -1): >>> ser.searchsorted([1, 3], side='right') array([1, 3])...
DOC: add searchsorted examples #36411
https://api.github.com/repos/pandas-dev/pandas/pulls/37370
2020-10-23T20:59:52Z
2020-10-25T18:43:01Z
2020-10-25T18:43:01Z
2020-11-05T20:55:07Z
BUG: Call finalize in DataFrame.unstack
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index f17be825e1295..3e2267a69ed0d 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -529,7 +529,7 @@ Other - Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly raising ``AssertionError``...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This commit adds a step to call `__finalize__` in `DataFrame.unstack`, as motivated by #28283. Adding this step also prevents needing a step to call...
https://api.github.com/repos/pandas-dev/pandas/pulls/37369
2020-10-23T20:44:05Z
2020-10-24T03:09:22Z
2020-10-24T03:09:22Z
2020-10-24T03:54:08Z
TST: split up test_concat.py #37243 - follows up
diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py index 6fa4419f90138..c3e1f3177b3d3 100644 --- a/pandas/tests/reshape/concat/test_concat.py +++ b/pandas/tests/reshape/concat/test_concat.py @@ -1,11 +1,8 @@ from collections import abc, deque -import datetime as dt -fr...
* created test_datetime.py and split datetime/timezone/period related tests - [ ] 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/37368
2020-10-23T19:31:48Z
2020-10-23T20:41:13Z
2020-10-23T20:41:13Z
2020-10-23T20:42:21Z
BUG/TST: Fix infer_dtype for Period array-likes and general ExtensionArrays
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 2824a10de1d47..99ae60859b68c 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -448,6 +448,8 @@ ExtensionArray Other ^^^^^ - Bug in :class:`Index` constructor sometimes silently ignorning a specified ...
Closes #23553 In addition, I also changed to let infer_dtype fall back to inferring from the scalar elements if the array-like is not recognized directly (now it raises an error, which doesn't seem very useful?)
https://api.github.com/repos/pandas-dev/pandas/pulls/37367
2020-10-23T19:07:37Z
2021-02-12T17:45:26Z
2021-02-12T17:45:26Z
2021-02-12T17:47:22Z
TYP: DatetimeIndex, TimedeltaIndex
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 863880e222b5d..2c422b4c551b6 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -1,13 +1,13 @@ """ Base and utility classes for tseries type pandas objects. """ -from datetime impor...
Better alternative to parts of #37224
https://api.github.com/repos/pandas-dev/pandas/pulls/37365
2020-10-23T16:08:47Z
2020-10-29T00:57:47Z
2020-10-29T00:57:47Z
2020-10-29T02:00:11Z
Backport PR #37302 on branch 1.1.x (BUG: Allow empty chunksize in stata reader when using iterator)
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index f641e7ba4c6f7..18ba5fd46696a 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :class:`RollingGroupby` causing a segmentation fault with Index of d...
Backport PR #37302: BUG: Allow empty chunksize in stata reader when using iterator
https://api.github.com/repos/pandas-dev/pandas/pulls/37364
2020-10-23T12:36:24Z
2020-10-24T16:11:09Z
2020-10-24T16:11:09Z
2020-10-24T16:11:09Z
REGR: Notebook (html) repr of DataFrame no longer follows min_rows/max_rows settings
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index e4bd1eddbc5f8..2fae18bd76657 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -639,20 +639,31 @@ def _calc_max_cols_fitted(self) -> Optional[int]: def _calc_max_rows_fitted(self) -> Optional[int]: "...
- [ ] closes #37359 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fix display logic in number of rows, explained here https://pandas.pydata.org/docs/dev/user_guide/options.html#frequently-used-options
https://api.github.com/repos/pandas-dev/pandas/pulls/37363
2020-10-23T11:16:39Z
2020-11-13T05:45:48Z
2020-11-13T05:45:48Z
2020-11-13T05:53:19Z
CI autoupdate pre-commit versions
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml new file mode 100644 index 0000000000000..42d6ae6606442 --- /dev/null +++ b/.github/workflows/autoupdate-pre-commit-config.yml @@ -0,0 +1,33 @@ +name: "Update pre-commit config" + +on: + schedule: + ...
Rather than manually updating versions of hooks when new ones come out, we can make a GitHub action to open a PR to do this automatically every Monday. For this to work, we will need whoever owns the repo to [create an access token](https://github.com/technote-space/create-pr-action#github_token) and add it as secre...
https://api.github.com/repos/pandas-dev/pandas/pulls/37362
2020-10-23T10:57:19Z
2020-10-31T23:06:13Z
2020-10-31T23:06:12Z
2020-11-01T10:32:02Z
CLN Apply style to Jupyter notebook
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 12dd72f761408..7bb890ade6503 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -60,13 +60,12 @@ "metadata": {}, "outputs": [], "source": [ - "import pandas as pd\n", "impo...
We apply many style checks to our source code files / Python snippets in documentation, so I've applied them to the (lone) Jupyter notebook. Not adding anything to CI as it's arguably not worth it for just a single file
https://api.github.com/repos/pandas-dev/pandas/pulls/37361
2020-10-23T10:26:29Z
2020-11-26T15:08:02Z
null
2021-01-03T18:06:48Z
TST: moved file test_concat.py to folder ./concat/ (#37243)
diff --git a/pandas/tests/reshape/concat/test_append.py b/pandas/tests/reshape/concat/test_append.py new file mode 100644 index 0000000000000..2f9228bc84394 --- /dev/null +++ b/pandas/tests/reshape/concat/test_append.py @@ -0,0 +1,383 @@ +import datetime as dt +from datetime import datetime +from itertools import combi...
- [ ] 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/37360
2020-10-23T10:05:18Z
2020-10-23T15:27:14Z
2020-10-23T15:27:14Z
2020-10-23T15:27:44Z
DOC: update development documentation for link to built docs #37248
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 7fbd2e1188901..b281c7cfc7d39 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -598,7 +598,7 @@ Building master branch documentation When pull requests are merged i...
- [x] closes #37248 cc: @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/37357
2020-10-23T07:10:36Z
2020-10-24T07:27:52Z
2020-10-24T07:27:51Z
2020-10-24T07:28:07Z
API: require timezone match in DatetimeArray.take
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 99d2a1ee27265..37ea35d044dca 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -370,6 +370,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.slice_locs` where ``datetime.date`` objects were not accepted (...
Consistent with #37299
https://api.github.com/repos/pandas-dev/pandas/pulls/37356
2020-10-23T04:23:07Z
2020-10-23T17:19:47Z
2020-10-23T17:19:47Z
2020-10-23T18:07:47Z
PERF/ENH: add fast astyping for Categorical
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index a0b24342091ec..f3b005b704014 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -1,3 +1,5 @@ +import string +import sys import warnings import numpy as np @@ -67,6 +69,47 @@ de...
- [x] closes #8628 - [ ] tests added / passed - [x] benchmarks added - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry To illustrate the speed-up, the set-up is (from OP): ```python import numpy as np import pandas as pd rng = np.random.d...
https://api.github.com/repos/pandas-dev/pandas/pulls/37355
2020-10-23T04:14:28Z
2020-11-18T18:21:51Z
2020-11-18T18:21:51Z
2020-11-18T20:36:45Z
TST/REF: collect tests by method, some misplaced
diff --git a/pandas/tests/arithmetic/test_categorical.py b/pandas/tests/arithmetic/test_categorical.py new file mode 100644 index 0000000000000..a978f763fbaaa --- /dev/null +++ b/pandas/tests/arithmetic/test_categorical.py @@ -0,0 +1,12 @@ +import numpy as np + +from pandas import Categorical, Series +import pandas._te...
Looking to get rid of some more of the not-obviously-scoped test files
https://api.github.com/repos/pandas-dev/pandas/pulls/37354
2020-10-23T02:26:45Z
2020-10-23T17:18:33Z
2020-10-23T17:18:33Z
2020-10-23T18:06:47Z
TST: collect indexing tests by method
diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py index d462917277f99..38f6b6d38008c 100644 --- a/pandas/tests/reshape/merge/test_join.py +++ b/pandas/tests/reshape/merge/test_join.py @@ -791,15 +791,15 @@ def _join_by_hand(a, b, how="left"): def test_join_inner_multiinde...
https://api.github.com/repos/pandas-dev/pandas/pulls/37353
2020-10-23T01:50:05Z
2020-10-23T03:29:04Z
2020-10-23T03:29:04Z
2020-10-23T04:04:28Z
CI: Fix test file lint
diff --git a/pandas/tests/reshape/merge/test_join.py b/pandas/tests/reshape/merge/test_join.py index d462917277f99..38f6b6d38008c 100644 --- a/pandas/tests/reshape/merge/test_join.py +++ b/pandas/tests/reshape/merge/test_join.py @@ -791,15 +791,15 @@ def _join_by_hand(a, b, how="left"): def test_join_inner_multiinde...
Should help fix red CI on master
https://api.github.com/repos/pandas-dev/pandas/pulls/37352
2020-10-23T01:25:57Z
2020-10-23T02:12:28Z
null
2020-10-23T02:12:31Z
CI/CLN: Add more test file linting
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 926e90f3dfa0c..877e136492518 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -178,10 +178,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Check for inconsistent use of pandas namespace in...
Fixing use of pd.Index when Index is imported directly
https://api.github.com/repos/pandas-dev/pandas/pulls/37351
2020-10-23T01:00:41Z
2020-10-23T03:16:50Z
2020-10-23T03:16:49Z
2020-10-23T17:05:23Z
TST: fixturize/parametrize test_eval to the bone
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 5796ea52899d2..4c670e56613ed 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -2,7 +2,7 @@ from functools import reduce from itertools import product import operator -from...
Might help us track down the failing test there.
https://api.github.com/repos/pandas-dev/pandas/pulls/37349
2020-10-22T21:19:39Z
2020-10-22T23:30:07Z
2020-10-22T23:30:07Z
2020-10-22T23:50:18Z
CI: xfail test_binary_arith_ops
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 5796ea52899d2..bc558b7d2f435 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -206,6 +206,10 @@ def test_simple_cmp_ops(self): self.check_simple_cmp_op(lhs, cmp_...
xref #37328, #37338
https://api.github.com/repos/pandas-dev/pandas/pulls/37347
2020-10-22T19:37:39Z
2020-10-22T22:41:06Z
null
2020-10-22T23:50:48Z
Update sql.py to distinguish between BigInt, Integer, and SmallInt
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 51888e5021d80..d77362dfe75e1 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -1011,7 +1011,12 @@ def _harmonize_columns(self, parse_dates=None): elif len(df_col) == df_col.count(): # No NA values, can convert ints and...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is to resolve #37344. I've never contributed to Pandas before, so may need guidance to proceed.
https://api.github.com/repos/pandas-dev/pandas/pulls/37345
2020-10-22T18:24:12Z
2021-01-09T23:01:54Z
null
2023-05-11T01:20:21Z
TST/REF: collect tests by method
diff --git a/pandas/conftest.py b/pandas/conftest.py index 5a4bc397ab792..515d20e8c5781 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -34,7 +34,7 @@ import pandas.util._test_decorators as td import pandas as pd -from pandas import DataFrame +from pandas import DataFrame, Series import pandas._testing...
https://api.github.com/repos/pandas-dev/pandas/pulls/37342
2020-10-22T16:32:45Z
2020-10-22T22:11:21Z
2020-10-22T22:11:21Z
2020-10-22T22:18:51Z
1.1.x
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db1fc30111a2d..149acef72db26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,9 @@ on: push: branches: master pull_request: - branches: master + branches: + - master + - 1.1.x env: ENV_...
- [X] closes #37316
https://api.github.com/repos/pandas-dev/pandas/pulls/37341
2020-10-22T16:11:39Z
2020-10-22T16:14:32Z
null
2020-10-22T16:15:02Z
TYP: is_dtype_compat
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index a5e8edca80873..ff014ac249fc3 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -235,20 +235,23 @@ def _shallow_copy(self, values=None, name: Label = no_default): return super()._shallow_co...
Broken off from #37224
https://api.github.com/repos/pandas-dev/pandas/pulls/37340
2020-10-22T15:32:20Z
2020-10-23T15:37:15Z
2020-10-23T15:37:15Z
2020-10-23T15:37:31Z
TST: parametrize slow test
diff --git a/pandas/tests/indexing/multiindex/test_indexing_slow.py b/pandas/tests/indexing/multiindex/test_indexing_slow.py index d8e56661b7d61..efe1e0f0d75b5 100644 --- a/pandas/tests/indexing/multiindex/test_indexing_slow.py +++ b/pandas/tests/indexing/multiindex/test_indexing_slow.py @@ -7,17 +7,46 @@ from pandas ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37339
2020-10-22T15:21:28Z
2020-10-22T23:47:08Z
2020-10-22T23:47:07Z
2020-10-22T23:48:29Z
[WIP] Arrow string array: Common base class
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 948ffdc1f7c01..a4e231fc4f86c 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -8,6 +8,7 @@ from pandas.util._decorators import cache_readonly, doc from pandas.util._validators import validate_fillna_kwarg...
CI testing alternative to #37336
https://api.github.com/repos/pandas-dev/pandas/pulls/37337
2020-10-22T09:57:56Z
2020-10-22T19:14:35Z
null
2020-10-22T19:14:35Z
[WIP] Arrow string array: Split array and dtype
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index f8ff5ac18bbd9..56980eea45a5e 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -455,6 +455,7 @@ def astype(self, dtype, copy=True): NumPy ndarray with 'dtype' for its dtype. """ from panda...
CI testing before considering including in #35259
https://api.github.com/repos/pandas-dev/pandas/pulls/37336
2020-10-22T09:10:43Z
2020-10-22T19:14:47Z
null
2020-10-22T19:14:47Z
CLN make namespace usage in tests consistent
diff --git a/pandas/tests/tools/test_to_datetime.py b/pandas/tests/tools/test_to_datetime.py index 7ee4b86fb4049..33d221daa2503 100644 --- a/pandas/tests/tools/test_to_datetime.py +++ b/pandas/tests/tools/test_to_datetime.py @@ -91,14 +91,14 @@ def test_to_datetime_format_YYYYMMDD(self, cache): # coercion ...
Example pull request for #37334
https://api.github.com/repos/pandas-dev/pandas/pulls/37335
2020-10-22T09:09:17Z
2020-10-22T09:16:21Z
null
2020-10-22T09:18:56Z
REF: extract dialect validation
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 538c15b707761..20c0297448494 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -794,10 +794,8 @@ def __init__(self, f, engine=None, **kwds): _validate_skipfooter(kwds) - if kwds.get("dialect") is not None: - dial...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Following https://github.com/pandas-dev/pandas/pull/36852, I extracted validation of dialect into a separate function.
https://api.github.com/repos/pandas-dev/pandas/pulls/37332
2020-10-22T07:36:10Z
2020-10-23T00:08:28Z
2020-10-23T00:08:28Z
2020-11-06T15:38:43Z
DOC: Remove confusing description from `core.DataFrame.iterrows`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5729d632a64ec..8d5d900cc343f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -971,9 +971,6 @@ def iterrows(self) -> Iterable[Tuple[Label, Series]]: data : Series The data of the row as a Series. - it : generato...
Current [`core.DataFrame.iterrows`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.iterrows.html) is as follows ![image](https://user-images.githubusercontent.com/5734732/96833205-00176c00-147b-11eb-8dc3-6371b2718e76.png) However, `core.DataFrame.iterrows` actually returns an iterator w...
https://api.github.com/repos/pandas-dev/pandas/pulls/37331
2020-10-22T06:36:01Z
2020-10-24T07:31:01Z
2020-10-24T07:31:01Z
2020-10-24T07:31:13Z
BUG: IntervalIndex.take without fill_value
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index d10cb28a3f588..f0e8327e5bce4 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -432,7 +432,7 @@ Strings Interval ^^^^^^^^ - +- Bug in :meth:`IntervalIndex.take` with negative indices and ``fill_value...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry `IntervalIndex.take([0, 1, -1])` without explicitly passing fill_value should not fill the -1 as NA. Fixing this allows us to use the base class `...
https://api.github.com/repos/pandas-dev/pandas/pulls/37330
2020-10-22T02:56:01Z
2020-10-31T18:56:21Z
2020-10-31T18:56:21Z
2021-01-04T06:19:44Z
#31793 Add support for subtracting datetime from Timestamp
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 241c005c400cd..1c1415255bf89 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -715,6 +715,7 @@ Timezones ^^^^^^^^^ - Bug in :func:`to_datetime` with ``infer_datetime_format=True`` failing to parse zer...
- [x] closes #31793 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Based on the discussion in the attached issue, i've made the following changes: 1. add support for subtracting when the two items have different ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37329
2020-10-22T02:48:06Z
2021-12-28T18:00:56Z
2021-12-28T18:00:55Z
2021-12-28T20:22:36Z
Backport PR #37288 on branch 1.1.x (Regression in offsets caused offsets to be no longer hashable)
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index 8a9281ba7de99..f641e7ba4c6f7 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 #37288: Regression in offsets caused offsets to be no longer hashable
https://api.github.com/repos/pandas-dev/pandas/pulls/37326
2020-10-22T00:08:47Z
2020-10-22T07:37:37Z
2020-10-22T07:37:37Z
2020-10-22T07:37:38Z
TST/REF: method-specific files for lookup, get_value, set_value
diff --git a/pandas/tests/frame/indexing/test_get_value.py b/pandas/tests/frame/indexing/test_get_value.py new file mode 100644 index 0000000000000..9a2ec975f1e31 --- /dev/null +++ b/pandas/tests/frame/indexing/test_get_value.py @@ -0,0 +1,19 @@ +import pytest + +from pandas import DataFrame, MultiIndex + + +class Test...
- [ ] 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/37325
2020-10-21T23:07:54Z
2020-10-22T00:12:19Z
2020-10-22T00:12:19Z
2020-10-22T01:12:04Z
TST/REF: collect _libs tests
diff --git a/pandas/tests/groupby/test_bin_groupby.py b/pandas/tests/groupby/test_bin_groupby.py index f20eed4575e91..aff9911961b25 100644 --- a/pandas/tests/groupby/test_bin_groupby.py +++ b/pandas/tests/groupby/test_bin_groupby.py @@ -1,12 +1,10 @@ import numpy as np import pytest -from pandas._libs import groupb...
https://api.github.com/repos/pandas-dev/pandas/pulls/37324
2020-10-21T23:03:25Z
2020-10-22T22:13:36Z
2020-10-22T22:13:36Z
2020-10-22T22:16:39Z
DOC: Add protocol value '5' to pickle #37316
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index d658d799f1fb8..eeaf23fdc06f5 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2780,7 +2780,7 @@ def to_pickle( protocol : int Int which indicates which protocol should be used by the pickler, defaul...
- [X] closes #37316
https://api.github.com/repos/pandas-dev/pandas/pulls/37322
2020-10-21T22:18:57Z
2020-10-22T00:11:03Z
2020-10-22T00:11:03Z
2020-10-22T16:04:19Z
BUG: Index._id
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 6b71e455782e3..3b28361399fba 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -220,7 +220,7 @@ def _outer_indexer(self, left, right): _typ = "index" _data: Union[ExtensionArray, np.ndarray] - _id: _I...
Fixes #37213.
https://api.github.com/repos/pandas-dev/pandas/pulls/37321
2020-10-21T20:16:12Z
2020-10-22T23:31:02Z
2020-10-22T23:31:02Z
2020-10-24T08:05:43Z
ENH: enable Series.info()
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 71903d10a6983..5becbf0a87472 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -217,6 +217,7 @@ Other enhancements - Added "Juneteenth National Independence Day" to ``USFederalHolidayCalendar``. See...
- [ ] closes #5167 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I took over https://github.com/pandas-dev/pandas/pull/31796 from @MarcoGorelli. In this PR I took the tests and the docstring from https://github.co...
https://api.github.com/repos/pandas-dev/pandas/pulls/37320
2020-10-21T19:26:28Z
2021-12-01T01:30:44Z
2021-12-01T01:30:44Z
2021-12-01T01:30:53Z