title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
CLN: test_expressions.py
diff --git a/pandas/tests/test_expressions.py b/pandas/tests/test_expressions.py index e03194227f576..3980ec023960c 100644 --- a/pandas/tests/test_expressions.py +++ b/pandas/tests/test_expressions.py @@ -14,44 +14,88 @@ ) from pandas.core.computation import expressions as expr -_frame = DataFrame(np.random.randn(1...
- [x] closes #40497 (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
https://api.github.com/repos/pandas-dev/pandas/pulls/49422
2022-10-31T19:28:14Z
2022-11-01T14:47:07Z
2022-11-01T14:47:07Z
2022-11-01T16:47:06Z
ENH: Add masked engine
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index a5bba8e5592c7..19ef536a636ea 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -8,6 +8,7 @@ import numpy as np from pandas import ( + NA, CategoricalIndex, DataFrame, Index,...
- [ ] 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/49420
2022-10-31T18:25:55Z
2023-01-26T19:36:19Z
2023-01-26T19:36:19Z
2023-01-27T00:38:20Z
BUG: Unclear error message when merging tables and passing invalid option to validate
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index ac3a1ca95fbb4..4aa26d406015f 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -464,6 +464,7 @@ Reshaping - Bug in :meth:`DataFrame.pivot` not respecting ``None`` as column name (:issue:`48293`) - Bug ...
- [ ] closes #49417 - [ ] [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/49419
2022-10-31T18:22:31Z
2022-11-03T17:33:18Z
2022-11-03T17:33:18Z
2022-11-03T17:33:29Z
issue 48855 enable pylint unnecessary-pass
diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py index 833bc3143b968..a3a05a9d75c6e 100644 --- a/pandas/core/computation/engines.py +++ b/pandas/core/computation/engines.py @@ -102,7 +102,6 @@ def _evaluate(self): ----- Must be implemented by subclasses. ""...
Issue #48855. This PR enables pylint type "W" warning: `unnecessary-pass`. - [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/49418
2022-10-31T18:20:56Z
2022-11-01T14:54:19Z
2022-11-01T14:54:19Z
2022-11-01T14:54:20Z
API: make some Timestamp args keyword-only
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 7335dbc28a8f9..0cf47cb1ddbfe 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -131,6 +131,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^^...
- [x] closes #45307 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/49416
2022-10-31T17:38:48Z
2022-11-02T18:53:35Z
2022-11-02T18:53:35Z
2022-11-02T18:55:03Z
DEPR: non-keyword args, errors arg
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index eab8df5ccff73..b97cdd5d1e298 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -198,7 +198,9 @@ Removal of prior version deprecations/changes - Removed argument ``inplace`` from :meth:`Categorical.remov...
- [ ] 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/49415
2022-10-31T17:18:16Z
2022-11-01T17:40:29Z
2022-11-01T17:40:29Z
2022-11-01T18:02:28Z
Backport PR #48234 on branch 1.5.x (REGR: Fix regression RecursionError when replacing numeric scalar with None)
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index aaf00804262bb..4f6274b9084da 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -13,7 +13,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression in :meth:`...
Backport PR #48234: REGR: Fix regression RecursionError when replacing numeric scalar with None
https://api.github.com/repos/pandas-dev/pandas/pulls/49414
2022-10-31T17:14:00Z
2022-10-31T19:58:04Z
2022-10-31T19:58:04Z
2022-10-31T19:58:05Z
DEPR: indexing
diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index c2f40dfbfb250..7d6f841106198 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -32,7 +32,7 @@ dependencies: - gcsfs=2021.07.0 - jinja2=3.0.0 - lxml=4.6.3 ...
- [ ] 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/49412
2022-10-31T16:40:58Z
2022-11-02T18:56:50Z
2022-11-02T18:56:50Z
2022-11-03T11:54:46Z
Fix Scorecards GitHub Action
diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index 73cab7ff909fc..1eedfe5b8ab51 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -29,7 +29,7 @@ jobs: persist-credentials: false - name: "Run analysis" - uses: ossf/score...
Fixes sudden failure reported in https://github.com/pandas-dev/pandas/issues/48566#issuecomment-1296174657. Bumps ossf/scorecard-action to v2.0.6, fixing an unexpected breaking change in upstream API.
https://api.github.com/repos/pandas-dev/pandas/pulls/49410
2022-10-31T13:39:17Z
2022-10-31T17:34:19Z
2022-10-31T17:34:19Z
2022-11-03T17:28:51Z
enable pylint nan-comparison
diff --git a/pandas/tests/series/test_constructors.py b/pandas/tests/series/test_constructors.py index 11f8544b78e94..752dc4d4ad1a2 100644 --- a/pandas/tests/series/test_constructors.py +++ b/pandas/tests/series/test_constructors.py @@ -134,7 +134,7 @@ def test_constructor(self, datetime_series): # Mixed type ...
Issue #48855. This PR enables pylint type "W" warning: "nan-comparison". - [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/49407
2022-10-31T12:00:07Z
2022-10-31T17:05:57Z
2022-10-31T17:05:57Z
2022-10-31T17:05:58Z
BUG/PERF: Series.replace with dtype="category"
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0ab75355291f6..151889e1b6a81 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -310,6 +310,7 @@ Performance improvements - Performance improvement for :class:`DatetimeIndex` constructor passing a list (...
- [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/49404
2022-10-31T01:24:01Z
2023-01-18T20:29:40Z
2023-01-18T20:29:40Z
2023-01-18T22:37:08Z
DEPR: core.index file
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 819f4e28e4b83..e059fda693bf6 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -156,6 +156,7 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
- [ ] 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/49403
2022-10-30T20:02:49Z
2022-10-31T17:35:24Z
2022-10-31T17:35:24Z
2022-10-31T17:40:47Z
DEPR: Enforce deprecation of na_sentinel
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c76555f9ef417..b97d0f5232f1e 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -441,6 +441,7 @@ Removal of prior version deprecations/changes - Changed behavior of comparison of a :class:`Timestamp` wit...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49402
2022-10-30T18:12:17Z
2022-11-07T17:34:41Z
2022-11-07T17:34:41Z
2022-11-08T02:33:43Z
DEPR: Enforce deprecation of silent dropping of nuisance columns in agg_list_like
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 2225cbd74d718..0f0382eaf1584 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -310,7 +310,7 @@ def time_different_python_functions_multicol(self, df): df.groupby(["key1", "key2"]).agg([sum,...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49401
2022-10-30T17:13:16Z
2022-11-02T00:46:30Z
2022-11-02T00:46:30Z
2022-11-03T00:11:54Z
enable pylint:useless-return
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index fefc220403b9d..35f1ace7ec351 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -304,7 +304,6 @@ def _fill_mask_inplace( # (for now) when self.ndim == 2, we assume axis=0 func = missing.get_...
Issue #48855. This PR enables pylint type "R" warning: "useless-return". In one place (https://github.com/natmokval/pandas/blob/da3025ae6dec3fed73df0cf1d1bbc5ef0d816695/pandas/tests/groupby/test_apply.py#L151) the warning is disabled to match the style of surrounding functions. - [x] All [code checks passed](htt...
https://api.github.com/repos/pandas-dev/pandas/pulls/49400
2022-10-30T17:03:43Z
2022-10-31T17:44:24Z
2022-10-31T17:44:24Z
2022-10-31T17:50:38Z
DEPR: remove 1.0 deprecations in 2.0 (`Styler`)
diff --git a/asv_bench/benchmarks/io/style.py b/asv_bench/benchmarks/io/style.py index f0902c9c2c328..1ebdb08e8c727 100644 --- a/asv_bench/benchmarks/io/style.py +++ b/asv_bench/benchmarks/io/style.py @@ -83,11 +83,11 @@ def _style_format(self): def _style_apply_format_hide(self): self.st = self.df.style....
Removed deprecations from Styler: - `where()` - `hide_index` - `hide_columns` - `render` - `set_na_rep` - `set_precision` - `null_color` kwarg in `highlight_null`
https://api.github.com/repos/pandas-dev/pandas/pulls/49397
2022-10-30T06:43:49Z
2022-10-31T17:49:35Z
2022-10-31T17:49:35Z
2022-11-01T06:33:33Z
BUG: Fixing DataFrame.Update crashes when NaT present
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 032bcf09244e5..1ca513e8f5e6a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -662,6 +662,7 @@ Missing - Bug in :meth:`Index.equals` raising ``TypeError`` when :class:`Index` consists of tuples that co...
- [x] closes #16713 (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/49395
2022-10-30T05:48:29Z
2022-11-15T14:19:48Z
2022-11-15T14:19:48Z
2022-11-15T14:19:48Z
DEPR: Timestamp comparison with pydate
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index b1ff0ec305dc3..c875eb8c94119 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -283,6 +283,7 @@ Removal of prior version deprecations/changes - Changed behavior of :class:`Index` constructor when passed...
- [ ] 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/49394
2022-10-30T03:35:52Z
2022-10-31T21:48:19Z
2022-10-31T21:48:19Z
2022-10-31T22:06:37Z
Make the conversion from dtype to subclass just a little faster
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index d8300bb29c274..590fb187e9a1f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -106,7 +106,6 @@ is_scalar, is_signed_integer_dtype, is_string_dtype, - is_unsigned_integer_dtype, needs_i8_conve...
Calling `is_float_dtype` is a really "safe" way to take an array or a dtype and know if it is a subclass. But I don't think you need to do that. Checking the `kind` should be enough. I get about 5-10% faster on the benchmarks shown. Mostly reducing 12us to 11.5 us. I think it is real. - [ ] closes #xxxx (Replace ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49393
2022-10-29T22:07:55Z
2022-11-02T01:02:18Z
2022-11-02T01:02:18Z
2022-11-02T01:02:47Z
DEPR: internals
diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index 5540ba01a8f36..c2f40dfbfb250 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -25,7 +25,7 @@ dependencies: - blosc=1.21.0 - bottleneck=1.3.2 - brotlipy=0...
- [ ] 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/49392
2022-10-29T19:45:02Z
2022-11-01T22:51:56Z
2022-11-01T22:51:56Z
2022-11-01T23:01:46Z
DEPR: disallow unit-less dt64 dtype in astype
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1f245b585df48..2cad922a71a3c 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -175,6 +175,7 @@ Removal of prior version deprecations/changes - Removed deprecated :meth:`DatetimeIndex.to_perioddelta`, U...
- [ ] 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/49391
2022-10-29T19:44:39Z
2022-10-31T18:13:35Z
2022-10-31T18:13:35Z
2022-10-31T18:17:16Z
ENH Guess %Y-%m format
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index 469e0721f1207..1312124cfb77b 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -1011,10 +1011,11 @@ def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None: break ...
Broken off from https://github.com/pandas-dev/pandas/pull/49024, opening it separately as it's small and self-contained
https://api.github.com/repos/pandas-dev/pandas/pulls/49389
2022-10-29T13:47:34Z
2022-10-29T17:50:54Z
2022-10-29T17:50:54Z
2022-10-29T17:50:57Z
DOC: add name parameter to the IntervalIndex for #48911
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0004bc92b349e..288504c4f2b99 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -49,6 +49,7 @@ Other enhancements - Fix ``test`` optional_extra by adding missing test package ``pytest-asyncio`` (:issue:`...
- [x] closes #48911 - [x] Added an entry in the latest `doc/source/whatsnew/v2.0.0.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/49386
2022-10-29T11:03:14Z
2022-10-31T14:35:02Z
2022-10-31T14:35:02Z
2023-01-12T12:30:33Z
asv groupby.string smaller_faster
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 2225cbd74d718..f369c095e59b1 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -683,7 +683,7 @@ class String: def setup(self, dtype, method): cols = list("abcdefghjkl") self.df...
xref #44450 - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Decreased the size, should take significantly less time
https://api.github.com/repos/pandas-dev/pandas/pulls/49385
2022-10-29T07:21:39Z
2022-10-31T18:17:11Z
2022-10-31T18:17:11Z
2022-11-01T05:32:22Z
DOC: add missing whatsnew for #49321
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 0004bc92b349e..04cbda4e762ea 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -258,6 +258,8 @@ Removal of prior version deprecations/changes - Enforced disallowing a tuple of column labels into :meth:`...
- [x] Added an entry in the latest `doc/source/whatsnew/v2.0.0.rst` file if fixing a bug or adding a new feature. Follow up to #49321 to add missing whatsnew. cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/49383
2022-10-29T02:10:47Z
2022-10-29T17:11:13Z
2022-10-29T17:11:13Z
2022-11-03T01:38:12Z
STYLE: fix pylint unneeded-not warnings
diff --git a/pandas/core/arrays/arrow/extension_types.py b/pandas/core/arrays/arrow/extension_types.py index c9badb2bd305b..25f597af5e3cf 100644 --- a/pandas/core/arrays/arrow/extension_types.py +++ b/pandas/core/arrays/arrow/extension_types.py @@ -35,6 +35,9 @@ def __eq__(self, other): else: retu...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49382
2022-10-29T01:58:42Z
2022-11-17T00:51:56Z
2022-11-17T00:51:56Z
2022-11-17T20:36:06Z
DEPR: Timestamp(dt64obj, tz=tz)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 780318769f04e..d937f452b4023 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -281,6 +281,7 @@ Removal of prior version deprecations/changes - Changed behavior of :class:`DataFrame` constructor given f...
- [ ] 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/49381
2022-10-28T23:18:06Z
2022-11-01T22:53:42Z
2022-11-01T22:53:42Z
2022-11-01T23:00:13Z
DEPR: Remove week & weekofyear for datetimes
diff --git a/doc/source/getting_started/intro_tutorials/09_timeseries.rst b/doc/source/getting_started/intro_tutorials/09_timeseries.rst index 3c256081d7955..373470913c293 100644 --- a/doc/source/getting_started/intro_tutorials/09_timeseries.rst +++ b/doc/source/getting_started/intro_tutorials/09_timeseries.rst @@ -144...
Introduced in https://github.com/pandas-dev/pandas/pull/33595
https://api.github.com/repos/pandas-dev/pandas/pulls/49380
2022-10-28T23:14:21Z
2022-10-29T16:51:50Z
2022-10-29T16:51:50Z
2022-10-29T17:49:12Z
issue 48855 enable pylint C-type "disallowed-name " warning
diff --git a/asv_bench/benchmarks/attrs_caching.py b/asv_bench/benchmarks/attrs_caching.py index d4366c42f96aa..d515743ea4431 100644 --- a/asv_bench/benchmarks/attrs_caching.py +++ b/asv_bench/benchmarks/attrs_caching.py @@ -15,7 +15,7 @@ def setup(self): self.cur_index = self.df.index def time_get_inde...
[x] Refers to one of the issues in STYLE fix pylint issues [#48855](https://github.com/pandas-dev/pandas/issues/48855) [x ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). I have enabled the C-type "disallowed-name " warning in pylint and renamed ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49379
2022-10-28T22:48:38Z
2022-11-02T21:07:03Z
2022-11-02T21:07:02Z
2022-11-02T21:19:49Z
API/BUG: Fix is_string_dtype and make more strict
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index d71160cdbc369..b38e95c86d8cd 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -147,6 +147,7 @@ Other API changes - The ``other`` argument in :meth:`DataFrame.mask` and :meth:`Series.mask` now defaults ...
- [x] closes #15585 (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/49378
2022-10-28T22:14:13Z
2022-11-03T16:09:18Z
2022-11-03T16:09:18Z
2023-01-12T04:48:57Z
BUG: Fix passing `Colormap` instance to plot methods with mpl >= 3.6
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index 4f6274b9084da..c95f563a77708 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -14,6 +14,8 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`Serie...
- [x] closes #49374 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/49377
2022-10-28T21:57:56Z
2022-11-01T18:38:00Z
2022-11-01T18:38:00Z
2023-01-12T12:40:43Z
CLN: Remove xlrd < 2.0 code
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 0b284fd4e9750..5e0ef4d6193f2 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -1592,9 +1592,9 @@ def __init__( xlrd_version = Version(get_version(xlrd)) - ext = None if engine is None: ...
- [ ] 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/49376
2022-10-28T19:56:03Z
2022-11-02T00:42:59Z
2022-11-02T00:42:59Z
2022-11-03T00:27:53Z
DEPR: Enforce deprecation of partial failure in transform for lists/dicts
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 5cf5c9aaccb52..0fe77d928be65 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -259,6 +259,7 @@ Removal of prior version deprecations/changes - Changed the behavior of :class:`Series` constructor, it wi...
From #43740 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/49375
2022-10-28T19:02:32Z
2022-10-30T16:18:21Z
2022-10-30T16:18:21Z
2022-10-30T17:15:52Z
BUG: groupby with CategoricalIndex doesn't include unobserved categories
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index c76555f9ef417..a24aae0855887 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -582,7 +582,8 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.sample` raises ``ValueError`` when the object is...
- [x] closes #49354 (Replace xxxx with the GitHub issue number) - [x] closes #49223 - [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-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/49373
2022-10-28T17:58:43Z
2022-11-07T18:28:24Z
2022-11-07T18:28:24Z
2022-11-08T02:32:02Z
DEPR: object-dtype bool_only
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 252c444b2e60c..29436b5095776 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -257,6 +257,8 @@ Removal of prior version deprecations/changes - Changed behavior of :class:`DataFrame` constructor when pa...
- [ ] 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/49371
2022-10-28T14:47:51Z
2022-10-28T16:47:51Z
2022-10-28T16:47:51Z
2022-10-28T17:41:04Z
Backport PR #49308 on branch 1.5.x (DOC: Added pre-commit link inside the guideline for developers.)
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 4a70057cf18e3..afa0d0306f1af 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -10,7 +10,7 @@ To test out code changes,...
Backport PR #49308: DOC: Added pre-commit link inside the guideline for developers.
https://api.github.com/repos/pandas-dev/pandas/pulls/49370
2022-10-28T13:18:58Z
2022-10-28T15:30:23Z
2022-10-28T15:30:23Z
2022-10-28T15:30:23Z
STYLE: fix pylint use-maxsplit-arg warning
diff --git a/doc/source/conf.py b/doc/source/conf.py index 252670565ebff..39acc28451f54 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -236,7 +236,7 @@ if ".dev" in version: switcher_version = "dev" elif "rc" in version: - switcher_version = version.split("rc")[0] + " (rc)" + switcher_version ...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49369
2022-10-28T13:01:50Z
2022-10-28T14:21:23Z
2022-10-28T14:21:23Z
2022-10-28T14:31:52Z
DEPR: Remove datetime_is_numeric in describe
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index eab8df5ccff73..9c6faa03edf6a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -194,6 +194,7 @@ Removal of prior version deprecations/changes - Removed argument ``sort_columns`` in :meth:`DataFrame.plot...
Introduced in https://github.com/pandas-dev/pandas/pull/34798
https://api.github.com/repos/pandas-dev/pandas/pulls/49368
2022-10-28T05:37:42Z
2022-10-31T19:17:59Z
2022-10-31T19:17:59Z
2022-10-31T19:18:03Z
ENH: Implement io.nullable_backend config for read_csv(engine="pyarrow")
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4df2886454c0a..70018e985af19 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -28,10 +28,24 @@ Available optional dependencies (listed in order of appearance at `install guide ``[all, performance, comp...
- [x] xref #48957 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/49366
2022-10-28T04:49:49Z
2022-11-05T20:52:28Z
2022-11-05T20:52:28Z
2022-11-07T17:33:45Z
DEPR: Remove deprecated Timestamp.freq
diff --git a/asv_bench/benchmarks/tslibs/timestamp.py b/asv_bench/benchmarks/tslibs/timestamp.py index eda9bce89188c..d7706a39dfae5 100644 --- a/asv_bench/benchmarks/tslibs/timestamp.py +++ b/asv_bench/benchmarks/tslibs/timestamp.py @@ -50,62 +50,58 @@ def time_from_pd_timestamp(self): class TimestampProperties: -...
- [ ] 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/49365
2022-10-28T01:08:45Z
2022-11-04T18:09:41Z
2022-11-04T18:09:41Z
2022-11-04T18:15:53Z
BUG: array_equivalent_object with mismatched shapes
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index 188494c7c60db..3cbc04fb2f5cd 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -230,8 +230,8 @@ def generate_bins_dt64( hasnans: bool = ..., ) -> np.ndarray: ... # np.ndarray[np.int64, ndim=1] def array_equivalent_object( - left: np...
- [ ] 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/49363
2022-10-27T22:33:38Z
2022-11-23T22:23:56Z
2022-11-23T22:23:56Z
2022-11-23T22:29:26Z
DEPR: disallow int fill_value in shift with dt64/td64
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 252c444b2e60c..68f38ae12c9c6 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -243,6 +243,7 @@ Removal of prior version deprecations/changes - Removed :meth:`Series.str.__iter__` (:issue:`28277`) - Re...
- [ ] 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/49362
2022-10-27T21:07:34Z
2022-10-28T18:27:42Z
2022-10-28T18:27:42Z
2022-10-28T20:50:11Z
DEPR: DTA(float_data, dtype=dt64tz)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 780318769f04e..ad2faa396035a 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -282,6 +282,7 @@ Removal of prior version deprecations/changes - Changed behavior of :class:`DataFrame` constructor when pa...
- [ ] 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/49361
2022-10-27T20:59:32Z
2022-11-02T00:53:42Z
2022-11-02T00:53:42Z
2022-11-02T15:09:44Z
DEPR: non-keyword arguments
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index 05e12630d7540..171e4feb290cf 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -36,7 +36,7 @@ def setup(self): self.df = DataFrame(data) def time_reshape_pivot_time_series(self): - ...
- [ ] 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/49359
2022-10-27T20:34:37Z
2022-10-28T18:35:57Z
2022-10-28T18:35:57Z
2022-10-28T20:47:52Z
API: stop silently ignoring parsing failures with dtype=dt64
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 252c444b2e60c..25fe1d3d541c0 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -141,6 +141,7 @@ Other API changes - The ``other`` argument in :meth:`DataFrame.mask` and :meth:`Series.mask` now defaults ...
- [ ] 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/49358
2022-10-27T19:39:08Z
2022-10-31T18:47:34Z
2022-10-31T18:47:34Z
2022-10-31T18:56:24Z
STY: Style fix pandas/errors/__init__.py
diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 43ce8ad4abb45..ebe9a3d5bf472 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -156,19 +156,23 @@ class MergeError(ValueError): class AccessorRegistrationWarning(Warning): - """Warning for attribute conflicts in acc...
- [ ] 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/30066
2019-12-04T21:17:55Z
2019-12-05T12:59:22Z
2019-12-05T12:59:22Z
2019-12-05T13:34:25Z
CI: correct azure-36-locale slow name + move pyarrow
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index 081145f846571..b5ebb79b0f1ab 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -20,14 +20,14 @@ jobs: CONDA_PY: "36" PATTERN: "not slow and not network" py36_locale_slow_old_np: - ENV_FILE: ci/deps/azure-36-loca...
Follow-up on https://github.com/pandas-dev/pandas/pull/30039 I put it in the wrong file, because the file names were swapped... Now, here, I just renamed both files to the other name (the diff apparently cannot the rename, therefore you see a lot of changes, but I can ensure I didn't change anything except for py...
https://api.github.com/repos/pandas-dev/pandas/pulls/30065
2019-12-04T20:35:15Z
2019-12-05T17:43:57Z
2019-12-05T17:43:57Z
2019-12-05T17:44:02Z
CLN: NDFrame.setup_axes
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fde3d1657b4f2..601dac3a1208b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -377,6 +377,8 @@ class DataFrame(NDFrame): 2 7 8 9 """ + _typ = "dataframe" + @property def _constructor(self) -> Type["DataFrame"]: ...
A lot of this classmethod looks leftover from PanelND days. I think we can go even further towards getting rid of some of these attributes, but will save that for another time.
https://api.github.com/repos/pandas-dev/pandas/pulls/30064
2019-12-04T20:23:46Z
2019-12-05T14:46:33Z
2019-12-05T14:46:33Z
2019-12-05T16:06:34Z
API: BooleanArray any/all with NA logic
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index cfe55f1e05f71..2b9ea7dc220d7 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -281,6 +281,10 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then pytest -q --doctest-modules pandas/core/arrays/string_.py RET=$(($RET + $?)) ; echo $MSG "DONE"...
Closes https://github.com/pandas-dev/pandas/issues/29686 Implementation and tests for `any`/`all` with the updated logic as discussed in the linked issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/30062
2019-12-04T19:53:01Z
2019-12-12T13:24:24Z
2019-12-12T13:24:24Z
2019-12-12T13:24:29Z
Replace custom macro with stdlib
diff --git a/pandas/_libs/src/parser/tokenizer.c b/pandas/_libs/src/parser/tokenizer.c index 578f72112d02d..9f2b26b0dea19 100644 --- a/pandas/_libs/src/parser/tokenizer.c +++ b/pandas/_libs/src/parser/tokenizer.c @@ -647,8 +647,6 @@ static int parser_buffer_bytes(parser_t *self, size_t nbytes) { #define END_LINE() E...
This is part of the C99 standard so I think better to leverage builtin functionality rather than redefine
https://api.github.com/repos/pandas-dev/pandas/pulls/30061
2019-12-04T19:43:43Z
2019-12-06T17:16:14Z
2019-12-06T17:16:14Z
2019-12-06T17:16:28Z
STY: fstrings doc/make.py
diff --git a/doc/make.py b/doc/make.py index cbb1fa6a5324a..cf73f44b5dd02 100755 --- a/doc/make.py +++ b/doc/make.py @@ -60,7 +60,7 @@ def __init__( if single_doc and single_doc.endswith(".rst"): self.single_doc_html = os.path.splitext(single_doc)[0] + ".html" elif single_doc: - ...
- [x] ref #29547 - [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/30060
2019-12-04T19:36:19Z
2019-12-05T15:33:51Z
2019-12-05T15:33:51Z
2019-12-05T20:32:43Z
REF: pytables do string conversion early to set attributes in fewer places
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index fca1d3265cac2..5b7bb64795d90 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2313,111 +2313,34 @@ def set_kind(self): if self.typ is None: self.typ = getattr(self.description, self.cname, None) - def s...
Next-step following #29979. A lot of work is currently done in set_atom_string (a self-mutating method) that can be done in an earlier, not-mutating call. By making that move, we simplify set_atom quite a bit, and get closer to getting all the attribute-setting into the constructor
https://api.github.com/repos/pandas-dev/pandas/pulls/30058
2019-12-04T18:12:41Z
2019-12-05T15:39:44Z
2019-12-05T15:39:44Z
2019-12-05T16:09:58Z
STY: "{foo!r}" -> "{repr(foo)}"
diff --git a/ci/print_skipped.py b/ci/print_skipped.py index 8fd92ab9622ba..72822fa2d3c7f 100755 --- a/ci/print_skipped.py +++ b/ci/print_skipped.py @@ -5,7 +5,7 @@ def main(filename): if not os.path.isfile(filename): - raise RuntimeError(f"Could not find junit file {filename!r}") + raise RuntimeE...
- [x] ref #29886 - [ ] 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/30055
2019-12-04T17:25:38Z
2019-12-04T18:50:43Z
2019-12-04T18:50:43Z
2019-12-05T15:14:49Z
CI: disable numpydev job
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index a10fd402b6733..081145f846571 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -44,13 +44,15 @@ jobs: PATTERN: "not slow and not network" LOCALE_OVERRIDE: "zh_CN.UTF-8" - py37_np_dev: - ENV_FILE: ci/deps/azure-3...
xref https://github.com/pandas-dev/pandas/issues/30043. Will take some time to fix all these cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/30049
2019-12-04T14:03:52Z
2019-12-04T16:41:35Z
2019-12-04T16:41:34Z
2019-12-04T16:51:43Z
27820 clarify that read parquet accepts a directory path
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 1ab311516fa02..a044cfcdf6a01 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -267,6 +267,10 @@ def read_parquet(path, engine="auto", columns=None, **kwargs): URL schemes include http, ftp, s3, and file. For file URLs, a host is ...
- [x] closes #27820 - [ ] 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/30048
2019-12-04T13:46:58Z
2019-12-08T17:39:41Z
2019-12-08T17:39:41Z
2019-12-08T17:39:44Z
CI: Fix print skipped tests
diff --git a/ci/print_skipped.py b/ci/print_skipped.py index 51a2460e05fab..243f390fd62f2 100755 --- a/ci/print_skipped.py +++ b/ci/print_skipped.py @@ -5,12 +5,12 @@ def main(filename): if not os.path.isfile(filename): - return + raise RuntimeError(f"Could not find junit file {filename!r}") ...
- [X] closes #30040 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Looks like the format of the junit file that pytest generates has changed, and now tests are inside a `testsuite` tag, which makes the script to not...
https://api.github.com/repos/pandas-dev/pandas/pulls/30044
2019-12-04T12:50:41Z
2019-12-04T13:21:46Z
2019-12-04T13:21:45Z
2019-12-04T13:30:51Z
CI: ensure proper coverage of different pyarrow versions
diff --git a/ci/deps/azure-36-locale.yaml b/ci/deps/azure-36-locale.yaml index c3c94e365c259..14cc4f2726e96 100644 --- a/ci/deps/azure-36-locale.yaml +++ b/ci/deps/azure-36-locale.yaml @@ -27,6 +27,9 @@ dependencies: - xlrd=1.1.0 - xlsxwriter=0.9.8 - xlwt=1.2.0 + # lowest supported version of pyarrow (putting...
Closes https://github.com/pandas-dev/pandas/issues/29223, closes https://github.com/pandas-dev/pandas/issues/26716
https://api.github.com/repos/pandas-dev/pandas/pulls/30039
2019-12-04T09:03:20Z
2019-12-04T13:10:25Z
2019-12-04T13:10:24Z
2019-12-04T13:54:58Z
Removed CParserError
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 8f0f4e17df2f9..adc7a650b745f 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -63,11 +63,6 @@ from pandas.errors import (ParserError, DtypeWarning, lzma = _import_lzma() -# Import CParserError as alias of ParserError for ...
I think this is legacy stuff @gfyoung
https://api.github.com/repos/pandas-dev/pandas/pulls/30036
2019-12-04T06:43:12Z
2019-12-04T13:31:37Z
2019-12-04T13:31:36Z
2023-04-12T20:16:56Z
BUG: unclosed file warning when passing invalid encoding
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 3adf8d7bbdd11..dab1cd243a343 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -3,7 +3,6 @@ and latex files. This module also applies to display formatting. """ -import codecs from contextlib import contextmana...
This isn't directly related to #30031 but might solve it if the problem there is unclosed files piling up. TL;DR: the actual problem is in the stdlib `codecs.open`: ``` def open(filename, mode='r', encoding=None, errors='strict', buffering=1): if encoding is not None and 'b' not in mode: mode = mod...
https://api.github.com/repos/pandas-dev/pandas/pulls/30034
2019-12-04T05:05:52Z
2019-12-05T12:57:15Z
2019-12-05T12:57:15Z
2019-12-05T16:08:07Z
revert openpyxl test changes
diff --git a/pandas/tests/io/excel/test_openpyxl.py b/pandas/tests/io/excel/test_openpyxl.py index 90e795bd5c52f..e8c60870e2a85 100644 --- a/pandas/tests/io/excel/test_openpyxl.py +++ b/pandas/tests/io/excel/test_openpyxl.py @@ -1,11 +1,8 @@ -from distutils.version import LooseVersion import os import numpy as np ...
follow up to #30009 - thanks @jbrockmendel for fixing it and sorry I wasn't able to review more. I *think* the root cause though is just defusedxml being installed alongside things, which is only prevalent in our 3.6 build. pinning openpyxl version alone I think is fine, but let's see...note that this same defusedxm...
https://api.github.com/repos/pandas-dev/pandas/pulls/30033
2019-12-04T04:33:56Z
2019-12-04T13:24:23Z
2019-12-04T13:24:23Z
2023-04-12T20:16:59Z
changed "fun !r" -> "repr(fun)"
diff --git a/pandas/core/series.py b/pandas/core/series.py index 11e87a4eed27f..302d4b591fc1e 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2944,7 +2944,7 @@ def _try_kind_sort(arr): sortedIdx[n:] = idx[good][argsorted] sortedIdx[:n] = idx[bad] else: - ...
As described in the following issue , usage of !r is currently redundant and so changing to f strings in place of it. - [x] ref https://github.com/pandas-dev/pandas/issues/29886 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] what...
https://api.github.com/repos/pandas-dev/pandas/pulls/30032
2019-12-04T03:46:10Z
2019-12-04T13:25:03Z
2019-12-04T13:25:03Z
2020-03-28T14:00:02Z
REF: collect attribute-setting at the end of create_axes
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index fca1d3265cac2..e1b3e5c83f7db 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -3734,7 +3734,7 @@ def read_axes( return True - def get_object(self, obj): + def get_object(self, obj, transposed: bool): """ return...
Ideally we wouldn't be altering `self` inplace at all, but we can make this a lot easier to reason about by collecting all of the attribute-setting at the end of the create_axes call. `self.non_index_axes` I couldn't get all the way to the end of the call without a more invasive edit, which ill save for a separate p...
https://api.github.com/repos/pandas-dev/pandas/pulls/30029
2019-12-04T01:42:28Z
2019-12-04T18:47:30Z
2019-12-04T18:47:30Z
2019-12-04T19:32:52Z
f strings in core/sorting
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index ed9ef23132683..b99ac9cc333c6 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -208,7 +208,7 @@ def lexsort_indexer(keys, orders=None, na_position="last"): cat = Categorical(key, ordered=True) if na_position not...
- [ ] references #29547 - [ ] 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/30028
2019-12-04T01:02:14Z
2019-12-04T23:11:45Z
2019-12-04T23:11:45Z
2019-12-04T23:11:51Z
Updated .format() to f-strings
diff --git a/pandas/io/html.py b/pandas/io/html.py index b8cb6679a9562..1a0e0537ad325 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -587,7 +587,7 @@ def _parse_tfoot_tr(self, table): def _setup_build_doc(self): raw_text = _read(self.io) if not raw_text: - raise ValueError("...
- [ ] references #29547 - [ ] 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/30027
2019-12-04T00:53:10Z
2019-12-05T16:38:12Z
2019-12-05T16:38:12Z
2019-12-05T16:38:41Z
fstring in io.sql
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 684e602f06d12..50fa04a405837 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -241,7 +241,7 @@ def read_sql_table( try: meta.reflect(only=[table_name], views=True) except sqlalchemy.exc.InvalidRequestError: - raise ValueError("Table...
- [ ] ref #29547 - [ ] 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/30026
2019-12-04T00:36:53Z
2019-12-31T09:02:19Z
2019-12-31T09:02:19Z
2019-12-31T09:02:54Z
f strings in core/series
diff --git a/pandas/core/series.py b/pandas/core/series.py index 410b10a69ecd5..5981f3f71996e 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -104,9 +104,9 @@ def _coerce_method(converter): def wrapper(self): if len(self) == 1: return converter(self.iloc[0]) - raise T...
- [ ] references #29547 - [ ] 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/30025
2019-12-04T00:21:33Z
2019-12-05T06:31:24Z
2019-12-05T06:31:24Z
2019-12-05T06:31:35Z
f-string update for core.base.
diff --git a/pandas/core/base.py b/pandas/core/base.py index 066a7628be364..5e613849ba8d5 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -114,9 +114,7 @@ def __setattr__(self, key, value): or key in type(self).__dict__ or getattr(self, key, None) is not None ): - ...
- [ ] ref #29547 - [ ] 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/30023
2019-12-03T23:42:41Z
2019-12-04T13:29:09Z
2019-12-04T13:29:09Z
2019-12-04T13:29:13Z
f string in io.common
diff --git a/pandas/io/common.py b/pandas/io/common.py index 54253803c4881..a01011cd7d4e4 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -246,8 +246,8 @@ def get_filepath_or_buffer( return _expand_user(filepath_or_buffer), None, compression, False if not is_file_like(filepath_or_buffer): ...
- [ ] ref #29547 - [ ] 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/30022
2019-12-03T23:26:20Z
2019-12-11T13:16:58Z
2019-12-11T13:16:58Z
2019-12-11T19:03:12Z
added f strings and typing to frame.py
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fde3d1657b4f2..88967b13c89b5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -15,6 +15,7 @@ import sys from textwrap import dedent from typing import ( + Any, FrozenSet, Hashable, Iterable, @@ -25,6 +26,7 @@ Tuple, ...
replaced old formatting with fstrings where possible added typing hints to duplicated, drop_duplicates, reset_index
https://api.github.com/repos/pandas-dev/pandas/pulls/30021
2019-12-03T23:15:20Z
2019-12-06T20:50:30Z
2019-12-06T20:50:29Z
2019-12-06T21:12:41Z
Replaced !r with repr()
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index 82eb93dd4c879..b99ac9cc333c6 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -208,7 +208,7 @@ def lexsort_indexer(keys, orders=None, na_position="last"): cat = Categorical(key, ordered=True) if na_position not...
- [x] reference #29886 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Issue: https://github.com/pandas-dev/pandas/issues/29886 @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/30020
2019-12-03T23:13:39Z
2019-12-11T10:06:07Z
2019-12-11T10:06:07Z
2019-12-11T10:06:22Z
CLN: no need to broadcast axes for ndim<=2 (pytables)
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index a48d9abc3c13b..e7e8f1a74684b 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -4232,21 +4232,7 @@ def write_data(self, chunksize: Optional[int], dropna: bool = False): # broadcast the indexes if needed indexes = [a.cvalu...
It takes a little bit of work to show, but `self.index_axes` is always length-1 on L4243, which means that nindexes == 1 (the assertion added in the code). This ensures that the condition `if i > 0 and i < nindexes` on L4239 is is never satisfied, so `bindexes` is unnecessary.
https://api.github.com/repos/pandas-dev/pandas/pulls/30019
2019-12-03T23:06:10Z
2019-12-04T13:32:39Z
2019-12-04T13:32:39Z
2019-12-04T16:55:36Z
CLN: pytables _set_tz/_get_tz
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index fca1d3265cac2..f948cebcb28d8 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -4,7 +4,7 @@ """ import copy -from datetime import date +from datetime import date, tzinfo import itertools import os import re @@ -2918,7 +2918,8 @@ def...
removes preserve_UTC argument, which never did anything, and didnt have a clear purpose
https://api.github.com/repos/pandas-dev/pandas/pulls/30018
2019-12-03T22:55:06Z
2019-12-04T18:50:04Z
2019-12-04T18:50:04Z
2019-12-04T19:16:26Z
REF: make indexables cache_readonly (pytables)
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index a48d9abc3c13b..f7b98df9ba41e 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -29,6 +29,7 @@ from pandas._libs.tslibs import timezones from pandas.compat._optional import import_optional_dependency from pandas.errors import Performance...
making these classes less stateful bit by bit
https://api.github.com/repos/pandas-dev/pandas/pulls/30016
2019-12-03T21:40:48Z
2019-12-04T13:46:07Z
2019-12-04T13:46:07Z
2019-12-04T16:42:39Z
DOC: Added "Raises `KeyError`"
diff --git a/pandas/compat/chainmap.py b/pandas/compat/chainmap.py index 84824207de2a9..479eddf0c0536 100644 --- a/pandas/compat/chainmap.py +++ b/pandas/compat/chainmap.py @@ -10,6 +10,12 @@ def __setitem__(self, key, value): self.maps[0][key] = value def __delitem__(self, key): + """ + R...
- [ ] closes #xxxx - [ ] 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/30014
2019-12-03T21:31:00Z
2019-12-04T13:48:44Z
2019-12-04T13:48:44Z
2019-12-04T15:18:23Z
CLN: annotate and de-nest write_array
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index a48d9abc3c13b..1f9e72bcf8a2f 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -39,6 +39,7 @@ is_list_like, is_timedelta64_dtype, ) +from pandas.core.dtypes.generic import ABCExtensionArray from pandas.core.dtypes.missing impor...
https://api.github.com/repos/pandas-dev/pandas/pulls/30012
2019-12-03T20:50:47Z
2019-12-04T13:47:44Z
2019-12-04T13:47:44Z
2019-12-04T16:32:47Z
DOC: Fix to lzma.LZMAFile
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index f95dd8679308f..60cfecd5804ac 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -98,11 +98,11 @@ def is_platform_32bit() -> bool: def _import_lzma(): """ - Attempts to import the lzma module. + Importing the `l...
- [ ] 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/30010
2019-12-03T20:32:45Z
2019-12-04T20:16:44Z
2019-12-04T20:16:44Z
2019-12-05T10:22:04Z
CI: troubleshoot openpyxl failures
diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml index ddc1ea41a08a3..04ff06a99a1f4 100644 --- a/ci/deps/travis-36-cov.yaml +++ b/ci/deps/travis-36-cov.yaml @@ -27,7 +27,8 @@ dependencies: - numexpr - numpy=1.15.* - odfpy - - openpyxl + - openpyxl<=3.0.1 + # https://github.com/pandas-dev...
tested on OSX 36 and 37, we'll see if that generalizes
https://api.github.com/repos/pandas-dev/pandas/pulls/30009
2019-12-03T19:53:29Z
2019-12-04T01:46:58Z
2019-12-04T01:46:58Z
2020-04-05T17:35:09Z
CLN: test code no longer shared with sparse
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index a86e1dfe8353c..60befe5e73d37 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -6,35 +6,11 @@ import pytest import pandas as pd -from pandas import ( - Categorical, - DataFrame, - Series, - ...
broken off from #29985.
https://api.github.com/repos/pandas-dev/pandas/pulls/30007
2019-12-03T17:25:39Z
2019-12-03T18:54:14Z
2019-12-03T18:38:37Z
2019-12-03T18:57:37Z
DOC: whatsnew notes that slipped through the cracks
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 470209a7f4a33..e533ebb0d0084 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -506,6 +506,9 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
split off from #29985.
https://api.github.com/repos/pandas-dev/pandas/pulls/30006
2019-12-03T17:24:12Z
2019-12-03T18:36:28Z
2019-12-03T18:36:28Z
2019-12-03T18:54:48Z
DEPR: get_duplicates
diff --git a/doc/redirects.csv b/doc/redirects.csv index 4d171bc3d400d..599ad6d28a8f5 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -636,7 +636,6 @@ generated/pandas.Index.equals,../reference/api/pandas.Index.equals generated/pandas.Index.factorize,../reference/api/pandas.Index.factorize generated/pandas....
the need for this looks like the result of a typo on my part
https://api.github.com/repos/pandas-dev/pandas/pulls/30004
2019-12-03T16:30:23Z
2019-12-03T18:35:57Z
2019-12-03T18:35:57Z
2019-12-03T18:53:53Z
DEPR: plotting deprecations
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 5c9543580be26..8e6f9ba826d82 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -499,6 +499,10 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. **Other removals** +- Removed t...
Input/help needed on two outstanding questions: 1) Do we just remove `pandas.tseries.converter` after this? 2) Some of these deprecations are old enough that I couldn't track them down via the blame, so they currently have "(:issue:`????`)" in the whatsnew.
https://api.github.com/repos/pandas-dev/pandas/pulls/30003
2019-12-03T16:27:10Z
2019-12-05T15:41:29Z
2019-12-05T15:41:29Z
2019-12-05T18:06:24Z
TYP: some types for pandas/io/formats/csvs.py
diff --git a/pandas/io/formats/csvs.py b/pandas/io/formats/csvs.py index f0493036b934a..ae5d1d30bcddb 100644 --- a/pandas/io/formats/csvs.py +++ b/pandas/io/formats/csvs.py @@ -5,6 +5,7 @@ import csv as csvlib from io import StringIO import os +from typing import Any, Dict, List import warnings from zipfile import...
broken off #28339
https://api.github.com/repos/pandas-dev/pandas/pulls/30000
2019-12-03T15:37:08Z
2019-12-05T15:47:31Z
2019-12-05T15:47:31Z
2019-12-05T15:54:48Z
TYP: some (mainly primative) types for tseries.frequencies
diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py index 898060d011372..9162e6a415b34 100644 --- a/pandas/tseries/frequencies.py +++ b/pandas/tseries/frequencies.py @@ -1,6 +1,6 @@ from datetime import timedelta import re -from typing import Dict +from typing import Dict, Optional import nu...
https://api.github.com/repos/pandas-dev/pandas/pulls/29999
2019-12-03T14:47:13Z
2019-12-03T16:24:45Z
2019-12-03T16:24:45Z
2019-12-03T20:51:58Z
TST: update test_nanops setup_method
diff --git a/pandas/tests/test_nanops.py b/pandas/tests/test_nanops.py index e5d963a307502..c207c803510ca 100644 --- a/pandas/tests/test_nanops.py +++ b/pandas/tests/test_nanops.py @@ -24,7 +24,7 @@ def setup_method(self, method): np.random.seed(11235) nanops._USE_BOTTLENECK = False - arr_sha...
broken off #28339
https://api.github.com/repos/pandas-dev/pandas/pulls/29998
2019-12-03T13:56:28Z
2019-12-03T16:26:49Z
2019-12-03T16:26:49Z
2019-12-03T20:52:30Z
TST: use index_or_series fixture
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index 1ba0930c06334..29d425039551a 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -171,9 +171,9 @@ class TestDatetime64SeriesComparison: ], ) ...
broken off #28339, xref #29725
https://api.github.com/repos/pandas-dev/pandas/pulls/29996
2019-12-03T13:51:56Z
2019-12-03T16:29:15Z
2019-12-03T16:29:14Z
2019-12-03T20:54:03Z
CLN: some imports in pandas/tests/frame/test_dtypes.py
diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py index af5a765aa2729..6709cdcb1eebf 100644 --- a/pandas/tests/frame/test_dtypes.py +++ b/pandas/tests/frame/test_dtypes.py @@ -4,7 +4,7 @@ import numpy as np import pytest -from pandas.core.dtypes.dtypes import CategoricalDtype, Datet...
broken off #28339
https://api.github.com/repos/pandas-dev/pandas/pulls/29995
2019-12-03T13:46:14Z
2019-12-03T16:30:00Z
2019-12-03T16:30:00Z
2019-12-03T20:54:56Z
TST: add some message checks in test_query_eval
diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py index abd8ef98ff871..d577ff7c71277 100644 --- a/pandas/tests/frame/test_query_eval.py +++ b/pandas/tests/frame/test_query_eval.py @@ -479,11 +479,13 @@ def test_query_scope(self): tm.assert_frame_equal(res, expected) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29994
2019-12-03T13:42:31Z
2019-12-03T18:40:45Z
2019-12-03T18:40:44Z
2019-12-03T20:58:44Z
CI: re-enable downstream test for geopandas
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index dc88ebe1f7f8e..ea128c8c3a422 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -102,10 +102,7 @@ def test_pandas_datareader(): # importing from pandas, Cython import warning -@pytest.mark.filter...
Closes https://github.com/pandas-dev/pandas/issues/25778
https://api.github.com/repos/pandas-dev/pandas/pulls/29993
2019-12-03T12:11:02Z
2019-12-03T13:39:55Z
2019-12-03T13:39:55Z
2019-12-03T14:28:24Z
TYP: some (mainly primative) types for core.generic
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e19bf9c1c39ea..1144a1f7da1a6 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -18,6 +18,7 @@ Optional, Sequence, Set, + Tuple, Union, ) import warnings @@ -66,7 +67,7 @@ from pandas.core.dtypes.missing import...
mypy 0.750 has an experimental feature for static inference of annotations see https://mypy.readthedocs.io/en/latest/mypy_daemon.html#static-inference-of-annotations have tried it out on functions in core.generic. The annotations add here are mainly the ones that matched the docstrings.
https://api.github.com/repos/pandas-dev/pandas/pulls/29991
2019-12-03T11:55:37Z
2019-12-04T13:53:35Z
2019-12-04T13:53:35Z
2019-12-04T19:51:43Z
DEPR: remove get_values, SparseArray.values
diff --git a/doc/redirects.csv b/doc/redirects.csv index 61902f3134a4d..33ba94e2baa01 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -360,7 +360,6 @@ generated/pandas.DataFrame.from_records,../reference/api/pandas.DataFrame.from_r generated/pandas.DataFrame.ge,../reference/api/pandas.DataFrame.ge generated...
The cleanups in libreduction are made possible by SparseArray.values going away.
https://api.github.com/repos/pandas-dev/pandas/pulls/29989
2019-12-03T05:22:01Z
2019-12-04T22:51:48Z
2019-12-04T22:51:48Z
2019-12-04T22:59:22Z
STY: F-strings
diff --git a/ci/print_skipped.py b/ci/print_skipped.py index 51a2460e05fab..2b5cf1ab34295 100755 --- a/ci/print_skipped.py +++ b/ci/print_skipped.py @@ -32,8 +32,7 @@ def main(filename): print("-" * 80) else: print( - "#{i} {class_name}.{test_name}: {message}".format( -...
- [x] ref https://github.com/pandas-dev/pandas/issues/29547 - [ ] 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/29988
2019-12-03T04:46:21Z
2019-12-04T13:57:06Z
2019-12-04T13:57:06Z
2019-12-04T15:34:34Z
DEPR: remove real, imag, put, and str.partition kwarg
diff --git a/doc/redirects.csv b/doc/redirects.csv index 599ad6d28a8f5..61902f3134a4d 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -1119,7 +1119,6 @@ generated/pandas.Series.pow,../reference/api/pandas.Series.pow generated/pandas.Series.prod,../reference/api/pandas.Series.prod generated/pandas.Series.pro...
https://api.github.com/repos/pandas-dev/pandas/pulls/29986
2019-12-03T02:31:12Z
2019-12-04T13:58:42Z
2019-12-04T13:58:42Z
2019-12-04T17:37:46Z
CLN: assorted (non-pytables) cleanups
diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index 6dc110e3f8d07..2e5a563b815b3 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -306,6 +306,9 @@ def eval( "multi-line expressions are only valid in the " "context of data, u...
includes a couple of whatsnew notes that fell through the cracks
https://api.github.com/repos/pandas-dev/pandas/pulls/29985
2019-12-03T02:28:23Z
2019-12-12T13:48:13Z
2019-12-12T13:48:13Z
2019-12-12T15:51:24Z
CI: add jinja to deps
diff --git a/ci/deps/azure-windows-36.yaml b/ci/deps/azure-windows-36.yaml index 903a4b4a222f1..2bd11c9030325 100644 --- a/ci/deps/azure-windows-36.yaml +++ b/ci/deps/azure-windows-36.yaml @@ -20,6 +20,7 @@ dependencies: - numexpr - numpy=1.15.* - openpyxl + - jinja2 - pyarrow>=0.12.0 - pytables - py...
i think this should fix the failing windows-py36 azure build
https://api.github.com/repos/pandas-dev/pandas/pulls/29984
2019-12-03T02:08:53Z
2019-12-03T10:20:59Z
2019-12-03T10:20:59Z
2019-12-03T16:09:16Z
CI: Using more appropriate GitHub Actions syntax to set path
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f68080d05bea6..a36420556ae24 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,12 +15,12 @@ jobs: runs-on: ubuntu-latest steps: + - name: Setting conda path + run: echo "::add-path::${HOME}/miniconda3/bi...
Looks like GitHub Actions provides a specific command to add to the PATH, which is simpler (and also works on Windows, which is not required in this case, but will be when we add the test jobs).
https://api.github.com/repos/pandas-dev/pandas/pulls/29983
2019-12-03T00:14:25Z
2019-12-04T13:59:39Z
2019-12-04T13:59:39Z
2019-12-04T13:59:42Z
CLN: assorted pytables cleanups, remove unwanted assertion
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 4874135430d1d..a48d9abc3c13b 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -361,9 +361,6 @@ def read_hdf( >>> df.to_hdf('./store.h5', 'data') >>> reread = pd.read_hdf('./store.h5') """ - assert not kwargs, kwargs - ...
#29977 included an assertion that I meant to remove before merging. This removes that, followed by some misc cleanup: annotations, docstrings, remove is_shape_reversed (which was for Panel compat)
https://api.github.com/repos/pandas-dev/pandas/pulls/29982
2019-12-02T23:55:35Z
2019-12-03T18:53:03Z
2019-12-03T18:53:03Z
2020-04-05T17:35:01Z
REF: move attribute setting towards the constructor
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 4874135430d1d..b5a329c0c0936 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2203,12 +2203,6 @@ def take_data(self): self.data, data = None, self.data return data - def set_metadata(self, metadata): - """ r...
The end goal is to minimize the amount of attribute setting that is done outside of the constructor (or create_for_block which is a classmethod and ill give it a pass). create_for_block is called in one place, and immediately after that set_atom is called on the result. set_atom does a ton of attribute setting, so ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29979
2019-12-02T21:04:51Z
2019-12-04T14:01:50Z
2019-12-04T14:01:49Z
2019-12-04T16:57:56Z
CLN: explicit kwargs for select
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 5a42df92ddf84..6cbf342751469 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -284,7 +284,19 @@ def to_hdf( f(path_or_buf) -def read_hdf(path_or_buf, key=None, mode: str = "r", **kwargs): +def read_hdf( + path_or_buf, + ...
Questions for @jreback on follow-ups: 1) Note in `read_hdf` kwargs is still present in the signature, but i put an assertion that they are empty. In principle we could pass more junk to HDFStore, but we never do in tests. Should we allow it, or can those kwargs be deleted altogether? 2) the current signature fo...
https://api.github.com/repos/pandas-dev/pandas/pulls/29977
2019-12-02T17:17:57Z
2019-12-02T23:23:30Z
2019-12-02T23:23:30Z
2019-12-02T23:44:14Z
TYP: add some types to pandas/io/parquet.py
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index edbf60cc91d0b..1ab311516fa02 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -1,5 +1,6 @@ """ parquet compat """ +from typing import Any, Dict, Optional from warnings import catch_warnings from pandas.compat._optional import import_op...
broken off #28339
https://api.github.com/repos/pandas-dev/pandas/pulls/29972
2019-12-02T16:38:57Z
2019-12-02T23:15:50Z
2019-12-02T23:15:50Z
2019-12-03T12:41:35Z
CLN: explicit kwargs and docstring for create_index
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 39e9d467b652f..df377bb4e1e7c 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -1191,13 +1191,31 @@ def append_to_multiple( self.append(k, val, data_columns=dc, **kwargs) - def create_table_index(self, key: str, **kwarg...
Side-note, in `create_index`, none of our tests hit the `v.remove_index()` calls. If we could rule those out, this function could be simplified quite a bit.
https://api.github.com/repos/pandas-dev/pandas/pulls/29971
2019-12-02T16:34:11Z
2019-12-02T23:16:38Z
2019-12-02T23:16:38Z
2019-12-02T23:19:09Z