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 |
|---|---|---|---|---|---|---|---|
DOC: fix EX02 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 47e3ce0ae6ff7..2d5e9cc031158 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -567,9 +567,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.plotting.andrews_curves \
pandas.plotting.autocorrelation_plot \
panda... | Some work towards issue https://github.com/pandas-dev/pandas/issues/51236
Makes docstrings pass EX02 error for:
```
pandas.plotting.radviz
pandas.tseries.frequencies.to_offset
``` | https://api.github.com/repos/pandas-dev/pandas/pulls/51614 | 2023-02-24T16:23:31Z | 2023-02-27T21:14:53Z | 2023-02-27T21:14:53Z | 2023-02-27T21:14:53Z |
STYLE: replace unwanted-patterns-strings-to-concatenate with ruff | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index b1028ea9f52c3..576c929c26b9b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -342,11 +342,6 @@ repos:
(?x)
^(asv_bench|pandas/tests|doc)/
|scripts/validate_min_versions_in_sync\.py$
- - ... | - [x] closes #51406
`Unwanted-patterns-strings-to-concatenate` replaced with ruff. | https://api.github.com/repos/pandas-dev/pandas/pulls/51613 | 2023-02-24T14:26:16Z | 2023-02-27T15:28:00Z | 2023-02-27T15:28:00Z | 2023-02-27T15:28:17Z |
BUG: Weighted rolling aggregations min_periods=0 | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 45b5c16415f9d..a60d4806252dd 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -187,6 +187,7 @@ Plotting
Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`DataFrameGroupBy.idxmin`, :me... | - [x] closes #51449
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/51611 | 2023-02-24T10:56:29Z | 2023-03-04T01:30:58Z | 2023-03-04T01:30:58Z | 2023-03-04T01:31:12Z |
Fix EX02 error:is_{integer,string}_dtype | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index c2ec22020bca2..47e3ce0ae6ff7 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -564,8 +564,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.api.types.is_datetime64_any_dtype \
pandas.api.types.is_datetime64_ns_dtype \
... | To fix issue #51236
| https://api.github.com/repos/pandas-dev/pandas/pulls/51610 | 2023-02-24T04:18:20Z | 2023-02-24T11:56:30Z | 2023-02-24T11:56:30Z | 2023-02-24T12:28:55Z |
ENH: use native filesystem (if available) for read_parquet with pyarrow engine | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 4fa5d7c6f392f..6e38983b39409 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -112,7 +112,8 @@ Performance improvements
- Performance improvement in :meth:`DataFrame.clip` and :meth:`Series.clip` (:iss... | Reboot of https://github.com/pandas-dev/pandas/pull/41194 cc @jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/51609 | 2023-02-24T02:21:07Z | 2023-03-14T21:14:25Z | 2023-03-14T21:14:25Z | 2023-03-14T21:44:45Z |
Backport PR #51548 on branch 2.0.x (BUG: parsing pyarrow dtypes corner case) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index bdbde438217b9..0e9994a6b1988 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1417,7 +1417,7 @@ Metadata
Other
^^^^^
-
+- Bug in incorrectly accepting dtype strings containing "[pyarrow]" more than... | Backport PR #51548: BUG: parsing pyarrow dtypes corner case | https://api.github.com/repos/pandas-dev/pandas/pulls/51606 | 2023-02-23T23:38:14Z | 2023-02-24T03:00:37Z | 2023-02-24T03:00:37Z | 2023-02-24T03:00:38Z |
REGR: MultiIndex.isin with empty iterable raising | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 92cb7b5fd5f47..b381752818ba0 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -3748,6 +3748,8 @@ def delete(self, loc) -> MultiIndex:
@doc(Index.isin)
def isin(self, values, level=None) -> npt.NDArray... | - [ ] closes #51599 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51605 | 2023-02-23T23:33:21Z | 2023-02-24T18:54:48Z | 2023-02-24T18:54:48Z | 2023-08-28T21:09:50Z |
CLN: Remove read_orc dtype checking | diff --git a/pandas/io/orc.py b/pandas/io/orc.py
index 5336e2a14f66d..4623539a19413 100644
--- a/pandas/io/orc.py
+++ b/pandas/io/orc.py
@@ -21,13 +21,6 @@
)
from pandas.compat._optional import import_optional_dependency
-from pandas.core.dtypes.common import (
- is_categorical_dtype,
- is_interval_dtype,
- ... | Benefit of `read_orc` immediately working if/when pyarrow ORC reader support any of the previously excluded types | https://api.github.com/repos/pandas-dev/pandas/pulls/51604 | 2023-02-23T23:01:10Z | 2023-02-24T01:13:44Z | 2023-02-24T01:13:44Z | 2023-02-24T02:02:11Z |
DOC: Add orient=table explanation to read_json doc | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index 335d510666a1f..80d2f9eda7ce5 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -540,6 +540,7 @@ def read_json(
- ``'index'`` : dict like ``{{index -> {{column -> value}}}}``
- ``'columns'`` : dict like ``{{column ... | - [x] closes #51588
Add an explanation of `orient='table'` to the documentation of `pandas.read_json` | https://api.github.com/repos/pandas-dev/pandas/pulls/51601 | 2023-02-23T22:38:05Z | 2023-02-24T01:13:08Z | 2023-02-24T01:13:08Z | 2023-02-24T01:13:13Z |
Backport PR #49228 on branch 2.0.x (CLN/FIX/PERF: Don't buffer entire Stata file into memory) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 91cd3335d9db6..3c3a655626bb6 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -6033,6 +6033,14 @@ values will have ``object`` data type.
``int64`` for all integer types and ``float64`` for floating point da... | Backport PR #49228: CLN/FIX/PERF: Don't buffer entire Stata file into memory | https://api.github.com/repos/pandas-dev/pandas/pulls/51600 | 2023-02-23T22:09:37Z | 2023-02-24T00:15:34Z | 2023-02-24T00:15:34Z | 2023-02-24T00:15:34Z |
TST: Make tests less stateful | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 39ba102ab3782..3973dc18abd59 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -3184,12 +3184,15 @@ def post_processor(
# Item "ExtensionDtype" of "Union[ExtensionDtype, str,
... | - closes #34373
Removing more statefulness in tests found by pytest-randomly.
Another issue should probably be opened up regarding `attrs` not being propagated correctly in binary operations. | https://api.github.com/repos/pandas-dev/pandas/pulls/51598 | 2023-02-23T21:29:14Z | 2023-02-23T23:35:44Z | 2023-02-23T23:35:44Z | 2023-02-23T23:58:20Z |
Backport PR #51545 on branch 2.0.x (TST/CLN: Remove unnecessary pyarrow version checking) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 5c09a7a28856f..4facc194978d5 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -569,14 +569,8 @@ def argsort(
) -> np.ndarray:
order = "ascending" if ascending else "descending"... | Backport PR #51545: TST/CLN: Remove unnecessary pyarrow version checking | https://api.github.com/repos/pandas-dev/pandas/pulls/51595 | 2023-02-23T18:54:04Z | 2023-02-23T22:12:04Z | 2023-02-23T22:12:04Z | 2023-02-23T22:12:05Z |
REF: de-duplicate precision_from_unit attempt 2 | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 19dd7aabe6b8e..d828ea424c5a0 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -56,7 +56,6 @@ from pandas._libs.tslibs.conversion cimport (
convert_timezone,
get_datetime64_nanos,
parse_pydatetime,
- precision_from_un... | precision_from_unit is getting called in situations where it shouldn't be. | https://api.github.com/repos/pandas-dev/pandas/pulls/51594 | 2023-02-23T18:22:48Z | 2023-02-24T19:02:36Z | 2023-02-24T19:02:36Z | 2023-02-24T19:05:58Z |
DOC Fix EX01 issues in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 759e07018a190..c2ec22020bca2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -92,8 +92,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.keys \
pandas.Series.item \
pandas.Series.pipe \
- pandas.... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51593 | 2023-02-23T17:54:53Z | 2023-02-23T21:39:39Z | 2023-02-23T21:39:39Z | 2023-02-24T08:43:10Z |
PERF: maybe_promote | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 5877c60df41fd..8aadb67aea533 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -23,6 +23,7 @@
from pandas._libs.missing import (
NA,
NAType,
+ checknull,
)
from pandas._libs.tslibs import (
NaT,
@@ ... | Test runtime for pandas/tests/indexing/multiindex/test_indexing_slow.py decreases from 30s to 14.5s.
See discussion around https://github.com/pandas-dev/pandas/pull/39692#issuecomment-1441051740 | https://api.github.com/repos/pandas-dev/pandas/pulls/51592 | 2023-02-23T17:43:34Z | 2023-03-02T02:04:14Z | 2023-03-02T02:04:14Z | 2023-03-02T02:09:53Z |
TST/bug: add test for NaT in Categorical.isin with empty string | diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py
index ef165767ed5ed..d4c19a4970135 100644
--- a/pandas/tests/arrays/categorical/test_algos.py
+++ b/pandas/tests/arrays/categorical/test_algos.py
@@ -59,6 +59,15 @@ def test_isin_cats():
tm.assert_numpy_array... | - [x] closes #36550
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/51587 | 2023-02-23T12:09:01Z | 2023-02-24T19:10:21Z | 2023-02-24T19:10:21Z | 2023-02-24T19:10:28Z |
Backport PR #51573 on branch 2.0.x (CI: Fix failure due to warning) | diff --git a/pandas/tests/indexes/test_common.py b/pandas/tests/indexes/test_common.py
index d8e17e48a19b3..23677d77a5273 100644
--- a/pandas/tests/indexes/test_common.py
+++ b/pandas/tests/indexes/test_common.py
@@ -448,8 +448,15 @@ def test_hasnans_isnans(self, index_flat):
@pytest.mark.parametrize("na_position", ... | Backport PR #51573: CI: Fix failure due to warning | https://api.github.com/repos/pandas-dev/pandas/pulls/51586 | 2023-02-23T12:07:27Z | 2023-02-23T14:30:24Z | 2023-02-23T14:30:24Z | 2023-02-23T14:30:24Z |
BUG: not broadcasting when setting empty object | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index bdbde438217b9..a924b98237dbd 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1273,6 +1273,7 @@ Indexing
- Bug in :meth:`DataFrame.sort_values` where ``None`` was not returned when ``by`` is empty lis... | - [ ] closes #51450 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51585 | 2023-02-23T12:02:34Z | 2023-02-24T19:13:22Z | 2023-02-24T19:13:22Z | 2023-08-28T21:09:51Z |
Revert "REF: de-duplicate precision_from_unit" | diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx
index 18ea6bbb0a257..03a53b1b451e9 100644
--- a/pandas/_libs/tslibs/conversion.pyx
+++ b/pandas/_libs/tslibs/conversion.pyx
@@ -37,7 +37,6 @@ from pandas._libs.tslibs.np_datetime cimport (
NPY_FR_us,
check_dts_bounds,
co... | Reverts pandas-dev/pandas#51483 | https://api.github.com/repos/pandas-dev/pandas/pulls/51584 | 2023-02-23T11:10:03Z | 2023-02-23T14:15:54Z | 2023-02-23T14:15:54Z | 2023-02-23T14:16:09Z |
Backport PR #51568 on branch 2.0.x (ENH: Series.fillna with empty argument making deep copy) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index fdc54d70198bf..443daf2503632 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6850,7 +6850,7 @@ def fillna(
# test_fillna_nonscalar
if inplace:
return Non... | Backport PR #51568: ENH: Series.fillna with empty argument making deep copy | https://api.github.com/repos/pandas-dev/pandas/pulls/51580 | 2023-02-23T10:18:10Z | 2023-02-23T14:29:28Z | 2023-02-23T14:29:28Z | 2023-02-23T14:29:28Z |
DOCS: fix category docs | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index e031a1443bc6f..1bd20b54242e6 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -263,14 +263,6 @@ All instances of ``CategoricalDtype`` compare equal to the string ``'category'... | - [x] closes #46770
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/51579 | 2023-02-23T10:14:34Z | 2023-02-24T19:14:48Z | 2023-02-24T19:14:48Z | 2023-02-24T19:18:01Z |
DOC: fix EX02 errors in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e8a9963438648..752ad23648ee2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -569,14 +569,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX02 --ignore_functions \
... | Related to issue #51236
This PR enables functions:
`pandas.api.types.infer_dtype`
`pandas.api.types.is_sparse`
`pandas.api.types.is_unsigned_integer_dtype`
EX03 errors appeared in the pr #51529 were fixed. | https://api.github.com/repos/pandas-dev/pandas/pulls/51578 | 2023-02-23T10:00:11Z | 2023-02-23T14:27:35Z | 2023-02-23T14:27:35Z | 2023-02-23T14:27:36Z |
BUG: TDI divison giving bogus .freq | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 1eab7b2fc411f..ed85b952e3bcd 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -124,6 +124,7 @@ Datetimelike
Timedelta
^^^^^^^^^
- Bug in :meth:`Timedelta.round` with values close to the implementatio... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51575 | 2023-02-23T00:58:55Z | 2023-02-25T20:38:18Z | 2023-02-25T20:38:18Z | 2023-02-25T21:15:33Z |
PERF: DataFrame.where for EA dtype mask | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index f3eaa3f114b72..f7da4882b0d3f 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -770,6 +770,21 @@ def time_memory_usage_object_dtype(self):
self.df2.memory_usage(deep=... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/51574 | 2023-02-23T00:21:36Z | 2023-02-25T21:50:58Z | 2023-02-25T21:50:58Z | 2023-03-17T22:04:33Z |
CI: Fix failure due to warning | diff --git a/pandas/tests/indexes/test_common.py b/pandas/tests/indexes/test_common.py
index d8e17e48a19b3..23677d77a5273 100644
--- a/pandas/tests/indexes/test_common.py
+++ b/pandas/tests/indexes/test_common.py
@@ -448,8 +448,15 @@ def test_hasnans_isnans(self, index_flat):
@pytest.mark.parametrize("na_position", ... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51573 | 2023-02-23T00:05:55Z | 2023-02-23T12:07:18Z | 2023-02-23T12:07:18Z | 2023-02-23T16:19:31Z |
Backport PR #51566 on branch 2.0.x (DOC: Clean whatsnew links) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 45a5d139349e9..243a6cb46be56 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -72,7 +72,7 @@ Below is a possibly non-exhaustive list of changes:
2. The various numeric datetime attributes of :class:`Da... | Backport PR #51566: DOC: Clean whatsnew links | https://api.github.com/repos/pandas-dev/pandas/pulls/51572 | 2023-02-23T00:02:01Z | 2023-02-23T10:16:05Z | 2023-02-23T10:16:05Z | 2023-02-23T10:16:05Z |
ENH: DataFrame.fillna making deep copy for dict arg | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 9bdfb8da0c7cb..a169f098a727d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6885,8 +6885,10 @@ def fillna(
"with dict/Series column "
"by column"
)
-
- ... | - [ ] xref #49473 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/51571 | 2023-02-22T23:31:16Z | 2023-02-25T17:45:30Z | 2023-02-25T17:45:30Z | 2023-03-01T23:20:30Z |
Backport PR #51312 on branch 2.0.x (CI/TST: Enable -W error:::pandas in pyproject.toml) | diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml
index 7446ec00a87c9..bc6ecd7c5e5d0 100644
--- a/.github/workflows/macos-windows.yml
+++ b/.github/workflows/macos-windows.yml
@@ -18,8 +18,6 @@ env:
PANDAS_CI: 1
PYTEST_TARGET: pandas
PATTERN: "not slow and not db and not ne... | Backport PR #51312: CI/TST: Enable -W error:::pandas in pyproject.toml | https://api.github.com/repos/pandas-dev/pandas/pulls/51570 | 2023-02-22T23:31:02Z | 2023-02-23T11:25:22Z | 2023-02-23T11:25:22Z | 2023-02-23T11:25:22Z |
ENH: Series.fillna with empty argument making deep copy | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 8e7d31f3f85e1..84f11ce9daa7a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -6859,7 +6859,7 @@ def fillna(
# test_fillna_nonscalar
if inplace:
return Non... | - [ ] xref #49473 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/51568 | 2023-02-22T23:04:08Z | 2023-02-23T10:17:37Z | 2023-02-23T10:17:37Z | 2023-02-23T16:20:04Z |
DOC: Clean whatsnew links | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index eff79dda821a0..bdbde438217b9 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -72,7 +72,7 @@ Below is a possibly non-exhaustive list of changes:
2. The various numeric datetime attributes of :class:`Da... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51566 | 2023-02-22T22:07:48Z | 2023-02-23T00:01:54Z | 2023-02-23T00:01:54Z | 2023-02-23T00:06:29Z |
BUG: transpose inferring dtype for dt in object column | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 12d35288d1ee6..9000b3fc446c5 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -195,7 +195,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
--
+- Bug in :meth:`DataFrame.transpose` inferring dtype f... | - [x] closes #51546 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/51565 | 2023-02-22T21:57:32Z | 2023-03-07T19:40:00Z | 2023-03-07T19:39:59Z | 2023-03-07T22:29:21Z |
Backport PR #51430 on branch 2.0.x (BUG: transpose not respecting CoW) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 45a5d139349e9..eff79dda821a0 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -261,6 +261,8 @@ Copy-on-Write improvements
- :meth:`DataFrame.replace` will now respect the Copy-on-Write mechanism
whe... | Backport PR #51430: BUG: transpose not respecting CoW | https://api.github.com/repos/pandas-dev/pandas/pulls/51564 | 2023-02-22T21:33:39Z | 2023-02-23T10:16:27Z | 2023-02-23T10:16:27Z | 2023-02-23T10:16:28Z |
Auto Backport PR #50964 on branch 2.0.x (TST: Test ArrowExtensionArray with decimal types) | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 00e949b1dd318..69ca809e4f498 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -215,6 +215,7 @@
FLOAT_PYARROW_DTYPES_STR_REPR = [
str(ArrowDtype(typ)) for typ in FLOAT_PYARROW_DTYPES
]
+ DECIMA... | * TST: Test ArrowExtensionArray with decimal types
* Version compat
* Add other xfails based on min version
* fix test
* fix typo
* another typo
* only for skipna
* Add comment
* Fix
* undo comments
* Bump version condition
* Skip masked indexing engine for decimal
* Some merge stuff... | https://api.github.com/repos/pandas-dev/pandas/pulls/51562 | 2023-02-22T20:35:42Z | 2023-02-22T23:32:38Z | 2023-02-22T23:32:38Z | 2023-02-22T23:42:08Z |
DOC Fix EX01 issues in docstrings | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e8a9963438648..0317c251e66b0 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -92,13 +92,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.keys \
pandas.Series.item \
pandas.Series.pipe \
- panda... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/51561 | 2023-02-22T19:27:24Z | 2023-02-23T00:03:28Z | 2023-02-23T00:03:27Z | 2023-02-23T13:59:25Z |
Backport PR #51469 on branch 2.0.x (DOC: Remove 1.0.0 versionadded/versionchanged) | diff --git a/doc/source/development/policies.rst b/doc/source/development/policies.rst
index d75262c08dfd6..d079cc59b0ca5 100644
--- a/doc/source/development/policies.rst
+++ b/doc/source/development/policies.rst
@@ -9,8 +9,6 @@ Policies
Version policy
~~~~~~~~~~~~~~
-.. versionchanged:: 1.0.0
-
pandas uses a loos... | Backport PR #51469: DOC: Remove 1.0.0 versionadded/versionchanged | https://api.github.com/repos/pandas-dev/pandas/pulls/51558 | 2023-02-22T17:10:08Z | 2023-02-22T21:02:09Z | 2023-02-22T21:02:09Z | 2023-02-22T21:02:09Z |
Backport PR #51552 on branch 2.0.x (DOC: Cleanup CoW dev docs) | diff --git a/doc/source/development/copy_on_write.rst b/doc/source/development/copy_on_write.rst
index 34625ed645615..757a871b495c5 100644
--- a/doc/source/development/copy_on_write.rst
+++ b/doc/source/development/copy_on_write.rst
@@ -14,15 +14,15 @@ behaves as a copy.
Reference tracking
------------------
-To be... | Backport PR #51552: DOC: Cleanup CoW dev docs | https://api.github.com/repos/pandas-dev/pandas/pulls/51556 | 2023-02-22T14:05:14Z | 2023-02-22T14:05:31Z | 2023-02-22T14:05:31Z | 2023-02-22T14:05:31Z |
CI: temporary fix to the CI | diff --git a/pandas/tests/scalar/timedelta/test_arithmetic.py b/pandas/tests/scalar/timedelta/test_arithmetic.py
index 5fc991df49424..60e278f47d0f8 100644
--- a/pandas/tests/scalar/timedelta/test_arithmetic.py
+++ b/pandas/tests/scalar/timedelta/test_arithmetic.py
@@ -384,8 +384,11 @@ def test_td_div_nan(self, nan):
... | ref #31992
---
This is just a temporary fix to the CI.
Until someone smarter than me fix it :)
| https://api.github.com/repos/pandas-dev/pandas/pulls/32011 | 2020-02-15T10:56:36Z | 2020-02-15T13:14:12Z | 2020-02-15T13:14:12Z | 2020-02-29T10:30:46Z |
DOC: Improve documentation for Index.where | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index c896e68f7a188..6b6753ff31e29 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3936,18 +3936,35 @@ def memory_usage(self, deep: bool = False) -> int:
def where(self, cond, other=None):
"""
- ... | - [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/15
- [ ] 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/32009 | 2020-02-15T10:50:46Z | 2020-02-26T20:38:48Z | 2020-02-26T20:38:47Z | 2020-02-26T20:39:02Z |
CLN 29574 Replace old string formating | diff --git a/pandas/tests/frame/test_to_csv.py b/pandas/tests/frame/test_to_csv.py
index aeff92971b42a..86c9a98377f3f 100644
--- a/pandas/tests/frame/test_to_csv.py
+++ b/pandas/tests/frame/test_to_csv.py
@@ -687,7 +687,7 @@ def _make_frame(names=None):
df.to_csv(path)
for i in [6, 7]:
- ... | Its my first contribution, modified the str formating to use fstrings
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] pandas/tests/frame/test_to_csv.py
| https://api.github.com/repos/pandas-dev/pandas/pulls/32007 | 2020-02-15T10:39:50Z | 2020-02-15T19:05:03Z | 2020-02-15T19:05:03Z | 2020-02-16T06:31:37Z |
DOC: Fix pandas.index.copy summary documentation | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 3d549405592d6..e8d65fbf11128 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -825,20 +825,24 @@ def repeat(self, repeats, axis=None):
def copy(self, name=None, deep=False, dtype=None, names=None):
... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/8
- [ ] tests added / passed
- [ ] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.Index.copy`
###############... | https://api.github.com/repos/pandas-dev/pandas/pulls/32006 | 2020-02-15T10:35:39Z | 2020-02-26T20:35:42Z | 2020-02-26T20:35:41Z | 2020-02-26T20:36:11Z |
doc: Add period to parameter description | diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py
index 986f87ffe3734..0b85433b699a8 100644
--- a/pandas/core/indexes/period.py
+++ b/pandas/core/indexes/period.py
@@ -85,7 +85,7 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index):
copy : bool
Make a copy of input ndarray.
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
there are a few errors left:
################################################################################
##############################... | https://api.github.com/repos/pandas-dev/pandas/pulls/32005 | 2020-02-15T10:34:47Z | 2020-02-15T19:06:26Z | 2020-02-15T19:06:26Z | 2020-02-15T19:06:35Z |
DOC: Update pandas.DataFrame.droplevel docstring | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index bb7d8a388e6e2..e2dc543360a62 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -269,7 +269,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests generic.py' ; echo $MSG
pytest -q --doctest-modules pandas/core/generic.py \
- ... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/23
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.DataFrame.droplevel`:
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/32004 | 2020-02-15T10:29:42Z | 2020-02-25T01:54:46Z | 2020-02-25T01:54:46Z | 2020-02-25T01:54:52Z |
DOC PR09 Add . in the description parameter | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 01d2bfe0458c8..0b3004ce12013 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -1014,7 +1014,7 @@ def assert_extension_array_equal(
Parameters
----------
left, right : ExtensionArray
- The two arrays to compare
+ The two a... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/32001 | 2020-02-15T09:31:01Z | 2020-02-15T10:28:55Z | 2020-02-15T10:28:55Z | 2020-02-15T10:29:08Z |
DOC: PR09 Add missing . on Parameter con description | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 04e8b78fb1b87..1139d22d53e7d 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2415,7 +2415,7 @@ def to_sql(
library. Legacy support is provided for sqlite3.Connection objects. The user
is responsible for eng... | - [ ] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/22
- [ ] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Output of `python scripts/validate_docstrings.py pandas.DataFrame.to_sql`:
```
##... | https://api.github.com/repos/pandas-dev/pandas/pulls/32000 | 2020-02-15T09:30:45Z | 2020-02-15T10:58:12Z | 2020-02-15T10:58:12Z | 2020-02-15T10:58:37Z |
DOC PR09 Add missing . on freq parameter on groupby.py | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 1d7527e73079c..6b2880810dcb2 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2329,7 +2329,7 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None):
periods : int, default 1
... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/31998 | 2020-02-15T09:07:44Z | 2020-02-15T09:55:11Z | 2020-02-15T09:55:11Z | 2020-02-15T10:07:58Z |
Backport PR: CI:Testing whole doctest, and not specific module | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 83ceb11dfcbf4..30d3a3ffe5f7b 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -259,8 +259,7 @@ fi
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
- pytest -q --doctest-modules pandas/core/frame.py \
- ... | xref #31975
Doing as mentioned [here](https://github.com/pandas-dev/pandas/pull/31975#issuecomment-586443425) | https://api.github.com/repos/pandas-dev/pandas/pulls/31993 | 2020-02-15T08:21:19Z | 2020-02-15T09:59:33Z | 2020-02-15T09:59:33Z | 2020-02-15T10:15:40Z |
BUG: Fix wrong reading sparse matrix | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 718de09a0c3e4..0dd24bcc54933 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -572,7 +572,7 @@ Reshaping
Sparse
^^^^^^
- Creating a :class:`SparseArray` from timezone-aware dtype will issue a warning... | - [x] closes #29814
- [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/31991 | 2020-02-15T07:29:20Z | 2020-04-16T21:22:53Z | 2020-04-16T21:22:52Z | 2020-04-16T22:16:53Z |
CLN: 29547 replace old string formatting 7 | diff --git a/pandas/tests/scalar/timestamp/test_constructors.py b/pandas/tests/scalar/timestamp/test_constructors.py
index 737a85faa4c9b..b4a7173da84d0 100644
--- a/pandas/tests/scalar/timestamp/test_constructors.py
+++ b/pandas/tests/scalar/timestamp/test_constructors.py
@@ -314,7 +314,7 @@ def test_constructor_nanose... | I splitted PR #31844 in batches, this is the seventh
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547]... | https://api.github.com/repos/pandas-dev/pandas/pulls/31986 | 2020-02-14T19:45:33Z | 2020-02-15T19:04:20Z | 2020-02-15T19:04:20Z | 2020-02-21T01:29:56Z |
CLN 29547 Replace old string formatting syntax with f-strings | diff --git a/pandas/io/sas/sas_xport.py b/pandas/io/sas/sas_xport.py
index 461d393dc4521..e67d68f7e0975 100644
--- a/pandas/io/sas/sas_xport.py
+++ b/pandas/io/sas/sas_xport.py
@@ -79,12 +79,12 @@
Return XportReader object for reading file incrementally."""
-_read_sas_doc = """Read a SAS file into a DataFrame.... | Addresses #29547 for pandas/io/sas/sas_xport.py. I searched through for instances of the `%` operator and `.format`.
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I noticed that `_read_sas_doc` doesn't seem to be used anymore. I could delete that as well, or we ... | https://api.github.com/repos/pandas-dev/pandas/pulls/31982 | 2020-02-14T17:36:30Z | 2020-02-15T02:19:38Z | 2020-02-15T02:19:38Z | 2020-02-15T02:19:42Z |
CLN: 29547 replace old string formatting 6 | diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py
index 80a4d81b20a13..dbda3994b1c2a 100644
--- a/pandas/tests/indexing/test_floats.py
+++ b/pandas/tests/indexing/test_floats.py
@@ -53,7 +53,7 @@ def test_scalar_error(self, index_func):
s.iloc[3.0]
msg = (
... | I splitted PR #31844 in batches, this is the sixth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](h... | https://api.github.com/repos/pandas-dev/pandas/pulls/31980 | 2020-02-14T17:19:28Z | 2020-02-14T19:11:47Z | 2020-02-14T19:11:47Z | 2020-02-21T01:30:05Z |
CI: Removed pattern check for specific modules | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 7eb80077c4fab..bb7d8a388e6e2 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -259,8 +259,7 @@ fi
if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
MSG='Doctests frame.py' ; echo $MSG
- pytest -q --doctest-modules pandas/core/frame.py \
- ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/31975 | 2020-02-14T14:47:35Z | 2020-02-14T19:23:53Z | 2020-02-14T19:23:52Z | 2020-02-15T08:23:06Z |
STY: Fixed wrong placement of whitespace | diff --git a/pandas/tests/arrays/test_integer.py b/pandas/tests/arrays/test_integer.py
index 9186c33c12c06..0a5a2362bd290 100644
--- a/pandas/tests/arrays/test_integer.py
+++ b/pandas/tests/arrays/test_integer.py
@@ -347,10 +347,10 @@ def test_error(self, data, all_arithmetic_operators):
# TODO(extension)
... | - [x] ref #30755
- [ ] 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/31974 | 2020-02-14T13:39:16Z | 2020-02-14T18:45:36Z | 2020-02-14T18:45:36Z | 2020-02-15T08:37:15Z |
CLN: @doc - base.py & indexing.py | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index ba4c2e168e0c4..24a2bf12fd0b5 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -15,6 +15,7 @@
Substitution,
cache_readonly,
deprecate_kwarg,
+ doc,
)
from pandas.util._val... | - [x] working on #31942
- [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/31970 | 2020-02-14T02:20:29Z | 2020-03-17T00:10:28Z | 2020-03-17T00:10:28Z | 2020-03-23T21:42:50Z |
DOC: Use use recommended library over deprecated library | diff --git a/pandas/io/json/_normalize.py b/pandas/io/json/_normalize.py
index 714bebc260c06..f158ad6cd89e3 100644
--- a/pandas/io/json/_normalize.py
+++ b/pandas/io/json/_normalize.py
@@ -159,11 +159,10 @@ def _json_normalize(
Examples
--------
- >>> from pandas.io.json import json_normalize
>>> da... | Importing `pandas.io.json.json_normalize` in pandas 1.0.1 gives the following warning
```
FutureWarning: pandas.io.json.json_normalize is deprecated, use pandas.json_normalize instead
```
This PR updates the documentation here https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.json_normalize.html... | https://api.github.com/repos/pandas-dev/pandas/pulls/31968 | 2020-02-14T01:28:20Z | 2020-02-14T02:35:08Z | 2020-02-14T02:35:08Z | 2020-02-15T01:52:04Z |
CLN: 29547 replace old string formatting 5 | diff --git a/pandas/tests/io/parser/test_c_parser_only.py b/pandas/tests/io/parser/test_c_parser_only.py
index 1737f14e7adf9..5bbabc8e18c47 100644
--- a/pandas/tests/io/parser/test_c_parser_only.py
+++ b/pandas/tests/io/parser/test_c_parser_only.py
@@ -158,7 +158,7 @@ def test_precise_conversion(c_parser_only):
# ... | I splitted PR #31844 in batches, this is the fifth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](h... | https://api.github.com/repos/pandas-dev/pandas/pulls/31967 | 2020-02-14T01:22:43Z | 2020-02-14T16:54:33Z | 2020-02-14T16:54:33Z | 2020-02-21T01:29:58Z |
CLN: 29547 replace old string formatting 4 | diff --git a/pandas/tests/internals/test_internals.py b/pandas/tests/internals/test_internals.py
index fe161a0da791a..0c9ddbf5473b3 100644
--- a/pandas/tests/internals/test_internals.py
+++ b/pandas/tests/internals/test_internals.py
@@ -91,9 +91,7 @@ def create_block(typestr, placement, item_shape=None, num_offset=0):
... | I splitted PR #31844 in batches, this is the fourth
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](... | https://api.github.com/repos/pandas-dev/pandas/pulls/31963 | 2020-02-13T20:15:24Z | 2020-02-14T01:04:47Z | 2020-02-14T01:04:47Z | 2020-02-21T01:30:00Z |
REF: remove _convert_scalar_indexer | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index ceb3f26a0526a..f2d4151edb855 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3078,48 +3078,6 @@ def _get_partial_string_timestamp_match_key(self, key):
# GH#10331
return key
- def _convert_... | This sits on top of #31867, so is partially a demonstration of how much complication is caused by our inconsistent error-raising. | https://api.github.com/repos/pandas-dev/pandas/pulls/31962 | 2020-02-13T20:11:32Z | 2020-03-03T15:27:18Z | 2020-03-03T15:27:18Z | 2020-03-03T15:53:13Z |
CLN: D414: Section has no content | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index da152b70abd2e..22b62b56a3c88 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3821,6 +3821,8 @@ def align(
@Appender(
"""
+ Examples
+ --------
>>> df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
... | https://api.github.com/repos/pandas-dev/pandas/pulls/31961 | 2020-02-13T18:54:56Z | 2020-02-13T20:11:14Z | 2020-02-13T20:11:14Z | 2020-02-13T20:31:15Z | |
CLN: remove blocking return | diff --git a/pandas/tests/indexes/multi/test_copy.py b/pandas/tests/indexes/multi/test_copy.py
index 1acc65aef8b8a..67b815ecba3b8 100644
--- a/pandas/tests/indexes/multi/test_copy.py
+++ b/pandas/tests/indexes/multi/test_copy.py
@@ -80,7 +80,6 @@ def test_copy_method_kwargs(deep, kwarg, value):
codes=[[0, 0, 0... | just noticed a `return` statement in the middle of a test that prevents it from being executed. This was added in ##23752 | https://api.github.com/repos/pandas-dev/pandas/pulls/31960 | 2020-02-13T18:53:29Z | 2020-02-13T19:35:30Z | 2020-02-13T19:35:30Z | 2020-02-19T10:49:57Z |
CLN: D411: Missing blank line before section | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 46ed65c87e8dd..4a6973b600409 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -2590,6 +2590,7 @@ def test_parallel(num_threads=2, kwargs_list=None):
kwargs_list : list of dicts, optional
The list of kwargs to update original
fu... | https://api.github.com/repos/pandas-dev/pandas/pulls/31959 | 2020-02-13T18:35:14Z | 2020-02-13T20:10:25Z | 2020-02-13T20:10:25Z | 2020-02-13T20:20:48Z | |
CLN: D409: Section underline should match the length of its name | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 6fa42804d2e39..3381a2f765223 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1686,7 +1686,7 @@ def _lexsort_depth(self) -> int:
MultiIndex that are sorted lexically
Returns
- ------... | https://api.github.com/repos/pandas-dev/pandas/pulls/31958 | 2020-02-13T18:14:27Z | 2020-02-13T20:07:34Z | 2020-02-13T20:07:34Z | 2020-02-13T20:19:08Z | |
CLN: D412: No blank lines allowed between a section header and its content | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index c283baeb9d412..2df940817498c 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -395,7 +395,6 @@ class option_context:
Examples
--------
-
>>> with option_context('display.max_rows', 10, 'display.max_columns', 5... | https://api.github.com/repos/pandas-dev/pandas/pulls/31956 | 2020-02-13T17:56:02Z | 2020-02-13T20:06:57Z | 2020-02-13T20:06:56Z | 2020-02-13T20:15:35Z | |
add eval examples | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index 4cdf4bac61316..f6947d5ec6233 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -276,6 +276,21 @@ def eval(
See the :ref:`enhancing performance <enhancingperf.eval>` documentation for
more... | xref #31952
Screenshot for `pandas.eval`:

Screenshot for `pandas.DataFrame.eval`:

| https://api.github.com/repos/pandas-dev/pandas/pulls/31955 | 2020-02-13T17:11:26Z | 2020-02-14T01:21:42Z | 2020-02-14T01:21:42Z | 2020-02-25T17:11:43Z |
CLN: index related attributes on Series/DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index da152b70abd2e..8cad92ab2bb32 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8569,6 +8569,14 @@ def isin(self, values) -> "DataFrame":
# ----------------------------------------------------------------------
# Add index and colu... | Followup to #31126. IMO the current approach to adding the index related class attributes is too indirect and therefore unnecessary difficult to follow. Just adding the class attributes directly on the relevant class makes reading the code easier, IMO.
Notice that the types are already defined in pandas/core/generic... | https://api.github.com/repos/pandas-dev/pandas/pulls/31953 | 2020-02-13T14:47:06Z | 2020-02-14T01:07:53Z | 2020-02-14T01:07:53Z | 2020-02-14T21:50:48Z |
Backport PR #31910 on branch 1.0.x (BUG: Handle NA in assert_numpy_array_equal) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 8231471dfbde9..3f98a479bc587 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -527,6 +527,8 @@ def array_equivalent_object(left: object[:], right: object[:]) -> bool:
if PyArray_Check(x) and PyArray_Check(y):
if ... | Backport PR #31910: BUG: Handle NA in assert_numpy_array_equal | https://api.github.com/repos/pandas-dev/pandas/pulls/31947 | 2020-02-13T08:16:45Z | 2020-02-13T09:05:41Z | 2020-02-13T09:05:41Z | 2020-02-13T12:41:05Z |
API: replace() should raise an exception if invalid argument is given | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 0f18a1fd81815..43c0a3cfa1b94 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -322,6 +322,7 @@ Reshaping
- Bug in :func:`crosstab` when inputs are two Series and have tuple names, the output will keep ... | - [x] closes #18634
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I used `is_scalar()` instead of `is_numeric()` to allow data structures like pd.Timestamp to be used in `replace()`. See tests in pandas/tests/frame... | https://api.github.com/repos/pandas-dev/pandas/pulls/31946 | 2020-02-13T06:13:46Z | 2020-03-03T03:24:23Z | 2020-03-03T03:24:23Z | 2020-03-03T04:32:14Z |
CLN: 29547 replace old string formatting 3 | diff --git a/pandas/tests/indexes/interval/test_setops.py b/pandas/tests/indexes/interval/test_setops.py
index 3246ac6bafde9..d9359d717de1d 100644
--- a/pandas/tests/indexes/interval/test_setops.py
+++ b/pandas/tests/indexes/interval/test_setops.py
@@ -180,8 +180,8 @@ def test_set_incompatible_types(self, closed, op_na... | I splitted PR #31844 in batches, this is the third
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](h... | https://api.github.com/repos/pandas-dev/pandas/pulls/31945 | 2020-02-13T03:45:56Z | 2020-02-13T20:34:48Z | 2020-02-13T20:34:48Z | 2020-02-21T01:30:01Z |
DOC: update ohlc docstring so that it reflects the real use #31919 | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 6b2880810dcb2..cc46485b4a2e8 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1447,7 +1447,7 @@ def last(x):
@Appender(_common_see_also)
def ohlc(self) -> DataFrame:
"""
- Com... | - [x] closes #31919
- [x] tests added / passed
The test python scripts/validate_docstrings.py pandas.core.groupby.GroupBy.ohlc returns errors, but that is something that happens with many functions at the moment
```################################################################################
################... | https://api.github.com/repos/pandas-dev/pandas/pulls/31941 | 2020-02-13T00:30:02Z | 2020-02-15T18:07:33Z | 2020-02-15T18:07:32Z | 2020-02-15T18:07:40Z |
BUG: Fix construction of Categorical from pd.NA | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index affe019d0ac86..dc47e010dacdc 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -65,6 +65,7 @@ Bug fixes
**Categorical**
- Fixed bug where :meth:`Categorical.from_codes` improperly raised a ``ValueErr... | - [x] closes #31927
- [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/31939 | 2020-02-12T21:17:04Z | 2020-02-23T14:57:08Z | 2020-02-23T14:57:08Z | 2020-02-23T15:10:32Z |
CLN: assorted cleanups | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 5888600d2fa8e..a75536e46e60d 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -283,7 +283,8 @@ def __init__(self, values, dtype=_NS_DTYPE, freq=None, copy=False):
@classmethod
def _simple_... | broken off of other local branches | https://api.github.com/repos/pandas-dev/pandas/pulls/31938 | 2020-02-12T21:09:05Z | 2020-02-13T12:42:54Z | 2020-02-13T12:42:54Z | 2020-02-13T17:35:33Z |
dont skip keyerror for IntervalIndex | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 5ae237eb7dc32..933305d9e3539 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1334,12 +1334,12 @@ def _validate_read_indexer(
not_found = list(set(key) - set(ax))
raise KeyError(f"{not_found} not... | cc @jschendel this is speculative that this is the desired behavior.
This is our only use of `Index.is_interval()` | https://api.github.com/repos/pandas-dev/pandas/pulls/31936 | 2020-02-12T20:38:17Z | 2020-02-22T17:53:45Z | 2020-02-22T17:53:45Z | 2020-02-22T17:53:56Z |
Clean Up C Warnings | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index dd1f38ce3a842..5f3d946a1e024 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -1173,12 +1173,12 @@ ctypedef fused out_t:
@cython.boundscheck(False)
@cython.wraparound(False)
-def diff_2d(ndarray[diff_t, ndim=2] arr,
- n... | Getting closer to no warnings (at least with clang). Changes in this PR get rid of the following warnings:
```sh
warning: pandas/_libs/window/aggregations.pyx:60:4: Buffer unpacking not optimized away.
warning: pandas/_libs/window/aggregations.pyx:60:4: Buffer unpacking not optimized away.
warning: pandas/_libs/w... | https://api.github.com/repos/pandas-dev/pandas/pulls/31935 | 2020-02-12T20:10:55Z | 2020-02-17T19:50:33Z | 2020-02-17T19:50:33Z | 2023-04-12T20:17:35Z |
CLN: 29547 replace old string formatting 2 | diff --git a/pandas/tests/frame/test_operators.py b/pandas/tests/frame/test_operators.py
index 162f3c114fa5d..df40c2e7e2a11 100644
--- a/pandas/tests/frame/test_operators.py
+++ b/pandas/tests/frame/test_operators.py
@@ -840,8 +840,8 @@ def test_inplace_ops_identity2(self, op):
df["a"] = [True, False, True... | I splitted PR #31844 in batches, this is the second
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#29547](... | https://api.github.com/repos/pandas-dev/pandas/pulls/31933 | 2020-02-12T17:51:56Z | 2020-02-13T05:54:38Z | 2020-02-13T05:54:38Z | 2020-02-21T01:30:01Z |
CLN: remove unreachable in Series._reduce | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 24e794014a15f..3d43ed79c2adb 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -34,7 +34,6 @@
ensure_platform_int,
is_bool,
is_categorical_dtype,
- is_datetime64_dtype,
is_dict_like,
is_extension_array_dtype,
... | these are made unreachable now that Series._values returns DTA/TDA for datetime64/timedelta64 dtypes.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31932 | 2020-02-12T16:45:49Z | 2020-02-14T01:27:40Z | 2020-02-14T01:27:40Z | 2020-02-14T01:54:05Z |
Revert 31791 | diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py
index 404f5a477187b..730043e6ec7d7 100644
--- a/pandas/tests/io/test_common.py
+++ b/pandas/tests/io/test_common.py
@@ -141,7 +141,24 @@ def test_read_non_existant(self, reader, module, error_class, fn_ext):
pytest.importorskip(module... | supersedes #31800
we never back ported this so just cleaning up master (assuming it now works again) | https://api.github.com/repos/pandas-dev/pandas/pulls/31931 | 2020-02-12T16:15:49Z | 2020-02-15T01:44:56Z | 2020-02-15T01:44:56Z | 2023-04-12T20:16:58Z |
Backport PR #31918 on branch 1.0.x (BUG: fix parquet roundtrip with unsigned integer dtypes) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 6d99668684a3b..44125ee30911f 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -33,6 +33,8 @@ Bug fixes
**I/O**
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins... | Backport PR #31918: BUG: fix parquet roundtrip with unsigned integer dtypes | https://api.github.com/repos/pandas-dev/pandas/pulls/31928 | 2020-02-12T15:13:37Z | 2020-02-12T15:57:04Z | 2020-02-12T15:57:04Z | 2020-02-12T15:57:04Z |
Backport PR #31877 on branch 1.0.x (BUG: fix infer_dtype for StringDtype) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index 6d99668684a3b..8c155306c6fcb 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -34,8 +34,10 @@ Bug fixes
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ... | Backport PR #31877: BUG: fix infer_dtype for StringDtype | https://api.github.com/repos/pandas-dev/pandas/pulls/31926 | 2020-02-12T15:05:41Z | 2020-02-12T15:54:22Z | 2020-02-12T15:54:22Z | 2020-02-12T15:54:22Z |
Backport PR #31773 on branch 1.0.x (BUG: fix StringArray/PandasArray setitem with slice) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index b055b44274bd8..688e073b1e419 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -30,6 +30,10 @@ Bug fixes
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value instead of ... | Backport PR #31773: BUG: fix StringArray/PandasArray setitem with slice | https://api.github.com/repos/pandas-dev/pandas/pulls/31923 | 2020-02-12T13:14:06Z | 2020-02-12T13:49:09Z | 2020-02-12T13:49:09Z | 2020-02-12T13:49:09Z |
Backport PR #31794 on branch 1.0.x (BUG: Avoid casting Int to object in Categorical.from_codes) | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index b055b44274bd8..556c0cf1b55af 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -26,6 +26,10 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+**Categorical**
+
+- Fixed bug where :meth:`Categorical.from_code... | Backport PR #31794: BUG: Avoid casting Int to object in Categorical.from_codes | https://api.github.com/repos/pandas-dev/pandas/pulls/31921 | 2020-02-12T12:42:34Z | 2020-02-12T13:14:08Z | 2020-02-12T13:14:08Z | 2020-02-12T13:14:08Z |
BUG: fix parquet roundtrip with unsigned integer dtypes | diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst
index f4bb8c580fb08..aa64f4524b877 100644
--- a/doc/source/whatsnew/v1.0.2.rst
+++ b/doc/source/whatsnew/v1.0.2.rst
@@ -31,6 +31,8 @@ Bug fixes
**I/O**
- Using ``pd.NA`` with :meth:`DataFrame.to_json` now correctly outputs a null value ins... | Closes #31896 | https://api.github.com/repos/pandas-dev/pandas/pulls/31918 | 2020-02-12T10:30:30Z | 2020-02-12T15:04:32Z | 2020-02-12T15:04:32Z | 2021-12-15T08:05:53Z |
CLN: Some groupby internals | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 63087672d1365..7259268ac3f2b 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -169,7 +169,7 @@ def apply(self, f, data: FrameOrSeries, axis: int = 0):
and not sdata.index._has_complex_internals
):... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
1. Avoids calling `_get_sorted_data()` twice
2. Eliminates `*args, **kwargs` from an internal function | https://api.github.com/repos/pandas-dev/pandas/pulls/31915 | 2020-02-12T07:03:11Z | 2020-02-17T00:23:55Z | 2020-02-17T00:23:55Z | 2020-02-17T00:23:58Z |
CLN: 29547 replace old string formatting 1 | diff --git a/pandas/tests/extension/decimal/test_decimal.py b/pandas/tests/extension/decimal/test_decimal.py
index bd9b77a2bc419..a78e4bb34e42a 100644
--- a/pandas/tests/extension/decimal/test_decimal.py
+++ b/pandas/tests/extension/decimal/test_decimal.py
@@ -99,7 +99,7 @@ def assert_frame_equal(cls, left, right, *arg... | I splitted PR #31844 in batches, this is the first one
For this PR I ran the command `grep -l -R -e '%s' -e '%d' -e '\.format(' --include=*.{py,pyx} pandas/` and checked all the files that were returned for `.format(` and changed the old string format for the corresponding `fstrings` to attempt a full clean of, [#2954... | https://api.github.com/repos/pandas-dev/pandas/pulls/31914 | 2020-02-12T04:56:23Z | 2020-02-12T17:18:50Z | 2020-02-12T17:18:50Z | 2020-02-21T01:30:03Z |
CLN: implement _getitem_tuple_same_dim | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index f498e1696ea5b..b3777e949a08c 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -718,6 +718,25 @@ def _handle_lowerdim_multi_index_axis0(self, tup: Tuple):
return None
+ def _getitem_tuple_same_dim(self, tup: Tuple):... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/31911 | 2020-02-12T03:42:23Z | 2020-02-12T17:42:37Z | 2020-02-12T17:42:37Z | 2020-02-12T17:49:41Z |
BUG: Handle NA in assert_numpy_array_equal | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 9702eb4615909..eaa73c00705ea 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -571,6 +571,8 @@ def array_equivalent_object(left: object[:], right: object[:]) -> bool:
if PyArray_Check(x) and PyArray_Check(y):
if ... | - [x] closes #31881
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
I think in the the case where we have NA we want to use identity rather than equality for checking when two arrays are equal. | https://api.github.com/repos/pandas-dev/pandas/pulls/31910 | 2020-02-12T03:29:38Z | 2020-02-13T08:16:34Z | 2020-02-13T08:16:33Z | 2020-02-13T14:14:33Z |
CLN: remove odious kludge | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 44b3c318366d2..f498e1696ea5b 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -755,18 +755,11 @@ def _getitem_lowerdim(self, tup: Tuple):
new_key = tup[:i] + (_NS,) + tup[i + 1 :]
else:
+ ... | This is a legacy of Panel/ix AFAICT, was introduced in 2011. | https://api.github.com/repos/pandas-dev/pandas/pulls/31907 | 2020-02-12T01:57:37Z | 2020-02-12T04:17:27Z | 2020-02-12T04:17:27Z | 2020-02-12T15:57:58Z |
REF: implement unpack_1tuple to clean up Series.__getitem__ | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index cadae9da6092f..4fb42fce29e1a 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -270,6 +270,33 @@ def deprecate_ndim_indexing(result):
)
+def unpack_1tuple(tup):
+ """
+ If we have a length-1 tuple/list that conta... | Doing this up-front instead of in two places makes for a nice cleanup. There will be a small perf penalty for the cases that wouldn't otherwise need to do these checks.
| https://api.github.com/repos/pandas-dev/pandas/pulls/31906 | 2020-02-12T01:55:21Z | 2020-02-17T19:53:58Z | 2020-02-17T19:53:58Z | 2020-02-17T22:16:06Z |
BUG: using loc[int] with object index | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index 34a67836f9675..7449c62a5ad31 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -56,6 +56,8 @@ Other API changes
- :meth:`Series.describe` will now show distribution percentiles for ``datetime`` dtypes, ... | - [x] closes #19456
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This causes us to raise KeyError instead of TypeError in a couple of places, consistent with #31867.
Also note this leaves us with only one non-p... | https://api.github.com/repos/pandas-dev/pandas/pulls/31905 | 2020-02-12T01:32:32Z | 2020-02-22T17:53:09Z | 2020-02-22T17:53:08Z | 2020-02-22T17:53:21Z |
TST: parametrize eval tests | diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py
index 703e05998e93c..bf9eeb532b43b 100644
--- a/pandas/tests/frame/test_query_eval.py
+++ b/pandas/tests/frame/test_query_eval.py
@@ -78,45 +78,48 @@ def test_query_numexpr(self):
class TestDataFrameEval:
- def test_ops(s... | https://api.github.com/repos/pandas-dev/pandas/pulls/31901 | 2020-02-11T22:49:55Z | 2020-02-12T01:11:13Z | 2020-02-12T01:11:12Z | 2020-02-12T01:15:54Z | |
TST: parametrize generic/internals tests | diff --git a/pandas/tests/generic/test_frame.py b/pandas/tests/generic/test_frame.py
index d8f4257566f84..dca65152e82db 100644
--- a/pandas/tests/generic/test_frame.py
+++ b/pandas/tests/generic/test_frame.py
@@ -32,19 +32,20 @@ def test_rename_mi(self):
)
df.rename(str.lower)
- def test_set_axis... | https://api.github.com/repos/pandas-dev/pandas/pulls/31900 | 2020-02-11T22:21:50Z | 2020-02-12T21:47:27Z | 2020-02-12T21:47:27Z | 2020-02-12T21:53:46Z | |
DOC: Update sort_index docs | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 1101374f94b8c..46ef05ff0df41 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4989,8 +4989,9 @@ def sort_index(
and 1 identifies the columns.
level : int or level name or list of ints or list of level names
... | - [x] closes #31880 | https://api.github.com/repos/pandas-dev/pandas/pulls/31898 | 2020-02-11T21:44:43Z | 2020-02-19T01:30:09Z | 2020-02-19T01:30:09Z | 2020-02-19T01:36:21Z |
BUG: fix length_of_indexer with boolean mask | diff --git a/pandas/core/indexers.py b/pandas/core/indexers.py
index fe475527f4596..90a58a6308f40 100644
--- a/pandas/core/indexers.py
+++ b/pandas/core/indexers.py
@@ -219,7 +219,7 @@ def maybe_convert_indices(indices, n: int):
def length_of_indexer(indexer, target=None) -> int:
"""
- Return the length of a... | - [x] closes #25774
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Allows for a nice cleanup in _setitem_with_indexer. Note this will conflict with #31887; the order doesn't matter. | https://api.github.com/repos/pandas-dev/pandas/pulls/31897 | 2020-02-11T21:01:49Z | 2020-02-18T00:15:46Z | 2020-02-18T00:15:46Z | 2020-02-18T00:46:10Z |
CLN: D202 No blank lines allowed after function docstring | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 8b6116d3abd60..c283baeb9d412 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -550,7 +550,6 @@ def _select_options(pat: str) -> List[str]:
if pat=="all", returns all registered options
"""
-
# short-circuit fo... | This one could conflict which the unchecked rule blank line before comment | https://api.github.com/repos/pandas-dev/pandas/pulls/31895 | 2020-02-11T19:26:39Z | 2020-02-12T16:10:25Z | 2020-02-12T16:10:25Z | 2020-02-12T20:59:38Z |
DOC: Fix divmod return values | diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py
index e3db65f11a332..203ea3946d1b2 100644
--- a/pandas/core/ops/docstrings.py
+++ b/pandas/core/ops/docstrings.py
@@ -34,6 +34,7 @@ def _make_flex_doc(op_name, typ):
op_name=op_name,
equiv=equiv,
reverse=op... | - [x] closes #31663
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/31894 | 2020-02-11T19:25:09Z | 2020-02-12T01:39:07Z | 2020-02-12T01:39:07Z | 2020-02-12T01:39:14Z |
CLN: D213: Multi-line docstring summary should start at the second line | diff --git a/pandas/_config/config.py b/pandas/_config/config.py
index 2df940817498c..f1959cd70ed3a 100644
--- a/pandas/_config/config.py
+++ b/pandas/_config/config.py
@@ -82,7 +82,8 @@
class OptionError(AttributeError, KeyError):
- """Exception for pandas.options, backwards compatible with KeyError
+ """
+... | https://api.github.com/repos/pandas-dev/pandas/pulls/31893 | 2020-02-11T19:23:29Z | 2020-02-15T19:03:21Z | 2020-02-15T19:03:21Z | 2020-02-15T20:15:30Z | |
CLN: D204 1 blank line required after class docstring | diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py
index 37e3cd42f2115..6da8b0c5ccadd 100644
--- a/pandas/core/window/ewm.py
+++ b/pandas/core/window/ewm.py
@@ -116,6 +116,7 @@ class EWM(_Rolling):
3 1.615385
4 3.670213
"""
+
_attributes = ["com", "min_periods", "adjust", "ignore_n... | https://api.github.com/repos/pandas-dev/pandas/pulls/31892 | 2020-02-11T19:21:23Z | 2020-02-11T22:34:39Z | 2020-02-11T22:34:39Z | 2020-02-11T22:37:33Z | |
CLN: D209 Multi-line docstring closing quotes should be on a separate line | diff --git a/pandas/_testing.py b/pandas/_testing.py
index 13af8703cef93..9e71524263a18 100644
--- a/pandas/_testing.py
+++ b/pandas/_testing.py
@@ -2150,7 +2150,8 @@ def optional_args(decorator):
@my_decorator
def function(): pass
- Calls decorator with decorator(f, *args, **kwargs)"""
+ Call... | https://api.github.com/repos/pandas-dev/pandas/pulls/31891 | 2020-02-11T19:19:42Z | 2020-02-11T23:01:16Z | 2020-02-11T23:01:16Z | 2020-02-11T23:04:14Z | |
CLN: D208 Docstring is over-indented | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 131a011c5a101..7463b2b579c0c 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -106,8 +106,8 @@ def axis(request):
@pytest.fixture(params=[0, "index"], ids=lambda x: f"axis {repr(x)}")
def axis_series(request):
"""
- Fixture for returning t... | https://api.github.com/repos/pandas-dev/pandas/pulls/31890 | 2020-02-11T19:17:35Z | 2020-02-11T21:30:25Z | 2020-02-11T21:30:25Z | 2020-02-11T21:41:08Z | |
CLN: D201 No blank lines allowed before function docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b733970dcf699..c68fa5a3caff6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4037,7 +4037,6 @@ def rename(
level: Optional[Level] = None,
errors: str = "ignore",
) -> Optional["DataFrame"]:
-
"""
Alt... | https://api.github.com/repos/pandas-dev/pandas/pulls/31889 | 2020-02-11T19:15:53Z | 2020-02-11T21:28:28Z | 2020-02-11T21:28:28Z | 2020-02-11T21:37:31Z | |
CLN: D300 Use """triple double quotes""" | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 18c7504f2c2f8..a4648186477d6 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -2013,7 +2013,7 @@ def wrapper3(self, pat, na=np.nan):
def copy(source):
- "Copy a docstring from another source function (if present)"
+ """Copy... | https://api.github.com/repos/pandas-dev/pandas/pulls/31888 | 2020-02-11T19:14:28Z | 2020-02-11T21:27:49Z | 2020-02-11T21:27:49Z | 2020-02-11T21:35:57Z | |
CLN: simplify _setitem_with_indexer | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index d3e75d43c6bd7..081f87078d9c9 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1564,6 +1564,17 @@ def _convert_to_indexer(self, key, axis: int, is_setter: bool = False):
# -----------------------------------------------------... | The MultiIndex check it is doing is unnecessary for positional indexing.
Other things being cleaned up here appear to be remnants from Panel | https://api.github.com/repos/pandas-dev/pandas/pulls/31887 | 2020-02-11T19:02:55Z | 2020-02-20T22:37:38Z | 2020-02-20T22:37:38Z | 2020-02-20T23:27:36Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.