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
TYP: core.computation mostly
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index 08decb44a8a53..8e61a772912af 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -85,7 +85,7 @@ cdef class BlockPlacement: return iter(self._as_array) @property - def as_slice(self): + def as_sli...
https://api.github.com/repos/pandas-dev/pandas/pulls/29652
2019-11-15T23:48:54Z
2019-11-16T20:55:58Z
2019-11-16T20:55:58Z
2019-11-16T22:24:19Z
CI: Adding GitHub action to assign issues based on comment
diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml new file mode 100644 index 0000000000000..019ecfc484ca5 --- /dev/null +++ b/.github/workflows/assign.yml @@ -0,0 +1,15 @@ +name: Assign +on: + issue_comment: + types: created + +jobs: + one: + runs-on: ubuntu-latest + steps: + - na...
Currently, only maintainers and triagers can assign issues. This implements a hack, so when any contributor writes the keyword `take` in an issue, GitHub actions will automatically assign the issue to the commenter. I think this should be very helpful once people start to assign issues to themselves, since adding...
https://api.github.com/repos/pandas-dev/pandas/pulls/29648
2019-11-15T21:17:57Z
2019-11-17T14:06:56Z
2019-11-17T14:06:56Z
2019-11-17T14:07:03Z
CI: fix flake C413, C414, C416 errors
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3f98273a336cf..3bed68fd8d2fc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: hooks: - id: flake8 language: python_venv - additional_dependencies: [flake8-comprehensions] + ad...
- [x] closes #29644 - [ ] 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/29646
2019-11-15T20:17:55Z
2019-11-16T01:24:05Z
2019-11-16T01:24:05Z
2019-11-16T01:24:17Z
REF: remove unnecessary _try_cast calls
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 9073a1e31dfb0..f6c4836632795 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -397,7 +397,7 @@ def _aggregate_named(self, func, *args, **kwargs): output = func(group, *args, **kwargs) ...
Orthogonal to #29641. _try_cast is a no-op if passed a scalar, so is unnecessary for some reduction/aggregation ops. After #29641 i think we can get rid of more of these calls.
https://api.github.com/repos/pandas-dev/pandas/pulls/29642
2019-11-15T18:04:59Z
2019-11-16T20:58:21Z
2019-11-16T20:58:21Z
2019-11-16T22:19:11Z
REF: make _aggregate_series_pure_python extraction behave like the cython version
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 294cb723eee1a..1f766efd21855 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -31,7 +31,6 @@ class providing the base-class of operations. from pandas.core.dtypes.common import ( ensure_float, ...
After some investigation it turns out that the DTA casting in `_try_cast` is made necessary because we incorrectly pass datetime64tz to `_aggregate_series_fast`, which calls the cython `libreduction.SeriesGrouper`, which casts the input to `ndarray`, losing the timezone. By not going through the cython path for dateti...
https://api.github.com/repos/pandas-dev/pandas/pulls/29641
2019-11-15T17:58:00Z
2019-11-18T00:27:07Z
2019-11-18T00:27:07Z
2019-11-18T15:59:36Z
Refactor string methods for StringArray + return IntegerArray for numeric results
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index d521c745ccfe5..072871f89bdae 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -13,7 +13,7 @@ Text Data Types .. versionadded:: 1.0.0 -There are two main ways to store text data +There are two ways ...
Intended as an alternative to https://github.com/pandas-dev/pandas/pull/29637. This is a much smaller change. It only changes the codepath for StringDtype. I think this is OK since someday (well down the road) we'll want to deprecate the `.str` accessor on object-dtype Series. When we enforce that, we can just de...
https://api.github.com/repos/pandas-dev/pandas/pulls/29640
2019-11-15T17:06:59Z
2019-11-19T16:22:38Z
2019-11-19T16:22:37Z
2019-11-19T16:22:42Z
REGR: fix DataFrame.agg case with list-like return value
diff --git a/pandas/core/base.py b/pandas/core/base.py index 1c74c977e39bc..e070005c56d7a 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -602,9 +602,9 @@ def _aggregate_multiple_funcs(self, arg, _level, _axis): if not len(results): raise ValueError("no results") - if all(np...
xref https://github.com/pandas-dev/pandas/pull/29587 cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/29632
2019-11-15T09:07:00Z
2019-11-18T07:55:22Z
2019-11-18T07:55:22Z
2019-11-18T07:55:25Z
TST: add test case for user-defined function taking correct path in groupby transform
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 0ca6ef043fffb..2d882437805b2 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1380,7 +1380,7 @@ def _define_paths(self, func, *args, **kwargs): ) return fast_path, slow_path - ...
I kept this one in place because I thought fast_path could be user-defined (see comment on L1425), but it turns out we define it in _define_paths a few lines above. So this try/except is unnecessary.
https://api.github.com/repos/pandas-dev/pandas/pulls/29631
2019-11-15T03:40:58Z
2019-11-20T12:49:25Z
2019-11-20T12:49:25Z
2019-11-20T15:16:23Z
TST: fix DecimalArray._reduce kludges
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 9073a1e31dfb0..bf0b4f2f7e470 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -897,13 +897,6 @@ def aggregate(self, func=None, *args, **kwargs): # raised directly by _aggregate_...
https://api.github.com/repos/pandas-dev/pandas/pulls/29630
2019-11-15T03:08:33Z
2019-11-18T19:44:47Z
2019-11-18T19:44:47Z
2019-11-18T20:02:38Z
Backport PR #44834 on branch 1.3.x (CI: Pin numpydev wheels)
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 4fe58ad4d60e9..d6b5901a5d196 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -48,7 +48,8 @@ jobs: shell: bash run: | python -m pip install --upgrade pip setuptools wheel ...
Backport PR #44834: CI: Pin numpydev wheels
https://api.github.com/repos/pandas-dev/pandas/pulls/44838
2021-12-10T09:45:19Z
2021-12-10T10:55:34Z
2021-12-10T10:55:34Z
2021-12-10T10:55:34Z
CI: Pin numpydev wheels
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 2639aa26b6eed..41e1a7c86d392 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -49,7 +49,8 @@ jobs: shell: bash run: | python -m pip install --upgrade pip setuptools wheel ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Honestly, Python 3.10 should be moved to the posix file, xref #43890. I don't have tim...
https://api.github.com/repos/pandas-dev/pandas/pulls/44834
2021-12-10T04:16:28Z
2021-12-10T09:44:49Z
2021-12-10T09:44:49Z
2021-12-10T15:02:09Z
PERF: array_equivalent_object
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index 656441b6a5136..47949334df021 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -479,9 +479,17 @@ def _array_equivalent_datetimelike(left, right): return np.array_equal(left.view("i8"), right.view("i8"))...
``` from asv_bench.benchmarks.frame_methods import * self = Equals() self.setup() df = self.nonunique_cols df2 = df.T %timeit df.equals(df) 26.4 ms ± 667 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 25.9 ms ± 1.36 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44832
2021-12-10T02:08:36Z
2021-12-11T01:24:15Z
2021-12-11T01:24:15Z
2021-12-11T17:58:31Z
Backport PR #44828 on branch 1.3.x (REGR: resampling DataFrame with DateTimeIndex with empty groups and uint8, uint16 or uint32 columns incorrectly raising RuntimeError)
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index 048cd978c4478..49d37eff63323 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`Series.equals` when comparing floats with ...
Backport PR #44828: REGR: resampling DataFrame with DateTimeIndex with empty groups and uint8, uint16 or uint32 columns incorrectly raising RuntimeError
https://api.github.com/repos/pandas-dev/pandas/pulls/44831
2021-12-10T00:23:19Z
2021-12-10T12:19:46Z
2021-12-10T12:19:46Z
2021-12-10T12:19:46Z
BUG: IntervalArray.__cmp__(pd.NA)
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 6248154422252..16094bd88d66f 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -38,6 +38,7 @@ is_unsigned_integer_dtype, pandas_dtype, ) +from pandas.core.dtypes.dtypes import IntervalDtype import pand...
- [x] closes #31882 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Could repurpose #31882 to be about the more general case and not just IntervalArray? ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44830
2021-12-09T21:17:35Z
2021-12-11T01:22:41Z
2021-12-11T01:22:41Z
2021-12-12T01:15:05Z
BUG: SparseArray.min/max skipna
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 128ca6643eceb..a5fbf53a96592 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -1491,49 +1491,50 @@ def mean(self, axis=0, *args, **kwargs): nsparse = self.sp_index.ngaps ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Not user-facing unless you're using SparseArray directly; Series and DataFrame will st...
https://api.github.com/repos/pandas-dev/pandas/pulls/44829
2021-12-09T16:32:42Z
2021-12-11T01:24:59Z
2021-12-11T01:24:59Z
2021-12-11T18:24:23Z
REGR: resampling DataFrame with DateTimeIndex with empty groups and uint8, uint16 or uint32 columns incorrectly raising RuntimeError
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index 048cd978c4478..49d37eff63323 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`Series.equals` when comparing floats with ...
- [ ] closes #43329 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44828
2021-12-09T15:20:02Z
2021-12-10T00:22:30Z
2021-12-10T00:22:30Z
2021-12-10T09:22:48Z
PERF: faster dataframe construction from recarray
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 71d5c46b81ea0..c3cf64c84510e 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -547,7 +547,7 @@ Performance improvements - Performance improvement in :meth:`.GroupBy.sample`, especially when ``weights``...
- [x] closes #44826 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry ```python n = int(1e6) df = pd.DataFrame({"A": [.0]*n}) arr = df.to_records(index=...
https://api.github.com/repos/pandas-dev/pandas/pulls/44827
2021-12-09T12:50:22Z
2021-12-09T18:30:37Z
2021-12-09T18:30:36Z
2021-12-10T03:51:39Z
BUG: Fix regression in groupby.rolling.corr/cov when other is same size as each group
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index 49d37eff63323..533924be03d9c 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -21,7 +21,7 @@ Fixed regressions - Fixed performance regression in :func:`read_csv` (:issue:`44106`) - Fixed regression in...
- [x] closes #42915 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44824
2021-12-09T00:12:42Z
2021-12-10T23:55:49Z
2021-12-10T23:55:49Z
2021-12-12T23:48:59Z
CI: Troubleshoot CI
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 41e1a7c86d392..2639aa26b6eed 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -49,8 +49,7 @@ jobs: shell: bash run: | python -m pip install --upgrade pip setuptools wheel ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Tacked some CI-troubleshooting stuff onto the just-started FIXMES21 branch.
https://api.github.com/repos/pandas-dev/pandas/pulls/44822
2021-12-08T20:55:15Z
2021-12-11T01:04:45Z
2021-12-11T01:04:45Z
2021-12-11T18:03:02Z
REF: use dispatch_reduction_ufunc in PandasArray.__array_ufunc__
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index bfc537062a304..579d77369d27c 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -18,6 +18,7 @@ from pandas.core.dtypes.missing import isna from pandas.core import ( + arraylike, nanops, ops, ) @...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44820
2021-12-08T17:38:09Z
2021-12-14T02:11:40Z
2021-12-14T02:11:40Z
2021-12-14T05:52:53Z
API: hide NumericIndex from public top-level namespace in favor of pd.Index
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index 1ce75f5aac877..ddfef14036ef3 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -170,7 +170,6 @@ Numeric Index :toctree: api/ :template: autosummary/class_without_autosummary.rst - ...
Starting a PR for this to bump the discussion in https://github.com/pandas-dev/pandas/issues/41272#issuecomment-949490626 This PR already removes `NumericIndex` from the top-level namespace, but does not yet enable getting a NumericIndex otherwise. I we want to go forward with this proposal, we will have to choose b...
https://api.github.com/repos/pandas-dev/pandas/pulls/44819
2021-12-08T16:12:16Z
2022-01-01T00:46:49Z
2022-01-01T00:46:49Z
2022-01-21T08:05:03Z
CI: Install more packages from conda-forge
diff --git a/ci/deps/actions-38-db.yaml b/ci/deps/actions-38-db.yaml index c08c642049b41..05b9eb8446af8 100644 --- a/ci/deps/actions-38-db.yaml +++ b/ci/deps/actions-38-db.yaml @@ -45,9 +45,7 @@ dependencies: - xlrd - xlsxwriter - xlwt - - pip - - pip: - - brotlipy - - coverage - - pandas-datareader...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Let's see how this goes. Not sure if any of those pip installs are there on purpose or...
https://api.github.com/repos/pandas-dev/pandas/pulls/44817
2021-12-08T10:32:49Z
2021-12-22T02:41:38Z
2021-12-22T02:41:38Z
2021-12-22T02:41:43Z
CLN: Split test_fields.py
diff --git a/pandas/tests/tslibs/test_fields.py b/pandas/tests/tslibs/test_fields.py index e5fe998923f8d..9d0b3ff4fca80 100644 --- a/pandas/tests/tslibs/test_fields.py +++ b/pandas/tests/tslibs/test_fields.py @@ -1,28 +1,39 @@ import numpy as np +import pytest from pandas._libs.tslibs import fields import pandas...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44816
2021-12-08T06:05:47Z
2021-12-08T16:21:30Z
2021-12-08T16:21:30Z
2021-12-08T18:02:46Z
CLN: test_hashing
diff --git a/pandas/tests/util/test_hashing.py b/pandas/tests/util/test_hashing.py index e4a46de11ceb7..6eee756f67a2e 100644 --- a/pandas/tests/util/test_hashing.py +++ b/pandas/tests/util/test_hashing.py @@ -37,39 +37,6 @@ def index(request): return request.param -def _check_equal(obj, **kwargs): - """ - ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them * In-line some helper functions to help reduce indirection * Simplified `pytest.mark.parameterize` calls * Split some tests in...
https://api.github.com/repos/pandas-dev/pandas/pulls/44815
2021-12-08T06:03:55Z
2021-12-08T13:53:11Z
2021-12-08T13:53:11Z
2021-12-08T18:04:22Z
CI: use pytest-timeout to avoid windows timeouts
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 8b3a5a23d7a97..2639aa26b6eed 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -51,7 +51,7 @@ jobs: python -m pip install --upgrade pip setuptools wheel pip install -i https://p...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Broken off from #44429, where I haven't seen any of the windows timeouts over quite a ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44814
2021-12-08T04:39:30Z
2021-12-08T13:54:37Z
2021-12-08T13:54:37Z
2021-12-08T15:31:36Z
Clarify regex interpretation in str.contains
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index b5f3af5af8e38..d5abd1606edec 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -1212,8 +1212,8 @@ def contains(self, pat, case=True, flags=0, na=None, regex=True): """ if regex and ...
Fix GH44811 - [x] closes #44811 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry *Seems unnecesssary*
https://api.github.com/repos/pandas-dev/pandas/pulls/44812
2021-12-08T01:11:54Z
2021-12-08T13:55:24Z
2021-12-08T13:55:23Z
2021-12-08T17:13:20Z
TST: fix 217 incorrect skips
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 104bce0369d37..731efdc3b17f0 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -92,8 +92,6 @@ class DatetimeIndexOpsMixin(NDArrayBackedExtensionIndex): freq: BaseOffset | None ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry and a kludge in 2D tests
https://api.github.com/repos/pandas-dev/pandas/pulls/44810
2021-12-08T00:47:55Z
2021-12-08T13:56:22Z
2021-12-08T13:56:22Z
2021-12-08T15:35:08Z
CI: PyPy3 testing
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 19b96c866923f..53c38b5d47b24 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -31,6 +31,7 @@ jobs: [actions-38-slow.yaml, "slow", "", "", "", "", ""], [actions-38-locale.yaml, "not slow and no...
- [ ] xref #37653 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44809
2021-12-08T00:35:53Z
2021-12-14T17:58:12Z
2021-12-14T17:58:12Z
2021-12-14T21:57:56Z
CLN: test_holiday
diff --git a/pandas/tests/tseries/holiday/test_holiday.py b/pandas/tests/tseries/holiday/test_holiday.py index 8ed88d5593547..cefb2f86703b2 100644 --- a/pandas/tests/tseries/holiday/test_holiday.py +++ b/pandas/tests/tseries/holiday/test_holiday.py @@ -26,29 +26,6 @@ ) -def _check_holiday_results(holiday, start, e...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them In-line a helper function to reduce misdirection in tests. In-line input argument logic.
https://api.github.com/repos/pandas-dev/pandas/pulls/44808
2021-12-08T00:29:08Z
2021-12-08T13:52:20Z
2021-12-08T13:52:20Z
2021-12-08T18:03:57Z
CLN: frequencies/test_inference.py
diff --git a/pandas/tests/tseries/frequencies/test_inference.py b/pandas/tests/tseries/frequencies/test_inference.py index cbbe29fb6cf9a..f8fde000354e0 100644 --- a/pandas/tests/tseries/frequencies/test_inference.py +++ b/pandas/tests/tseries/frequencies/test_inference.py @@ -28,22 +28,36 @@ import pandas.tseries.offs...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Leverage more `pytest.mark.parametrize`
https://api.github.com/repos/pandas-dev/pandas/pulls/44807
2021-12-08T00:24:57Z
2021-12-08T13:51:48Z
2021-12-08T13:51:48Z
2021-12-08T18:03:44Z
TST: group by - apply Key Error
diff --git a/pandas/tests/groupby/test_apply.py b/pandas/tests/groupby/test_apply.py index e95ab700e12d3..e81a902b84780 100644 --- a/pandas/tests/groupby/test_apply.py +++ b/pandas/tests/groupby/test_apply.py @@ -1177,3 +1177,25 @@ def test_apply_empty_string_nan_coerce_bug(): index=MultiIndex.from_tuples([(1,...
- [x] closes #44310 - [X] tests added / passed - [X] ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44806
2021-12-07T20:51:12Z
2021-12-10T21:12:51Z
2021-12-10T21:12:51Z
2021-12-10T22:30:28Z
TST: split/parametrize
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index dbc26d6e61d01..08f92698ed9a0 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1385,7 +1385,8 @@ def assert_equal(left, right, **kwargs): assert kwargs == {} assert left == right else: - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44805
2021-12-07T20:49:03Z
2021-12-07T23:23:48Z
2021-12-07T23:23:48Z
2021-12-07T23:58:50Z
CLN: xfails, FIXMEs
diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index 016d958c973a7..b78cfd3fb39fb 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -149,6 +149,7 @@ def _assert_caught_no_extra_warnings( if _is_unexpected_warning(actual_warning, expected_warning): ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44804
2021-12-07T19:45:03Z
2021-12-07T23:22:54Z
2021-12-07T23:22:54Z
2021-12-07T23:22:54Z
TYP: mostly missing return annotations in IO
diff --git a/pandas/io/clipboards.py b/pandas/io/clipboards.py index 5990acd7191db..0968f1facf128 100644 --- a/pandas/io/clipboards.py +++ b/pandas/io/clipboards.py @@ -1,4 +1,6 @@ """ io on the clipboard """ +from __future__ import annotations + from io import StringIO import warnings @@ -10,7 +12,7 @@ ) -de...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44801
2021-12-07T14:12:43Z
2021-12-28T15:03:32Z
2021-12-28T15:03:32Z
2022-03-09T02:56:41Z
TST: Avoid hanging behavior in test_user_agent.py
diff --git a/pandas/tests/io/test_user_agent.py b/pandas/tests/io/test_user_agent.py index cabdbbdb44830..1620b446800e0 100644 --- a/pandas/tests/io/test_user_agent.py +++ b/pandas/tests/io/test_user_agent.py @@ -39,11 +39,10 @@ def gzip_bytes(self, response_bytes): """ some web servers will send back...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Possibility why these builds timeout https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=70292&view=logs&jobId=054c...
https://api.github.com/repos/pandas-dev/pandas/pulls/44797
2021-12-07T05:33:24Z
2021-12-07T14:15:15Z
2021-12-07T14:15:15Z
2021-12-07T16:58:44Z
PERF: DataFrame.__setitem__
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 603ac878bc660..1e798a39a2ece 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1457,7 +1457,8 @@ def iget(self, col): def set_inplace(self, locs, values) -> None: # NB: This is a misno...
Looks good based on frame_methods benchmarks, will run a full set overnight. ``` asv continuous -E virtualenv -f 1.01 master HEAD -b frame_methods [...] before after ratio [0b0cac5c] [b21496b1] <bug-fillna-inplace> <perf-isetitem> - 30.0±0.9ms 26.8±0.2m...
https://api.github.com/repos/pandas-dev/pandas/pulls/44796
2021-12-07T02:06:06Z
2021-12-11T01:25:46Z
2021-12-11T01:25:46Z
2021-12-11T17:58:06Z
BUG/TST: ArrowStringArray skips/xfails
diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py index 0a6bc97237ddd..53fc38a973110 100644 --- a/pandas/core/arrays/string_arrow.py +++ b/pandas/core/arrays/string_arrow.py @@ -367,7 +367,7 @@ def _cmp_method(self, other, op): pc_func = ARROW_CMP_FUNCS[op.__name__] ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry This fixes `ArrowStringArray.__eq__(some_list)`, but the Series method already works s...
https://api.github.com/repos/pandas-dev/pandas/pulls/44795
2021-12-06T23:16:35Z
2021-12-07T23:20:11Z
2021-12-07T23:20:11Z
2021-12-08T00:01:41Z
ENH: support np.add.reduce, np.multiply.reduce
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 1c1415255bf89..b230c009472d7 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -928,7 +928,7 @@ ExtensionArray ^^^^^^^^^^^^^^ - Bug in :func:`array` failing to preserve :class:`PandasArray` (:issue:`43...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44793
2021-12-06T20:35:26Z
2021-12-29T16:13:54Z
2021-12-29T16:13:54Z
2021-12-29T16:15:05Z
REF: share MaskedArray reduction methods
diff --git a/pandas/core/arrays/floating.py b/pandas/core/arrays/floating.py index 7afaa12da12fb..4c868747fa930 100644 --- a/pandas/core/arrays/floating.py +++ b/pandas/core/arrays/floating.py @@ -14,7 +14,6 @@ DtypeObj, npt, ) -from pandas.compat.numpy import function as nv from pandas.util._decorators imp...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44790
2021-12-06T19:52:31Z
2021-12-07T14:14:44Z
2021-12-07T14:14:44Z
2021-12-07T16:26:06Z
ENH: add support for reading .tar archives
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index f0ef198d09375..2ad78fc56d8df 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -100,6 +100,31 @@ as seen in the following example. 1 2021-01-02 08:00:00 4 2 2021-01-02 16...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry At the moment, reading from `.tar.gz` will decode using `.gzip`, but interprets the `tar` contents as if i...
https://api.github.com/repos/pandas-dev/pandas/pulls/44787
2021-12-06T13:01:38Z
2022-05-07T21:15:05Z
2022-05-07T21:15:05Z
2022-05-07T21:15:53Z
CLN: fixup duplicated getitem call from GH-44624
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 1b9759c451765..989abe69a5cc7 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -338,7 +338,6 @@ def __getitem__( result = cast( "Union[DatetimeLikeArrayT, DTScalarOr...
Small oversight from https://github.com/pandas-dev/pandas/pull/44624
https://api.github.com/repos/pandas-dev/pandas/pulls/44781
2021-12-06T08:08:49Z
2021-12-06T09:09:23Z
2021-12-06T09:09:23Z
2021-12-06T12:08:20Z
TST: Refactor test_expressions.py
diff --git a/pandas/tests/test_expressions.py b/pandas/tests/test_expressions.py index 6e386869c15f8..d8afb4ab83dfd 100644 --- a/pandas/tests/test_expressions.py +++ b/pandas/tests/test_expressions.py @@ -48,11 +48,6 @@ @pytest.mark.skipif(not expr.USE_NUMEXPR, reason="not using numexpr") class TestExpressions: ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Enable more `pytest.mark.parametrize`
https://api.github.com/repos/pandas-dev/pandas/pulls/44778
2021-12-06T02:40:44Z
2021-12-06T22:19:25Z
2021-12-06T22:19:24Z
2021-12-06T22:19:29Z
CLN: memory_map do not silently fail
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index fd87a85f378d0..a0afebd2353d4 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -746,6 +746,8 @@ I/O - Bug in :func:`read_csv` raising ``AttributeError`` when attempting to read a .csv file and infer ind...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44777
2021-12-06T02:39:04Z
2021-12-06T18:44:47Z
2021-12-06T18:44:47Z
2022-04-01T01:36:41Z
TST: pytest.mark.parameterize some tests
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 8e80463a9c600..1926dbbd35372 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -48,31 +48,28 @@ def test_reindex_level(self, multiindex_year_month_day_dataframe_random_data): expected = ymd....
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44776
2021-12-06T01:59:51Z
2021-12-06T14:31:08Z
2021-12-06T14:31:08Z
2021-12-06T17:21:46Z
CI: Filter any SSLSocket ResouceWarnings from dependencies
diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index f66614bd02a3f..016d958c973a7 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -147,9 +147,14 @@ def _assert_caught_no_extra_warnings( for actual_warning in caught_warnings: if _is_unexpected_war...
- [x] closes #44732 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44775
2021-12-06T01:41:09Z
2021-12-06T18:43:10Z
2021-12-06T18:43:09Z
2021-12-07T03:39:38Z
TST: Add regression test for groupby rolling
diff --git a/pandas/tests/window/test_groupby.py b/pandas/tests/window/test_groupby.py index c4efcd140baae..05f485fcc3c65 100644 --- a/pandas/tests/window/test_groupby.py +++ b/pandas/tests/window/test_groupby.py @@ -838,6 +838,33 @@ def test_as_index_false(self, by, expected_data): ) tm.assert_frame_...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44774
2021-12-06T01:30:29Z
2021-12-06T14:32:38Z
2021-12-06T14:32:38Z
2021-12-06T17:21:55Z
fix PR06 failing CI
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 24bf86147d3e1..01f817300a01a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1102,7 +1102,7 @@ def to_string( ... @Substitution( - header_type="bool or sequence of strings", + header_type="bool or sequence of s...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/43511#issuecomment-986314251
https://api.github.com/repos/pandas-dev/pandas/pulls/44773
2021-12-05T22:44:52Z
2021-12-06T00:56:59Z
2021-12-06T00:56:59Z
2021-12-06T09:19:16Z
BUG: FloatingArray * np.timedelta64
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2249790b7ff1b..1c826d5f27d70 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -643,6 +643,7 @@ Numeric - Bug in arithmetic operations involving :class:`RangeIndex` where the result would have the incor...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry And share maybe_mask_result along the way.
https://api.github.com/repos/pandas-dev/pandas/pulls/44772
2021-12-05T21:47:48Z
2021-12-06T09:50:42Z
2021-12-06T09:50:42Z
2021-12-07T00:07:54Z
CLN: FIXMEs
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index aef5c3049f295..b22a6840644ec 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -642,7 +642,6 @@ def _warn_if_deprecated(key: str) -> bool: d = _get_deprecated_option(key) if d: if d.msg: - print(d....
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44771
2021-12-05T21:12:24Z
2021-12-06T02:18:23Z
2021-12-06T02:18:22Z
2021-12-06T05:57:19Z
ENH: Enabling parsing ulonglong from json
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2249790b7ff1b..944f7727ee559 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -228,6 +228,7 @@ Other enhancements - :meth:`.Rolling.var`, :meth:`.Expanding.var`, :meth:`.Rolling.std`, :meth:`.Expanding...
- [x] closes #26068 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44770
2021-12-05T20:36:15Z
2021-12-10T18:51:43Z
2021-12-10T18:51:43Z
2021-12-29T10:01:53Z
TYP: Create DeepChainMap from ChainMap.new_child in scope.py
diff --git a/pandas/core/computation/scope.py b/pandas/core/computation/scope.py index 426cd8fd81f28..d4fbe226a3ae2 100644 --- a/pandas/core/computation/scope.py +++ b/pandas/core/computation/scope.py @@ -133,18 +133,13 @@ def __init__( # shallow copy here because we don't want to replace what's in ...
xref #37715 scope is created as a DeepChainMap but on lines 139, 145, 262 call to new_child was returning ChainMap. Created a new DeepChainMap from the resulting ChainMap.
https://api.github.com/repos/pandas-dev/pandas/pulls/44769
2021-12-05T18:11:10Z
2021-12-14T02:10:10Z
2021-12-14T02:10:10Z
2021-12-20T16:26:32Z
REF: use idiomatic checks in __array_ufunc__
diff --git a/pandas/core/arraylike.py b/pandas/core/arraylike.py index c496099e3a8d2..1df999b1dbcce 100644 --- a/pandas/core/arraylike.py +++ b/pandas/core/arraylike.py @@ -326,13 +326,16 @@ def array_ufunc(self, ufunc: np.ufunc, method: str, *inputs: Any, **kwargs: Any) reconstruct_kwargs = {} def reco...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry The current checks can bite us in corner cases with nested tuples. Though woe betide ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44765
2021-12-05T05:35:14Z
2021-12-07T23:25:41Z
2021-12-07T23:25:40Z
2021-12-07T23:57:55Z
BUG: Raise TypeError for scalar indexer in take
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 55f3bf334fa2e..78031fd0456f7 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -230,6 +230,7 @@ Other enhancements - Implemented :meth:`IntervalArray.min`, :meth:`IntervalArray.max`, as a result of whic...
- [x] closes #42875 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44763
2021-12-05T01:27:36Z
2021-12-10T21:08:16Z
2021-12-10T21:08:15Z
2021-12-10T21:08:27Z
BUG: MultiIndex union setting wrong sortorder parameter
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c3cf64c84510e..6ca77bdb1a21a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -714,6 +714,7 @@ MultiIndex - Bug in :meth:`MultiIndex.get_loc` where the first level is a :class:`DatetimeIndex` and a str...
- [x] closes #44752 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44762
2021-12-04T23:31:18Z
2021-12-10T17:38:50Z
2021-12-10T17:38:49Z
2021-12-11T06:11:34Z
ENH: support SpooledTemporaryFile
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 78031fd0456f7..7cf8c07683514 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -752,6 +752,7 @@ I/O - :meth:`DataFrame.to_csv` and :meth:`Series.to_csv` with ``compression`` set to ``'zip'`` no longer c...
- [x] closes #44748 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44761
2021-12-04T22:14:12Z
2021-12-11T01:23:20Z
2021-12-11T01:23:20Z
2022-03-09T02:56:30Z
TST: Parameterize test_algos.py
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 779d6e6b6bb0f..1345a66673d1c 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -779,7 +779,8 @@ def test_different_nans(self): expected = np.array([np.nan]) tm.assert_numpy_array_equal(result, expected...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44760
2021-12-04T20:36:23Z
2021-12-04T23:44:01Z
2021-12-04T23:44:01Z
2021-12-06T00:52:09Z
Fix compression misspelling in ExcelWriter
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 673dbba628976..a5db36cee4254 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -1000,7 +1000,7 @@ def __init__( # cast ExcelWriter to avoid adding 'if self.handles is not None' self.handles = IOHandles( - ...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Should still be a no-op since compression is being set to `None`
https://api.github.com/repos/pandas-dev/pandas/pulls/44759
2021-12-04T20:17:27Z
2021-12-04T23:46:14Z
2021-12-04T23:46:14Z
2021-12-06T00:52:21Z
PERF: unstack
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 587b9593e58fc..603ac878bc660 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1252,7 +1252,7 @@ def _unstack( unstacker, fill_value, new_placement: npt.NDArray[np.intp], ...
``` from asv_bench.benchmarks.reshape import * self = Unstack() self.setup("category") %timeit self.time_without_last_row("category") 77.3 ms ± 1.97 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 21.2 ms ± 788 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/44758
2021-12-04T19:29:39Z
2021-12-06T17:50:03Z
2021-12-06T17:50:03Z
2021-12-06T19:04:43Z
DOC: Uniform block directive syntax.
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f6f46299e277d..ea15e135455ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -111,6 +111,8 @@ repos: # Incorrect code-block / IPython directives |\.\.\ code-block\ :: |\.\.\ ipython\ :: + ...
block directive syntax technically does not have space before the double-colon. While this seem to be accepted by docutils – but not documented, this can throw off other RST parser/syntax highlighter. Sometime they can see that as comments, sometime they give garbage out. Plus this is really uncommon with 3 oc...
https://api.github.com/repos/pandas-dev/pandas/pulls/44757
2021-12-04T18:50:32Z
2021-12-05T22:38:03Z
2021-12-05T22:38:03Z
2021-12-05T22:38:06Z
CI/DOC: warning in docbuild
diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index aa2749c85a232..bd47e6e4bc025 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -181,6 +181,7 @@ labeled the aggregated group with the end of the interval: the next day). ``X0``, ``X1``, ...) can b...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44756
2021-12-04T18:44:42Z
2021-12-04T23:33:19Z
2021-12-04T23:33:19Z
2021-12-04T23:41:10Z
ENH: reset_index on a MultiIndex with duplicate levels raises a ValueError
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 1d4054d5ea0f1..c80c446eca6b7 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -35,6 +35,7 @@ Other enhancements - :class:`StringArray` now accepts array-likes containing nan-likes (``None``, ``np.nan``...
- [x ] closes #44410 - [x ] tests added / passed - [x ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44755
2021-12-04T18:18:05Z
2022-01-30T18:37:00Z
2022-01-30T18:36:59Z
2022-01-30T22:42:17Z
REGR: find_stack_level reverts
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 9cfcd0adc92ec..67dc6ade25254 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -940,7 +940,7 @@ def set_categories( "a future version. Removing unused categories will always ...
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Followup to #44358. Both reverts to the tests were from #44449. ~Will post asvs.~ <details> <summary>ASV</summary> ``` before after...
https://api.github.com/repos/pandas-dev/pandas/pulls/44753
2021-12-04T16:06:09Z
2021-12-04T23:47:06Z
2021-12-04T23:47:06Z
2021-12-12T16:03:50Z
CLN: Todo test reductions in test_style.py
diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py index e793857989ac1..fa054ff7ca6c0 100644 --- a/pandas/tests/io/formats/style/test_style.py +++ b/pandas/tests/io/formats/style/test_style.py @@ -574,36 +574,6 @@ def test_index_name(self): } assert ...
removed a test that I noticed was duplicated when editing the other.
https://api.github.com/repos/pandas-dev/pandas/pulls/44750
2021-12-04T07:26:14Z
2021-12-04T23:48:26Z
2021-12-04T23:48:26Z
2021-12-07T08:55:58Z
BUG: series.interpolate(inplace=True) *actually* inplace
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4a4e7dd6d15d7..82415319e96ce 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -693,6 +693,7 @@ Missing - Bug in :meth:`DataFrame.fillna` with limit and no method ignores axis='columns' or ``axis = 1`` ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44749
2021-12-04T04:58:09Z
2021-12-04T23:54:00Z
2021-12-04T23:54:00Z
2021-12-04T23:54:01Z
ENH: implement tm.shares_memory
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 4f9ef2c3c3ffa..a89946d1f8cc8 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -110,12 +110,15 @@ UInt64Index, ) from pandas.core.arrays import ( + BaseMaskedArray, DatetimeArray, + ExtensionArray,...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry xref #44152 Dedicated implementation based on https://github.com/pandas-dev/pandas/...
https://api.github.com/repos/pandas-dev/pandas/pulls/44747
2021-12-04T02:21:25Z
2021-12-04T23:52:58Z
2021-12-04T23:52:58Z
2021-12-06T09:55:38Z
ENH: IntervalArray.min/max
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index fd87a85f378d0..c73706878e856 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -227,6 +227,7 @@ Other enhancements ``USFederalHolidayCalendar``. See also `Other API changes`_. - :meth:`.Rolling.var`...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44746
2021-12-04T02:14:03Z
2021-12-06T02:10:18Z
2021-12-06T02:10:18Z
2021-12-06T06:19:29Z
CLN/TST: skips -> xfails
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index a89946d1f8cc8..6248154422252 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -1077,14 +1077,16 @@ def shares_memory(left, right) -> bool: if isinstance(left, NDArrayBackedExtensionArray): return sh...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44744
2021-12-04T00:56:08Z
2021-12-05T20:12:28Z
2021-12-05T20:12:28Z
2021-12-05T21:19:18Z
TST: stricten xfails
diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py index 4c26047d98acc..9ad3c1328cdae 100644 --- a/pandas/tests/io/parser/common/test_chunksize.py +++ b/pandas/tests/io/parser/common/test_chunksize.py @@ -162,7 +162,6 @@ def test_chunk_begins_with_newline_whit...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44741
2021-12-03T23:35:34Z
2021-12-07T23:24:41Z
2021-12-07T23:24:41Z
2021-12-07T23:58:18Z
DOC: Fix swaplevel docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9e6faa7037dae..28a4d0f4196d7 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6790,7 +6790,8 @@ def nsmallest(self, n: int, columns: IndexLabel, keep: str = "first") -> DataFra 'columns' for column-wise.""" ), ...
- [x] closes #44739 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44740
2021-12-03T22:40:12Z
2021-12-08T16:22:48Z
2021-12-08T16:22:47Z
2021-12-08T16:22:58Z
REF: share _reduce method
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 21f83f8373586..1a876b05d2073 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -339,14 +339,6 @@ def fillna( # ------------------------------------------------------------------------ # Reductions ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44737
2021-12-03T16:36:25Z
2021-12-04T23:52:26Z
2021-12-04T23:52:26Z
2021-12-05T00:14:01Z
DOC: Improve code example for DataFrame.join
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9e6faa7037dae..a2b53a04302d6 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9183,6 +9183,29 @@ def join( 3 K3 A3 NaN 4 K4 A4 NaN 5 K5 A5 NaN + + Using non-unique key values shows how they are matc...
The modified code example does not have unique values in the 'key' column in the calling DataFrame `df`. With unique keys the special behavior of `join` has not been highlighted, since it just added a new column. With the modified values the example shows that the 'key' column is really used as key.
https://api.github.com/repos/pandas-dev/pandas/pulls/44735
2021-12-03T12:45:10Z
2021-12-04T23:34:48Z
2021-12-04T23:34:48Z
2021-12-05T01:50:15Z
CLN: TODOs
diff --git a/pandas/tests/arrays/boolean/test_construction.py b/pandas/tests/arrays/boolean/test_construction.py index f080bf7e03412..15f92f2567c1c 100644 --- a/pandas/tests/arrays/boolean/test_construction.py +++ b/pandas/tests/arrays/boolean/test_construction.py @@ -321,19 +321,3 @@ def test_to_numpy_copy(): res...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44733
2021-12-03T05:02:25Z
2021-12-03T18:37:25Z
2021-12-03T18:37:25Z
2021-12-03T18:44:32Z
CI: Run sdist build less often
diff --git a/.github/workflows/sdist.yml b/.github/workflows/sdist.yml index dd030f1aacc44..1d9c8701d42d4 100644 --- a/.github/workflows/sdist.yml +++ b/.github/workflows/sdist.yml @@ -9,11 +9,13 @@ on: branches: - main - 1.4.x + types: [labeled, opened, synchronize, reopened] paths-ignore: ...
- [ ] closes #43745 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Need to test all possible combos of - Run on merged commits [tested] - Run when la...
https://api.github.com/repos/pandas-dev/pandas/pulls/44731
2021-12-03T00:02:00Z
2022-02-27T00:09:24Z
2022-02-27T00:09:24Z
2022-02-27T01:08:59Z
TST: dont skip dt64tz rolling tests
diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py index bf1af0c83c93f..09233e3f31c89 100644 --- a/pandas/tests/window/conftest.py +++ b/pandas/tests/window/conftest.py @@ -200,13 +200,7 @@ def halflife_with_times(request): "float64", "m8[ns]", "M8[ns]", - p...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry cc @mroeschke removing the 'category' skip doesn't break anything but i have no idea i...
https://api.github.com/repos/pandas-dev/pandas/pulls/44730
2021-12-02T23:24:50Z
2021-12-03T18:37:49Z
2021-12-03T18:37:49Z
2021-12-03T18:43:45Z
TST: remove non-strict xfails
diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 747770ad78684..f228c826bc795 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1741,11 +1741,6 @@ def test_json_multiindex(self, dataframe, expected): result = series.to_jso...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry If/when this gets to green, I'll want to re-run it a few times to make sure it stays t...
https://api.github.com/repos/pandas-dev/pandas/pulls/44728
2021-12-02T21:50:38Z
2021-12-03T23:14:01Z
2021-12-03T23:14:01Z
2021-12-03T23:17:57Z
PERF: slow tests
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index bb208785f46fa..1b9759c451765 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -35,6 +35,7 @@ Timestamp, delta_to_nanoseconds, iNaT, + ints_to_pydatetime, to_offset...
- [x] closes #44624 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Biggest difference is in test_get_loc_tuple_monotonic_above_size_cutoff going from 12...
https://api.github.com/repos/pandas-dev/pandas/pulls/44727
2021-12-02T19:39:58Z
2021-12-03T16:55:56Z
2021-12-03T16:55:55Z
2021-12-03T18:32:03Z
TST: Fix local run on s3 tests
diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py index ba9f9aa3f6a49..8c5bd6ec170e5 100644 --- a/pandas/tests/io/conftest.py +++ b/pandas/tests/io/conftest.py @@ -40,8 +40,13 @@ def feather_file(datapath): @pytest.fixture -def s3so(): - return {"client_kwargs": {"endpoint_url": "http://loc...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them xref https://github.com/pandas-dev/pandas/pull/44612#issuecomment-984548056 cc @simonjayhawkins I ran this locally on some te...
https://api.github.com/repos/pandas-dev/pandas/pulls/44725
2021-12-02T17:20:53Z
2021-12-02T19:02:38Z
2021-12-02T19:02:38Z
2021-12-03T11:02:31Z
PERF: DataFrame.T
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 61d38c43aca24..c55305e2d69b9 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -295,7 +295,7 @@ def ndarray_to_mgr( copy_on_sanitize = False if typ == "array" else copy ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Perf regression caused by #44593 (not yet released, so no whatsnew) ``` from asv_b...
https://api.github.com/repos/pandas-dev/pandas/pulls/44724
2021-12-02T16:08:52Z
2021-12-02T19:03:34Z
2021-12-02T19:03:34Z
2021-12-02T19:04:20Z
ENH: allow JSON (de)serialization of ExtensionDtypes
diff --git a/doc/source/development/developer.rst b/doc/source/development/developer.rst index d701208792a4c..6de237b70f08d 100644 --- a/doc/source/development/developer.rst +++ b/doc/source/development/developer.rst @@ -180,7 +180,7 @@ As an example of fully-formed metadata: 'numpy_type': 'int64', ...
- xref #20612 - closes #44705 - [x] tests added / passed - [x] ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them This PR allows ExtensionDtypes to be (de)serialized using `.to_json(orient='table')`. Exa...
https://api.github.com/repos/pandas-dev/pandas/pulls/44722
2021-12-02T15:10:38Z
2021-12-19T23:24:09Z
2021-12-19T23:24:08Z
2021-12-24T11:44:08Z
Backport PR #44658 on branch 1.3.x (BUG: groupby.sum with timedelta64 and NaT)
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index dabd9a650f45b..048cd978c4478 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in creating a :class:`DataFrame` from a timezone-aware :class:`Timestam...
Backport PR #44658
https://api.github.com/repos/pandas-dev/pandas/pulls/44721
2021-12-02T12:21:40Z
2021-12-02T13:28:41Z
2021-12-02T13:28:41Z
2021-12-02T13:28:46Z
CLN: TODOs/FIXMEs
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index 5db01989cbb6a..912971257490c 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -19,7 +19,10 @@ ) except ImportError: # For compatibility with older versions - from pandas.co...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44717
2021-12-02T05:02:53Z
2021-12-02T23:40:48Z
2021-12-02T23:40:48Z
2021-12-02T23:47:01Z
CLN: contextmanagers should yield in a try-finally block
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 5c3db40828fe3..aef5c3049f295 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -763,10 +763,12 @@ def inner(key: str, *args, **kwds): set_option = wrap(set_option) get_option = wrap(get_option) register_option = ...
`@contextmanagers` should yield within a try-finally block to release/reset even when an error occurs.
https://api.github.com/repos/pandas-dev/pandas/pulls/44716
2021-12-02T03:12:33Z
2021-12-02T19:02:19Z
2021-12-02T19:02:19Z
2022-04-01T01:36:43Z
BUG: FloatingArray(float16data)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4a4e7dd6d15d7..eefc4aaba89a8 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -804,6 +804,8 @@ ExtensionArray - Avoid raising ``PerformanceWarning`` about fragmented DataFrame when using many columns w...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Broken off from #43930 then fleshed out with targeted tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/44715
2021-12-02T02:47:18Z
2021-12-04T23:51:30Z
2021-12-04T23:51:30Z
2021-12-22T17:19:31Z
BUG: df.iloc[ndarray, ndarray] = 2dvals raising with EA column
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 9d788ffcfabe1..92602052ad3f6 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -710,6 +710,7 @@ Indexing - Bug in :meth:`DataFrame.loc.__setitem__` and :meth:`DataFrame.iloc.__setitem__` with mixed dtyp...
- [x] closes #44703 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44714
2021-12-02T00:36:25Z
2021-12-24T16:43:00Z
2021-12-24T16:42:59Z
2021-12-24T16:57:09Z
Deprecate prefix argument in read_csv and read_table
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index e21dac65c4c4c..204706f784fe8 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -161,6 +161,18 @@ squeeze : boolean, default ``False`` the data. prefix : str, default ``None`` Prefix to add to column nu...
- [x] closes #43396 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry cc @lithomas1 I am also on board with deprecating this. I don't think the keyword add...
https://api.github.com/repos/pandas-dev/pandas/pulls/44713
2021-12-01T23:16:02Z
2021-12-03T18:06:18Z
2021-12-03T18:06:18Z
2021-12-04T22:35:43Z
DOC: validate_docstrings cleans up leftover files; doctest +SKIP file examples
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 4aff7acc4c6fb..263c3520afcbb 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2709,32 +2709,27 @@ def to_hdf( Examples -------- >>> df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}, - ... ...
- [x] closes #24209 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them May help towards: https://github.com/pandas-dev/pandas/issues/44590
https://api.github.com/repos/pandas-dev/pandas/pulls/44711
2021-12-01T22:00:02Z
2021-12-02T23:52:15Z
2021-12-02T23:52:14Z
2021-12-02T23:54:50Z
Deprecate positional arguments for read_fwf
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 193356a46a6ea..51a840fab8086 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -519,6 +519,7 @@ Other Deprecations - Deprecated the 'errors' keyword argument in :meth:`Series.where`, :meth:`DataFrame.wh...
- [x] xref #41485 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Similar to read_csv this will simplify typing the return values
https://api.github.com/repos/pandas-dev/pandas/pulls/44710
2021-12-01T20:37:43Z
2021-12-02T01:11:08Z
2021-12-02T01:11:08Z
2021-12-10T09:23:29Z
DOC: Removed link to Engarde project. It doesn't develop anymore. #44543
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 78caf360519b6..6ae923301fa07 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -35,11 +35,13 @@ Data cleaning and validation Pyjanitor provides a clean API for cleaning data, using method chaining. -`Engarde <https://engar...
issues #44543 Removed link to [Engarde](https://engarde.readthedocs.io/en/latest/) project. It doesn't develop anymore [GitHab](https://github.com/engarde-dev/engarde#readme). Added a link to the actively developing project [Pandera](https://pandera.readthedocs.io/en/stable/) [GitHab](https://github.com/pandera...
https://api.github.com/repos/pandas-dev/pandas/pulls/44708
2021-12-01T20:29:20Z
2021-12-02T01:08:31Z
2021-12-02T01:08:31Z
2021-12-02T01:08:35Z
TST: fix xfails/skips
diff --git a/pandas/core/computation/expressions.py b/pandas/core/computation/expressions.py index 7b5f5cafb26f4..9e180f11c4211 100644 --- a/pandas/core/computation/expressions.py +++ b/pandas/core/computation/expressions.py @@ -144,9 +144,9 @@ def _evaluate_numexpr(op, op_str, a, b): roperator.rfloordiv: None, ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44706
2021-12-01T19:11:21Z
2021-12-01T23:08:17Z
2021-12-01T23:08:17Z
2021-12-01T23:14:20Z
DOC: fix examples in Timestamp functions
diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index a36a1e12c274d..141bc01716c4d 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -553,7 +553,7 @@ class NaTType(_NaT): Examples -------- - >>> pd.Timestamp.fromtimestamp(1584...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry I tried to create a new issue with the issue template 2 times but I got this error eac...
https://api.github.com/repos/pandas-dev/pandas/pulls/44702
2021-12-01T08:06:23Z
2021-12-03T17:50:50Z
2021-12-03T17:50:50Z
2021-12-03T17:51:03Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 21f325dd01913..f6f46299e277d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: absolufy-imports files: ^pandas/ - repo: https://github.com/python/black - rev: 21.10b0 + rev: 21.11b...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/master) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/nod...
https://api.github.com/repos/pandas-dev/pandas/pulls/44701
2021-12-01T07:06:45Z
2021-12-01T09:19:51Z
2021-12-01T09:19:51Z
2021-12-01T09:19:55Z
TST: Use IPython instance fixture to avoid file leak
diff --git a/pandas/tests/io/formats/test_printing.py b/pandas/tests/io/formats/test_printing.py index f0d5ef19c4468..8e350831c192d 100644 --- a/pandas/tests/io/formats/test_printing.py +++ b/pandas/tests/io/formats/test_printing.py @@ -1,5 +1,4 @@ import numpy as np -import pytest import pandas._config.config as c...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them xref https://github.com/pandas-dev/pandas/pull/44634, https://github.com/pandas-dev/pandas/pull/35836 Probably should see if ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44700
2021-12-01T06:17:03Z
2021-12-01T18:24:02Z
2021-12-01T18:24:02Z
2021-12-01T18:24:17Z
TST: de-duplicate fixtures
diff --git a/pandas/conftest.py b/pandas/conftest.py index 04589993b5f53..eb9a952250f36 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -440,13 +440,21 @@ def multiindex_year_month_day_dataframe_random_data(): @pytest.fixture -def multiindex_dataframe_random_data(): - """DataFrame with 2 level Multi...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44699
2021-12-01T05:02:04Z
2021-12-01T23:07:23Z
2021-12-01T23:07:23Z
2021-12-02T00:03:11Z
BUG: Series.where with incompatible NA value
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index fd7cb6a69d955..12b44a2bcbd5a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -803,6 +803,7 @@ ExtensionArray - Avoid raising ``PerformanceWarning`` about fragmented DataFrame when using many columns w...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Sits on top of #44514 (i.e. merge that first) With this, can follow up to share whe...
https://api.github.com/repos/pandas-dev/pandas/pulls/44697
2021-12-01T00:04:28Z
2021-12-02T23:51:56Z
2021-12-02T23:51:56Z
2021-12-03T00:33:39Z
BUG: make tz_localize operate on values rather than categories
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index fa1669b1f3343..a2a556f22790a 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -288,6 +288,9 @@ Categorical - :meth:`Categorical.searchsorted` and :meth:`CategoricalIndex.searchsorted` now work on unord...
- [x] closes #27952 - [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/28300
2019-09-05T17:28:44Z
2019-11-02T20:19:35Z
2019-11-02T20:19:35Z
2019-11-12T11:25:23Z
fix Rolling for multi-index and reversed index.
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 58892b316c940..a9cb32a80af9f 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -176,8 +176,9 @@ Plotting Groupby/resample/rolling ^^^^^^^^^^^^^^^^^^^^^^^^ -- - Bug in :meth:`DataFrame.rolling` not a...
Fix Rolling operation for level of multi-index and descending time index (that is monotonic, but decreasing). - [x] closes #19248 - [x] closes #15584 - [x] tests 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/28297
2019-09-05T14:26:07Z
2019-10-22T01:35:37Z
2019-10-22T01:35:37Z
2020-03-01T16:01:26Z
Fix inconsistent casting to bool
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index a94a4ccff0efe..60fa1bef01f3d 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -806,7 +806,13 @@ def na_op(x, y): return result fill_int = lambda x: x.fillna(0) - fill_bool = lambda x: x.fillna(Fa...
Series logical ops (`|`, `&`, `^`) have a bunch of inconsistencies. This partially addresses one of them, and does so in a way that makes the diff for the next one much more manageable than it would be without this.
https://api.github.com/repos/pandas-dev/pandas/pulls/28290
2019-09-05T04:02:35Z
2019-09-05T18:14:17Z
2019-09-05T18:14:17Z
2019-09-05T18:16:25Z
BUG: Series[timdelta64].var() should _not_ work
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 4007ecd5a9412..8703df9406f2b 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -303,6 +303,8 @@ Datetimelike - Bug in :class:`DataFrame` arithmetic operations when operating with a :class:`Series` with ...
- [x] closes #18880 - [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/28289
2019-09-04T22:41:18Z
2019-11-02T15:23:47Z
2019-11-02T15:23:47Z
2019-11-02T15:37:48Z
DOC: Fix PR06 errors in Series docstrings (#28253)
diff --git a/pandas/core/base.py b/pandas/core/base.py index 2d5ffb5e91392..910b05c47071d 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1289,17 +1289,17 @@ def value_counts( Parameters ---------- - normalize : boolean, default False + normalize : bool, default False ...
First bit of work on #28253, fixes PR06 validation errors in Series docstrings. Mostly just converting boolean -> bool, string -> str, integer -> ; re-worded a little where necessary. - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Ran validate_docstrings.py and ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28288
2019-09-04T21:33:19Z
2019-09-16T02:39:31Z
2019-09-16T02:39:31Z
2019-09-16T02:39:38Z
BUG: datetime64 - Timestamp incorrectly raising TypeError
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 2f72de25c579b..4508c7b08790f 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -98,6 +98,8 @@ Datetimelike - Bug in :meth:`Series.dt` property lookups when the underlying data is read-only (:issue:`2752...
- [ ] 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/28286
2019-09-04T16:51:55Z
2019-09-07T19:21:09Z
2019-09-07T19:21:09Z
2019-09-07T19:26:36Z