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 |
|---|---|---|---|---|---|---|---|
PERF: Series slicing | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index deb9fa6d816d5..273b42d725a91 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -93,7 +93,6 @@
ensure_platform_int,
is_any_real_numeric_dtype,
is_bool_dtype,
- is_categorical_dtype,
is_dtype_eq... | ```
import pandas as pd
ser = pd.Series(range(300_000))
%timeit ser[:30]
29.2 µs ± 749 ns per loop (mean ± std. dev. of 7 runs, 10,000 loops each) # <- main
15.7 µs ± 459 ns per loop (mean ± std. dev. of 7 runs, 100,000 loops each) # <- PR
```
BTW in this branch, `__finalize__` takes 13.6% of the runtime i... | https://api.github.com/repos/pandas-dev/pandas/pulls/52145 | 2023-03-23T22:02:32Z | 2023-03-24T17:10:04Z | 2023-03-24T17:10:04Z | 2023-03-24T17:51:22Z |
Update README.md | diff --git a/README.md b/README.md
index 38f4afb3e2f22..b9b47c174dbc5 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
<div align="center">
<img src="https://pandas.pydata.org/static/img/pandas.svg"><br>
</div>
-
+test
-----------------
# pandas: powerful Python data analysis toolkit
diff --git a/asv_ben... | - [ ] 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/52144 | 2023-03-23T21:38:05Z | 2023-03-23T22:13:52Z | null | 2023-03-23T22:13:52Z |
API/BUG: Make `to_json` `index=` arg consistent with `orient` arg | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 36b2aa3c28da5..707baf959654a 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -92,12 +92,12 @@ Other enhancements
- Implemented ``__pandas_priority__`` to allow custom types to take precedence over :cl... | Updates `to_json` with less surprising behavior with the `index` arg:
- split and table allow index=True/False (as before)
- records and values only allow index=False
- index and columns only allow index=True
- raise for contradictions in the latter two and update messages
- add test
- [x] closes #25513, cl... | https://api.github.com/repos/pandas-dev/pandas/pulls/52143 | 2023-03-23T21:31:56Z | 2023-05-11T01:01:49Z | 2023-05-11T01:01:49Z | 2024-04-05T19:38:01Z |
DOC/CI: [PoC] surface doc preview in PRs | diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml
index 9840596357d26..a790ab2f1edfd 100644
--- a/.github/workflows/docbuild-and-upload.yml
+++ b/.github/workflows/docbuild-and-upload.yml
@@ -89,7 +89,11 @@ jobs:
retention-days: 14
- name: Trigger web/doc... | Proof of concept for 1./2. of https://github.com/pandas-dev/pandas/pull/52038#issuecomment-1481075756. | https://api.github.com/repos/pandas-dev/pandas/pulls/52139 | 2023-03-23T12:55:20Z | 2023-04-04T08:55:30Z | null | 2023-04-04T09:20:20Z |
DOC update contributors | diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py
index 1c45c03f36d64..89361eb75606c 100755
--- a/doc/sphinxext/announce.py
+++ b/doc/sphinxext/announce.py
@@ -39,6 +39,9 @@
from git import Repo
+# Contributors to be renamed.
+CONTRIBUTOR_MAPPING = {"znkjnffrezna": "znetbgcubravk"}
+
UTF8Writer =... | In the Slack channel, a contributor has been requested to be renamed due to having changed their legal name
I think it's a reasonable request, we can just add a mapping within `announce.py` to map the old name to the new one (I've just encoded them to avoid hard-coding someone's name in a file) | https://api.github.com/repos/pandas-dev/pandas/pulls/52138 | 2023-03-23T10:31:49Z | 2023-04-12T19:10:12Z | 2023-04-12T19:10:12Z | 2023-04-12T19:10:12Z |
DOC: ddof in cov when nans present | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index a2e3b6fc10e43..e896369a1d876 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10563,6 +10563,7 @@ def cov(
ddof : int, default 1
Delta degrees of freedom. The divisor used in calculations
is ``N - ddof``, ... | - [x] closes #47042
- [ ] [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/52137 | 2023-03-23T10:07:55Z | 2023-03-27T20:23:09Z | 2023-03-27T20:23:09Z | 2023-03-28T00:03:10Z |
BUG: quantile only working with categorical NAs | diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py
index 7647f321e1d4b..831b0b410e20c 100644
--- a/pandas/core/array_algos/quantile.py
+++ b/pandas/core/array_algos/quantile.py
@@ -217,7 +217,7 @@ def _nanpercentile(
result = result.astype(values.dtype, copy=False)
... | # WIP
closes #52099
- [ ] [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/52136 | 2023-03-23T10:02:28Z | 2023-04-24T18:45:23Z | null | 2023-04-24T18:45:23Z |
BUG: change lxml remove to drop_tree (#51629) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index a37bdf11c66bc..ee11777cfbe0c 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -196,6 +196,7 @@ MultiIndex
I/O
^^^
+- Bug in :func:`read_html`, tail texts were removed together with elements containi... | According to [this SO question](https://stackoverflow.com/questions/42932828/how-delete-tag-from-node-in-lxml-without-tail) `remove` method removes tail text. In order to preserve it the method was changed to `drop_tree`. Appropriate test was added.
- [x] closes #51629
- [x] [Tests added and passed](https://pandas.... | https://api.github.com/repos/pandas-dev/pandas/pulls/52135 | 2023-03-23T09:55:10Z | 2023-03-24T17:14:23Z | 2023-03-24T17:14:23Z | 2023-03-24T17:38:49Z |
REF: implement NDFrame._from_mgr | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 1b2aa1d053240..f98a08810c3ff 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -735,7 +735,7 @@ def apply(self) -> DataFrame | Series:
with np.errstate(all="ignore"):
results = self.obj._mgr.apply("apply", func=se... | - [ ] 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/52132 | 2023-03-23T03:07:30Z | 2023-06-25T20:23:17Z | 2023-06-25T20:23:17Z | 2023-06-25T20:56:57Z |
DEPR: Categorical.to_list, NDFrame.align broadcast_axis | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 706dcaa34366a..ba6e0bcce0bb4 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -104,11 +104,13 @@ Deprecations
- Deprecated the default of ``observed=False`` in :meth:`DataFrame.groupby` and :meth:`Seri... | - [x] closes #51254 (Replace xxxx with the GitHub issue number)
- [x] closes #51856
- [ ] [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-do... | https://api.github.com/repos/pandas-dev/pandas/pulls/52130 | 2023-03-23T01:13:41Z | 2023-03-23T15:37:12Z | 2023-03-23T15:37:12Z | 2023-03-23T15:50:48Z |
BUG, DEPR, PERF: GroupBy aggregations | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 706dcaa34366a..a300736f948c1 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -100,6 +100,7 @@ Deprecations
~~~~~~~~~~~~
- Deprecated silently dropping unrecognized timezones when parsing strings to d... | The BUG is failing to raise for dt64/period 'var'
The DEPR is for Groupby.any/all, which we already deprecated for Series/DataFrame with these dtypes
The PERF is for Categorical dtype raising cases, raising directly instead of going through the (copy-making) agg_py_fallback path | https://api.github.com/repos/pandas-dev/pandas/pulls/52128 | 2023-03-22T22:56:20Z | 2023-03-23T15:41:09Z | 2023-03-23T15:41:09Z | 2023-03-23T15:50:10Z |
Backport PR #52058 on branch 2.0.x (BUG: to_sql with ArrowExtesionArray) | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 98821549c915e..390eb33d6eefe 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -2075,7 +2075,10 @@ def _dt_round(
return self._round_temporally("round", freq, ambiguous, nonexistent)... | - [ ] 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/52124 | 2023-03-22T20:22:45Z | 2023-03-22T23:19:30Z | 2023-03-22T23:19:30Z | 2023-03-22T23:19:36Z |
DEPR: Deprecate returning a DataFrame in SeriesApply.apply_standard | diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst
index daf5a0e481b8e..3a0aad41933bc 100644
--- a/doc/source/user_guide/cookbook.rst
+++ b/doc/source/user_guide/cookbook.rst
@@ -794,12 +794,12 @@ Apply
index=["I", "II", "III"],
)
- def SeriesFromSubList(aList):
- ... | - [x] closes #52116
- [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/52123 | 2023-03-22T19:06:39Z | 2023-04-07T02:57:31Z | 2023-04-07T02:57:31Z | 2023-04-11T08:38:13Z |
Backport PR #52076 on branch 2.0.x (BUG: Fix regression when using Series with arrow string array) | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 4025435f8d461..47f477a9a4e92 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -750,7 +750,6 @@ cpdef ndarray[object] ensure_string_array(
out = arr.astype(str).astype(object)
out[arr.isna()] = na_value
r... | #52076 | https://api.github.com/repos/pandas-dev/pandas/pulls/52121 | 2023-03-22T18:45:05Z | 2023-03-22T21:31:35Z | 2023-03-22T21:31:35Z | 2023-03-25T05:20:34Z |
PERF: Groupby aggregations with Categorical | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index eb6dd3dbfe7c5..4f21d90ac5116 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -257,7 +257,7 @@ def _disallow_invalid_ops(self, dtype: DtypeObj, is_numeric: bool = False):
# don't go down a group-by-gr... | ```
import numpy as np
np.random.seed(94356)
import pandas as pd
arr = np.arange(5).repeat(10**5)
grps = np.random.randint(0, 3, size=arr.size)
cat = pd.Categorical(arr, ordered=True)
ser = pd.Series(cat)
gb = ser.groupby(grps)
%timeit gb.min()
5.4 ms ± 212 µs per loop (mean ± std. dev. of 7 runs, 100 l... | https://api.github.com/repos/pandas-dev/pandas/pulls/52120 | 2023-03-22T17:56:21Z | 2023-03-22T19:47:09Z | 2023-03-22T19:47:09Z | 2023-03-22T20:05:20Z |
Backport PR #52107 on branch 2.0.x (CI: Correctly set PANDAS_CI on ubuntu builds) | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index 5b0fc28fed837..b7ca0e45352e4 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -27,7 +27,6 @@ jobs:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
pattern: ["n... | Backport PR #52107: CI: Correctly set PANDAS_CI on ubuntu builds | https://api.github.com/repos/pandas-dev/pandas/pulls/52119 | 2023-03-22T17:36:00Z | 2023-03-22T19:31:06Z | 2023-03-22T19:31:06Z | 2023-03-22T19:31:07Z |
BUG: `agg` with dictlike and non-unique col will return wrong type | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index afe361da1114d..4020660f2fd49 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -364,6 +364,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
- Bug in :meth:`DataFrame.stack` losing extension dtypes wh... | - [x] closes #51099 (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/52115 | 2023-03-22T10:44:16Z | 2023-04-11T16:25:45Z | 2023-04-11T16:25:45Z | 2023-04-12T00:27:51Z |
Add fillna_method 'pad' extension array tests | diff --git a/pandas/tests/extension/base/missing.py b/pandas/tests/extension/base/missing.py
index cab81f864d8d8..2523cbf2d6f78 100644
--- a/pandas/tests/extension/base/missing.py
+++ b/pandas/tests/extension/base/missing.py
@@ -117,7 +117,7 @@ def test_fillna_series(self, data_missing):
def test_fillna_series_met... | Should we also be adding `'backfill'`?
- [ ] 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.... | https://api.github.com/repos/pandas-dev/pandas/pulls/52114 | 2023-03-22T06:20:43Z | 2023-03-24T20:07:16Z | null | 2023-03-24T20:07:16Z |
PERF: Use String HashTable in value_counts | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 204393cbb76f2..edb917d65ae56 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -194,15 +194,22 @@ def time_clip(self):
class ValueCounts:
- params = [[10**3, 10**4... | - [ ] xref #14860 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont... | https://api.github.com/repos/pandas-dev/pandas/pulls/52113 | 2023-03-22T03:43:34Z | 2023-08-01T17:17:43Z | null | 2023-08-01T17:17:49Z |
BUG: Fix getsizeof when using Series(obj) and taking into account GC corrections | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 479f6c4d8f69d..b1d721fb90bfb 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -257,6 +257,7 @@ Styler
Other
^^^^^
- Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal set... | Calling __sizeof__ to compute the size of an object produces an error, and in general, this method does not take Garbage Collector corrections into account.
- [x] closes #51858
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/52112 | 2023-03-22T02:49:31Z | 2023-03-24T16:50:17Z | 2023-03-24T16:50:17Z | 2023-03-24T16:50:24Z |
PERF: DatetimeIndex comparison with Timestamp mismatched resos | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 90771eca6fdf1..3eb7159399bb3 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -957,10 +957,17 @@ def _cmp_method(self, other, op):
if not isinstance(other, type(self)):
... | - [x] closes #52080 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52111 | 2023-03-21T23:02:11Z | 2023-03-24T12:16:50Z | 2023-03-24T12:16:50Z | 2023-03-24T16:06:34Z |
PERF: get_block_type | diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py
index cb336d2f718a6..311729d3dc00a 100644
--- a/pandas/core/internals/blocks.py
+++ b/pandas/core/internals/blocks.py
@@ -106,7 +106,6 @@
PeriodArray,
TimedeltaArray,
)
-from pandas.core.arrays.sparse import SparseDtype
from pand... | - [x] closes #48212
- [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/52109 | 2023-03-21T22:13:26Z | 2023-03-22T01:04:48Z | 2023-03-22T01:04:48Z | 2023-04-18T11:03:45Z |
CI: Correctly set PANDAS_CI on ubuntu builds | diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml
index fe318ce80c98d..f990c6edaeb2a 100644
--- a/.github/workflows/ubuntu.yml
+++ b/.github/workflows/ubuntu.yml
@@ -28,7 +28,6 @@ jobs:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
pattern: ["n... | This looks to be not correctly set for all ubuntu builds post https://github.com/pandas-dev/pandas/pull/51640 | https://api.github.com/repos/pandas-dev/pandas/pulls/52107 | 2023-03-21T20:01:52Z | 2023-03-22T17:35:00Z | 2023-03-22T17:35:00Z | 2023-03-22T17:35:04Z |
PERF: use non-copying path for Groupby.skew | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index 1a69f42296aa3..18be65195a55e 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -88,6 +88,15 @@ def group_var(
is_datetimelike: bool = ...,
name: str = ...,
) -> None: ...
+def group_skew(
+ out: np.ndarray, # flo... | It wouldn't surprise me if there are contiguity-related lookup-optimizations that could be done in group_skew.
```
import pandas as pd
import numpy as np
nrows = 10**5
ngroups = 5
ncols = 4
nan_frac = 0.05
arr = np.random.randn(nrows, ncols)
arr[np.random.random(nrows) < nan_frac] = np.nan
df = pd.Dat... | https://api.github.com/repos/pandas-dev/pandas/pulls/52104 | 2023-03-21T15:35:43Z | 2023-03-31T17:17:51Z | 2023-03-31T17:17:51Z | 2023-03-31T18:33:42Z |
ENH: bfill for interval indexing added GH#51503 #51503 | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 694f2201d9f34..725b793cc9b7a 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3900,9 +3900,10 @@ def _check_indexing_method(
"tolerance not implemented yet for MultiIndex"
... | - [x] closes #51503
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/52103 | 2023-03-21T13:37:57Z | 2023-04-24T18:47:14Z | null | 2023-04-24T18:47:15Z |
DOC: improve (dark) theme getting started tutorials | diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css
index 2eb69beb05cb5..e4c5964259349 100644
--- a/doc/source/_static/css/getting_started.css
+++ b/doc/source/_static/css/getting_started.css
@@ -10,6 +10,14 @@
font-size: 0.9rem;
}
+.gs-data-header {
+ background-... | - [x] closes #51860
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/52097 | 2023-03-21T00:21:48Z | 2023-03-31T06:36:48Z | 2023-03-31T06:36:48Z | 2023-03-31T06:36:48Z |
ENH: support na_action in SparseArray.map | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 3c18bb9371c33..0df3e48a274f4 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -36,6 +36,7 @@ Other enhancements
- :class:`api.extensions.ExtensionArray` now has a :meth:`~api.extensions.ExtensionArray.... | - [x] closes #52095
- [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/52096 | 2023-03-20T22:22:25Z | 2023-03-22T17:39:34Z | 2023-03-22T17:39:34Z | 2023-03-22T17:57:03Z |
DOC: Remove old SparseDataFrame/SparseSeries references | diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst
index c86208e70af3c..25bcb8bcc0c93 100644
--- a/doc/source/user_guide/sparse.rst
+++ b/doc/source/user_guide/sparse.rst
@@ -153,70 +153,14 @@ the correct dense result.
np.abs(arr)
np.abs(arr).to_dense()
-.. _sparse.migration:
-
-... | `SparseDataFrame`/`SparseSeries` were removed in v1.0, so it's time to remove the migration docs. | https://api.github.com/repos/pandas-dev/pandas/pulls/52092 | 2023-03-20T19:55:54Z | 2023-03-21T17:09:28Z | 2023-03-21T17:09:28Z | 2023-03-21T18:15:21Z |
REF: GroupBy.any/all use WrappedCythonOp | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index dd8487e5702d0..12ecf5d54b356 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -95,7 +95,6 @@ class providing the base-class of operations.
from pandas.core._numba import executor
from pandas.core.arra... | - [ ] 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/52089 | 2023-03-20T17:37:25Z | 2023-03-20T20:37:23Z | 2023-03-20T20:37:23Z | 2023-03-20T20:39:06Z |
Backport PR #52054 on branch 2.0.x (PERF: Improve performance with copy=True and different dtype) | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index 83ac9c40df680..ac36cb4aa5960 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -22,6 +22,7 @@
npt,
)
+from pandas.core.dtypes.astype import astype_is_view
from pandas... | Backport PR #52054: PERF: Improve performance with copy=True and different dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/52088 | 2023-03-20T16:57:12Z | 2023-03-20T20:37:55Z | 2023-03-20T20:37:55Z | 2023-03-20T20:37:55Z |
BUG: Fix some more arrow CSV tests | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 9f5d6011a7780..16cee24f5e9df 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -284,7 +284,8 @@ Period
- :meth:`PeriodIndex.map` with ``na_action="ignore"`` now works as expected (:issue:`51644`)
- Bug... | - [ ] 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/52087 | 2023-03-20T14:44:28Z | 2023-04-10T17:45:13Z | 2023-04-10T17:45:13Z | 2023-12-04T19:13:45Z |
The Value Error saying that empty data was passed with indices specif… | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index aff30d113438e..8e506cd9b8cbe 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -35,6 +35,7 @@ Other enhancements
- Let :meth:`DataFrame.to_feather` accept a non-default :class:`Index` and non-string col... | …ied is now only raised when that is indeed the case.
The following example incorrectly triggers the ValueError saying that "Empty data passed with indices specified."
`pd.DataFrame(np.zeros((0, 2)), columns=['a', 'b', 'c'])`
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/... | https://api.github.com/repos/pandas-dev/pandas/pulls/52084 | 2023-03-20T13:09:17Z | 2023-03-20T20:39:44Z | 2023-03-20T20:39:44Z | 2023-03-20T20:39:54Z |
PERF: improve 2D array access / transpose() for masked dtypes | diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py
index 54bd4220bc060..28bd4db3a15ca 100644
--- a/pandas/core/arrays/boolean.py
+++ b/pandas/core/arrays/boolean.py
@@ -142,6 +142,9 @@ def __from_arrow__(
return BooleanArray._concat_same_type(results)
+_boolean_dtype = BooleanDt... | xref https://github.com/pandas-dev/pandas/issues/52016
For `transpose()` or operations that do a transpose under the hood (eg typically operations with axis=1), this is generally expensive if you have extension dtypes. This explores the possibilities to add a fast path for the specific case of a DataFrame with all-m... | https://api.github.com/repos/pandas-dev/pandas/pulls/52083 | 2023-03-20T12:24:11Z | 2023-08-01T17:17:05Z | null | 2023-08-01T17:17:11Z |
DataFrame pivot_table nunique aggfunc test GH#29080 | diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py
index 93217fc4ce3b0..3df16d876638a 100644
--- a/pandas/tests/reshape/test_pivot.py
+++ b/pandas/tests/reshape/test_pivot.py
@@ -2378,6 +2378,43 @@ def test_pivot_table_with_mixed_nested_tuples(self, using_array_manager):
e... | - [ ] closes #29080 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52082 | 2023-03-20T02:10:39Z | 2023-03-24T16:51:45Z | 2023-03-24T16:51:45Z | 2023-03-24T22:54:54Z |
DEPR: be stricter in assert_almost_equal | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 8110d078ce041..4a32374fd33d7 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -265,8 +265,10 @@ Deprecations
- Deprecated logical operation between two non boolean :class:`Series` with different indexe... | - [ ] 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/52081 | 2023-03-20T00:06:42Z | 2023-05-24T20:53:50Z | 2023-05-24T20:53:50Z | 2023-12-06T09:42:22Z |
Simplify windows meson | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index 7f82b613f8cb8..233a455f411bb 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -54,10 +54,7 @@ if pip list | grep -q ^pandas; then
pip uninstall -y pandas || true
fi
-echo "Build extensions"
-python setup.py build_ext -q -j4
-
... | - [ ] 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/52079 | 2023-03-19T21:12:27Z | 2023-03-20T03:34:44Z | null | 2023-03-20T03:34:44Z |
Backport PR #52071: DEPR: Properly enforce group_keys defaulting to False in resample | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index b0aafbc22562e..0636d2edcd0fe 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -1240,18 +1240,8 @@ a common dtype will be determined in the same way as ``DataFrame`` construction.
Control gr... | #52071 | https://api.github.com/repos/pandas-dev/pandas/pulls/52078 | 2023-03-19T20:04:29Z | 2023-03-19T22:34:29Z | 2023-03-19T22:34:29Z | 2023-03-19T22:43:44Z |
BUG: info raising when use_numba is set | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 3f898ca23bd6f..b9e19abd1c1ad 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -162,6 +162,7 @@ Numeric
Conversion
^^^^^^^^^^
- Bug in :meth:`ArrowDtype.numpy_dtype` returning nanosecond units for non... | - [x] closes #51922 (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/52077 | 2023-03-19T18:42:21Z | 2023-03-20T16:40:56Z | 2023-03-20T16:40:56Z | 2023-08-28T21:09:58Z |
BUG: Fix regression when using Series with arrow string array | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index a9fcf6b28953b..88ea61a23a426 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -752,7 +752,6 @@ cpdef ndarray[object] ensure_string_array(
out = arr.astype(str).astype(object)
out[arr.isna()] = na_value
r... | - [x] closes #51844 (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/52076 | 2023-03-19T18:24:52Z | 2023-03-22T16:20:42Z | 2023-03-22T16:20:41Z | 2023-04-28T14:21:12Z |
BUG: Arrow setitem segfaults when len > 145 000 | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 2313e28950de7..ab4cbcf99f470 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -1634,6 +1634,10 @@ def _replace_with_mask(
indices = pa.array(indices, type=pa.int64())
... | - [x] closes #52059 (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/52075 | 2023-03-19T18:00:34Z | 2023-03-27T21:48:30Z | 2023-03-27T21:48:30Z | 2023-03-29T14:02:32Z |
BUG: Corrected TypeError message | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 0856382f6cbdd..ec5d08e75f0e4 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1197,6 +1197,7 @@ Timezones
- Bug in :func:`to_datetime` was failing to parse date strings with timezone name when ``forma... | - [x ] closes #50974 (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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/52074 | 2023-03-19T17:40:43Z | 2023-03-20T22:27:19Z | 2023-03-20T22:27:19Z | 2023-03-21T14:10:40Z |
DOC: Fix docstring for `pandas.util._decorators.doc` | diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py
index 968da7cf60105..29448f4cbfa2a 100644
--- a/pandas/util/_decorators.py
+++ b/pandas/util/_decorators.py
@@ -339,8 +339,8 @@ def wrapper(*args, **kwargs):
def doc(*docstrings: None | str | Callable, **params) -> Callable[[F], F]:
"""
- A... | Trivial PR to fix something I noticed while reading pandas source code. I think most of the below checks don't apply.
- [ ] 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 fixin... | https://api.github.com/repos/pandas-dev/pandas/pulls/52073 | 2023-03-19T16:25:22Z | 2023-03-19T18:46:12Z | 2023-03-19T18:46:12Z | 2023-03-19T18:46:22Z |
WEB: Sort PDEPs by their number | diff --git a/web/pandas_web.py b/web/pandas_web.py
index 9191cde31c20f..7348ac43c81de 100755
--- a/web/pandas_web.py
+++ b/web/pandas_web.py
@@ -317,7 +317,19 @@ def roadmap_pdeps(context):
) as f:
json.dump(pdeps, f)
- for pdep in sorted(pdeps["items"], key=operator.itemgetter("title")):... | Sort PDEPs by their number rather than the title.
- [x] closes #51662
| https://api.github.com/repos/pandas-dev/pandas/pulls/52072 | 2023-03-19T14:31:44Z | 2023-05-22T18:19:55Z | 2023-05-22T18:19:54Z | 2023-05-22T18:20:01Z |
DEPR: Properly enforce group_keys defaulting to False in resample | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 4ec7bfeed93c1..ac4a25728ba5f 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -1241,18 +1241,8 @@ a common dtype will be determined in the same way as ``DataFrame`` construction.
Control gr... | - [ ] 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/52071 | 2023-03-19T13:59:51Z | 2023-03-19T17:00:17Z | 2023-03-19T17:00:17Z | 2023-03-19T22:34:43Z |
CoW: Switch to copy=False everywhere for Series constructor | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 12e09795f2304..7dbb0d260ce47 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -838,7 +838,7 @@ def value_counts(
if bins is not None:
from pandas.core.reshape.tile import cut
- values = Series(values... | - [ ] 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/52068 | 2023-03-18T21:40:27Z | 2023-04-02T20:32:06Z | 2023-04-02T20:32:06Z | 2023-04-03T08:06:49Z |
Optimizing the code for autotyping | diff --git a/scripts/run_autotyping.py b/scripts/run_autotyping.py
index 0a1156399734d..12dd8fce8a0cd 100644
--- a/scripts/run_autotyping.py
+++ b/scripts/run_autotyping.py
@@ -14,10 +14,8 @@
def main(argv: Sequence[str] | None = None) -> None:
parser = argparse.ArgumentParser()
- parser.add_argument("paths"... | 1) Use argparse's default argument instead of checking if not args.paths
2) Use subprocess.run()'s capture_output argument instead of check=True to capture the output of the command
3) Use sys.exit(output.returncode) directly instead of checking the return code
- [ ] closes #52067
- [ ] [Tests added and passed... | https://api.github.com/repos/pandas-dev/pandas/pulls/52067 | 2023-03-18T18:20:53Z | 2023-03-18T19:05:21Z | null | 2023-03-18T19:05:21Z |
REF: ArrowExtensionArray _data -> _pa_array | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 468bc78a79dd5..2313e28950de7 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -217,7 +217,7 @@ class ArrowExtensionArray(
Length: 3, dtype: int64[pyarrow]
""" # noqa: E501 (http l... | Small follow-up to #50987. I think this one line might have been missed in the original PR. | https://api.github.com/repos/pandas-dev/pandas/pulls/52066 | 2023-03-18T17:30:14Z | 2023-03-18T20:01:21Z | 2023-03-18T20:01:21Z | 2023-04-18T11:03:46Z |
TST: Remove some xfails in groupby tests | diff --git a/pandas/tests/groupby/test_api_consistency.py b/pandas/tests/groupby/test_api_consistency.py
index d62ee3593cd44..ac5d0d23c7631 100644
--- a/pandas/tests/groupby/test_api_consistency.py
+++ b/pandas/tests/groupby/test_api_consistency.py
@@ -4,8 +4,6 @@
import inspect
-import pytest
-
from pandas impor... | - [ ] 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/52065 | 2023-03-18T14:49:08Z | 2023-03-20T16:11:37Z | 2023-03-20T16:11:36Z | 2023-04-02T14:22:05Z |
DEPR offsets: rename 'M' to 'ME' | diff --git a/doc/source/getting_started/intro_tutorials/09_timeseries.rst b/doc/source/getting_started/intro_tutorials/09_timeseries.rst
index 470b3908802b2..b0530087e5b84 100644
--- a/doc/source/getting_started/intro_tutorials/09_timeseries.rst
+++ b/doc/source/getting_started/intro_tutorials/09_timeseries.rst
@@ -295... | This pr is related to issue #9586.
Added warning to to_offset(freq) in case freq='M'. This is the first step to deprecate 'M' for MonthEnd.
TODO: let 'M' keep working for Period
example to reproduce:
```
for orig_freq, target_freq in [('10D', '1M'), ('3M', 'Y')]:
print(f"{orig_freq}->{target_freq}")
... | https://api.github.com/repos/pandas-dev/pandas/pulls/52064 | 2023-03-18T14:26:46Z | 2023-09-20T17:00:35Z | 2023-09-20T17:00:35Z | 2023-12-07T10:10:34Z |
CLN: Remove special cases in indexing ops | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 5d8196b778788..6d5daf5025c49 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -734,14 +734,8 @@ def _maybe_mask_setitem_value(self, indexer, value):
if is_scalar_indexer(icols, self.ndim - 1) and ndim == 1:
... | - [ ] 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/52063 | 2023-03-18T13:08:51Z | 2023-03-18T21:41:01Z | 2023-03-18T21:41:01Z | 2023-03-18T21:41:05Z |
CoW: Delay copy when enlarging df with loc | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 2a3119515bb99..6080c55de8a86 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1978,7 +1978,10 @@ def _setitem_with_indexer_frame_value(self, indexer, value: DataFrame, name: str
if item in value:
... | - [ ] 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/52062 | 2023-03-18T13:01:49Z | 2023-05-08T09:46:23Z | 2023-05-08T09:46:23Z | 2023-05-08T09:57:36Z |
CoW: Delay copy when inserting Series into DataFrame | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b6c80a51cec16..5790fe1da454e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4803,8 +4803,8 @@ def insert(
elif isinstance(value, DataFrame):
value = value.iloc[:, 0]
- value, _ = self._sanitize_column(value)
... | - [ ] 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/52061 | 2023-03-17T22:54:42Z | 2023-05-05T17:45:34Z | 2023-05-05T17:45:34Z | 2023-05-05T17:45:39Z |
API CoW: Return read_only NumPy array from ravel | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 05f9eb9c5d5d6..701d94f0c072e 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -771,7 +771,10 @@ def ravel(self, order: str = "C") -> ArrayLike:
--------
numpy.ndarray.ravel : Return a flattened array.
"""
- ... | - [ ] 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/52060 | 2023-03-17T22:30:01Z | 2023-03-29T14:04:53Z | 2023-03-29T14:04:53Z | 2023-04-27T19:53:16Z |
BUG: to_sql with ArrowExtesionArray | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 2313e28950de7..353da80e27464 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -2091,7 +2091,10 @@ def _dt_round(
return self._round_temporally("round", freq, ambiguous, nonexistent)... | - [ ] closes #52046 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52058 | 2023-03-17T20:26:04Z | 2023-03-22T20:19:49Z | 2023-03-22T20:19:49Z | 2023-03-22T20:22:57Z |
PERF: Fix performance regression in read_csv when converting datetimes | diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py
index 9ac31a3e46cd8..57beaa271f2bd 100644
--- a/pandas/io/parsers/base_parser.py
+++ b/pandas/io/parsers/base_parser.py
@@ -60,7 +60,10 @@
)
from pandas.core.dtypes.missing import isna
-from pandas import StringDtype
+from pandas impor... | - [ ] 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/52057 | 2023-03-17T18:48:12Z | 2023-03-29T15:29:27Z | 2023-03-29T15:29:27Z | 2023-03-29T15:33:28Z |
Backport PR #52029 on branch 2.0.x (BUG-CoW: from_records not tracking references when called with df) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index ce9f670df8254..2263c8789f979 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -197,6 +197,9 @@ Copy-on-Write improvements
behavior when the NumPy array is modified after creation of the
:class:`Da... | #52029
| https://api.github.com/repos/pandas-dev/pandas/pulls/52055 | 2023-03-17T17:23:34Z | 2023-03-18T13:02:09Z | 2023-03-18T13:02:09Z | 2023-03-25T05:20:21Z |
PERF: Improve performance with copy=True and different dtype | diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py
index b114b8a1aa7aa..987dce4bcad26 100644
--- a/pandas/core/internals/construction.py
+++ b/pandas/core/internals/construction.py
@@ -17,6 +17,7 @@
from pandas._libs import lib
+from pandas.core.dtypes.astype import astype_i... | - [ ] 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/52054 | 2023-03-17T17:19:02Z | 2023-03-20T16:56:40Z | 2023-03-20T16:56:40Z | 2023-03-20T16:56:52Z |
REF: use WrappedCythonOp for GroupBy.std, sem | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index e3ca9c44d5664..1a69f42296aa3 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -86,6 +86,7 @@ def group_var(
mask: np.ndarray | None = ...,
result_mask: np.ndarray | None = ...,
is_datetimelike: bool = ...,
+ ... | - [ ] 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/52053 | 2023-03-17T16:00:14Z | 2023-03-20T17:17:55Z | 2023-03-20T17:17:55Z | 2023-03-20T17:33:35Z |
CoW: Delay copy when setting Series or Frame with isetitem | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index b6c80a51cec16..44dbb88858c7b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3913,6 +3913,7 @@ def isetitem(self, loc, value) -> None:
In cases where ``frame.columns`` is unique, this is equivalent to
``frame[frame.columns... | - [ ] 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/52051 | 2023-03-17T15:32:57Z | 2023-05-05T17:46:53Z | 2023-05-05T17:46:53Z | 2023-05-05T17:46:58Z |
Backport PR #52040 on branch 2.0.x (CoW: Optimize Series.reset_index to make lazy copy) | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 58e0954a56f97..c3425706877b6 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1579,6 +1579,10 @@ def reset_index(
if inplace:
self.index = new_index
+ elif using_copy_on_write():
+ ... | Backport PR #52040: CoW: Optimize Series.reset_index to make lazy copy | https://api.github.com/repos/pandas-dev/pandas/pulls/52050 | 2023-03-17T15:22:18Z | 2023-03-17T17:17:19Z | 2023-03-17T17:17:19Z | 2023-03-17T17:17:20Z |
Backport PR #52032 on branch 2.0.x (CoW: Set copy=False explicitly internally for Series and DataFrame in io/pytables) | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 7461bad99462c..746c94596162d 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -3125,7 +3125,7 @@ def read(
self.validate_read(columns, where)
index = self.read_index("index", start=start, stop=stop)
values = sel... | Backport PR #52032: CoW: Set copy=False explicitly internally for Series and DataFrame in io/pytables | https://api.github.com/repos/pandas-dev/pandas/pulls/52049 | 2023-03-17T15:09:27Z | 2023-03-17T17:17:06Z | 2023-03-17T17:17:06Z | 2023-03-17T17:17:06Z |
Backport PR #52008 on branch 2.0.x (CoW: Avoid copying Index in Series constructor) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 33367d031cd22..91e8c12339775 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1212,6 +1212,7 @@ Conversion
- Bug in :func:`to_datetime` was not respecting ``exact`` argument when ``format`` was an ISO... | #52008 | https://api.github.com/repos/pandas-dev/pandas/pulls/52048 | 2023-03-17T14:44:22Z | 2023-03-17T17:16:41Z | 2023-03-17T17:16:41Z | 2023-03-17T17:16:47Z |
Backport PR #51731 on branch 2.0.x (API / CoW: Copy NumPy arrays by default in DataFrame constructor) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 33367d031cd22..e32f4dc929ff2 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -190,6 +190,13 @@ Copy-on-Write improvements
of Series objects and specifying ``copy=False``, will now use a lazy copy
... | #51731
| https://api.github.com/repos/pandas-dev/pandas/pulls/52047 | 2023-03-17T14:17:51Z | 2023-03-17T17:18:22Z | 2023-03-17T17:18:22Z | 2023-03-17T17:18:27Z |
Backport PR #51247 on branch 2.0.x (PERF: Construction of a DatetimeIndex from a list of Timestamp with timezone) | diff --git a/.github/workflows/package-checks.yml b/.github/workflows/package-checks.yml
index a1402603e2140..fa1b5e5d4fba3 100644
--- a/.github/workflows/package-checks.yml
+++ b/.github/workflows/package-checks.yml
@@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
- extra: ["test... | #51247 | https://api.github.com/repos/pandas-dev/pandas/pulls/52045 | 2023-03-17T10:11:22Z | 2023-03-17T13:44:08Z | 2023-03-17T13:44:08Z | 2023-03-17T13:44:14Z |
Backport PR #52036 on branch 2.0.x (BUG: Remove unnecessary validation to non-string columns/index in df.to_parquet) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 503f6a50554b8..3afa7ee7c3f03 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1293,6 +1293,7 @@ I/O
- Bug in :func:`read_csv` when ``engine="pyarrow"`` where ``encoding`` parameter was not handled cor... | #52036
| https://api.github.com/repos/pandas-dev/pandas/pulls/52044 | 2023-03-17T09:39:52Z | 2023-03-17T13:42:43Z | 2023-03-17T13:42:43Z | 2023-03-17T17:18:57Z |
REF: uses_mask in group_any_all | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index 0c378acbc6dc3..b3814f666a546 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -565,11 +565,11 @@ def group_any_all(
const uint8_t[:, :] mask,
str val_test,
bint skipna,
- bint nullable,
+ uint8_t[:, ::1] r... | any, all, and std go through GroupBy._get_cythonized_result instead of the more-standard WrappedCythonOp. I'm trying to refactor any/all to use the other path, and as a step toward that am trying to make group_any_all follow the same patterns as the other functions in libgroupby.
The implementation here looks to me... | https://api.github.com/repos/pandas-dev/pandas/pulls/52043 | 2023-03-17T03:36:48Z | 2023-03-17T19:48:49Z | 2023-03-17T19:48:49Z | 2023-03-17T19:51:18Z |
DEPR: support axis=None in DataFrame reductions | diff --git a/doc/source/whatsnew/v0.15.1.rst b/doc/source/whatsnew/v0.15.1.rst
index 07139ebad8737..09b59f35972cd 100644
--- a/doc/source/whatsnew/v0.15.1.rst
+++ b/doc/source/whatsnew/v0.15.1.rst
@@ -102,6 +102,7 @@ API changes
current behavior:
.. ipython:: python
+ :okwarning:
gr.apply(sum)
dif... | - [x] closes #21597 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52042 | 2023-03-17T03:17:19Z | 2023-05-25T16:13:25Z | 2023-05-25T16:13:25Z | 2023-05-25T16:14:23Z |
DataFrame/Series at set value test GH#30649 | diff --git a/pandas/tests/indexing/test_at.py b/pandas/tests/indexing/test_at.py
index 9df6cb640257e..fa162e966c599 100644
--- a/pandas/tests/indexing/test_at.py
+++ b/pandas/tests/indexing/test_at.py
@@ -248,3 +248,33 @@ def test_at_applied_for_rows(self):
match=f"You can only assign a scalar value not a ... |
- [ ] closes #30649 (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/... | https://api.github.com/repos/pandas-dev/pandas/pulls/52041 | 2023-03-17T02:11:53Z | 2023-03-20T12:16:18Z | null | 2023-03-20T12:16:45Z |
CoW: Optimize Series.reset_index to make lazy copy | diff --git a/pandas/core/series.py b/pandas/core/series.py
index b0958869c67f3..515b904da2b9c 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1550,6 +1550,10 @@ def reset_index(
if inplace:
self.index = new_index
+ elif using_copy_on_write():
+ ... | - [ ] 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/52040 | 2023-03-16T23:53:30Z | 2023-03-17T15:22:09Z | 2023-03-17T15:22:09Z | 2023-03-17T15:24:01Z |
WIP/CI/DOC: Build docs in CircleCI and create preview link | diff --git a/.circleci/config.yml b/.circleci/config.yml
index e704c37df3e45..8594cc8fbd2ab 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,95 +1,122 @@
-version: 2.1
-
-jobs:
- test-arm:
- machine:
- image: ubuntu-2004:2022.04.1
- resource_class: arm.large
- environment:
- ... | Trying the same approach to generating the preview of the docs as numpy/scipy/matplotlib, using CircleCI and an action to find the link as a CI job status.
| https://api.github.com/repos/pandas-dev/pandas/pulls/52038 | 2023-03-16T22:24:26Z | 2023-04-07T09:15:19Z | null | 2023-04-07T09:15:19Z |
BUG: Remove unnecessary validation to non-string columns/index in df.to_parquet | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 55185afc0a098..74319b0444659 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1295,6 +1295,7 @@ I/O
- Bug in :func:`read_csv` when ``engine="pyarrow"`` where ``encoding`` parameter was not handled cor... | - [x] closes #52034 (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
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52036 | 2023-03-16T21:40:44Z | 2023-03-17T09:35:53Z | 2023-03-17T09:35:53Z | 2023-03-17T16:40:50Z |
PERF: Don't copy if already sorted in DataSplitter | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index 4c0f3ddd826b7..bcf23ce43a820 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -71,7 +71,7 @@ def time_groupby_apply_dict_return(self):
class Apply:
param_names = ["factor"]
- params = [4,... | - [ ] closes #51077 (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/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/52035 | 2023-03-16T21:24:09Z | 2023-08-01T17:16:21Z | null | 2023-08-01T17:16:27Z |
REF: simplify Series.apply | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 1c2e55c3e37df..db45f140c268e 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -1673,7 +1673,10 @@ def union_with_duplicates(
def map_array(
- arr: ArrayLike, mapper, na_action: Literal["ignore"] | None = None
+ ... | Simplify Series.apply by using `Series._map_values` instead of having custom mapping functionality. | https://api.github.com/repos/pandas-dev/pandas/pulls/52033 | 2023-03-16T20:29:58Z | 2023-03-17T17:22:27Z | 2023-03-17T17:22:27Z | 2023-03-17T17:51:25Z |
CoW: Set copy=False explicitly internally for Series and DataFrame in io/pytables | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 9e4d8c28f33ab..f083ca792c456 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -3126,7 +3126,7 @@ def read(
self.validate_read(columns, where)
index = self.read_index("index", start=start, stop=stop)
values = sel... | I didn't check here when setting copy=False earlier
Follow-up on https://github.com/pandas-dev/pandas/pull/51834. This keeps copy=False internally where necessary, to avoid unnecessary copies as a side-effect of https://github.com/pandas-dev/pandas/pull/51731 (by default copying numpy arrays in the DataFrame constru... | https://api.github.com/repos/pandas-dev/pandas/pulls/52032 | 2023-03-16T20:22:38Z | 2023-03-17T15:08:55Z | 2023-03-17T15:08:55Z | 2023-03-17T15:09:18Z |
BUG-CoW: DataFrame constructed from Series not respecting CoW | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index cdc9cbe0d7261..cb8725f3a776a 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -190,6 +190,9 @@ Copy-on-Write improvements
of Series objects and specifying ``copy=False``, will now use a lazy copy
... | - [ ] 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/52031 | 2023-03-16T20:07:17Z | 2023-03-29T14:06:12Z | 2023-03-29T14:06:12Z | 2023-03-29T14:06:17Z |
ENH/DOC Add notin method | diff --git a/pandas/core/series.py b/pandas/core/series.py
index b0958869c67f3..5344f3faf7182 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -5247,6 +5247,7 @@ def isin(self, values) -> Series:
See Also
--------
+ Series.notin : Boolean inverse of Series.isin.
Data... | - [ ] closes #43959
PD: this is my first PR, don't be too harsh on everything I did wrong :) | https://api.github.com/repos/pandas-dev/pandas/pulls/52030 | 2023-03-16T19:42:57Z | 2023-03-16T20:40:45Z | null | 2023-03-16T20:40:46Z |
BUG-CoW: from_records not tracking references when called with df | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index cdc9cbe0d7261..a8f545c7be05f 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -197,6 +197,9 @@ Copy-on-Write improvements
behavior when the NumPy array is modified after creation of the
:class:`Da... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/52029 | 2023-03-16T19:30:09Z | 2023-03-17T17:21:33Z | 2023-03-17T17:21:33Z | 2023-03-17T17:22:48Z |
BUG: pickling ArrowExtensionArray with _pa_data rename | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index c07aee737934b..551b925f42579 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -433,11 +433,15 @@ def __abs__(self) -> Self:
# https://issues.apache.org/jira/browse/ARROW-10739 is addres... | xref https://github.com/pandas-dev/pandas/pull/50987#discussion_r1134365537 | https://api.github.com/repos/pandas-dev/pandas/pulls/52027 | 2023-03-16T18:47:36Z | 2023-03-16T23:04:03Z | 2023-03-16T23:04:03Z | 2023-03-16T23:10:12Z |
Backport PR #52014 on branch 2.0.x (DOC Change slack invitation from email to link) | diff --git a/doc/source/development/community.rst b/doc/source/development/community.rst
index c536cafce3367..9a4de3c2580ab 100644
--- a/doc/source/development/community.rst
+++ b/doc/source/development/community.rst
@@ -111,9 +111,11 @@ contributing to pandas. The slack is a private space, specifically meant for
peop... | Backport PR #52014: DOC Change slack invitation from email to link | https://api.github.com/repos/pandas-dev/pandas/pulls/52026 | 2023-03-16T18:09:38Z | 2023-03-16T19:31:22Z | 2023-03-16T19:31:22Z | 2023-03-16T19:31:22Z |
API / CoW: Copy arrays by default in Series constructor | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index db69f43e92518..104c4b41a672e 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -193,12 +193,13 @@ Copy-on-Write improvements
- The :class:`DataFrame` constructor, when constructing a DataFrame from a
... | - [ ] closes #50776 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/52022 | 2023-03-16T16:50:31Z | 2023-03-29T16:40:23Z | 2023-03-29T16:40:23Z | 2023-03-29T16:44:12Z |
Re-land PyCapsule | diff --git a/.circleci/setup_env.sh b/.circleci/setup_env.sh
index 52a8cab1cd2de..7f82b613f8cb8 100755
--- a/.circleci/setup_env.sh
+++ b/.circleci/setup_env.sh
@@ -55,8 +55,7 @@ if pip list | grep -q ^pandas; then
fi
echo "Build extensions"
-# GH 47305: Parallel build can causes flaky ImportError from pandas/_libs... | Looks like this was accidentally reverted https://github.com/pandas-dev/pandas/pull/51952#issuecomment-1469076603 https://github.com/pandas-dev/pandas/pull/51951#issuecomment-1470386562 | https://api.github.com/repos/pandas-dev/pandas/pulls/52021 | 2023-03-16T16:31:10Z | 2023-03-18T19:06:48Z | 2023-03-18T19:06:48Z | 2023-03-18T19:07:11Z |
CI: xfail strict=True TestClipboard.test_raw_roundtrip in a CI environment | diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py
index baf2bcdc9386f..3bcf5b823647e 100644
--- a/pandas/tests/io/test_clipboard.py
+++ b/pandas/tests/io/test_clipboard.py
@@ -1,15 +1,10 @@
import os
-import subprocess
from textwrap import dedent
import numpy as np
import pytest
... | Unfortunately clearing out the clipboard in the CI didn't fix the flaky failures. Setting `strict=False` if in our CI
https://github.com/pandas-dev/pandas/actions/runs/4433507399/jobs/7778613334 | https://api.github.com/repos/pandas-dev/pandas/pulls/52020 | 2023-03-16T16:22:15Z | 2023-03-16T18:52:01Z | 2023-03-16T18:52:01Z | 2023-03-16T20:36:47Z |
DOC: remove private parameters from method/constructor signatures | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 204393cbb76f2..83d10d22352cd 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -29,7 +29,7 @@ def time_constructor_no_data(self):
Series(data=None, index=self.idx... | - [x] closes #52028
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/52019 | 2023-03-16T16:16:24Z | 2023-03-31T17:48:02Z | null | 2023-03-31T17:48:03Z |
DEPR: deprecate axis keyword in GroupBy methods | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index e352a73a4e346..96fb64d72c007 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -102,6 +102,7 @@ Deprecations
- Deprecated passing a :class:`DataFrame` to :meth:`DataFrame.from_records`, use :meth:`DataF... | - [x] closes #50405 (Replace xxxx with the GitHub issue number)
- [x] closes #51046
- [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-do... | https://api.github.com/repos/pandas-dev/pandas/pulls/52018 | 2023-03-16T15:41:38Z | 2023-03-17T17:25:06Z | 2023-03-17T17:25:05Z | 2023-03-17T17:25:36Z |
BUG: Series constructor not respecting CoW when called with BlockManager | diff --git a/pandas/core/series.py b/pandas/core/series.py
index e5f2370b395ef..8b6cdbd844aa7 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -385,6 +385,8 @@ def __init__(
and dtype is None
and copy is False
):
+ if using_copy_on_write():
+ ... | - [ ] 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/52017 | 2023-03-16T15:23:21Z | 2023-03-29T14:07:12Z | 2023-03-29T14:07:11Z | 2023-03-29T14:07:16Z |
DOC Change slack invitation from email to link | diff --git a/doc/source/development/community.rst b/doc/source/development/community.rst
index c536cafce3367..9a4de3c2580ab 100644
--- a/doc/source/development/community.rst
+++ b/doc/source/development/community.rst
@@ -111,9 +111,11 @@ contributing to pandas. The slack is a private space, specifically meant for
peop... | Simplified the slack invitation process after discussion with @rhshadrach and @MarcoGorelli.
The current email process is maintenance heavy and until now, we received very little spam. We want to try letting people join themselves and see if spam increases or not.
Local build looked correct. | https://api.github.com/repos/pandas-dev/pandas/pulls/52014 | 2023-03-16T12:29:20Z | 2023-03-16T18:09:26Z | 2023-03-16T18:09:26Z | 2023-03-16T18:09:27Z |
Backport PR #52010 on branch 2.0.x (DEPS: Filter numpy's FutureWarning from array_equal) | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 6c1feded35b5b..c7fc71104442c 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1610,6 +1610,9 @@ def maybe_cast_to_integer_array(arr: list | np.ndarray, dtype: np.dtype) -> np.n
with warnings.catch_warnings():
... | Backport PR #52010: DEPS: Filter numpy's FutureWarning from array_equal | https://api.github.com/repos/pandas-dev/pandas/pulls/52013 | 2023-03-16T09:16:03Z | 2023-03-16T10:28:49Z | null | 2023-03-16T10:28:49Z |
Backport PR #51834: CoW: Set copy=False in internal usages of Series/DataFrame constructors | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ac229c5f50d58..59cea8fc8d99c 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1592,16 +1592,21 @@ def dot(self, other: AnyArrayLike | DataFrame) -> DataFrame | Series:
if isinstance(other, DataFrame):
return self._con... | Backport of https://github.com/pandas-dev/pandas/pull/51834 | https://api.github.com/repos/pandas-dev/pandas/pulls/52012 | 2023-03-16T07:31:09Z | 2023-03-16T09:29:26Z | 2023-03-16T09:29:26Z | 2023-03-16T11:23:50Z |
DEPS: Filter numpy's FutureWarning from array_equal | diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py
index 33b18d7a8c609..39ef8aad52bb7 100644
--- a/pandas/core/dtypes/cast.py
+++ b/pandas/core/dtypes/cast.py
@@ -1611,6 +1611,9 @@ def maybe_cast_to_integer_array(arr: list | np.ndarray, dtype: np.dtype) -> np.n
with warnings.catch_warnings():
... | Looks to be failing on the numpy dev build
The warning is from `np.array_equal` raising it's own FutureWarning: https://github.com/numpy/numpy/issues/23401 | https://api.github.com/repos/pandas-dev/pandas/pulls/52010 | 2023-03-16T02:10:35Z | 2023-03-16T09:15:27Z | 2023-03-16T09:15:27Z | 2023-03-16T15:51:50Z |
Backport PR #52001 on branch 2.0.x (BUG - CoW: Series with MultiIndex with tuples does not respect CoW) | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 4ba63e05bae17..8681da73befdc 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1073,9 +1073,10 @@ def _get_values_tuple(self, key: tuple):
# If key is contained, would have returned by now
indexer, new_index = self.ind... | Backport PR #52001: BUG - CoW: Series with MultiIndex with tuples does not respect CoW | https://api.github.com/repos/pandas-dev/pandas/pulls/52009 | 2023-03-16T00:02:30Z | 2023-03-16T02:16:17Z | 2023-03-16T02:16:17Z | 2023-03-16T02:16:18Z |
CoW: Avoid copying Index in Series constructor | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 5fac93698520f..6e1dcb1e78614 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1209,6 +1209,7 @@ Conversion
- Bug in :func:`to_datetime` was not respecting ``exact`` argument when ``format`` was an ISO... | - [ ] 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/52008 | 2023-03-16T00:01:48Z | 2023-03-17T14:35:51Z | 2023-03-17T14:35:51Z | 2023-03-17T14:43:52Z |
TYP/CLN: remove no-longer-needed overrides | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8fefa47c16bab..78f90eb902ea6 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -97,6 +97,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
pandas.Series.is_monotonic_increasing \
pandas.Series.is_monotonic_decreasing \
... | - [ ] 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/52007 | 2023-03-15T23:28:49Z | 2023-03-17T17:26:55Z | 2023-03-17T17:26:55Z | 2023-03-17T17:27:21Z |
Backport PR #51788 on branch 2.0.x (DOC: Add section about copy on write and mutating objects) | diff --git a/doc/source/user_guide/copy_on_write.rst b/doc/source/user_guide/copy_on_write.rst
index b1d9166782128..e2e7dfa42d115 100644
--- a/doc/source/user_guide/copy_on_write.rst
+++ b/doc/source/user_guide/copy_on_write.rst
@@ -6,11 +6,6 @@
Copy-on-Write (CoW)
*******************
-.. ipython:: python
- :sup... | Backport PR #51788: DOC: Add section about copy on write and mutating objects | https://api.github.com/repos/pandas-dev/pandas/pulls/52006 | 2023-03-15T22:37:32Z | 2023-03-16T00:02:08Z | 2023-03-16T00:02:08Z | 2023-03-16T00:02:08Z |
Backport PR #51950 on branch 2.0.x (BUG: Series.getitem not respecting CoW with MultiIndex) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index 58972e72c7094..f0998f35c1817 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -209,6 +209,9 @@ Copy-on-Write improvements
- :meth:`DataFrame.__getitem__` will now respect the Copy-on-Write mechanism wh... | Backport PR #51950: BUG: Series.getitem not respecting CoW with MultiIndex | https://api.github.com/repos/pandas-dev/pandas/pulls/52005 | 2023-03-15T22:37:00Z | 2023-03-16T00:04:17Z | 2023-03-16T00:04:17Z | 2023-03-16T00:04:17Z |
DEPR: NDFrame._data | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index c4e5ad773ca09..c33d4ab92d4c6 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -5314,6 +5314,7 @@ Read from a parquet file.
Read only certain columns of a parquet file.
.. ipython:: python
+ :okwarning:
... | - [x] closes #33333 (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/52003 | 2023-03-15T21:48:03Z | 2023-03-16T13:05:13Z | 2023-03-16T13:05:13Z | 2023-03-16T14:57:03Z |
"Backport PR #51978 on branch 2.0.x (BUG/API: preserve non-nano in factorize/unique)" | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index ba2f504b4c944..2e5caee99b0a7 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -764,6 +764,7 @@ Other API changes
- Division by zero with :class:`ArrowDtype` dtypes returns ``-inf``, ``nan``, or ``inf``... | * BUG/API: preserve non-nano in factorize/unique
* test
(cherry picked from commit 6a13450cec5996cc14f722069ef9be150f034e03)
- [ ] 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-te... | https://api.github.com/repos/pandas-dev/pandas/pulls/52002 | 2023-03-15T21:43:21Z | 2023-03-16T00:03:06Z | 2023-03-16T00:03:06Z | 2023-03-16T00:03:07Z |
BUG - CoW: Series with MultiIndex with tuples does not respect CoW | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 7050dd0ffb7df..1bdf495c433c7 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1044,9 +1044,10 @@ def _get_values_tuple(self, key: tuple):
# If key is contained, would have returned by now
indexer, new_index = self.ind... | - [ ] 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/52001 | 2023-03-15T21:08:32Z | 2023-03-16T00:02:20Z | 2023-03-16T00:02:20Z | 2023-08-28T21:09:54Z |
Backport PR #51803 on branch 2.0.x (CoW: Add reference tracking to index when created from series) | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index 277243d72c536..7323bdfc4c6d7 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -890,6 +890,16 @@ cdef class BlockValuesRefs:
"""
self.referenced_blocks.append(weakref.ref(blk))
+ def add_index_ref... | #51803 | https://api.github.com/repos/pandas-dev/pandas/pulls/52000 | 2023-03-15T20:45:30Z | 2023-03-16T00:04:54Z | 2023-03-16T00:04:54Z | 2023-03-16T00:04:58Z |
Backport PR #51631 on branch 2.0.x (BUG: Series.any and Series.all for empty or all-null pyarrow-backed dtypes) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index ba2f504b4c944..a06d37d164bc8 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -1360,6 +1360,7 @@ ExtensionArray
- Bug in :class:`Series` constructor unnecessarily overflowing for nullable unsigned inte... | #51631 | https://api.github.com/repos/pandas-dev/pandas/pulls/51999 | 2023-03-15T20:32:22Z | 2023-03-15T22:23:54Z | 2023-03-15T22:23:53Z | 2023-03-16T09:17:17Z |
Backport PR #51302 on branch 2.0.x (ENH: Enable more Arrow CSV tests/features) | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index ba2f504b4c944..1ff98fc9cb9ff 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -270,6 +270,7 @@ Other enhancements
- :func:`to_datetime` now accepts ``"mixed"`` as an argument to ``format``, which will ... | Backport PR #51302: ENH: Enable more Arrow CSV tests/features | https://api.github.com/repos/pandas-dev/pandas/pulls/51998 | 2023-03-15T20:28:40Z | 2023-03-15T22:23:34Z | 2023-03-15T22:23:34Z | 2023-03-15T22:23:35Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.