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: 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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 #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 |
BUG: provide SparseArray creation in a platform independent manner | diff --git a/pandas/sparse/array.py b/pandas/sparse/array.py
index a96663d757e74..486dbaaa624d9 100644
--- a/pandas/sparse/array.py
+++ b/pandas/sparse/array.py
@@ -140,7 +140,7 @@ def __new__(cls, data, sparse_index=None, index=None, kind='integer',
values, sparse_index = make_sparse(data, kind=kind,
... | makes creation w/o specifying a dtype choose `np.int64/float64` regardless of the platform. This is similar to how Series works. This only is exposed on windows (as the default ndarray creation is np.int32) rather than np.int64
maybe _should_ use `pandas.core.series._sanitize_array` (but needs some tweeks I think).
c... | https://api.github.com/repos/pandas-dev/pandas/pulls/12936 | 2016-04-20T21:04:04Z | 2016-04-20T21:33:57Z | 2016-04-20T21:33:57Z | 2016-04-20T21:35:21Z |
BUG: Fixed bug in selecting month/quarter/year from a series would not select correctly (GH3546) | diff --git a/RELEASE.rst b/RELEASE.rst
index 69cfd1eb99d7e..487c18cdb679b 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -79,6 +79,8 @@ pandas 0.11.1
- Fix to_csv to handle non-unique columns (GH3495_)
- Fixed bug in groupby with empty series referencing a variable before assignment. (GH3510_)
- Fixed bug in ... | closes #3546
| https://api.github.com/repos/pandas-dev/pandas/pulls/3548 | 2013-05-08T17:40:05Z | 2013-05-08T17:59:47Z | 2013-05-08T17:59:47Z | 2014-07-16T08:07:40Z |
document read_csv's usecols argument. | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 39f860c63e0e6..097ce7aea5d3a 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -110,6 +110,8 @@ They can take a number of arguments:
- ``verbose``: show number of NA values inserted in non-numeric columns
- ``squeeze``: if True then output with only... | read_csv's usecols is currently not documented here:
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.io.parsers.read_csv.html
This patch fixes that.
| https://api.github.com/repos/pandas-dev/pandas/pulls/3544 | 2013-05-08T01:00:50Z | 2013-05-15T23:31:24Z | 2013-05-15T23:31:24Z | 2014-07-16T08:07:34Z |
PERF: HDFStore table writing performance improvements | diff --git a/RELEASE.rst b/RELEASE.rst
index f3d9c72db8bc5..f80a688c3657e 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -44,6 +44,7 @@ pandas 0.11.1
- will warn with a FrequencyWarning if you are attempting to append
an index with a different frequency than the existing
- support datelike columns with ... | PERF: hdf performance by doing recarray translation in cython
```
-------------------------------------------------------------------------------
Test name | head[ms] | base[ms] | ratio |
-------------------------------------------------------------------------------
write_store_t... | https://api.github.com/repos/pandas-dev/pandas/pulls/3537 | 2013-05-06T22:38:17Z | 2013-05-08T21:44:20Z | 2013-05-08T21:44:20Z | 2014-07-16T08:07:27Z |
Update io.rst | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 9001ae393d552..a0d30f0710e71 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -873,6 +873,14 @@ The Series object also has a ``to_string`` method, but with only the ``buf``,
which, if set to ``True``, will additionally output the length of the Series.
... | added io.read_html
| https://api.github.com/repos/pandas-dev/pandas/pulls/3536 | 2013-05-06T20:40:46Z | 2013-05-10T10:02:36Z | 2013-05-10T10:02:36Z | 2013-05-10T10:03:07Z |
BUG: Fixed bug in mixed frame assignment with aligned series (GH3492) | diff --git a/RELEASE.rst b/RELEASE.rst
index c1d40dc76f598..69cfd1eb99d7e 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -78,6 +78,7 @@ pandas 0.11.1
(removed warning) (GH2786_), and fix (GH3230_)
- Fix to_csv to handle non-unique columns (GH3495_)
- Fixed bug in groupby with empty series referencing a va... | closes #3492
| https://api.github.com/repos/pandas-dev/pandas/pulls/3533 | 2013-05-06T19:09:03Z | 2013-05-06T19:34:37Z | 2013-05-06T19:34:37Z | 2014-07-16T08:07:24Z |
ENH: HDFStore enhancements | diff --git a/RELEASE.rst b/RELEASE.rst
index 69cfd1eb99d7e..f3f4d7c895931 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -38,6 +38,12 @@ pandas 0.11.1
- Fixed various issues with internal pprinting code, the repr() for various objects
including TimeStamp and *Index now produces valid python code strings and
... | - will retain index attributes (freq,tz,name) on recreation #3499
- support datelike columns with a timezone as data_columns #2852
- will raise if trying to append with a different timezone than existing
will warn if the existing frequency of an index is different than an appended one
(thought raising was too strict)
... | https://api.github.com/repos/pandas-dev/pandas/pulls/3531 | 2013-05-06T15:35:58Z | 2013-05-08T20:26:10Z | 2013-05-08T20:26:10Z | 2014-06-17T13:08:16Z |
DOC: Fix header | diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst
index ddaddd356e7d4..d67a2d51cc1b8 100644
--- a/doc/source/indexing.rst
+++ b/doc/source/indexing.rst
@@ -14,9 +14,9 @@
randint = np.random.randint
np.set_printoptions(precision=4, suppress=True)
-**************
-Selecting Data
-**************
+**... | I went searching for how to make a MultiIndex on the docs page and couldn't figure out where to look anymore.
| https://api.github.com/repos/pandas-dev/pandas/pulls/3530 | 2013-05-06T01:05:28Z | 2013-05-06T04:50:56Z | 2013-05-06T04:50:56Z | 2014-07-16T08:07:14Z |
fix qt repr bug | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8bfdee3b75170..3fd95e161b41a 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -746,8 +746,8 @@ def _repr_html_(self):
self.info(buf=buf, verbose=verbose)
info = buf.getvalue()
info = info.rep... | addresses #3522.
| https://api.github.com/repos/pandas-dev/pandas/pulls/3527 | 2013-05-03T23:59:41Z | 2013-05-04T00:22:02Z | 2013-05-04T00:22:02Z | 2014-07-03T08:22:45Z |
TST: skip tests needing xlrd | diff --git a/pandas/io/tests/test_excel.py b/pandas/io/tests/test_excel.py
index ee2d265690221..8a145517d3b5a 100644
--- a/pandas/io/tests/test_excel.py
+++ b/pandas/io/tests/test_excel.py
@@ -41,6 +41,9 @@
def _skip_if_no_xlrd():
try:
import xlrd
+ ver = tuple(map(int, xlrd.__VERSION__.split(".")... | xlrd version i have installed is 0.8.0, several of the tests in io.tests.test_excel failed, due to needing at least version > 0.9. This PR fixes this, those tests will be skipped if xlrd is not installed or if the version is old.
| https://api.github.com/repos/pandas-dev/pandas/pulls/3517 | 2013-05-02T20:08:06Z | 2013-05-03T15:47:25Z | 2013-05-03T15:47:25Z | 2014-07-16T08:07:09Z |
BUG/CLN: datetime64/timedelta64 | diff --git a/RELEASE.rst b/RELEASE.rst
index f3d9c72db8bc5..7a2848003783f 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -56,6 +56,10 @@ pandas 0.11.1
Note: The default value will change in 0.12 to the "no mangle" behaviour,
If your code relies on this behaviour, explicitly specify mangle_dupe_cols=True
i... | Various bugs related to datetime64s
- Properly convert np.datetime64 objects in a Series, #3416
This would convert to object dtype previously
```
In [1]: dates = [
...: np.datetime64(datetime.date(2013, 1, 1)),
...: np.datetime64(datetime.date(2013, 1, 2)),
...: np.datetime64(datetime.date(2013, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/3516 | 2013-05-02T18:46:25Z | 2013-05-08T21:51:09Z | 2013-05-08T21:51:09Z | 2014-06-16T01:29:27Z |
ENH: add mode.mangle_dupe_cols option GH3468 | diff --git a/RELEASE.rst b/RELEASE.rst
index f3fb98535cb61..ca9c25294dc23 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -44,6 +44,11 @@ pandas 0.11.1
**KeyError** if **key** is not a valid store object.
- The repr() for (Multi)Index now obeys display.max_seq_items rather
then numpy threshold print options.... | #3468
as discussed, an added option to disable th mangling behavior
of dupe columns taken by pd.read_csv going back to olden days.
Not sure what the default should be, currently the default is compatible
with existing scripts.
Tested with both c and python parser engines.
| https://api.github.com/repos/pandas-dev/pandas/pulls/3511 | 2013-05-02T05:34:41Z | 2013-05-05T09:14:08Z | 2013-05-05T09:14:08Z | 2014-06-24T13:24:56Z |
BUG/CLN: Allow the BlockManager to have a non-unique items (axis 0) | diff --git a/RELEASE.rst b/RELEASE.rst
index f3fb98535cb61..1a86ac02b2f7e 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -61,8 +61,20 @@ pandas 0.11.1
- Fix regression in a DataFrame apply with axis=1, objects were not being converted back
to base dtypes correctly (GH3480_)
- Fix issue when storing uint dtype... | - Non-unique index support clarified #3092
- Fix assigning a new index to a duplicate index in a DataFrame would fail #3468
- Fix construction of a DataFrame with a duplicate index
- ref_locs support to allow duplicative indices across dtypes,
allows iget support to always find the index (even across dtypes) ... | https://api.github.com/repos/pandas-dev/pandas/pulls/3509 | 2013-05-02T01:14:01Z | 2013-05-02T14:51:57Z | 2013-05-02T14:51:57Z | 2014-06-13T16:52:03Z |
ENH: Support reading from S3 | diff --git a/README.rst b/README.rst
index c9b70f07b0862..ea713006c7189 100644
--- a/README.rst
+++ b/README.rst
@@ -90,6 +90,7 @@ Optional dependencies
* openpyxl version 1.6.1 or higher, for writing .xlsx files
* xlrd >= 0.9.0
* Needed for Excel I/O
+ * `boto <https://pypi.python.org/pypi/boto>`__:... | Tests not written. Will need a way to mock boto.
| https://api.github.com/repos/pandas-dev/pandas/pulls/3504 | 2013-05-01T17:43:15Z | 2013-05-10T14:33:46Z | 2013-05-10T14:33:46Z | 2014-06-17T08:29:03Z |
BUG: GH3480 Fix regression in a DataFrame apply with axis=1 | diff --git a/RELEASE.rst b/RELEASE.rst
index fbf8c28cffdea..eecf32e8de21e 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -58,10 +58,13 @@ pandas 0.11.1
- Duplicate indexes with getitem will return items in the correct order (GH3455_, GH3457_)
- Fix sorting in a frame with a list of columns which contains datetime6... | objects were not being converted back to base dtypes correctly
closes #3480
| https://api.github.com/repos/pandas-dev/pandas/pulls/3502 | 2013-05-01T14:06:46Z | 2013-05-01T14:26:50Z | 2013-05-01T14:26:50Z | 2014-06-16T21:06:53Z |
BUG: GH3493 fix Cannot append DataFrames with uint dtypes to HDFStore | diff --git a/RELEASE.rst b/RELEASE.rst
index 49d576aacaff9..c4ca7dafc3610 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -58,6 +58,7 @@ pandas 0.12.0
- Duplicate indexes with getitem will return items in the correct order (GH3455_, GH3457_)
- Fix sorting in a frame with a list of columns which contains datetime64[... | Fix for self-reported uint bug in HDFStore. #3493
Travis results (pass): https://travis-ci.org/jmellen/pandas/builds/6764554
| https://api.github.com/repos/pandas-dev/pandas/pulls/3494 | 2013-04-30T17:56:04Z | 2013-05-01T16:29:09Z | 2013-05-01T16:29:09Z | 2014-07-02T10:29:10Z |
CLN: series to now inherit from NDFrame | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index c37776b3a3cd8..a0818831fb988 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -478,7 +478,7 @@ maximum value for each column occurred:
tsdf = DataFrame(randn(1000, 3), columns=['A', 'B', 'C'],
index=date_range('... | Major refactor primarily to make Series inherit from NDFrame
affects #4080, #3862, #816, #3217, #3386, #4463, #4204, #4118 , #4555
Preserves pickle compat
very few tests were changed (and only for compat on return objects)
a few performance enhancements, a couple of regressions (see bottom)
_obviously this is a larg... | https://api.github.com/repos/pandas-dev/pandas/pulls/3482 | 2013-04-29T14:37:35Z | 2013-08-16T19:27:02Z | 2013-08-16T19:27:01Z | 2014-06-12T18:13:47Z |
Read html tables into DataFrames | diff --git a/ci/install.sh b/ci/install.sh
index 8d9ab3aac3374..cd897cf7313c2 100755
--- a/ci/install.sh
+++ b/ci/install.sh
@@ -75,6 +75,8 @@ if ( ! $VENV_FILE_AVAILABLE ); then
pip install $PIP_ARGS xlrd>=0.9.0
pip install $PIP_ARGS 'http://downloads.sourceforge.net/project/pytseries/scikits.timeser... | This PR adds new functionality for reading HTML tables from a URI, string, or file-like object into a DataFrame.
#3369
| https://api.github.com/repos/pandas-dev/pandas/pulls/3477 | 2013-04-28T18:01:06Z | 2013-05-03T16:54:13Z | 2013-05-03T16:54:13Z | 2014-06-16T01:32:21Z |
ENH: Scatterplot Method added | diff --git a/doc/source/release.rst b/doc/source/release.rst
index 34cc4e499a0d5..c85e86caa8114 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -210,6 +210,7 @@ API Changes
- Default export for ``to_clipboard`` is now csv with a sep of `\t` for
compat (:issue:`3368`)
- ``at`` now will enl... | closes #2215
This is a simple pull request that creates a shortcut for scatter plots from a df. This is in reference to #2215 (and #1527) and follows the same pattern as df.hist().
```
#where you would previously have had to do:
from pandas.tools.plotting import scatter_plot
scatter_plot(df, x = "x", y = 'y')
... | https://api.github.com/repos/pandas-dev/pandas/pulls/3473 | 2013-04-27T21:06:11Z | 2013-10-17T12:50:56Z | 2013-10-17T12:50:56Z | 2014-06-12T20:43:38Z |
ENH: Bring Series.dot up to par with DataFrame.dot | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 7d9303fa75acd..7c0c12c11e177 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -1944,6 +1944,47 @@ def clip_lower(self, threshold):
"""
return pa.where(self < threshold, threshold, self)
+ def dot(self, other):
+ ... | If second argument is Series or DataFrame, ensures alignment of indices.
If second argument is some type of ndarray, just fall back to np.dot on the values.
This mirrors the behavior in DataFrame.dot
Includes unittest
| https://api.github.com/repos/pandas-dev/pandas/pulls/3470 | 2013-04-27T03:19:17Z | 2013-04-29T17:43:37Z | 2013-04-29T17:43:37Z | 2014-07-16T08:06:39Z |
ENH: Adding '.' as an na_value for FRED. | diff --git a/RELEASE.rst b/RELEASE.rst
index f584a5de924c1..49d576aacaff9 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -57,6 +57,7 @@ pandas 0.12.0
- Unordered time series selection was misbehaving when using label slicing (GH3448_)
- Duplicate indexes with getitem will return items in the correct order (GH3455_... | The St. Louis Fed's [FRED](http://research.stlouisfed.org/fred2/) uses '.' as an NaN marker. I don't think the user has any way to specify the na_value via DataReader, so this just hard codes '.' as an na_value in the fred data-fetching function.
Before:
``` python
In [4]: from pandas.io.data import DataReader
In [... | https://api.github.com/repos/pandas-dev/pandas/pulls/3469 | 2013-04-27T00:53:30Z | 2013-04-27T20:14:38Z | 2013-04-27T20:14:38Z | 2016-11-03T12:37:23Z |
BUG: adjust to_latex column format when no index | diff --git a/pandas/core/format.py b/pandas/core/format.py
index 7226bd14e5576..5b68b26a41b77 100644
--- a/pandas/core/format.py
+++ b/pandas/core/format.py
@@ -356,7 +356,10 @@ def get_col_type(dtype):
if column_format is None:
dtypes = self.frame.dtypes.values
- column_format = 'l%s... | `to_latex` was adding an extra alignment to `column_format` when the
`index` argument was False
| https://api.github.com/repos/pandas-dev/pandas/pulls/3467 | 2013-04-26T21:14:43Z | 2013-04-28T00:55:20Z | 2013-04-28T00:55:20Z | 2014-07-16T08:06:35Z |
Fix pprint of index, summarizes according to display.max_seq_items | diff --git a/RELEASE.rst b/RELEASE.rst
index aac34c6cf8a5e..9920f89d50501 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -42,6 +42,8 @@ pandas 0.12.0
- When removing an object from a store, **store.remove(key)**, raises
**KeyError** if **key** is not a valid store object.
+ - The repr() for (Multi)Index now o... | #3465
makes #3391 a very good idea.
| https://api.github.com/repos/pandas-dev/pandas/pulls/3466 | 2013-04-26T18:51:30Z | 2013-04-26T18:52:46Z | 2013-04-26T18:52:46Z | 2014-06-22T23:23:22Z |
BUG: GH3461 Fix sorting in a frame with a list of columns which contains datetime64 | diff --git a/RELEASE.rst b/RELEASE.rst
index aac34c6cf8a5e..a3becfa2de3c7 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -54,6 +54,7 @@ pandas 0.12.0
- ``.loc`` was not raising when passed an integer list (GH3449_)
- Unordered time series selection was misbehaving when using label slicing (GH3448_)
- Duplicate ... | closes #3461
| https://api.github.com/repos/pandas-dev/pandas/pulls/3464 | 2013-04-25T21:27:25Z | 2013-04-25T21:56:33Z | 2013-04-25T21:56:33Z | 2014-07-03T18:23:38Z |
BUG: GH3455 Duplicate indexes with getitem will return items in the correct order | diff --git a/RELEASE.rst b/RELEASE.rst
index 20167e1918540..e57c6c565e2cf 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -51,12 +51,15 @@ pandas 0.12.0
columns (GH3437_)
- ``.loc`` was not raising when passed an integer list (GH3449_)
- Unordered time series selection was misbehaving when using label slicing ... | BUG: GH3457 to_csv writing duplicate columns incorrectly
closes #3455, #3457
| https://api.github.com/repos/pandas-dev/pandas/pulls/3459 | 2013-04-25T14:17:46Z | 2013-04-25T14:38:06Z | 2013-04-25T14:38:06Z | 2014-06-28T10:24:30Z |
BUG: to_csv handles cols= reordering,dupe cols GH3454 | diff --git a/RELEASE.rst b/RELEASE.rst
index 6f55b7cd4490f..aac34c6cf8a5e 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -48,7 +48,8 @@ pandas 0.12.0
- Fixed an esoteric excel reading bug, xlrd>= 0.9.0 now required for excel
support. Should provide python3 support (for reading) which has been
lacking. (GH31... | #3454, #3457, #3455
@jreback, comments?
| https://api.github.com/repos/pandas-dev/pandas/pulls/3458 | 2013-04-25T12:53:19Z | 2013-04-25T16:09:51Z | 2013-04-25T16:09:51Z | 2014-06-18T19:05:44Z |
BUG: GH3448 Unordered time series selection was misbehaving when using label slicing | diff --git a/RELEASE.rst b/RELEASE.rst
index ae98884f0f683..20167e1918540 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -50,16 +50,17 @@ pandas 0.12.0
- Fix to_csv issue when having a large number of rows and ``NaT`` in some
columns (GH3437_)
- ``.loc`` was not raising when passed an integer list (GH3449_)
... | closes #3448
| https://api.github.com/repos/pandas-dev/pandas/pulls/3452 | 2013-04-25T01:10:17Z | 2013-04-25T12:29:36Z | 2013-04-25T12:29:36Z | 2014-07-16T08:06:20Z |
BUG: GH3449 .loc was not raising when passed an integer list | diff --git a/RELEASE.rst b/RELEASE.rst
index 2c47c043dd84d..ae98884f0f683 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -49,12 +49,14 @@ pandas 0.12.0
lacking. (GH3164_)
- Fix to_csv issue when having a large number of rows and ``NaT`` in some
columns (GH3437_)
+ - ``.loc`` was not raising when passed an... | closes #3449
| https://api.github.com/repos/pandas-dev/pandas/pulls/3451 | 2013-04-25T00:05:20Z | 2013-04-25T01:55:28Z | 2013-04-25T01:55:28Z | 2014-06-22T03:25:32Z |
BUG: index.map fast path raises recursion warnings on index.time GH3419 | diff --git a/pandas/tseries/index.py b/pandas/tseries/index.py
index 0d29da83dbd8a..6f8d9edcb5e4a 100644
--- a/pandas/tseries/index.py
+++ b/pandas/tseries/index.py
@@ -1299,7 +1299,10 @@ def time(self):
"""
Returns array of datetime.time. The time of the day
"""
- return self.map(lamb... | fyi @hayd
#3419
| https://api.github.com/repos/pandas-dev/pandas/pulls/3450 | 2013-04-24T22:39:37Z | 2013-04-24T22:39:44Z | 2013-04-24T22:39:44Z | 2014-07-16T08:06:17Z |
BUG: Removing a nonexistent store raises a KeyError (GH3346) | diff --git a/RELEASE.rst b/RELEASE.rst
index e8287912efb3e..f0e54c0e74166 100644
--- a/RELEASE.rst
+++ b/RELEASE.rst
@@ -40,7 +40,8 @@ pandas 0.12.0
**API Changes**
- -
+ - When removing an object from a store, **store.remove(key)**, raises
+ **KeyError** if **key** is not a valid store object.
**Bug Fixes... | https://api.github.com/repos/pandas-dev/pandas/pulls/3447 | 2013-04-24T18:17:18Z | 2013-04-25T14:25:09Z | 2013-04-25T14:25:09Z | 2014-07-16T08:06:11Z | |
DOC: Adding parameters address issue sub-points 8 and 10 - 24 (issue #2916) | diff --git a/pandas/core/reshape.py b/pandas/core/reshape.py
index adc824544b8c7..8595e2a91906d 100644
--- a/pandas/core/reshape.py
+++ b/pandas/core/reshape.py
@@ -745,11 +745,13 @@ def make_axis_dummies(frame, axis='minor', transform=None):
Parameters
----------
+ frame : DataFrame
axis : {'major'... | https://api.github.com/repos/pandas-dev/pandas/pulls/3422 | 2013-04-22T23:43:22Z | 2013-04-24T12:29:48Z | 2013-04-24T12:29:48Z | 2014-06-15T20:28:49Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.