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 |
|---|---|---|---|---|---|---|---|
BUG: Styler `hide` compatible with `max_columns` | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index a71dd6f33e3c8..ae4e05160e70a 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -316,7 +316,7 @@ def _translate_header(self, sparsify_cols: bool, max_cols: int):
self.columns, spa... | closes #43704
Description of render trimming and maximums bug:
```
pd.options.styler.render.max_columns = 5
pd.options.styler.render.max_rows = 5
df = DataFrame(np.random.rand(10,10))
df.columns = pd.MultiIndex.from_product([[0,1,2,3,4], [0,1]])
df.index = pd.MultiIndex.from_product([[0,1,2,3,4], [0,1]])
df... | https://api.github.com/repos/pandas-dev/pandas/pulls/44272 | 2021-11-01T17:09:57Z | 2021-11-05T13:08:39Z | 2021-11-05T13:08:39Z | 2021-11-05T16:02:46Z |
CLN: DataFrame.__repr__ | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 565c153603b86..0e74ed0ff1769 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -988,15 +988,13 @@ def __repr__(self) -> str:
"""
Return a string representation for a particular DataFrame.
"""
- buf = StringIO(... | Minor clean-up. | https://api.github.com/repos/pandas-dev/pandas/pulls/44271 | 2021-11-01T16:15:09Z | 2021-11-01T17:16:10Z | 2021-11-01T17:16:10Z | 2021-11-02T10:10:26Z |
BUG: Series.replace(method='pad') with EA dtypes | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 1b3be65ee66f2..44250663ede8c 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -653,6 +653,8 @@ Other
- Bug in :meth:`RangeIndex.union` with another ``RangeIndex`` with matching (even) ``step`` and star... | - [ ] 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/44270 | 2021-11-01T16:01:05Z | 2021-11-05T18:50:53Z | 2021-11-05T18:50:53Z | 2021-11-05T18:55:38Z |
ENH: Add DataFrameGroupBy.value_counts | diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst
index ccf130d03418c..2bb0659264eb0 100644
--- a/doc/source/reference/groupby.rst
+++ b/doc/source/reference/groupby.rst
@@ -122,6 +122,7 @@ application to columns of a specific data type.
DataFrameGroupBy.skew
DataFrameGroupBy.take... | - [x] closes #43564
- [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/44267 | 2021-11-01T07:34:22Z | 2021-12-19T23:25:42Z | 2021-12-19T23:25:42Z | 2021-12-20T08:05:12Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 469c4066e2387..21f325dd01913 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.9b0
+ rev: 21.10b0... | <!-- 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/44266 | 2021-11-01T07:07:30Z | 2021-11-01T08:56:55Z | 2021-11-01T08:56:54Z | 2021-11-01T08:56:58Z |
Fix formatting typo in user_guide/style.ipynb | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 5fe619c749d42..3a991b5338c38 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -1412,7 +1412,7 @@
"source": [
"## Limitations\n",
"\n",
- "- DataFrame only `(use Series.to_fr... | Seems to be incorrect:
> - DataFrame only `(use Series.to_frame().style)`
Fixed:
> - DataFrame only (use `Series.to_frame().style`) | https://api.github.com/repos/pandas-dev/pandas/pulls/44264 | 2021-11-01T04:24:52Z | 2021-11-01T13:48:52Z | 2021-11-01T13:48:52Z | 2021-11-01T13:48:56Z |
ENH/PERF: RangeIndex.argsort accept kind; pd.isna(rangeindex) fastpath | diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py
index 38553bc1be8d6..c457b52cf4b0e 100644
--- a/pandas/core/dtypes/missing.py
+++ b/pandas/core/dtypes/missing.py
@@ -169,13 +169,17 @@ def _isna(obj, inf_as_na: bool = False):
return False
elif isinstance(obj, (np.ndarray, ABCExte... | - [ ] 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
We could use the cached index.isna more if #44262 is addressed. | https://api.github.com/repos/pandas-dev/pandas/pulls/44263 | 2021-11-01T02:22:03Z | 2021-11-01T23:33:42Z | 2021-11-01T23:33:41Z | 2021-11-02T01:43:20Z |
BUG: Series[int8][:3] = range(3) unnecessary upcasting to int64 | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 2a718fdcf16e7..0430db0c9dda7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -537,7 +537,8 @@ Indexing
- Bug in :meth:`Index.get_indexer_non_unique` when index contains multiple ``np.datetime64("NaT")... | - [ ] 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/44261 | 2021-11-01T01:59:06Z | 2021-11-04T00:37:12Z | 2021-11-04T00:37:12Z | 2021-11-04T01:12:03Z |
CLN: tighten flake8/cython.cfg | diff --git a/flake8/cython.cfg b/flake8/cython.cfg
index a9584ad2e0994..bf1f41647b34e 100644
--- a/flake8/cython.cfg
+++ b/flake8/cython.cfg
@@ -9,9 +9,5 @@ extend_ignore=
E226,
# missing whitespace around bitwise or shift operator
E227,
- # ambiguous variable name (# FIXME maybe this one can be fixed... | - [ ] 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/44260 | 2021-10-31T23:50:27Z | 2021-11-01T12:50:38Z | 2021-11-01T12:50:38Z | 2021-11-01T15:43:53Z |
DataFrameGroupby value_counts | diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml
index 2e4bfea165316..d4777bcd1d079 100644
--- a/.github/actions/build_pandas/action.yml
+++ b/.github/actions/build_pandas/action.yml
@@ -13,5 +13,5 @@ runs:
- name: Build Pandas
run: |
python setup.py bu... | - [x] closes #43564
- [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/44259 | 2021-10-31T23:45:34Z | 2021-11-01T00:16:35Z | null | 2021-11-01T10:54:31Z |
CLN: address TODOs, FIXMEs | diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx
index dc3bb09c1b462..b908fa2c65e4d 100644
--- a/pandas/_libs/join.pyx
+++ b/pandas/_libs/join.pyx
@@ -264,6 +264,9 @@ def left_join_indexer_unique(
ndarray[numeric_object_t] left,
ndarray[numeric_object_t] right
):
+ """
+ Both left and right a... | Will have to see what the CI says about the cython flake8 config change. <b>update</b> cython flake8 config moved to #44260 | https://api.github.com/repos/pandas-dev/pandas/pulls/44258 | 2021-10-31T20:45:21Z | 2021-11-01T17:08:28Z | 2021-11-01T17:08:28Z | 2021-11-01T17:35:16Z |
TST: Add test for where inplace | diff --git a/pandas/_testing/_hypothesis.py b/pandas/_testing/_hypothesis.py
new file mode 100644
index 0000000000000..0e506f5e878b4
--- /dev/null
+++ b/pandas/_testing/_hypothesis.py
@@ -0,0 +1,85 @@
+"""
+Hypothesis data generator helpers.
+"""
+from datetime import datetime
+
+from hypothesis import strategies as st... | This adds a test for ensuring that None-to-NaN type-casting is consistent with `where` when `inplace=True` and otherwise.
- [x] closes #22051
- [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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44255 | 2021-10-31T17:49:05Z | 2021-12-02T02:02:05Z | 2021-12-02T02:02:05Z | 2021-12-02T02:02:09Z |
TYP: check typings with pyright | diff --git a/pyproject.toml b/pyproject.toml
index d84024eb09de2..98ab112ab459a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -150,7 +150,7 @@ skip = "pandas/__init__.py"
[tool.pyright]
pythonVersion = "3.8"
typeCheckingMode = "strict"
-include = ["pandas"]
+include = ["pandas", "typings"]
exclude = ["pandas/... | small followup to #44233 | https://api.github.com/repos/pandas-dev/pandas/pulls/44254 | 2021-10-31T16:35:33Z | 2021-11-02T08:56:44Z | 2021-11-02T08:56:44Z | 2021-11-02T08:56:53Z |
TYP: Subset of "Improved the type stubs in the _libs directory to help with type checking" | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 9d5922f8a50bd..aba635e19995a 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -516,9 +516,9 @@ def intervals_to_interval_bounds(ndarray intervals, bint validate_closed=True):
Returns
-------
- tuple of tuple... | The two big parts missing from #43744 are interval.pyi and offsets.pyi as they result in many mypy errors.
I had already made changes to somewhat accommodate for interval.pyi and offsets.pyi (if these files are included, we have now "only" ~100 mypy errors). I kept these changes in this PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/44251 | 2021-10-31T13:33:16Z | 2021-12-14T01:38:43Z | 2021-12-14T01:38:43Z | 2022-03-09T02:56:32Z |
DataFrame.convert_dtypes doesn't preserve subclasses | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ee1dd58149451..560c3fad59e5e 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -538,6 +538,7 @@ Conversion
- Bug in :class:`Series` constructor returning 0 for missing values with dtype ``int64`` and ``... | - [x] closes #43668
- [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
I've added a fixture for the specific construction of a subclassed dataframe from th... | https://api.github.com/repos/pandas-dev/pandas/pulls/44249 | 2021-10-31T07:57:37Z | 2021-11-13T17:03:31Z | 2021-11-13T17:03:31Z | 2023-09-16T01:22:47Z |
BUG: styler render when using `hide`, `MultiIndex` and `max_rows` in combination | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 5601048c409e1..210dfc0050bf4 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -81,7 +81,7 @@ Styler
- Naive sparsification is now possible for LaTeX without the multirow package (:issue:`43369`)
-... | There was a previous fix for #43703 but that dealt only with the SingleIndex case
- [x] closes #44247
- [x] tests added / passed
- [x] whatsnew entry
Visuals of the fix compared to the issue:
:
expe... | - [x] closes #16380
- [x] closes #14135
- [x] closes #16577
- [x] closes #16925
- [x] closes #17093
- [x] closes #17382
- [x] closes #18050
- [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 ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44245 | 2021-10-31T03:29:23Z | 2021-11-01T13:14:52Z | 2021-11-01T13:14:50Z | 2021-11-01T21:45:20Z |
Revert "Backport PR #44204 on branch 1.3.x (CI: Python Dev build)" | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 96d5542451f06..4fe58ad4d60e9 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -17,6 +17,7 @@ env:
PANDAS_CI: 1
PATTERN: "not slow and not network and not clipboard"
COVERAGE: true
+ PY... | Reverts pandas-dev/pandas#44208
THIS IS ONLY ON 1.3.x.
Let's try reverting this. In theory, the test changes that caused the timeouts shouldn't be backported, so this shouldn't be needed. | https://api.github.com/repos/pandas-dev/pandas/pulls/44244 | 2021-10-30T23:58:48Z | 2021-10-31T11:48:27Z | 2021-10-31T11:48:27Z | 2021-10-31T13:17:53Z |
DEPR: datetime64tz cast mismatched timezones on setitemlike | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 699d8a81243db..d2433402662f7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -394,6 +394,9 @@ Other Deprecations
- Deprecated :meth:`.Rolling.validate`, :meth:`.Expanding.validate`, and :meth:`.Expone... | - [x] closes #37605
- [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/44243 | 2021-10-30T23:46:55Z | 2021-10-31T14:53:56Z | 2021-10-31T14:53:56Z | 2021-10-31T15:32:01Z |
TST: fixturize, collect | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 1e1d14f46cc6e..65d4b936efe44 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -995,17 +995,19 @@ def all_reductions(request):
return request.param
-@pytest.fixture(params=["__eq__", "__ne__", "__le__", "__lt__", "__ge__", "__gt__"])
-def all... | - [ ] 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/44242 | 2021-10-30T23:41:44Z | 2021-10-31T17:26:12Z | 2021-10-31T17:26:12Z | 2021-11-06T10:22:50Z |
CLN/TST: Remove redundant/unnecessary windows/moments tests | diff --git a/ci/run_tests.sh b/ci/run_tests.sh
index 53a2bf151d3bf..9fea696b6ea81 100755
--- a/ci/run_tests.sh
+++ b/ci/run_tests.sh
@@ -22,9 +22,7 @@ fi
PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $PYTEST_TARGET"
if [[ $(uname) != "Linux" && $(uname) != "Darwi... | - [x] closes #37535
- [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
* Avoids running similar `def test_*` checks more than once
* Thins out the `consistency_data` pytest fi... | https://api.github.com/repos/pandas-dev/pandas/pulls/44239 | 2021-10-30T06:42:28Z | 2021-10-30T14:10:07Z | 2021-10-30T14:10:06Z | 2021-10-30T17:07:20Z |
CLN: de-duplicate Ellipsis-handling | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index bed64efc690ec..69d89e2f32203 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -42,6 +42,7 @@
from pandas.compat.numpy import function as nv
from pandas.errors import PerformanceWarning... | - [ ] 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/44238 | 2021-10-30T04:40:19Z | 2021-10-30T18:40:12Z | 2021-10-30T18:40:12Z | 2021-10-30T18:40:12Z |
BUG: all-NaT TDI division with object dtype preserve td64 | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 5601048c409e1..ae3154f651384 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -479,7 +479,7 @@ Datetimelike
Timedelta
^^^^^^^^^
--
+- Bug in division of all-``NaT`` :class:`TimeDeltaIndex`, :class:`... | - [x] closes #39750
- [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/44237 | 2021-10-30T02:44:17Z | 2021-11-06T22:58:58Z | 2021-11-06T22:58:58Z | 2021-11-06T23:37:19Z |
BUG: setitem into td64/dt64 series/frame with Categorical[strings] | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 5601048c409e1..492df4f1e3612 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -535,7 +535,7 @@ Indexing
- Bug in :meth:`DataFrame.sort_index` where ``ignore_index=True`` was not being respected when th... | - [ ] 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/44236 | 2021-10-30T02:05:44Z | 2021-11-01T13:55:56Z | 2021-11-01T13:55:56Z | 2021-11-01T15:42:32Z |
CI: Don't split tests on Windows Python 3.10 | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 96d5542451f06..d6647e8059306 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -24,8 +24,12 @@ jobs:
strategy:
fail-fast: false
matrix:
- os: [ubuntu-latest, macOS-lates... | Ref: https://github.com/pandas-dev/pandas/issues/44173
| https://api.github.com/repos/pandas-dev/pandas/pulls/44235 | 2021-10-29T23:03:02Z | 2021-10-30T11:18:39Z | 2021-10-30T11:18:39Z | 2021-11-11T01:37:42Z |
REF: simplify is_scalar_indexer | diff --git a/pandas/core/indexers/utils.py b/pandas/core/indexers/utils.py
index cf9be5eb95eb4..fe003281fb82e 100644
--- a/pandas/core/indexers/utils.py
+++ b/pandas/core/indexers/utils.py
@@ -100,10 +100,7 @@ def is_scalar_indexer(indexer, ndim: int) -> bool:
# GH37748: allow indexer to be an integer for Seri... | - [ ] 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/44234 | 2021-10-29T20:52:41Z | 2021-10-30T20:29:58Z | 2021-10-30T20:29:58Z | 2021-10-30T21:38:33Z |
TYP: numba stub | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 21250789fde9f..ea9595fd88630 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -106,7 +106,7 @@ if [[ -z "$CHECK" || "$CHECK" == "typing" ]]; then
mypy --version
MSG='Performing static analysis using mypy' ; echo $MSG
- mypy pandas
+ myp... | partial stub to preserve type signatures for decorated functions.
draft since will rebase once #43828 is merged.
cc @twoertwein @mroeschke | https://api.github.com/repos/pandas-dev/pandas/pulls/44233 | 2021-10-29T20:45:56Z | 2021-10-31T14:54:12Z | 2021-10-31T14:54:11Z | 2021-11-01T18:35:24Z |
REF: RangeIndex.delete defer to .difference | diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py
index 41ef824afc2a7..3fae0fbe7d2a0 100644
--- a/pandas/core/indexes/range.py
+++ b/pandas/core/indexes/range.py
@@ -807,24 +807,17 @@ def delete(self, loc) -> Index: # type: ignore[override]
return self[1:]
if loc ==... | - [ ] 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/44232 | 2021-10-29T17:38:24Z | 2021-10-29T21:50:03Z | 2021-10-29T21:50:03Z | 2021-10-29T22:49:09Z |
Backport PR #44195 on branch 1.3.x (Fix series with none equals float series) | diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst
index ba9fcb5c1bfeb..589092c0dd7e3 100644
--- a/doc/source/whatsnew/v1.3.5.rst
+++ b/doc/source/whatsnew/v1.3.5.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :meth:`Ser... | Backport PR #44195: Fix series with none equals float series | https://api.github.com/repos/pandas-dev/pandas/pulls/44229 | 2021-10-29T13:17:50Z | 2021-10-29T15:42:52Z | 2021-10-29T15:42:52Z | 2021-10-29T15:42:52Z |
DOC: local py.typed for users | diff --git a/.gitignore b/.gitignore
index 2c337be60e94e..87224f1d6060f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -50,6 +50,8 @@ dist
*.egg-info
.eggs
.pypirc
+# type checkers
+pandas/py.typed
# tox testing tool
.tox
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contrib... | xref https://github.com/pandas-dev/pandas/pull/44223#issuecomment-954672983 | https://api.github.com/repos/pandas-dev/pandas/pulls/44228 | 2021-10-29T12:55:21Z | 2021-12-17T22:01:59Z | 2021-12-17T22:01:58Z | 2022-03-09T02:56:36Z |
TYP: type annotations for nancorr | diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi
index 6dd1c7c9fb209..df8ac3f3b0696 100644
--- a/pandas/_libs/algos.pyi
+++ b/pandas/_libs/algos.pyi
@@ -50,18 +50,14 @@ def kth_smallest(
# Pairwise correlation/covariance
def nancorr(
- mat: np.ndarray, # const float64_t[:, :]
+ mat: npt.NDArray[n... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/44227 | 2021-10-29T12:22:40Z | 2021-10-29T21:56:23Z | 2021-10-29T21:56:23Z | 2021-10-29T21:56:23Z |
DOC: added examples to DataFrame.std | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 7ff48a262c4d6..c2fa345f7639d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10639,6 +10639,7 @@ def mad(self, axis=None, skipna=None, level=None):
name2=name2,
axis_descr=axis_descr,
notes="",... | xref https://github.com/pandas-dev/pandas/issues/44162
- [x] Added two examples to the documentation of DataFrame.std function so that users can understand how to use it with different delta degrees of freedom.
- [ ] Add examples to the documentation of DataFrame.var function
---
- [x] tests added / passed
- [x] A... | https://api.github.com/repos/pandas-dev/pandas/pulls/44226 | 2021-10-29T11:03:40Z | 2021-11-01T17:09:11Z | 2021-11-01T17:09:11Z | 2021-11-01T17:09:24Z |
Update is_platform_arm() to detect 32-bit arm and other variants | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 3233de8e3b6d1..fd5c46f7a6d5a 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -99,7 +99,9 @@ def is_platform_arm() -> bool:
bool
True if the running platform uses ARM architecture.
"""
- return platfo... | - When running an arm32 ("linux32'd") chroot on an arm64 machine,
Python's platform.machine() will return "armv8l".
- In other cases, on "real" arm32, it'll return whatever uname says
(just like in the first case) which might be e.g. armv7a.
Keeping the other options ("aarch64", "arm64") given that Windows
... | https://api.github.com/repos/pandas-dev/pandas/pulls/44225 | 2021-10-29T11:01:32Z | 2021-10-29T16:24:01Z | 2021-10-29T16:24:01Z | 2021-11-01T00:28:35Z |
CLN: remove last getattr(arg, '_values', arg) usages | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 3116f2b40900a..005c5f75e6cfa 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -53,7 +53,6 @@
@inherit_names(
[
"argsort",
- "_internal_get_values",
"tolist",
... | - [x] closes #27167
- [ ] 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/44224 | 2021-10-29T02:21:02Z | 2021-10-29T16:05:30Z | 2021-10-29T16:05:29Z | 2021-10-29T17:04:33Z |
CLN: remove checks for python < 3.8 | diff --git a/pandas/_libs/tslibs/timestamps.pyi b/pandas/_libs/tslibs/timestamps.pyi
index ff6b18835322e..a89d0aecfc26c 100644
--- a/pandas/_libs/tslibs/timestamps.pyi
+++ b/pandas/_libs/tslibs/timestamps.pyi
@@ -5,7 +5,6 @@ from datetime import (
timedelta,
tzinfo as _tzinfo,
)
-import sys
from time import... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/44223 | 2021-10-28T21:49:08Z | 2021-10-29T13:10:29Z | 2021-10-29T13:10:29Z | 2022-04-01T01:36:46Z |
BUG: Min/max does not work for dates with timezones if there are missing values in the data frame | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 66b26e56b2258..cd2e6a297d4d7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -549,7 +549,7 @@ Missing
^^^^^^^
- Bug in :meth:`DataFrame.fillna` with limit and no method ignores axis='columns' or ``ax... | - [x] closes #44196 and #27794
- [ ] 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
- [x] whatsnew entry
This is an attempt at fixing the bug of wrong `min`/`max` aggregation with... | https://api.github.com/repos/pandas-dev/pandas/pulls/44222 | 2021-10-28T21:07:37Z | 2022-01-25T01:46:18Z | null | 2022-01-25T01:46:19Z |
CLN: simplify io.formats.format.get_series_repr_params | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 13bedac664ea3..15715af05f904 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1458,7 +1458,7 @@ def __repr__(self) -> str:
"""
Return a string representation for a particular Series.
"""
- repr_params = ... | Some of the returned values should be booleans. Follow-up to #44218. | https://api.github.com/repos/pandas-dev/pandas/pulls/44221 | 2021-10-28T19:34:21Z | 2021-10-29T14:29:42Z | 2021-10-29T14:29:42Z | 2021-10-29T16:59:15Z |
TST/REF: share tz_localize tests, move misplaced arith | diff --git a/pandas/tests/series/methods/test_tz_convert.py b/pandas/tests/series/methods/test_tz_convert.py
deleted file mode 100644
index d826dde646cfb..0000000000000
--- a/pandas/tests/series/methods/test_tz_convert.py
+++ /dev/null
@@ -1,17 +0,0 @@
-import numpy as np
-
-from pandas import (
- DatetimeIndex,
- ... | - [ ] 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/44220 | 2021-10-28T18:00:31Z | 2021-10-29T13:15:06Z | 2021-10-29T13:15:06Z | 2021-10-29T15:20:29Z |
REF/TST: share asfreq tests | diff --git a/pandas/tests/frame/methods/test_asfreq.py b/pandas/tests/frame/methods/test_asfreq.py
index 0d28af5ed7be9..0a8d7c43adffe 100644
--- a/pandas/tests/frame/methods/test_asfreq.py
+++ b/pandas/tests/frame/methods/test_asfreq.py
@@ -1,12 +1,14 @@
from datetime import datetime
import numpy as np
+import pyte... | - [ ] 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/44219 | 2021-10-28T17:38:05Z | 2021-10-29T17:20:49Z | 2021-10-29T17:20:49Z | 2021-10-29T17:20:49Z |
REF: extract params used in Series.__repr__ | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 65592be32b5ef..13bedac664ea3 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -3,8 +3,6 @@
"""
from __future__ import annotations
-from io import StringIO
-from shutil import get_terminal_size
from textwrap import dedent
from typing... | This PR gives flexibility if we want the series string output to be like the Series repr, but with some adjustments.
So with this PR we we can now do:
```python
>>> params = pd.io.formats.format.get_series_repr_params(ser)
>>> params[my_param] = new_value
>>> ser.to_string(**params)
```
Followup to #43987.... | https://api.github.com/repos/pandas-dev/pandas/pulls/44218 | 2021-10-28T10:46:53Z | 2021-10-28T13:17:57Z | 2021-10-28T13:17:57Z | 2021-10-28T16:32:58Z |
TST: parametrize/share indexing tests | diff --git a/pandas/tests/frame/indexing/test_mask.py b/pandas/tests/frame/indexing/test_mask.py
index 70ec02a2334af..dd75e232051fa 100644
--- a/pandas/tests/frame/indexing/test_mask.py
+++ b/pandas/tests/frame/indexing/test_mask.py
@@ -29,6 +29,7 @@ def test_mask(self):
tm.assert_frame_equal(rs, df.mask(df <=... | - [ ] 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/44215 | 2021-10-28T04:54:14Z | 2021-10-28T12:32:18Z | 2021-10-28T12:32:18Z | 2021-10-28T15:13:23Z |
TST: parametrize cumulative tests | diff --git a/pandas/tests/frame/test_cumulative.py b/pandas/tests/frame/test_cumulative.py
index 39714a4566494..5bd9c42612315 100644
--- a/pandas/tests/frame/test_cumulative.py
+++ b/pandas/tests/frame/test_cumulative.py
@@ -7,6 +7,7 @@
"""
import numpy as np
+import pytest
from pandas import (
DataFrame,
@... | - [ ] 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/44214 | 2021-10-28T03:46:48Z | 2021-10-29T13:13:48Z | 2021-10-29T13:13:47Z | 2021-10-29T15:18:39Z |
BUG: Index/Series.to_frame not respecting explicit name=None | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 495669d316e95..24ba8a1272eec 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -642,6 +642,7 @@ Other
- Bug in :meth:`CustomBusinessMonthBegin.__add__` (:meth:`CustomBusinessMonthEnd.__add__`) not apply... | - [ ] 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/44212 | 2021-10-27T23:23:00Z | 2021-10-30T15:02:18Z | 2021-10-30T15:02:18Z | 2021-10-30T15:09:53Z |
CLN/TST: address TODOs | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index cf9820c3aa8f8..848e724949bc5 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -197,8 +197,8 @@ def shift(self, periods=1, fill_value=None, axis=0):
return self._from_backing_data(new_values)
... | - [ ] 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/44211 | 2021-10-27T22:26:58Z | 2021-10-28T00:39:02Z | 2021-10-28T00:39:02Z | 2021-11-07T18:05:10Z |
REF: clarify missing.interpolate_2d is inplace | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index 87fcf54ed684b..45c55fc6bd3f2 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -743,8 +743,10 @@ def fillna(
elif method is not None:
msg = "fillna with 'method' req... | - [ ] 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/44210 | 2021-10-27T21:57:11Z | 2021-10-28T01:13:15Z | 2021-10-28T01:13:15Z | 2021-10-28T02:56:43Z |
REF: Remove ArrowStringArray.fillna | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index a83cfa89c4728..4e3bd05d2cc8d 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -33,7 +33,6 @@
pa_version_under4p0,
)
from pandas.util._decorators import doc
-from pandas.util._vali... | Equivalent to base class method. | https://api.github.com/repos/pandas-dev/pandas/pulls/44209 | 2021-10-27T21:51:27Z | 2021-10-28T03:03:05Z | 2021-10-28T03:03:05Z | 2021-10-28T03:07:10Z |
Backport PR #44204 on branch 1.3.x (CI: Python Dev build) | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 4fe58ad4d60e9..96d5542451f06 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -17,7 +17,6 @@ env:
PANDAS_CI: 1
PATTERN: "not slow and not network and not clipboard"
COVERAGE: true
- PY... | Backport PR #44204: CI: Python Dev build | https://api.github.com/repos/pandas-dev/pandas/pulls/44208 | 2021-10-27T21:32:34Z | 2021-10-28T01:13:33Z | 2021-10-28T01:13:33Z | 2021-10-28T01:13:34Z |
CLN: remove unused algos_common_helper functions | diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in
index 4242a76dcc3b7..c6338216eb7a2 100644
--- a/pandas/_libs/algos_common_helper.pxi.in
+++ b/pandas/_libs/algos_common_helper.pxi.in
@@ -36,19 +36,19 @@ def ensure_object(object arr):
# name, c_type, dtype
dtypes = [('fl... | - [ ] 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/44207 | 2021-10-27T20:18:02Z | 2021-10-28T13:18:19Z | 2021-10-28T13:18:19Z | 2021-10-28T15:08:30Z |
TST: enable 2D tests for Categorical | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index c7f587b35f557..9c43e3714c332 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -6,7 +6,6 @@
from shutil import get_terminal_size
from typing import (
TYPE_CHECKING,
- Any,
Hash... | - [ ] 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/44206 | 2021-10-27T20:17:32Z | 2021-11-10T01:47:02Z | 2021-11-10T01:47:02Z | 2021-11-10T02:13:30Z |
REF: de-special-case Block._maybe_downcast | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index bc9f5c3243705..151709301f71f 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -510,54 +510,24 @@ def _maybe_downcast(self, blocks: list[Block], downcast=None) -> list[Block]:
[blk.c... | - [ ] 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/44205 | 2021-10-27T19:46:35Z | 2021-10-28T12:32:35Z | 2021-10-28T12:32:35Z | 2021-10-28T15:13:51Z |
CI: Python Dev build | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 4fe58ad4d60e9..96d5542451f06 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -17,7 +17,6 @@ env:
PANDAS_CI: 1
PATTERN: "not slow and not network and not clipboard"
COVERAGE: true
- PY... | xref #44173
Ref: https://github.com/pandas-dev/pandas/issues/44173#issuecomment-952289166
Means we will have 3 more jobs (hopefully can reduce this back..) - but all can run in parallel.
https://github.com/pandas-dev/pandas/runs/4026818833?check_suite_focus=true | https://api.github.com/repos/pandas-dev/pandas/pulls/44204 | 2021-10-27T19:32:58Z | 2021-10-27T21:32:06Z | 2021-10-27T21:32:06Z | 2021-11-07T16:41:10Z |
DOCS: Update pyarrow version requirement in "What's new in 1.4.0" | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 254a004a37c40..003289037996d 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -95,7 +95,7 @@ Validation now for ``caption`` arg (:issue:`43368`)
Multithreaded CSV reading with a new CSV Engine based on... | Updated the pyarrow version requirement from 0.17 to 1.0.1 in the "Multithreaded CSV reading" section, to make it in line with #44064.
Docs only, no functional changes.
| https://api.github.com/repos/pandas-dev/pandas/pulls/44202 | 2021-10-27T10:18:03Z | 2021-10-27T11:53:26Z | 2021-10-27T11:53:26Z | 2021-10-27T11:53:31Z |
BUG: Series[Interval[int64]] setitem Interval[float] | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 254a004a37c40..7b10ca64a9b3d 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -530,8 +530,10 @@ Indexing
- Bug in :meth:`Series.__setitem__` with object dtype when setting an array with matching size a... | - [ ] 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
Cast to common dtype instead of object, match IntervalIndex behavior. | https://api.github.com/repos/pandas-dev/pandas/pulls/44201 | 2021-10-27T04:28:11Z | 2021-10-27T18:24:06Z | 2021-10-27T18:24:06Z | 2021-10-27T19:49:25Z |
TST: added test_join_multiindex_dates | diff --git a/pandas/tests/frame/methods/test_join.py b/pandas/tests/frame/methods/test_join.py
index 30118d20f67a9..3e06b96b1cb07 100644
--- a/pandas/tests/frame/methods/test_join.py
+++ b/pandas/tests/frame/methods/test_join.py
@@ -323,6 +323,20 @@ def test_join_multiindex_leftright(self):
tm.assert_frame_equ... | - [ ] closes #33692
- [ ] 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
Added tests to make sure that joining dataframes with multiindices containing dates doesn't break.
| https://api.github.com/repos/pandas-dev/pandas/pulls/44200 | 2021-10-27T01:35:40Z | 2021-11-28T01:44:20Z | null | 2021-11-28T01:44:32Z |
CLN: remove no-op BlockManager.downcast | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c3ad87082c8ed..6895455a43160 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6359,9 +6359,6 @@ def fillna(
raise NotImplementedError()
result = self.T.fillna(method=method, limit=limit).T
- ... | - [ ] 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/44198 | 2021-10-26T22:48:35Z | 2021-10-27T11:54:25Z | 2021-10-27T11:54:25Z | 2021-10-27T15:27:01Z |
Backport PR #44192 on branch 1.3.x (PERF: read_csv GH#44106) | diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst
index 0f1997de2166a..ba9fcb5c1bfeb 100644
--- a/doc/source/whatsnew/v1.3.5.rst
+++ b/doc/source/whatsnew/v1.3.5.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed performance regressio... | Backport PR #44192: PERF: read_csv GH#44106 | https://api.github.com/repos/pandas-dev/pandas/pulls/44197 | 2021-10-26T20:27:16Z | 2021-10-27T01:25:34Z | 2021-10-27T01:25:34Z | 2021-10-27T01:25:34Z |
Fix series with none equals float series | diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst
index ba9fcb5c1bfeb..589092c0dd7e3 100644
--- a/doc/source/whatsnew/v1.3.5.rst
+++ b/doc/source/whatsnew/v1.3.5.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :meth:`Ser... | - [x] closes #44190
- [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/44195 | 2021-10-26T18:16:19Z | 2021-10-29T13:17:25Z | 2021-10-29T13:17:25Z | 2021-10-29T13:17:58Z |
DEPR: warn on checks retained for fastparquet | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index 57f07313ebdc4..a0f116c1f8f88 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -31,6 +31,7 @@
npt,
)
from pandas.util._decorators import cache_readonly
+from pandas.util._exceptions import fin... | - [ ] 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 @mdurant | https://api.github.com/repos/pandas-dev/pandas/pulls/44193 | 2021-10-26T16:06:04Z | 2021-10-30T22:24:35Z | 2021-10-30T22:24:35Z | 2021-10-30T23:31:24Z |
PERF: read_csv GH#44106 | diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst
index 0f1997de2166a..ba9fcb5c1bfeb 100644
--- a/doc/source/whatsnew/v1.3.5.rst
+++ b/doc/source/whatsnew/v1.3.5.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed performance regressio... | - [x] closes #44106
- [ ] 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
- [x] whatsnew entry
Using the example in #44106 I time 188.4s on master and 3.9s on this PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/44192 | 2021-10-26T16:00:05Z | 2021-10-26T20:26:51Z | 2021-10-26T20:26:51Z | 2021-10-26T23:48:20Z |
Update generic.py, explanatory text of describe | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c3ad87082c8ed..b8e158b5f9e2e 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9899,7 +9899,7 @@ def describe(
from the result. To exclude numeric types submit
``numpy.number``. To exclude object columns ... | Usage of correct parameter ``exclude`` in description of ``exclude``-parameter of ``describe()``-function
| https://api.github.com/repos/pandas-dev/pandas/pulls/44191 | 2021-10-26T13:18:10Z | 2021-10-28T01:37:15Z | 2021-10-28T01:37:15Z | 2021-10-28T01:37:17Z |
:white_check_mark: TST: Update sync flake8 tests | diff --git a/scripts/tests/test_sync_flake8_versions.py b/scripts/tests/test_sync_flake8_versions.py
index d9b6dbe8c3f0a..21c3b743830ee 100644
--- a/scripts/tests/test_sync_flake8_versions.py
+++ b/scripts/tests/test_sync_flake8_versions.py
@@ -3,44 +3,6 @@
from ..sync_flake8_versions import get_revisions
-def tes... |
- [x] related to #44177
- [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
I sent a PR yesterday #44177 which was aimed at adding anchors to the `pre-commit-config.yaml` file
... | https://api.github.com/repos/pandas-dev/pandas/pulls/44189 | 2021-10-26T10:25:32Z | 2021-10-26T11:06:16Z | 2021-10-26T11:06:16Z | 2021-10-26T12:02:28Z |
ENH: implement EA._where | diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py
index 848e724949bc5..cbb029f62732a 100644
--- a/pandas/core/arrays/_mixins.py
+++ b/pandas/core/arrays/_mixins.py
@@ -320,7 +320,7 @@ def putmask(self, mask: np.ndarray, value) -> None:
np.putmask(self._ndarray, mask, value)
- de... | The goal here is to avoid special-casing in ExtensionBlock.where | https://api.github.com/repos/pandas-dev/pandas/pulls/44187 | 2021-10-26T04:30:18Z | 2021-10-28T12:32:47Z | 2021-10-28T12:32:47Z | 2021-10-28T15:10:55Z |
PERF: improve efficiency of `BaseMaskedArray.__setitem__` | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 291ad2b071665..eb5b478953dcb 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -85,7 +85,7 @@ def frame_apply(
args=None,
kwargs=None,
) -> FrameApply:
- """construct and return a row or column based frame apply object"""
+ ""... | This somewhat deals with #44172, though that won't be fully resolved until 2D `ExtensionArray`s are supported (per the comments there).
CC @jbrockmendel
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_code... | https://api.github.com/repos/pandas-dev/pandas/pulls/44186 | 2021-10-26T03:15:06Z | 2022-01-17T13:45:16Z | null | 2022-01-17T13:45:17Z |
ENH: added regex argument to Series.str.split | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 2a718fdcf16e7..496bc6046a935 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -180,6 +180,7 @@ Other enhancements
- :meth:`DataFrame.__pos__`, :meth:`DataFrame.__neg__` now retain ``ExtensionDtype`` dt... | - [X] closes #43563
- [X] closes #32835
- [X] closes #25549
- [X] xref #37963
- [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
I've preserved current... | https://api.github.com/repos/pandas-dev/pandas/pulls/44185 | 2021-10-26T02:13:17Z | 2021-11-04T00:40:28Z | 2021-11-04T00:40:27Z | 2021-11-04T00:40:54Z |
CI: debug 310 dev | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index dc357101e79fd..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,21 +0,0 @@
-version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:202101-01
- resource_class: arm.medium
- environment:
-... | xref #44173
| https://api.github.com/repos/pandas-dev/pandas/pulls/44183 | 2021-10-25T23:40:06Z | 2021-10-28T01:35:34Z | null | 2021-10-28T01:35:39Z |
BUG: np.timedelta64 + Period | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index fc3eaec47431f..8221bc406521a 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -567,7 +567,7 @@ I/O
Period
^^^^^^
--
+- Bug in adding a :class:`Period` object to a ``np.timedelta64`` object incorrect... | - [ ] 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/44182 | 2021-10-25T18:07:58Z | 2021-10-28T13:19:18Z | 2021-10-28T13:19:18Z | 2021-11-02T01:57:49Z |
Group by a categorical Series of unequal length | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 71d5c46b81ea0..5136051468ff8 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -784,6 +784,7 @@ Groupby/resample/rolling
- Bug in :meth:`GroupBy.nth` failing on ``axis=1`` (:issue:`43926`)
- Fixed bug ... | - [X] closes #44179
- [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
While this fix enables grouping by a `Series` that has a categorical data type and le... | https://api.github.com/repos/pandas-dev/pandas/pulls/44180 | 2021-10-25T14:17:49Z | 2021-12-22T03:07:33Z | 2021-12-22T03:07:32Z | 2022-01-03T17:14:19Z |
ENH: Use yaml anchors for pre-commit hooks additional dependencies | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2c76b682ee343..469c4066e2387 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -39,10 +39,11 @@ repos:
rev: 3.9.2
hooks:
- id: flake8
- additional_dependencies:
- - flake8-comprehensions==3.1.0
- ... | - [x] closes #43282
- [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 PR adds:
- use of yaml anchors for the `flake8` and `yesqa` hooks
- update... | https://api.github.com/repos/pandas-dev/pandas/pulls/44177 | 2021-10-25T11:55:38Z | 2021-10-25T14:04:54Z | 2021-10-25T14:04:54Z | 2021-10-25T14:08:51Z |
PERF: Improve performance in rolling.mean(engine=numba) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 254a004a37c40..fa4dadde13185 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -426,7 +426,7 @@ Performance improvements
- :meth:`SparseArray.min` and :meth:`SparseArray.max` no longer require convertin... | - [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
This also starts to add a shared aggregation function (sum) that can shared between rolling/groupby/DataFr... | https://api.github.com/repos/pandas-dev/pandas/pulls/44176 | 2021-10-25T04:43:08Z | 2021-10-28T02:07:11Z | 2021-10-28T02:07:11Z | 2021-10-29T02:32:13Z |
TST: tests using invalid_scalar fixture | diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py
index bed64efc690ec..0e413f81834b2 100644
--- a/pandas/core/arrays/sparse/array.py
+++ b/pandas/core/arrays/sparse/array.py
@@ -56,6 +56,7 @@
is_datetime64tz_dtype,
is_dtype_equal,
is_integer,
+ is_list_like,
is_... | - [ ] 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/44175 | 2021-10-25T02:20:29Z | 2021-10-30T23:52:25Z | 2021-10-30T23:52:25Z | 2021-10-31T16:18:48Z |
CLN/TST: address TODOs/FIXMES #2 | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 07cef290c8919..8a2ba69a61ed9 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1517,8 +1517,11 @@ def _cython_agg_general(
if numeric_only:
if is_ser and not is_numeric_dtype(self.... | - [ ] 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/44174 | 2021-10-25T00:38:44Z | 2021-10-25T17:18:56Z | 2021-10-25T17:18:55Z | 2021-10-25T17:20:05Z |
TST: Move a consistency ewm test to test_ewm.py | diff --git a/pandas/tests/window/moments/test_moments_consistency_ewm.py b/pandas/tests/window/moments/test_moments_consistency_ewm.py
index b41d2ec23a52d..800ee2164693b 100644
--- a/pandas/tests/window/moments/test_moments_consistency_ewm.py
+++ b/pandas/tests/window/moments/test_moments_consistency_ewm.py
@@ -9,15 +9... | - [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
Since some tests are not running on windows/moments (#37535), moving a "consistency" ewm tests to the `test_ewm.py`. | https://api.github.com/repos/pandas-dev/pandas/pulls/44171 | 2021-10-24T22:08:32Z | 2021-10-25T12:33:56Z | 2021-10-25T12:33:56Z | 2021-10-25T18:27:41Z |
REF: share ExtensionIndex.insert-> Index.insert | diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py
index f5fbd4cc4a7fc..38553bc1be8d6 100644
--- a/pandas/core/dtypes/missing.py
+++ b/pandas/core/dtypes/missing.py
@@ -37,6 +37,7 @@
needs_i8_conversion,
)
from pandas.core.dtypes.dtypes import (
+ CategoricalDtype,
ExtensionDtype,... | - [ ] 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
Prelim to #43930 | https://api.github.com/repos/pandas-dev/pandas/pulls/44170 | 2021-10-24T21:39:28Z | 2021-10-24T23:26:20Z | 2021-10-24T23:26:20Z | 2021-10-25T00:06:42Z |
WEB: Update institutional sponsors list | diff --git a/web/pandas/config.yml b/web/pandas/config.yml
index 82eb023f185c8..9165456d55897 100644
--- a/web/pandas/config.yml
+++ b/web/pandas/config.yml
@@ -112,26 +112,21 @@ sponsors:
url: https://numfocus.org/
logo: /static/img/partners/numfocus.svg
kind: numfocus
- - name: "Anaconda"
- url: ht... | Makes the lists consistent with the governance docs and adds d-fine
cc @MarcoGorelli Would you like to add gousto too? | https://api.github.com/repos/pandas-dev/pandas/pulls/44169 | 2021-10-24T20:47:32Z | 2021-10-24T23:26:35Z | 2021-10-24T23:26:35Z | 2021-11-13T19:32:43Z |
Added two examples to documentation of DataFrame.std | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c3ad87082c8ed..6e0e74249f61b 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10685,10 +10685,11 @@ def var(
_num_ddof_doc,
desc="Return sample standard deviation over requested axis."
"\n\nNorm... | - [x] closes part of #44162
Added two examples to the documentation of DataFrame.std function so that users can understand how to use it with different delta degrees of freedom. | https://api.github.com/repos/pandas-dev/pandas/pulls/44167 | 2021-10-24T16:44:45Z | 2021-10-29T11:17:18Z | null | 2021-10-29T11:20:55Z |
BUG: metadata propagation in .loc, .iloc and Series.to_frame() | diff --git a/MANIFEST.in b/MANIFEST.in
index f616fad6b1557..c6ddc79eaa83c 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -33,6 +33,7 @@ global-exclude *.xlsb
global-exclude *.xlsm
global-exclude *.xlsx
global-exclude *.xpt
+global-exclude *.cpt
global-exclude *.xz
global-exclude *.zip
global-exclude *~
diff --git ... | - [x] ~~closes~~ Incremental progress on #28283
- [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/44166 | 2021-10-24T16:36:46Z | 2021-11-28T18:18:31Z | null | 2021-11-28T18:18:31Z |
TST: Adding tests for checking Boolean series and df as indexes for series | diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py
index 6c3587c7eeada..d77f831bee8bc 100644
--- a/pandas/tests/series/indexing/test_indexing.py
+++ b/pandas/tests/series/indexing/test_indexing.py
@@ -377,3 +377,17 @@ def test_frozenset_index():
assert s[idx1... | - [ ] closes #18579
- [ ] 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
- [ ] After discussion in #18579 the current tests were suggested
| https://api.github.com/repos/pandas-dev/pandas/pulls/44165 | 2021-10-24T15:37:53Z | 2021-10-24T22:07:43Z | 2021-10-24T22:07:43Z | 2021-10-24T22:07:47Z |
TST: Move some consistency rolling tests to misc rolling functions | diff --git a/pandas/tests/window/moments/test_moments_consistency_rolling.py b/pandas/tests/window/moments/test_moments_consistency_rolling.py
index 7ec5846ef4acf..bda8ba05d4024 100644
--- a/pandas/tests/window/moments/test_moments_consistency_rolling.py
+++ b/pandas/tests/window/moments/test_moments_consistency_rollin... | - [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
Since some tests are not running on windows/moments (#37535), moving the "consistency" rolling tests to the relevant files.
| https://api.github.com/repos/pandas-dev/pandas/pulls/44164 | 2021-10-24T03:38:42Z | 2021-10-24T22:04:52Z | 2021-10-24T22:04:52Z | 2021-10-24T22:05:30Z |
TST: Move some consistency expanding tests to test_expanding | diff --git a/pandas/tests/window/moments/test_moments_consistency_expanding.py b/pandas/tests/window/moments/test_moments_consistency_expanding.py
index df3e79fb79eca..d0fe7bf9fc2d2 100644
--- a/pandas/tests/window/moments/test_moments_consistency_expanding.py
+++ b/pandas/tests/window/moments/test_moments_consistency_... | - [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
Since some tests are not running on windows/moments (#37535), moving the "consistency" expanding tests to `test_expanding.py`
| https://api.github.com/repos/pandas-dev/pandas/pulls/44163 | 2021-10-24T03:03:08Z | 2021-10-24T14:43:41Z | 2021-10-24T14:43:41Z | 2021-10-24T17:20:55Z |
TST: Move remaining ewm tests to window/ | diff --git a/pandas/tests/window/moments/test_moments_ewm.py b/pandas/tests/window/moments/test_moments_ewm.py
deleted file mode 100644
index f87ff654e554a..0000000000000
--- a/pandas/tests/window/moments/test_moments_ewm.py
+++ /dev/null
@@ -1,64 +0,0 @@
-import pytest
-
-from pandas import (
- DataFrame,
- Seri... | - [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
Since some tests are not running on windows/moments (#37535), moving the remaining tests to test_ewm.py
| https://api.github.com/repos/pandas-dev/pandas/pulls/44161 | 2021-10-24T02:02:33Z | 2021-10-24T14:42:33Z | 2021-10-24T14:42:33Z | 2021-10-24T17:20:46Z |
IO ExcelFile New Method | https://github.com/pandas-dev/pandas/pull/44160.diff | …frame access
- [ ] 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 Added method to ExcelFile class to read all the sheets. This allows the users ... | https://api.github.com/repos/pandas-dev/pandas/pulls/44160 | 2021-10-23T23:52:47Z | 2021-10-24T00:29:44Z | null | 2021-10-24T21:17:28Z |
TST: enable interval dtype feather test again | diff --git a/pandas/tests/io/test_feather.py b/pandas/tests/io/test_feather.py
index ba8a9ed070236..97ebb3a0d39ba 100644
--- a/pandas/tests/io/test_feather.py
+++ b/pandas/tests/io/test_feather.py
@@ -89,9 +89,7 @@ def test_basic(self):
)
df["periods"] = pd.period_range("2013", freq="M", periods=3)
... | Closes #34255 | https://api.github.com/repos/pandas-dev/pandas/pulls/44155 | 2021-10-23T14:57:40Z | 2021-10-23T17:50:44Z | 2021-10-23T17:50:44Z | 2021-10-23T17:54:37Z |
CLN/TST: address/annotate TODOs | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index d112b44c51c07..68c09f83e1cdf 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -947,7 +947,7 @@ def rank_1d(
N = len(values)
if labels is not None:
- # TODO Cython 3.0: cast won't be necessary (#2992)
+ # TODO... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/44154 | 2021-10-23T02:34:37Z | 2021-10-24T14:41:57Z | 2021-10-24T14:41:57Z | 2021-10-24T16:34:52Z |
TST: fix FIXMEs | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 408e58e23aaed..04e9864299dd1 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -978,7 +978,7 @@ def astype_dt64_to_dt64tz(
stacklevel=level,
)
- # FIXME: GH#33401 this doesn't match Dateti... | - [ ] 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/44151 | 2021-10-22T22:01:50Z | 2021-10-24T14:41:02Z | 2021-10-24T14:41:02Z | 2021-10-24T16:39:02Z |
CLN: remove unused fields.pyx code/asvs | diff --git a/asv_bench/benchmarks/tslibs/fields.py b/asv_bench/benchmarks/tslibs/fields.py
index 0607a799ec707..23ae73811204c 100644
--- a/asv_bench/benchmarks/tslibs/fields.py
+++ b/asv_bench/benchmarks/tslibs/fields.py
@@ -12,7 +12,7 @@
class TimeGetTimedeltaField:
params = [
_sizes,
- ["days", ... | - [ ] 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/44150 | 2021-10-22T19:48:46Z | 2021-10-23T19:04:08Z | 2021-10-23T19:04:08Z | 2021-10-23T20:26:43Z |
Backport PR #44144 on branch 1.3.x (CI: Fix mypy failures) | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 49f31ac82ff8d..4a518b0c6d5bf 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -908,9 +908,9 @@ def maybe_upcast(
"""
new_dtype, fill_value = maybe_promote(values.dtype, fill_value)
# We get a copy in all... | Backport PR #44144: CI: Fix mypy failures | https://api.github.com/repos/pandas-dev/pandas/pulls/44149 | 2021-10-22T18:50:04Z | 2021-10-22T21:44:51Z | 2021-10-22T21:44:51Z | 2021-10-22T21:44:51Z |
CLN: tests | diff --git a/pandas/tests/frame/methods/test_cov_corr.py b/pandas/tests/frame/methods/test_cov_corr.py
index 3dbf49df72558..60d5d8c8ccaca 100644
--- a/pandas/tests/frame/methods/test_cov_corr.py
+++ b/pandas/tests/frame/methods/test_cov_corr.py
@@ -189,15 +189,14 @@ def test_corr_nullable_integer(self, nullable_column,... | Includes de-special-casing some using_array_manager tests | https://api.github.com/repos/pandas-dev/pandas/pulls/44148 | 2021-10-22T17:46:49Z | 2021-10-24T14:39:32Z | 2021-10-24T14:39:32Z | 2021-10-24T16:37:13Z |
CI: Fix mypy failures | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 408e58e23aaed..db3d764fb97a2 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -910,9 +910,9 @@ def maybe_upcast(
"""
new_dtype, fill_value = maybe_promote(values.dtype, fill_value)
# We get a copy in all... | - [x] closes #44143
| https://api.github.com/repos/pandas-dev/pandas/pulls/44144 | 2021-10-22T13:28:21Z | 2021-10-22T18:49:38Z | 2021-10-22T18:49:38Z | 2021-10-22T18:49:38Z |
Fixes Issues#44132, #40148, #29033, #22275, #18869: groupby | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c3ad87082c8ed..ffbf74437289b 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8072,7 +8072,7 @@ def resample(
5 18 100 2018-02-11
6 17 40 2018-02-18
7 19 50 2018-02-25
- ... | - [x] closes #44132
- [x] closes #40148
- [x] closes #29033
- [x] closes #22275
- [x] closes #18869
- [ ] 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/44142 | 2021-10-22T07:17:43Z | 2022-01-16T18:08:33Z | null | 2022-01-16T18:08:34Z |
Move moments/test_moments_rolling_*.py tests to windows/test_rolling_*.py | diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py
index fd8c11bbace6e..7b1aa93b5923a 100644
--- a/pandas/tests/window/conftest.py
+++ b/pandas/tests/window/conftest.py
@@ -1,11 +1,17 @@
-from datetime import timedelta
+from datetime import (
+ datetime,
+ timedelta,
+)
+import numpy... | - [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
A part of addressing (#37535), moving some tests under the window directory.
| https://api.github.com/repos/pandas-dev/pandas/pulls/44141 | 2021-10-22T03:49:04Z | 2021-10-24T01:45:19Z | 2021-10-24T01:45:19Z | 2021-10-24T01:45:25Z |
Move moments/test_moments_rolling_apply.py to window/test_apply.py | diff --git a/pandas/tests/window/conftest.py b/pandas/tests/window/conftest.py
index fd8c11bbace6e..7b1aa93b5923a 100644
--- a/pandas/tests/window/conftest.py
+++ b/pandas/tests/window/conftest.py
@@ -1,11 +1,17 @@
-from datetime import timedelta
+from datetime import (
+ datetime,
+ timedelta,
+)
+import numpy... | - [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
Since some tests are not running on `windows/moments` (https://github.com/pandas-dev/pandas/issues/37535), moving some lighter a... | https://api.github.com/repos/pandas-dev/pandas/pulls/44140 | 2021-10-22T03:24:00Z | 2021-10-24T18:16:53Z | 2021-10-24T18:16:53Z | 2021-10-24T19:05:42Z |
CLN: remove pyarrow<1 compat | diff --git a/ci/deps/actions-38-locale.yaml b/ci/deps/actions-38-locale.yaml
index 13b132109effb..b7043735d9457 100644
--- a/ci/deps/actions-38-locale.yaml
+++ b/ci/deps/actions-38-locale.yaml
@@ -35,7 +35,7 @@ dependencies:
- xlsxwriter
- xlwt
- moto
- - pyarrow=1.0.0
+ - pyarrow=1.0.1
- pip
- pip:
... | xref #41329 #44064 | https://api.github.com/repos/pandas-dev/pandas/pulls/44139 | 2021-10-22T02:22:34Z | 2021-11-15T14:00:16Z | 2021-11-15T14:00:16Z | 2022-11-18T02:20:00Z |
ENH: ExtensionArray.insert | diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst
index e2e8c94ef8fc6..ce8d8d5c2ca10 100644
--- a/doc/source/reference/extensions.rst
+++ b/doc/source/reference/extensions.rst
@@ -48,6 +48,7 @@ objects.
api.extensions.ExtensionArray.equals
api.extensions.ExtensionArray... | - [ ] 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
Needed for #43930
| https://api.github.com/repos/pandas-dev/pandas/pulls/44138 | 2021-10-22T02:02:02Z | 2021-10-24T14:48:49Z | 2021-10-24T14:48:49Z | 2021-10-24T16:25:52Z |
BUG: yaml.dump(DataFrame) | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index d6ad5eb2003ce..a9d697adc301f 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -528,6 +528,7 @@ I/O
- Bug in :func:`read_json` not handling non-numpy dtypes correctly (especially ``category``) (:issue:`... | - [x] closes #42748
- [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/44137 | 2021-10-21T19:18:31Z | 2021-10-24T14:45:43Z | 2021-10-24T14:45:42Z | 2021-10-24T16:29:30Z |
Backport PR #44134 on branch 1.3.x (CI: Pin pre-commit python version) | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 51b52105b483a..adbe8f403c10b 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -13,4 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
+ with:
... | Backport PR #44134: CI: Pin pre-commit python version | https://api.github.com/repos/pandas-dev/pandas/pulls/44135 | 2021-10-21T17:45:57Z | 2021-10-21T19:55:42Z | 2021-10-21T19:55:42Z | 2021-10-21T19:55:42Z |
CI: Pin pre-commit python version | diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 0609755678d78..93e30e4d551af 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -16,4 +16,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
+ with:
... | - [x] closes #44116
Looks like GH actions/setup-python seems to have randomly jumped from python 3.9.7 to python 3.10.0
Working:
https://github.com/pandas-dev/pandas/runs/3947277622?check_suite_focus=true#step:3:5
Failing:
https://github.com/pandas-dev/pandas/runs/3960125988?check_suite_focus=true#step:3:5
... | https://api.github.com/repos/pandas-dev/pandas/pulls/44134 | 2021-10-21T16:29:28Z | 2021-10-21T17:45:26Z | 2021-10-21T17:45:26Z | 2021-10-21T17:47:11Z |
REF: simplify EA.astype | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index bf54f7166e14d..8365e58632c70 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -561,11 +561,9 @@ def astype(self, dtype: AstypeArg, copy: bool = True) -> ArrayLike:
Returns
-------
array : np.... | - [ ] 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/44133 | 2021-10-21T16:23:27Z | 2021-10-24T14:47:02Z | 2021-10-24T14:47:02Z | 2021-10-24T14:47:02Z |
BUG: make `mean()` raise an exception for strings | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 47a087d38d146..a1d31e39e4a57 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -405,6 +405,39 @@ raise a ``ValueError`` if the operation could produce a result with more than
.. ----------------------... | - [x] closes #44008
- [x] closes #36703
- [x] closes #34671
- [x] closes #22642
- [x] closes #26927
- [x] closes #13916
- [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/44131 | 2021-10-21T11:22:00Z | 2022-05-07T02:44:29Z | null | 2022-05-07T02:44:30Z |
disambiguate documentation for pandas.Series replace | diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py
index 9c9e70789390d..bc4f4d657b859 100644
--- a/pandas/core/shared_docs.py
+++ b/pandas/core/shared_docs.py
@@ -535,13 +535,13 @@
**Scalar `to_replace` and `value`**
- >>> s = pd.Series([0, 1, 2, 3, 4])
- >>> s.replace(0, 5)
+ >>> s ... | Currently, the `pandas.Series` that is used for the example for `pandas.Series.replace` has an index which is identical to its values (i.e. `pandas.Series([0, 1, 2, 3, 4])`). This can be quite confusing at a first glance (as it was for me), as I assumed that `pandas.Series.replace` was using the index of the series (wh... | https://api.github.com/repos/pandas-dev/pandas/pulls/44130 | 2021-10-21T06:31:37Z | 2021-10-27T12:12:44Z | 2021-10-27T12:12:44Z | 2021-10-27T12:12:48Z |
TST: Move test_moments_rolling.py to approproate files | diff --git a/pandas/tests/window/moments/test_moments_rolling.py b/pandas/tests/window/moments/test_moments_rolling.py
deleted file mode 100644
index b2e53a676b039..0000000000000
--- a/pandas/tests/window/moments/test_moments_rolling.py
+++ /dev/null
@@ -1,648 +0,0 @@
-import numpy as np
-import pytest
-
-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
Since some tests are not running on `windows/moments` (https://github.com/pandas-dev/pandas/issues/37535), moving some lighter r... | https://api.github.com/repos/pandas-dev/pandas/pulls/44129 | 2021-10-21T05:36:20Z | 2021-10-24T01:45:48Z | 2021-10-24T01:45:48Z | 2021-10-24T01:45:50Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.