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 |
|---|---|---|---|---|---|---|---|
ENH: Provide a method to convert DataFrames to structured arrays. | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ad6a9d994bf7b..b00baba77297c 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -38,6 +38,7 @@ Other enhancements
- Added ``sparse_index`` and ``sparse_columns`` keyword arguments to :meth:`.Styler.to_ht... | Structured arrays can be significantly faster than record arrays:
```
In [1]: s = np.random.rand(1000, 2).astype([("a", float), ("b", float)]); r = s.view(np.recarray)
In [2]: %timeit s["a"]
69.4 ns ± 0.0733 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)
In [3]: %timeit r["a"]
1.2 µs ± 10 ns pe... | https://api.github.com/repos/pandas-dev/pandas/pulls/42854 | 2021-08-02T14:39:05Z | 2021-08-03T18:21:26Z | null | 2021-08-03T18:22:07Z |
Backport PR #42832 on branch 1.3.x (CI: Unpin jedi) | diff --git a/ci/deps/actions-38-locale.yaml b/ci/deps/actions-38-locale.yaml
index 34a6860936550..dfed0df77a327 100644
--- a/ci/deps/actions-38-locale.yaml
+++ b/ci/deps/actions-38-locale.yaml
@@ -18,7 +18,7 @@ dependencies:
- html5lib
- ipython
- jinja2
- - jedi<0.18.0
+ - jedi
- lxml
- matplotlib<3.3... | Backport PR #42832: CI: Unpin jedi | https://api.github.com/repos/pandas-dev/pandas/pulls/42852 | 2021-08-02T10:55:08Z | 2021-08-02T13:25:21Z | 2021-08-02T13:25:21Z | 2021-08-02T13:25:21Z |
Backport PR #42787: BUG: 1D slices over extension types turn into N-dimensional slices over ExtensionArrays | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index df35a2c08a25e..8723b1b766485 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -30,7 +30,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- 1D slices over extension types turn into N-dimensional slices... | Backport PR #42787 | https://api.github.com/repos/pandas-dev/pandas/pulls/42850 | 2021-08-02T09:34:26Z | 2021-08-02T11:23:05Z | 2021-08-02T11:23:05Z | 2021-08-02T17:37:09Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3a07aae11dc1b..f58c736eb4b0f 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,7 +9,7 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/python/black
- rev: 21.6b0
+ rev: 21.7b0
... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/42848 | 2021-08-02T07:11:17Z | 2021-08-03T07:40:28Z | null | 2021-08-03T07:40:28Z |
Updated README.md Grammar | diff --git a/README.md b/README.md
index 04b346c198e90..550c3242f579f 100644
--- a/README.md
+++ b/README.md
@@ -162,12 +162,12 @@ All contributions, bug reports, bug fixes, documentation improvements, enhanceme
A detailed overview on how to contribute can be found in the **[contributing guide](https://pandas.pydata... | Suggested appropriate changes in grammar.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42846 | 2021-08-02T03:17:40Z | 2021-08-02T07:34:58Z | null | 2021-08-02T13:21:22Z |
ENH: Allow bar and barh plots to use index values for x position. | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index 524a26b2d3fa6..a8d7f5ad3437b 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -419,7 +419,7 @@ def hist_frame(
"""
-_bar_or_line_doc = """
+_bar_or_line_common_param_doc = """
Parameters
----------
... | _Note_: This is my first attempt to contribute code to pandas, so any correction is more than welcome.
This proposal adds a new parameter to the bar and barh plots, `positioning`, with the values:
- sequential: The index values are added sequentially (`x=0, 1, 2, 3...`) and only the tick label shows the value.
-... | https://api.github.com/repos/pandas-dev/pandas/pulls/42845 | 2021-08-01T23:25:11Z | 2022-01-16T17:59:38Z | null | 2023-03-22T15:12:35Z |
REGR: sample modifying `weights` inplace | diff --git a/pandas/core/sample.py b/pandas/core/sample.py
index e4bad22e8e43c..63b8789f3f551 100644
--- a/pandas/core/sample.py
+++ b/pandas/core/sample.py
@@ -63,7 +63,11 @@ def preprocess_weights(obj: FrameOrSeries, weights, axis: int) -> np.ndarray:
if (weights < 0).any():
raise ValueError("weight vec... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Targeting 1.4 and no whatsnew since only a regression on master.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42843 | 2021-08-01T18:13:52Z | 2021-08-04T22:19:13Z | 2021-08-04T22:19:13Z | 2021-08-04T22:42:13Z |
CI: Upgrade codecov-action to v2 | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml
index 33a8d623e358f..cedc2b85c2794 100644
--- a/.github/workflows/database.yml
+++ b/.github/workflows/database.yml
@@ -104,7 +104,7 @@ jobs:
run: python ci/print_skipped.py
- name: Upload coverage to Codecov
- uses: codecov... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42842 | 2021-08-01T16:02:04Z | 2021-08-03T07:28:09Z | 2021-08-03T07:28:09Z | 2021-08-03T14:35:26Z |
PERF: GroupBy.any/all operate blockwise instead of column-wise | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 48380bd9b46b8..a4ae35ef34a9c 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -403,7 +403,7 @@ def time_srs_bfill(self):
class GroupByMethods:
- param_names = ["dtype", "method", "applicatio... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
The idea is to incrementally move all of the relevant functions to operate block-wise, at w... | https://api.github.com/repos/pandas-dev/pandas/pulls/42841 | 2021-08-01T15:24:08Z | 2021-08-19T12:56:03Z | 2021-08-19T12:56:02Z | 2021-08-19T14:27:59Z |
BUG: `styler.hide_columns` now hides the index name header row | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 8723b1b766485..9b412d6d46c5e 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -31,7 +31,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
- 1D slices over extension types turn into N-dimensional slices over... | - [x] closes #42101
- [x] closes #42190 (stale pr)
Fixes `hide_columns` so that the index header row is also hidden alongside column headers.
Can be back ported to 1.3.2
| https://api.github.com/repos/pandas-dev/pandas/pulls/42839 | 2021-08-01T06:56:22Z | 2021-08-03T17:15:14Z | 2021-08-03T17:15:14Z | 2021-08-03T19:30:09Z |
REGR: Series.nlargest with masked arrays | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index b84f3c83284fa..e1c55d5621adb 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -23,6 +23,7 @@ Fixed regressions
- Fixed regression where :meth:`pandas.read_csv` raised a ``ValueError`` when parameters `... | - [x] closes #42816
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42838 | 2021-07-31T23:31:25Z | 2021-08-10T21:45:16Z | 2021-08-10T21:45:15Z | 2021-08-11T11:03:48Z |
TST: Catch test warnings due to division by 0 | diff --git a/pandas/tests/test_expressions.py b/pandas/tests/test_expressions.py
index 6ac85f9d36fdc..1348e62148cb1 100644
--- a/pandas/tests/test_expressions.py
+++ b/pandas/tests/test_expressions.py
@@ -1,5 +1,6 @@
import operator
import re
+import warnings
import numpy as np
import pytest
@@ -167,8 +168,12 @@ ... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/42836 | 2021-07-31T19:33:46Z | 2021-07-31T20:54:59Z | 2021-07-31T20:54:59Z | 2021-07-31T21:54:09Z |
TST: clean old sql tests | diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py
index df9ba5f206146..e924bcef494b9 100644
--- a/pandas/tests/io/test_sql.py
+++ b/pandas/tests/io/test_sql.py
@@ -2583,11 +2583,6 @@ def test_illegal_names(self):
# -- Old tests from 0.13.1 (before refactor using sqlalchemy)
-def date_format(dt... | remove skipped mysql tests, simplify old sqlite tests
a small step towards #40686 | https://api.github.com/repos/pandas-dev/pandas/pulls/42835 | 2021-07-31T19:31:29Z | 2021-08-08T03:35:50Z | 2021-08-08T03:35:50Z | 2021-08-17T04:22:40Z |
DEPR: dropping nuisance columns in rolling aggregations | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 73e31d9e52fa7..fb1f0194a19a4 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -162,6 +162,7 @@ Deprecations
- Deprecated ignoring missing labels when indexing with a sequence of labels on a level of a ... | - [x] closes #42738
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
we did this in 1.3 for DataFrame reductions and GroupBy reductions. AFAIK this is the las... | https://api.github.com/repos/pandas-dev/pandas/pulls/42834 | 2021-07-31T19:14:21Z | 2021-08-10T18:59:43Z | 2021-08-10T18:59:42Z | 2021-08-10T19:57:17Z |
DEPR: apply/agg using agg/apply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index bb39e18caeaa2..110aeb0ffb22d 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -136,6 +136,10 @@ def f(x):
self.orig_f: AggFuncType = func
self.f: AggFuncType = f
+ # For deprecation warning on apply using agg
+ ... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
A possible step toward #35725. Internally, agg may use apply and apply may use agg. Straightening these out so ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42833 | 2021-07-31T18:31:35Z | 2021-08-12T01:21:43Z | null | 2021-10-19T03:46:11Z |
CI: Unpin jedi | diff --git a/ci/deps/actions-38-locale.yaml b/ci/deps/actions-38-locale.yaml
index 28584de509f34..46ebaadc3049a 100644
--- a/ci/deps/actions-38-locale.yaml
+++ b/ci/deps/actions-38-locale.yaml
@@ -18,7 +18,7 @@ dependencies:
- html5lib
- ipython
- jinja2
- - jedi<0.18.0
+ - jedi
- lxml
- matplotlib<3.3... | - [ ] closes #38703
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42832 | 2021-07-31T17:21:49Z | 2021-08-02T10:54:41Z | 2021-08-02T10:54:40Z | 2021-08-03T14:36:23Z |
TST: raising ValueError when inserting one dataframe in another | diff --git a/pandas/tests/frame/indexing/test_insert.py b/pandas/tests/frame/indexing/test_insert.py
index 4f5ec8eff29a6..c2c862be42625 100644
--- a/pandas/tests/frame/indexing/test_insert.py
+++ b/pandas/tests/frame/indexing/test_insert.py
@@ -89,3 +89,13 @@ def test_insert_item_cache(self, using_array_manager):
... | - [x] closes #42403
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/42831 | 2021-07-31T09:54:45Z | 2021-08-05T05:52:23Z | 2021-08-05T05:52:23Z | 2021-08-05T05:54:18Z |
REF: remove unnecessary return value from ensure_data | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index df9f3d07ce7fd..52c5790e1fc24 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -55,7 +55,6 @@
is_scalar,
is_timedelta64_dtype,
needs_i8_conversion,
- pandas_dtype,
)
from pandas.core.dtypes.dtypes import... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42830 | 2021-07-31T01:55:56Z | 2021-08-05T12:11:38Z | 2021-08-05T12:11:38Z | 2021-08-05T14:21:46Z |
Backport PR #42801 on branch 1.3.x (DataFrame.drop silently does nothing if MultiIndex has duplicates) | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 116bdd6e1d98f..df35a2c08a25e 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :meth:`DataFrame.from_records` with empty records (:issue:`42456`)
- Fixe... | Backport PR #42801: DataFrame.drop silently does nothing if MultiIndex has duplicates | https://api.github.com/repos/pandas-dev/pandas/pulls/42829 | 2021-07-31T00:52:34Z | 2021-07-31T09:30:14Z | 2021-07-31T09:30:14Z | 2021-07-31T09:30:14Z |
BUG: Exactly same check multiple times in if statement | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index b4e8a763d1210..debdcdcc3f762 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -3534,7 +3534,7 @@ def _union(self, other, sort) -> MultiIndex:
other, result_names = self._convert_can_do_setop(other)
... | - [x] closes #42781
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/42828 | 2021-07-30T22:09:26Z | 2021-08-13T22:54:17Z | 2021-08-13T22:54:16Z | 2021-08-13T22:54:20Z |
CLN: collected cleanups | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 4d380c6831071..7d51b50f783a5 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -1221,7 +1221,7 @@ def factorize(self, sort: bool = False, na_sentinel: int | None = -1):
"""
@doc(_shared_docs["searchsorted"], klass="Index")
- def... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42827 | 2021-07-30T21:28:07Z | 2021-07-30T23:08:33Z | 2021-07-30T23:08:33Z | 2021-07-31T00:47:52Z |
BUG: column names with degree sign make query fail | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 6763c3043b102..16474dd83a1f5 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -234,6 +234,8 @@ Indexing
- Bug in indexing on a :class:`MultiIndex` failing to drop scalar levels when the indexer is a tu... | This pull request adds DEGREESIGN (°) to tokens that are parsed and escaped in a backticked column. There are no separate issue reporting this, but this is similar to the EUROSIGN issue previously addressed.
- [ ] closes #xxxx
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/42826 | 2021-07-30T19:01:21Z | 2021-08-04T23:51:06Z | 2021-08-04T23:51:05Z | 2021-08-04T23:51:10Z |
PERF: column_arrays | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 9d35e1e8d4929..2cc0e68e8bf2b 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -981,28 +981,35 @@ def iget_values(self, i: int) -> ArrayLike:
return values
@property
- def ... | Shaves a couple percent off of time_to_json_wide asv | https://api.github.com/repos/pandas-dev/pandas/pulls/42824 | 2021-07-30T18:06:52Z | 2021-08-16T00:49:34Z | null | 2021-08-28T21:12:28Z |
BUG: Pass copy argument to expanddim constructor in concat. | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index e1c55d5621adb..ef8f8245c6640 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -23,6 +23,7 @@ Fixed regressions
- Fixed regression where :meth:`pandas.read_csv` raised a ``ValueError`` when parameters `... | - [x] closes #42501
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Pass the provided copy argument through to the DataFrame constructor when constructing a D... | https://api.github.com/repos/pandas-dev/pandas/pulls/42823 | 2021-07-30T17:51:58Z | 2021-08-11T12:55:42Z | 2021-08-11T12:55:41Z | 2021-08-12T18:10:55Z |
REF: de-duplicate consolidation methods | diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index bd049b80b281c..79c0aad66229c 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -167,15 +167,6 @@ def set_axis(self, axis: int, new_labels: Index) -> None:
axis = ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42822 | 2021-07-30T17:02:50Z | 2021-07-30T23:09:32Z | 2021-07-30T23:09:32Z | 2021-07-31T00:46:15Z |
CI: catch warning produced in resample | diff --git a/pandas/tests/resample/test_resample_api.py b/pandas/tests/resample/test_resample_api.py
index 76ac86d798086..addd6c17809a2 100644
--- a/pandas/tests/resample/test_resample_api.py
+++ b/pandas/tests/resample/test_resample_api.py
@@ -349,7 +349,12 @@ def test_agg():
expected = pd.concat([a_mean, a_std, ... | - [x] closes #42814
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42820 | 2021-07-30T16:31:03Z | 2021-07-30T18:56:57Z | 2021-07-30T18:56:56Z | 2021-07-30T19:20:45Z |
BUG: Fix dtypes for read_json | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 0c841078fe9b4..8113ac97a3a37 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -465,6 +465,7 @@ I/O
- Bug in unpickling a :class:`Index` with object dtype incorrectly inferring numeric dtypes (:issue:`4... | - [x] closes #33205
- [x] closes #21892
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42819 | 2021-07-30T14:43:59Z | 2021-10-04T19:13:41Z | 2021-10-04T19:13:40Z | 2021-10-04T19:13:49Z |
fix import error for version under python3.8 | diff --git a/pandas/_typing.py b/pandas/_typing.py
index ef9f38bbf5168..2cbb9338368a3 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -21,7 +21,6 @@
Dict,
Hashable,
List,
- Literal,
Mapping,
Optional,
Sequence,
@@ -30,6 +29,10 @@
TypeVar,
Union,
)
+try:
+ from ty... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42812 | 2021-07-30T08:09:47Z | 2021-07-30T08:41:53Z | null | 2021-07-30T08:42:41Z |
Backport PR #42690 on branch 1.3.x (REGR: ValueError raised when both prefix and names are set to None) | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 3350d9469a9ee..116bdd6e1d98f 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :meth:`DataFrame.from_records` with empty records (:issue:`42456`)
- Fixe... | Backport PR #42690: REGR: ValueError raised when both prefix and names are set to None | https://api.github.com/repos/pandas-dev/pandas/pulls/42811 | 2021-07-30T08:08:09Z | 2021-07-30T10:50:44Z | 2021-07-30T10:50:44Z | 2021-07-30T10:50:44Z |
DOC: Fixed GL02 errors in documentation | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index 59c57cf4a1ea0..467f0dc242aeb 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -210,7 +210,8 @@ def _iterate_slices(self) -> Iterable[Series]:
>>> s.groupby([1, 1, 2, 2]).agg(lambda x: x.astype(floa... | Fixed 2 of the 4 GL02 errors generated by pandas_validation_errors.ipynb
The remaining two errors are from pandas.Timestamp.isoweekday and will be tackled next.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42809 | 2021-07-30T00:06:20Z | 2021-08-06T04:42:10Z | 2021-08-06T04:42:10Z | 2021-08-12T16:57:10Z |
Backport PR #42803 on branch 1.3.x (COMPAT: MPL 3.4.0) | diff --git a/pandas/plotting/_matplotlib/tools.py b/pandas/plotting/_matplotlib/tools.py
index 9bfa24b6371ab..ebe336bd55c97 100644
--- a/pandas/plotting/_matplotlib/tools.py
+++ b/pandas/plotting/_matplotlib/tools.py
@@ -414,8 +414,12 @@ def handle_shared_axes(
except IndexError:
# if grid... | Backport PR #42803: COMPAT: MPL 3.4.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/42807 | 2021-07-29T23:31:01Z | 2021-07-30T00:47:45Z | 2021-07-30T00:47:45Z | 2021-07-30T00:47:45Z |
Backport PR #42796 on branch 1.3.x (REGR: nanosecond timestamp comparisons to OOB datetimes) | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 94d62ae988f0c..3350d9469a9ee 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :meth:`DataFrame.from_records` with empty records (:issue:`42456`)
- Fixe... | Backport PR #42796: REGR: nanosecond timestamp comparisons to OOB datetimes | https://api.github.com/repos/pandas-dev/pandas/pulls/42806 | 2021-07-29T23:23:43Z | 2021-07-30T00:47:16Z | 2021-07-30T00:47:16Z | 2021-07-30T00:47:17Z |
COMPAT: MPL 3.4.0 | diff --git a/pandas/plotting/_matplotlib/tools.py b/pandas/plotting/_matplotlib/tools.py
index 9d509d02c2e4f..6d27cc8686b65 100644
--- a/pandas/plotting/_matplotlib/tools.py
+++ b/pandas/plotting/_matplotlib/tools.py
@@ -417,8 +417,12 @@ def handle_shared_axes(
except IndexError:
# if grid... | - [ ] closes #42791
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42803 | 2021-07-29T21:21:33Z | 2021-07-29T23:30:52Z | 2021-07-29T23:30:52Z | 2021-07-29T23:40:22Z |
Cln reshape tests | diff --git a/pandas/tests/reshape/concat/test_append.py b/pandas/tests/reshape/concat/test_append.py
index 43fe72b0776ed..ea766089f880d 100644
--- a/pandas/tests/reshape/concat/test_append.py
+++ b/pandas/tests/reshape/concat/test_append.py
@@ -1,5 +1,4 @@
import datetime as dt
-from datetime import datetime
from ite... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Some cleanups
| https://api.github.com/repos/pandas-dev/pandas/pulls/42802 | 2021-07-29T21:18:30Z | 2021-07-30T00:48:30Z | 2021-07-30T00:48:30Z | 2021-07-30T08:05:07Z |
DataFrame.drop silently does nothing if MultiIndex has duplicates | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 116bdd6e1d98f..df35a2c08a25e 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :meth:`DataFrame.from_records` with empty records (:issue:`42456`)
- Fixe... | - [x] closes #42771
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42801 | 2021-07-29T21:16:52Z | 2021-07-31T00:52:08Z | 2021-07-31T00:52:08Z | 2021-07-31T16:18:01Z |
BUG: `Styler.set_sticky` fix the names rows 2/2 | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index bcb096e630d85..0539d17526579 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -33,6 +33,7 @@ Bug fixes
- Bug in :meth:`pandas.read_excel` modifies the dtypes dictionary when reading a file with duplica... | - [x] closes #42537
BUG:
In 1.3.0/1.3.1 `set_sticky` did not handle well the names of column/index headers.
This overall bug fix makes sure those cells are well handled.
**Should be backported to 1.3.2**
Before any Fixes | After 2 of 2 fixes
--- | ---
**Index / No Names** |
... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42797 | 2021-07-29T17:21:38Z | 2021-08-08T01:45:23Z | 2021-08-08T01:45:23Z | 2021-08-08T01:46:19Z |
REGR: nanosecond timestamp comparisons to OOB datetimes | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 94d62ae988f0c..3350d9469a9ee 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Regression in :meth:`DataFrame.from_records` with empty records (:issue:`42456`)
- Fixe... | - [x] closes #42794
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42796 | 2021-07-29T16:53:36Z | 2021-07-29T23:23:18Z | 2021-07-29T23:23:18Z | 2021-07-29T23:27:49Z |
CI: Fix doctests | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index 387df6c6a6b70..89591f27e9092 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -405,9 +405,7 @@ def extract_array(
For an ndarray-backed Series / Index a PandasArray is returned.
>>> extract_array(pd.Ser... | - [x] closes #42798
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Fixes three doctest failures on master.
One is from #42569, where name is no longer preserved when passing a... | https://api.github.com/repos/pandas-dev/pandas/pulls/42790 | 2021-07-29T02:51:11Z | 2021-07-29T21:53:14Z | 2021-07-29T21:53:14Z | 2021-07-29T22:47:41Z |
DOC GH42756 Update documentation for pandas.DataFrame.drop to clarify… | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8b82021375a28..27aa2ed939c1a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4754,7 +4754,8 @@ def drop(
Parameters
----------
labels : single label or list-like
- Index or column labels to drop.
+ ... | … tuples.
- [ ] closes #42756
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42789 | 2021-07-29T02:12:23Z | 2021-07-29T20:26:49Z | 2021-07-29T20:26:49Z | 2021-07-29T20:26:58Z |
TYP: Fix typing for searchsorted | diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py
index 656d38a50f77f..03dc124807f09 100644
--- a/pandas/core/reshape/tile.py
+++ b/pandas/core/reshape/tile.py
@@ -4,6 +4,7 @@
from typing import (
Any,
Callable,
+ Literal,
)
import numpy as np
@@ -417,12 +418,8 @@ def _bins_to_cut... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Fixes mypy issue without using an ignore. cc @Dr-Irv | https://api.github.com/repos/pandas-dev/pandas/pulls/42788 | 2021-07-29T01:41:31Z | 2021-07-29T12:10:47Z | 2021-07-29T12:10:47Z | 2021-07-30T11:06:04Z |
BUG: 1D slices over extension types turn into N-dimensional slices over ExtensionArrays | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 116bdd6e1d98f..a3fb53ff6b83d 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -29,7 +29,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- 1D slices over extension types turn into N-dimensional slices... | - [X] closes #42430
- [X] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [X] whatsnew entry
This PR contains a 1-line patch for issue #42430, plus a regression test to ensure the iss... | https://api.github.com/repos/pandas-dev/pandas/pulls/42787 | 2021-07-28T23:05:15Z | 2021-07-31T01:01:48Z | 2021-07-31T01:01:47Z | 2021-08-02T09:35:06Z |
Backport PR #42762 on branch 1.3.x (REG: DataFrame.agg where func returns lists and axis=1) | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index f4804215db8c1..94d62ae988f0c 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Regression in updating values of :class:`pandas.Series` using boolean index, created by ... | Backport PR #42762: REG: DataFrame.agg where func returns lists and axis=1 | https://api.github.com/repos/pandas-dev/pandas/pulls/42786 | 2021-07-28T22:50:10Z | 2021-07-29T08:06:08Z | 2021-07-29T08:06:08Z | 2021-07-29T08:06:08Z |
TST: Fix doctests in ``style.py`` | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index f481ecf7a97ed..d04d0eaee6ec4 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -122,6 +122,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pandas/io/sas/ \
pandas/io/sql.py \
pandas/io/formats/format.py \
+ pandas/io/fo... | The following commits fix the doctests of the ``style.py``, add some redirects to the User Guide, and some expected results.
- [x] closes #42759
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how... | https://api.github.com/repos/pandas-dev/pandas/pulls/42783 | 2021-07-28T19:29:59Z | 2021-07-31T06:38:46Z | 2021-07-31T06:38:46Z | 2021-07-31T17:33:18Z |
ENH: Adding function to easily generate dummy dataframes in a controlled manner. | diff --git a/pandas/core/generate_fake_dataframe.py b/pandas/core/generate_fake_dataframe.py
new file mode 100644
index 0000000000000..405a9995de834
--- /dev/null
+++ b/pandas/core/generate_fake_dataframe.py
@@ -0,0 +1,245 @@
+from __future__ import annotations
+from pandas.core.frame import DataFrame
+import pandas as... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
#### What's new
`generate_fake_dataframe` aims to facilitate the creation of dummy DataFrames with a specific ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42782 | 2021-07-28T19:07:55Z | 2021-08-13T22:53:50Z | null | 2023-05-11T01:21:09Z |
BUG: enable test_numpy tests with ArrayManager | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 60179b69f56a4..ad5f878628931 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1697,6 +1697,10 @@ def _setitem_with_indexer_split_path(self, indexer, value, name: str):
# We get here in one case via .loc with a al... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42780 | 2021-07-28T18:39:58Z | 2021-08-05T11:51:50Z | 2021-08-05T11:51:49Z | 2021-08-05T15:24:26Z |
TST: Fix for doctest in style_render.py -> pandas.io.formats.style_re… | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index f1c5f3ac3a2bd..b64e8bbcc9a7d 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -646,14 +646,14 @@ def format(
Using ``na_rep`` and ``precision`` with the default ``formatter``
... | This pull request fixes the doctest pandas.io.formats.style_render.StylerRenderer.format
- [X] closes #42766
Following this commit, all the doctests in style_render.py file passed.
Output:
```
python -m pytest --doctest-modules pandas/io/formats/style_render.py
=============================================... | https://api.github.com/repos/pandas-dev/pandas/pulls/42778 | 2021-07-28T18:16:38Z | 2021-08-01T15:52:09Z | 2021-08-01T15:52:08Z | 2021-08-01T15:52:25Z |
DOC GH42756 Update documentation for drop and MultiIndexes. | - [ ] closes #42756
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42777 | 2021-07-28T17:25:14Z | 2021-07-29T02:04:53Z | null | 2021-07-29T02:39:26Z | |
BUG: Incorrect variable window bounds for first row when offset cover all rows | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index bcb096e630d85..70fff75f84dc3 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -32,6 +32,7 @@ Bug fixes
~~~~~~~~~
- Bug in :meth:`pandas.read_excel` modifies the dtypes dictionary when reading a file w... | - [x] closes #42753
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
---
Allow for cases in which the end bound of the variable window for the first row ex... | https://api.github.com/repos/pandas-dev/pandas/pulls/42776 | 2021-07-28T17:23:23Z | 2021-08-07T23:15:06Z | 2021-08-07T23:15:05Z | 2021-08-07T23:31:20Z |
fixes docstring in `to_hdf()` | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 7865cdb0455b2..0c335d0267b2f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2620,9 +2620,9 @@ def to_hdf(
- 'a': append, an existing file is opened for reading and
writing, and if the file does not exist... | - [x] closes #42760
| https://api.github.com/repos/pandas-dev/pandas/pulls/42775 | 2021-07-28T16:05:35Z | 2021-08-05T11:52:43Z | 2021-08-05T11:52:43Z | 2021-08-05T11:52:48Z |
PERF: extract_array earlier in DataFrame construction | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index 68d7f6c6f8a22..387df6c6a6b70 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -420,9 +420,9 @@ def extract_array(
return obj._values
return obj
- obj = obj.array
+ obj ... | Also small bump in extract_array | https://api.github.com/repos/pandas-dev/pandas/pulls/42774 | 2021-07-28T16:04:37Z | 2021-07-28T23:00:46Z | 2021-07-28T23:00:46Z | 2021-07-29T00:56:33Z |
CI: mypy fixup | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 9c695148a75c0..c162b929f7cd2 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2896,7 +2896,7 @@ def _get_cythonized_result(
grouper = self.grouper
ids, _, ngroups = grouper.group_in... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42773 | 2021-07-28T15:53:55Z | 2021-07-28T22:54:09Z | null | 2021-07-28T22:56:34Z |
BUG: Series.groupby fails with InvalidIndexError on time series with … | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 7a9549affef00..e3c6268547dd2 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -26,6 +26,7 @@ Fixed regressions
- Fixed regression in :func:`concat` where ``copy=False`` was not honored in ``axis=1`` Se... | …a tuple-named grouper. (#42731)
- [x] closes #42731
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Skipped any "What's New" for now, since it's not decid... | https://api.github.com/repos/pandas-dev/pandas/pulls/42772 | 2021-07-28T15:40:25Z | 2021-09-06T15:17:35Z | 2021-09-06T15:17:35Z | 2021-09-06T15:18:28Z |
Fix typing issues for CI | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 9c695148a75c0..97f49eabcc5c3 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2896,7 +2896,7 @@ def _get_cythonized_result(
grouper = self.grouper
ids, _, ngroups = grouper.group_in... | - [X] closes #42769
- [N/A] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [N/A] whatsnew entry
Should allow CI to proceed. | https://api.github.com/repos/pandas-dev/pandas/pulls/42770 | 2021-07-28T14:22:40Z | 2021-07-28T22:53:54Z | 2021-07-28T22:53:53Z | 2023-02-13T21:11:38Z |
CI: remove styler from doctests | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 53536aa211f8e..9f59958b4e827 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -121,8 +121,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pandas/io/parsers/ \
pandas/io/sas/ \
pandas/io/sql.py \
- pandas/tseries/ \
- ... | `styler_render.py` was prematurely added to doctesting in #42700
We should revert this before the necessary devleopment is done to make the file ready for doctesting (that PR only fixed one example)
| https://api.github.com/repos/pandas-dev/pandas/pulls/42767 | 2021-07-28T07:43:37Z | 2021-07-28T11:09:04Z | 2021-07-28T11:09:04Z | 2021-07-28T15:18:14Z |
ENH: use text() for all sqlalchemy execution | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml
index 33a8d623e358f..e60db9b1ea61d 100644
--- a/.github/workflows/database.yml
+++ b/.github/workflows/database.yml
@@ -16,6 +16,7 @@ env:
PANDAS_CI: 1
PATTERN: ((not slow and not network and not clipboard) or (single and db))
COVERAG... | xref #40686
| https://api.github.com/repos/pandas-dev/pandas/pulls/42765 | 2021-07-28T04:12:21Z | 2021-08-19T19:04:05Z | null | 2022-11-18T02:20:37Z |
DOC: fix a few URLs | diff --git a/doc/source/getting_started/overview.rst b/doc/source/getting_started/overview.rst
index 7084b67cf9424..306eb28d23fe7 100644
--- a/doc/source/getting_started/overview.rst
+++ b/doc/source/getting_started/overview.rst
@@ -29,7 +29,7 @@ and :class:`DataFrame` (2-dimensional), handle the vast majority of typic... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42764 | 2021-07-28T04:06:36Z | 2021-08-05T23:42:08Z | 2021-08-05T23:42:08Z | 2021-08-06T13:25:15Z |
REG: DataFrame.agg where func returns lists and axis=1 | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index f4804215db8c1..94d62ae988f0c 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Regression in updating values of :class:`pandas.Series` using boolean index, created by ... | - [x] closes #42727
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This reverts #40428. Once agg/apply paths are sorted out so that agg doesn't fall back to ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42762 | 2021-07-28T03:25:00Z | 2021-07-28T22:49:27Z | 2021-07-28T22:49:27Z | 2021-10-19T03:46:09Z |
PERF: nancorr pearson | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index ce0158b05c2ab..b4cad23ee0b5a 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -170,6 +170,8 @@ Performance improvements
- Performance improvement in :meth:`.GroupBy.transform` for user-defined function... | - [x] xref #40956
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Benchmarks:
```
before after ratio
[e64fcfa7] [c9a995... | https://api.github.com/repos/pandas-dev/pandas/pulls/42761 | 2021-07-28T01:58:54Z | 2021-07-31T00:59:44Z | 2021-07-31T00:59:44Z | 2021-07-31T01:25:02Z |
TST: Xfail a test for fastparquet 0.7.0 | diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py
index 12a79f68d71c8..fdd9e99ea49e4 100644
--- a/pandas/tests/io/test_parquet.py
+++ b/pandas/tests/io/test_parquet.py
@@ -326,6 +326,13 @@ def test_cross_engine_pa_fp(df_cross_compat, pa, fp):
tm.assert_frame_equal(result, df[["a", ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
DO NOT MERGE.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42758 | 2021-07-27T23:27:57Z | 2021-08-03T14:35:52Z | null | 2021-08-03T14:35:55Z |
CLN: nancorr cleanups | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 172f2bfb49160..46ccf5d3f9fa9 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -325,11 +325,10 @@ def nancorr(const float64_t[:, :] mat, bint cov=False, minp=None):
cdef:
Py_ssize_t i, j, xi, yi, N, K
bint minpv
... | Some perf-neutral cleanups to simplify an eventual `nancorr` perf improvement.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42757 | 2021-07-27T23:19:33Z | 2021-07-28T00:06:46Z | 2021-07-28T00:06:46Z | 2021-07-28T00:25:02Z |
Backport PR #42453 on branch 1.3.x (BUG: TypeError when shifting DataFrame created by concatenation of slices and fills with values) | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 84e2f1ad33809..f4804215db8c1 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Performance regression in :meth:`DataFrame.isin` and :meth:`Series.isin` for nullable da... | Backport PR #42453: BUG: TypeError when shifting DataFrame created by concatenation of slices and fills with values | https://api.github.com/repos/pandas-dev/pandas/pulls/42754 | 2021-07-27T19:59:19Z | 2021-07-27T21:11:29Z | 2021-07-27T21:11:29Z | 2021-07-27T21:11:29Z |
TST: doctest fix for pandas.io.formats.style_render._parse_latex_tabl… | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index 41818e087df9c..f1c5f3ac3a2bd 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -1251,7 +1251,7 @@ def _parse_latex_table_styles(table_styles: CSSStyles, selector: str) -> str | N
Examp... | The following commit fixes the doctest in _parse_latex_table_styles.
- [X] closes #42674
| https://api.github.com/repos/pandas-dev/pandas/pulls/42752 | 2021-07-27T18:00:17Z | 2021-07-28T01:09:32Z | 2021-07-28T01:09:32Z | 2021-07-28T01:10:28Z |
TST GH27994 Add test for dropping empty list / index for a DataFrame … | diff --git a/pandas/tests/frame/methods/test_drop.py b/pandas/tests/frame/methods/test_drop.py
index b3eeab9db4ad5..be29a3e50b9fa 100644
--- a/pandas/tests/frame/methods/test_drop.py
+++ b/pandas/tests/frame/methods/test_drop.py
@@ -8,6 +8,7 @@
import pandas as pd
from pandas import (
DataFrame,
+ DatetimeInd... | …with a non-unique datetime index.
- [ ] closes GH#27994 pandas-dev/pandas/issues/27994
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42746 | 2021-07-27T06:30:20Z | 2021-07-28T01:03:52Z | 2021-07-28T01:03:52Z | 2021-07-28T01:03:56Z |
[BUG] don't mangle null-objects in value_counts | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 155dd6f8e13a0..d8578ed604ae3 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -152,6 +152,18 @@ def time_value_counts(self, N, dtype):
self.s.value_counts()
... | - [x] closes #42688
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Null-like values are no longer mangled in `value_counts`.
This was overlooked in #22296... | https://api.github.com/repos/pandas-dev/pandas/pulls/42743 | 2021-07-27T05:38:16Z | 2021-11-12T14:57:14Z | 2021-11-12T14:57:13Z | 2021-11-12T14:57:18Z |
REF: GroupBy._get_cythonized_result | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index aad43e4f96b81..9c695148a75c0 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2897,16 +2897,15 @@ def _get_cythonized_result(
ids, _, ngroups = grouper.group_info
output: dict[base.... | This is preparatory to making get_cythonized_result operate blockwise, which should improve perf a decent amount | https://api.github.com/repos/pandas-dev/pandas/pulls/42742 | 2021-07-27T03:17:13Z | 2021-07-28T01:27:00Z | 2021-07-28T01:27:00Z | 2021-07-28T18:06:19Z |
DEPR: special-casing dt64/td64 in Series.unique | diff --git a/pandas/core/base.py b/pandas/core/base.py
index 7d51b50f783a5..99a14166055f3 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -15,6 +15,7 @@
cast,
final,
)
+import warnings
import numpy as np
@@ -34,6 +35,7 @@
cache_readonly,
doc,
)
+from pandas.util._exceptions impo... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
```
dti = pd.date_range('2016-01-01', periods=3).repeat(2)
ser = pd.Series(dti)
>>> se... | https://api.github.com/repos/pandas-dev/pandas/pulls/42741 | 2021-07-26T22:55:49Z | 2022-01-16T18:03:51Z | null | 2022-11-28T20:04:48Z |
Backport PR #42735 on branch 1.3.x (REGR: DataFrame.from_records with empty records #42456) | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 5ebe24b379fc9..84e2f1ad33809 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -16,7 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Performance regression in :meth:`DataFrame.isin` and :meth:`Series.is... | Backport PR #42735: REGR: DataFrame.from_records with empty records #42456 | https://api.github.com/repos/pandas-dev/pandas/pulls/42740 | 2021-07-26T22:29:38Z | 2021-07-27T07:50:07Z | 2021-07-27T07:50:07Z | 2021-07-27T07:50:08Z |
REGR: DataFrame.from_records with empty records #42456 | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 5ebe24b379fc9..84e2f1ad33809 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -16,7 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Performance regression in :meth:`DataFrame.isin` and :meth:`Series.is... | - [x] closes #42456
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42735 | 2021-07-26T19:45:00Z | 2021-07-26T22:29:04Z | 2021-07-26T22:29:04Z | 2021-07-26T22:30:45Z |
CI: Add numba back to 3.9 env | diff --git a/ci/deps/actions-39-slow.yaml b/ci/deps/actions-39-slow.yaml
index a39504bae1bca..dbfcf98a3203b 100644
--- a/ci/deps/actions-39-slow.yaml
+++ b/ci/deps/actions-39-slow.yaml
@@ -23,6 +23,7 @@ dependencies:
- matplotlib
- moto>=1.3.14
- flask
+ - numba
- numexpr
- numpy
- openpyxl
diff --gi... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Oversight from my other PR syncing 3.9 builds | https://api.github.com/repos/pandas-dev/pandas/pulls/42734 | 2021-07-26T17:29:39Z | 2021-07-26T22:31:53Z | 2021-07-26T22:31:53Z | 2021-07-27T22:57:10Z |
CI: Fix asv | diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py
index f29b2fc663eed..c83cd9a925f6d 100644
--- a/asv_bench/benchmarks/reshape.py
+++ b/asv_bench/benchmarks/reshape.py
@@ -102,6 +102,7 @@ def setup(self, dtype):
columns = np.arange(n)
if dtype == "int":
values... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42732 | 2021-07-26T16:24:26Z | 2021-07-26T22:24:45Z | 2021-07-26T22:24:45Z | 2021-07-26T22:28:27Z |
DOC: move release note PR #42644 | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 0cef77a5150f6..5ebe24b379fc9 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Performance regression in :meth:... | move release note PR #42644
no backport required. | https://api.github.com/repos/pandas-dev/pandas/pulls/42730 | 2021-07-26T14:56:21Z | 2021-07-26T18:47:32Z | 2021-07-26T18:47:32Z | 2021-07-26T18:48:09Z |
REF: dont catch TypeError in Loc | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index f7b42bce631f5..b4e8a763d1210 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -2836,7 +2836,7 @@ def _maybe_to_slice(loc):
try:
return self._engine.get_loc(key)
except... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42729 | 2021-07-26T14:55:02Z | 2021-07-26T22:37:51Z | 2021-07-26T22:37:51Z | 2021-07-26T22:41:05Z |
Backport PR #42644: BUG: KeyError when a series popped from data frame with bool indexer | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index 0cef77a5150f6..5ebe24b379fc9 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Performance regression in :meth:... | Backport PR #42644 | https://api.github.com/repos/pandas-dev/pandas/pulls/42728 | 2021-07-26T14:46:43Z | 2021-07-26T18:49:15Z | 2021-07-26T18:49:15Z | 2021-07-26T18:49:19Z |
Backport PR #42714 on branch 1.3.x (PERF/REGR: isin slowdown for masked type) | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index b136d6207681b..0cef77a5150f6 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Performance regression in :met... | Backport PR #42714: PERF/REGR: isin slowdown for masked type | https://api.github.com/repos/pandas-dev/pandas/pulls/42726 | 2021-07-26T14:35:08Z | 2021-07-26T17:26:00Z | 2021-07-26T17:26:00Z | 2021-07-26T17:26:00Z |
TST: test_column_types_consistent | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index 85accac5a8235..c7c745be279ee 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -143,6 +143,37 @@ def test_setitem_from_duplicate_axis(self):
)
tm.assert_frame_equal(df, expe... | - [x] closes #26779
- [x] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
This PR adds a test for the following issue: #26779 | https://api.github.com/repos/pandas-dev/pandas/pulls/42725 | 2021-07-26T14:26:49Z | 2021-07-28T01:02:24Z | 2021-07-28T01:02:24Z | 2021-07-28T01:02:28Z |
Backport PR #42715 on branch 1.3.x (Pin xarray to get ci passing) | diff --git a/environment.yml b/environment.yml
index 500b8148a94d8..20b7272e12ebb 100644
--- a/environment.yml
+++ b/environment.yml
@@ -109,7 +109,7 @@ dependencies:
- fsspec>=0.7.4, <2021.6.0 # for generic remote file operations
- gcsfs>=0.6.0 # file IO when using 'gcs://...' path
- sqlalchemy # pandas.re... | Backport PR #42715: Pin xarray to get ci passing | https://api.github.com/repos/pandas-dev/pandas/pulls/42723 | 2021-07-26T09:27:14Z | 2021-07-26T11:14:22Z | 2021-07-26T11:14:22Z | 2021-07-26T11:14:22Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 3a07aae11dc1b..093c36a19d751 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -9,7 +9,7 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/python/black
- rev: 21.6b0
+ rev: 21.7b0
... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/42721 | 2021-07-26T07:11:44Z | 2021-07-26T07:18:47Z | null | 2021-07-26T07:18:47Z |
CLN: clean the conda-to-pip script | diff --git a/scripts/generate_pip_deps_from_conda.py b/scripts/generate_pip_deps_from_conda.py
index 1ad9ec03925a0..5117150be67c3 100755
--- a/scripts/generate_pip_deps_from_conda.py
+++ b/scripts/generate_pip_deps_from_conda.py
@@ -13,17 +13,17 @@
$ python scripts/generate_pip_deps_from_conda.py --compare
"""
i... | precursor of #42304
| https://api.github.com/repos/pandas-dev/pandas/pulls/42720 | 2021-07-26T05:05:58Z | 2021-07-26T12:34:14Z | 2021-07-26T12:34:14Z | 2021-08-17T04:17:55Z |
TST: Fixed doctest in Styler.to_latex #42672 | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 91a301b665f7c..58dc9d780d181 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -536,7 +536,7 @@ def to_latex(
>>> df = pd.DataFrame([[1,2], [3,4]])
>>> s = df.style.highlight_max(axis=None,
..... | - [x] closes #42672
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42718 | 2021-07-25T20:38:18Z | 2021-07-28T00:05:24Z | 2021-07-28T00:05:23Z | 2021-07-28T00:05:29Z |
Pin xarray to get ci passing | diff --git a/environment.yml b/environment.yml
index cfcb14d2cf7a9..32b724900510f 100644
--- a/environment.yml
+++ b/environment.yml
@@ -108,7 +108,7 @@ dependencies:
- fsspec>=0.7.4, <2021.6.0 # for generic remote file operations
- gcsfs>=0.6.0 # file IO when using 'gcs://...' path
- sqlalchemy # pandas.re... | - [x] xref #42716
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Pinning until fixed | https://api.github.com/repos/pandas-dev/pandas/pulls/42715 | 2021-07-25T19:27:06Z | 2021-07-26T09:26:40Z | 2021-07-26T09:26:40Z | 2021-07-26T12:40:50Z |
PERF/REGR: isin slowdown for masked type | diff --git a/doc/source/whatsnew/v1.3.2.rst b/doc/source/whatsnew/v1.3.2.rst
index b136d6207681b..0cef77a5150f6 100644
--- a/doc/source/whatsnew/v1.3.2.rst
+++ b/doc/source/whatsnew/v1.3.2.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Performance regression in :met... | xref #42708
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Fixes `isin` slowdowns mentioned in https://simonjayhawkins.github.io/fantastic-dollop/#regressions?sort=3&dir=desc&branch=... | https://api.github.com/repos/pandas-dev/pandas/pulls/42714 | 2021-07-25T19:08:47Z | 2021-07-26T14:34:32Z | 2021-07-26T14:34:32Z | 2021-07-26T14:35:56Z |
Use find_stack_level for SettingWithCopyWarning | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8a05f7be0cc2e..8b82021375a28 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3745,7 +3745,7 @@ def _set_item_mgr(self, key, value: ArrayLike) -> None:
# try to set first as we want an invalid
# value exception to occur fir... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
As discussed a few days ago
| https://api.github.com/repos/pandas-dev/pandas/pulls/42713 | 2021-07-25T18:09:31Z | 2021-07-26T12:37:52Z | 2021-07-26T12:37:52Z | 2021-07-26T12:41:35Z |
CLN: replace labels.shape[0] with len(labels) | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 354b87e03e6c4..71fed4d03d980 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -922,9 +922,7 @@ def group_last(rank_t[:, ::1] out,
ndarray[int64_t, ndim=2] nobs
bint runtime_error = False
- # TODO(cython ... | https://api.github.com/repos/pandas-dev/pandas/pulls/42712 | 2021-07-25T17:27:25Z | 2021-07-25T17:42:27Z | null | 2022-11-18T02:20:39Z | |
fixed doctest in styler.to_latex | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 91a301b665f7c..11814c4f7ccc7 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -536,7 +536,18 @@ def to_latex(
>>> df = pd.DataFrame([[1,2], [3,4]])
>>> s = df.style.highlight_max(axis=None,
.... | - [] closes #42672
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42711 | 2021-07-25T16:08:30Z | 2021-07-25T17:42:46Z | null | 2021-07-25T20:59:00Z |
DOC use pepy-tech badge in README instead of conda-forge one | diff --git a/README.md b/README.md
index 04b346c198e90..7bb77c70ab682 100644
--- a/README.md
+++ b/README.md
@@ -12,7 +12,7 @@
[](https://github.com/pandas-dev/pandas/blob/master/LICENSE)
[ for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/42710 | 2021-07-25T16:02:56Z | 2021-09-12T19:13:14Z | 2021-09-12T19:13:14Z | 2021-09-12T19:14:58Z |
updated empty in `pandas.DataFrame.empty` or `pandas.Series.empty` docstrings | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 7865cdb0455b2..ae9a62636e193 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1934,15 +1934,15 @@ def __contains__(self, key) -> bool_t:
@property
def empty(self) -> bool_t:
"""
- Indicator whether DataFrame... | - [x] closes ##42697
| https://api.github.com/repos/pandas-dev/pandas/pulls/42709 | 2021-07-25T16:01:53Z | 2021-08-27T08:11:10Z | null | 2021-08-27T08:11:10Z |
Backport PR #42687 on branch 1.3.x (DOC: Start v1.3.2 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 08f46a53cf2f1..1978913da4073 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.3
.. toctree::
:maxdepth: 2
+ v1.3.2
v1.3.1
v1.3.0
diff --git a/doc/source/whatsnew/... | Backport PR #42687: DOC: Start v1.3.2 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/42707 | 2021-07-25T12:31:23Z | 2021-07-25T13:23:43Z | 2021-07-25T13:23:43Z | 2021-07-25T13:23:43Z |
DOC: NumericIndex | diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst
index 1a8c21a2c1a74..6e58f487d5f4a 100644
--- a/doc/source/reference/indexing.rst
+++ b/doc/source/reference/indexing.rst
@@ -170,6 +170,7 @@ Numeric Index
:toctree: api/
:template: autosummary/class_without_autosummary.rst
+ ... | - [x] closes #41272
Docs etc. for the newly added NumericIndex (#41153) + adding NumericIndex to the public namespace. | https://api.github.com/repos/pandas-dev/pandas/pulls/42706 | 2021-07-25T09:03:51Z | 2021-08-13T16:23:56Z | 2021-08-13T16:23:56Z | 2021-08-13T16:32:24Z |
TST: fixed eng_formatter doctest for #42671 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9f59958b4e827..f481ecf7a97ed 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -121,6 +121,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pandas/io/parsers/ \
pandas/io/sas/ \
pandas/io/sql.py \
+ pandas/io/formats/for... | - [x] closes #42671
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] fixed the doctest error in the docs for format.py
| https://api.github.com/repos/pandas-dev/pandas/pulls/42705 | 2021-07-25T09:01:34Z | 2021-07-30T15:51:31Z | 2021-07-30T15:51:30Z | 2021-07-30T15:57:14Z |
PERF: unstack | diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py
index 232aabfb87c58..f29b2fc663eed 100644
--- a/asv_bench/benchmarks/reshape.py
+++ b/asv_bench/benchmarks/reshape.py
@@ -111,7 +111,7 @@ def setup(self, dtype):
values = np.take(list(string.ascii_letters), indices)
... | ```
from asv_bench.benchmarks.reshape import *
self = ReshapeExtensionDtype()
self.setup("Period[s]")
%timeit self.time_unstack_fast("Period[s]")
23.2 ms ± 1.15 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master
9.37 ms ± 128 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR
... | https://api.github.com/repos/pandas-dev/pandas/pulls/42704 | 2021-07-25T01:47:47Z | 2021-07-26T12:43:36Z | 2021-07-26T12:43:36Z | 2021-07-26T16:12:55Z |
PERF: DataFrame constructor | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 08f30f467dfa7..7fbcc7f3b2bc3 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -165,6 +165,7 @@ Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Performance improvement in :meth:`.GroupBy.sample`, e... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
Re-implement #42631 without the bug-causing caching of Block.values | https://api.github.com/repos/pandas-dev/pandas/pulls/42702 | 2021-07-24T16:06:21Z | 2021-07-26T22:35:04Z | 2021-07-26T22:35:04Z | 2021-07-26T22:36:35Z |
TST: fix read_stata doctest #42670 | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index d04d0eaee6ec4..46c03458e32c4 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -123,6 +123,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pandas/io/sql.py \
pandas/io/formats/format.py \
pandas/io/formats/style.py \
+ ... | - [x] closes #42670
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] example docstring code fixed for read_strata
| https://api.github.com/repos/pandas-dev/pandas/pulls/42701 | 2021-07-24T13:57:49Z | 2021-07-31T17:46:15Z | 2021-07-31T17:46:15Z | 2021-07-31T18:05:26Z |
TST: Solution to doctest error in _parse_latex_header_span | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9f59958b4e827..53536aa211f8e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -121,7 +121,8 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pandas/io/parsers/ \
pandas/io/sas/ \
pandas/io/sql.py \
- pandas/tseries/
+ ... | The following commit fixes the doctext in _parse_latex_header_span. Solves issue #42673
- [X] closes #42673
| https://api.github.com/repos/pandas-dev/pandas/pulls/42700 | 2021-07-24T13:18:05Z | 2021-07-26T22:39:09Z | 2021-07-26T22:39:09Z | 2021-07-26T22:39:14Z |
Backport PR #42686 on branch 1.3.x (DOC: 1.3.1 release date) | diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst
index 099d818236bd2..0297aeecf01a6 100644
--- a/doc/source/whatsnew/v1.3.1.rst
+++ b/doc/source/whatsnew/v1.3.1.rst
@@ -1,6 +1,6 @@
.. _whatsnew_131:
-What's new in 1.3.1 (July ??, 2021)
+What's new in 1.3.1 (July 25, 2021)
---------------... | Backport PR #42686: DOC: 1.3.1 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/42699 | 2021-07-24T11:19:30Z | 2021-07-24T12:15:55Z | 2021-07-24T12:15:55Z | 2021-07-24T12:15:55Z |
Revert "PERF: DataFrame construction" | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index 7fbcc7f3b2bc3..08f30f467dfa7 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -165,7 +165,6 @@ Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Performance improvement in :meth:`.GroupBy.sample`, e... | Reverts pandas-dev/pandas#42631
reverting to get ci to green quickly. @jbrockmendel can you re-open original PR | https://api.github.com/repos/pandas-dev/pandas/pulls/42698 | 2021-07-24T09:42:29Z | 2021-07-24T10:57:39Z | 2021-07-24T10:57:39Z | 2021-07-24T15:57:08Z |
Backport PR #42640 on branch 1.3.x (BUG: Fix bug in SeriesGroupBy.value_counts when DataFrame has one row (#42618)) | diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst
index 33f286fccccef..5298d12ad32db 100644
--- a/doc/source/whatsnew/v1.3.1.rst
+++ b/doc/source/whatsnew/v1.3.1.rst
@@ -27,7 +27,7 @@ Fixed regressions
- Bug in :class:`Series` constructor not accepting a ``dask.Array`` (:issue:`38645`)
- Fi... | Backport PR #42640: BUG: Fix bug in SeriesGroupBy.value_counts when DataFrame has one row (#42618) | https://api.github.com/repos/pandas-dev/pandas/pulls/42696 | 2021-07-24T03:29:31Z | 2021-07-24T08:25:53Z | 2021-07-24T08:25:53Z | 2021-07-24T08:25:53Z |
Backport PR #42622 on branch 1.3.x (BUG: `Styler.set_sticky` not handling display of `index names`. 1/2) | diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst
index 33f286fccccef..70bfc349607da 100644
--- a/doc/source/whatsnew/v1.3.1.rst
+++ b/doc/source/whatsnew/v1.3.1.rst
@@ -37,6 +37,7 @@ Bug fixes
~~~~~~~~~
- Fixed bug in :meth:`DataFrame.transpose` dropping values when the DataFrame had an Ex... | Backport PR #42622: BUG: `Styler.set_sticky` not handling display of `index names`. 1/2 | https://api.github.com/repos/pandas-dev/pandas/pulls/42695 | 2021-07-23T23:26:01Z | 2021-07-24T08:21:12Z | 2021-07-24T08:21:12Z | 2021-07-24T08:21:12Z |
Backport PR #42692 on branch 1.3.x (Regression in merge_asof raising KeyError when at least one by columnis in index) | diff --git a/doc/source/whatsnew/v1.3.1.rst b/doc/source/whatsnew/v1.3.1.rst
index 33f286fccccef..bdb66413506cc 100644
--- a/doc/source/whatsnew/v1.3.1.rst
+++ b/doc/source/whatsnew/v1.3.1.rst
@@ -26,6 +26,7 @@ Fixed regressions
- Regression in :func:`concat` between objects with bool dtype and integer dtype casting t... | Backport PR #42692: Regression in merge_asof raising KeyError when at least one by columnis in index | https://api.github.com/repos/pandas-dev/pandas/pulls/42694 | 2021-07-23T23:15:15Z | 2021-07-24T08:18:10Z | 2021-07-24T08:18:09Z | 2021-07-24T08:18:10Z |
CLN: NumericIndex clean-up | diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py
index 24f3df684ab10..bb9a2688f0485 100644
--- a/pandas/core/indexes/numeric.py
+++ b/pandas/core/indexes/numeric.py
@@ -80,22 +80,21 @@
class NumericIndex(Index):
- """
- Provide numeric type operations.
-
- This is an abstract c... | A small clean-up, seperated out from #41153.
| https://api.github.com/repos/pandas-dev/pandas/pulls/42693 | 2021-07-23T21:01:36Z | 2021-07-23T23:23:34Z | 2021-07-23T23:23:34Z | 2021-07-24T08:51:17Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.