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 |
|---|---|---|---|---|---|---|---|
BUG: Tackle GH47203; Ensure body is non-empty when accessing row_body_cells | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 61848cb127029..5cfa89a39a78f 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -890,6 +890,7 @@ Styler
- Bug when attempting to apply styling functions to an empty DataFrame subset (:issue:`45313`)
- B... | - [x] closes #47203
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests).
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in the latest `doc/sour... | https://api.github.com/repos/pandas-dev/pandas/pulls/47204 | 2022-06-02T20:43:37Z | 2022-06-05T22:48:08Z | 2022-06-05T22:48:08Z | 2022-06-06T08:06:53Z |
REF: avoid ravel in DTA._add_offset | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 5a21b1a3abb1d..d37c287be4cfd 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -2370,59 +2370,67 @@ cdef class SemiMonthOffset(SingleConstructorOffset):
@cython.boundscheck(False)
def _appl... | - [ ] 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/47200 | 2022-06-02T15:15:52Z | 2022-06-02T23:19:20Z | 2022-06-02T23:19:19Z | 2022-06-02T23:33:03Z |
BUG: StataWriter value_label encoding | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 61848cb127029..cb99f15775ab4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -820,7 +820,7 @@ I/O
- Bug in :func:`read_parquet` when ``engine="fastparquet"`` where the file was not closed on error (:i... | - [x] closes #46750
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in `doc/source/whatsne... | https://api.github.com/repos/pandas-dev/pandas/pulls/47199 | 2022-06-02T08:46:50Z | 2022-06-05T22:48:50Z | 2022-06-05T22:48:50Z | 2022-06-05T22:48:54Z |
ENH: Move SettingWithCopyWarning to error/__init__.py per GH27656 | diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst
index e80aa0ace6bc2..0e10b8792eaba 100644
--- a/doc/source/reference/testing.rst
+++ b/doc/source/reference/testing.rst
@@ -42,6 +42,7 @@ Exceptions and warnings
errors.ParserWarning
errors.PerformanceWarning
errors.SettingWith... | - [x] xref #27656. this GitHub issue is being done in multiple parts
- [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/developme... | https://api.github.com/repos/pandas-dev/pandas/pulls/47198 | 2022-06-02T04:05:23Z | 2022-06-03T20:29:11Z | 2022-06-03T20:29:11Z | 2022-06-03T20:29:25Z |
TYP: NDFrame.min/max mypy workaround | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index d5b55a89f28df..08e6e2fdab2d9 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -11287,8 +11287,7 @@ def median(
setattr(cls, "median", median)
- # error: Untyped decorator makes function "max" untyped
- @doc(... | mypy infers `_max_examples` as string when I use `reveal_type` but without an explicit type annotation, mypy weirdly thinks that the decorated is untyped. | https://api.github.com/repos/pandas-dev/pandas/pulls/47197 | 2022-06-02T03:36:16Z | 2022-06-02T16:53:16Z | 2022-06-02T16:53:16Z | 2022-06-08T19:26:17Z |
BUG: Period + np.timedelta64(nat) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 61848cb127029..45c32d689bd5b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -828,6 +828,7 @@ Period
- Bug in :meth:`Period.strftime` and :meth:`PeriodIndex.strftime`, directives ``%l`` and ``%u`` wer... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47196 | 2022-06-02T03:19:20Z | 2022-06-03T15:49:09Z | 2022-06-03T15:49:09Z | 2022-06-03T15:51:58Z |
Add absolute value to head() and tail() docstrings for negative values of n | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index d5b55a89f28df..ebb853c00872b 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5182,7 +5182,7 @@ def head(self: NDFrameT, n: int = 5) -> NDFrameT:
has the right type of data in it.
For negative values of `n`, this ... | - [x] closes #42204
- [ ] 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/47195 | 2022-06-02T02:17:22Z | 2022-06-02T18:10:16Z | 2022-06-02T18:10:16Z | 2022-06-13T23:51:43Z |
updated period.daysinmonth definition to match period.days_in_month | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index de44f0da8275e..73b88b4b147f8 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -2253,7 +2253,7 @@ cdef class _Period(PeriodMixin):
@property
def daysinmonth(self) -> int:
"""
- ... | - [DOC] The definition for period.daysinmonth in the .pyx file was worded slightly differently than period.days_in_month, despite both methods being exactly the same. This change updates the definition of daysinmonth to match that of days_in_month.
| https://api.github.com/repos/pandas-dev/pandas/pulls/47193 | 2022-06-01T21:52:10Z | 2022-06-02T18:15:30Z | 2022-06-02T18:15:30Z | 2022-06-02T18:15:37Z |
Unit Test: Construction of DataFrame works with empty list but not empty array | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index 78db4f7ea5c75..0a67061016566 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -3085,3 +3085,9 @@ def test_tzaware_data_tznaive_dtype(self, constructor):
as... | - [ ] closes #46822
- [ ] [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/47192 | 2022-06-01T15:38:15Z | 2022-06-11T18:05:50Z | 2022-06-11T18:05:50Z | 2022-06-11T18:05:55Z |
REF: delta_to_nanoseconds handle non-nano | diff --git a/pandas/_libs/tslibs/offsets.pyi b/pandas/_libs/tslibs/offsets.pyi
index 9410379b16ba2..058bbcdd346e0 100644
--- a/pandas/_libs/tslibs/offsets.pyi
+++ b/pandas/_libs/tslibs/offsets.pyi
@@ -108,6 +108,7 @@ def to_offset(freq: None) -> None: ...
def to_offset(freq: timedelta | BaseOffset | str) -> BaseOffset... | - [ ] 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/47191 | 2022-06-01T15:01:50Z | 2022-06-01T21:28:10Z | 2022-06-01T21:28:10Z | 2022-06-01T22:07:52Z |
Backport PR #47179 on branch 1.4.x (CI: Versioneer not picking up version in 32-bit build) | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index 500e800a082d9..be894e6a5a63e 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -23,9 +23,15 @@ jobs:
- name: Run 32-bit manylinux2014 Docker Build / Tests
run: |
+ ... | Backport PR #47179: CI: Versioneer not picking up version in 32-bit build | https://api.github.com/repos/pandas-dev/pandas/pulls/47190 | 2022-06-01T12:19:47Z | 2022-06-01T15:13:46Z | 2022-06-01T15:13:46Z | 2022-06-01T15:13:46Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 81c76e02c73f8..266e5a015e408 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,7 +11,7 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/jendrikseipp/vulture
- rev: 'v2.3'
+ re... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/main)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_... | https://api.github.com/repos/pandas-dev/pandas/pulls/47187 | 2022-06-01T07:09:45Z | 2022-06-01T08:59:54Z | 2022-06-01T08:59:54Z | 2022-06-01T08:59:59Z |
BUG: groupby does not respect dropna=False when input has MultiIndex | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index eb08034bb92eb..10f612f8b63e2 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -857,6 +857,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.rolling` gives ValueError when center=True, axis=1 and ... | - [x] closes #46783 (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/47186 | 2022-06-01T03:33:26Z | 2022-06-05T22:52:35Z | 2022-06-05T22:52:34Z | 2022-06-06T03:14:48Z |
DOC: Add to docs on group_keys in groupby.apply | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index ffbee0bf21a66..af2a5579bf1cd 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -188,21 +188,33 @@ class providing the base-class of operations.
>>> df = pd.DataFrame({'A': 'a a b'.split(),
... ... | - [ ] 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
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47185 | 2022-06-01T02:02:15Z | 2022-06-02T16:10:29Z | 2022-06-02T16:10:28Z | 2022-06-02T16:11:24Z |
TYP: annotate two decorators | diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py
index f14882227ddd9..2e7a0f842ee6d 100644
--- a/pandas/core/computation/align.py
+++ b/pandas/core/computation/align.py
@@ -9,6 +9,7 @@
)
from typing import (
TYPE_CHECKING,
+ Callable,
Sequence,
)
import warnings
@@ -28,6... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/47184 | 2022-06-01T01:20:48Z | 2022-06-01T18:18:47Z | 2022-06-01T18:18:47Z | 2022-06-08T19:26:18Z |
[CLN] call __finalize__ in quantile | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 52857fed5b95f..c695c04052f9d 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -10936,10 +10936,8 @@ def quantile(
if needs_i8_conversion(cdtype):
dtype = cdtype
- if is_list_like(q):
- ... | - [x] [Tests added and passed]
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
In reference to #28283, this PR intends to ensure that `__finalize__` is always called before returning the result of `DataFrame.quantile`.
This was already ... | https://api.github.com/repos/pandas-dev/pandas/pulls/47183 | 2022-05-31T16:16:16Z | 2022-05-31T19:07:49Z | 2022-05-31T19:07:49Z | 2022-05-31T19:07:59Z |
CI: Versioneer not picking up version in 32-bit build | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index 500e800a082d9..be894e6a5a63e 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -23,9 +23,15 @@ jobs:
- name: Run 32-bit manylinux2014 Docker Build / Tests
run: |
+ ... | - [ ] xref #46856 (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/47179 | 2022-05-30T21:48:07Z | 2022-06-01T12:19:21Z | 2022-06-01T12:19:21Z | 2022-06-01T13:47:26Z |
Backport PR #47165 on branch 1.4.x (BUG: do not suppress errors when closing file handles) | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index b78188409d350..54cad82366e43 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -30,7 +30,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Most I/O methods do no longer suppress ``OSError`` and ``Valu... | Backport PR #47165: BUG: do not suppress errors when closing file handles | https://api.github.com/repos/pandas-dev/pandas/pulls/47178 | 2022-05-30T20:50:11Z | 2022-06-01T00:51:00Z | 2022-06-01T00:51:00Z | 2022-06-01T00:51:00Z |
DEPR: numeric_only default in resampler ops | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 6bf6fd65f5633..40276c6a21e77 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -605,7 +605,7 @@ In the case where ``df.columns`` is not unique, use :meth:`DataFrame.isetitem`:
``numeric_only`` default v... | Part of #46560
- [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] Ad... | https://api.github.com/repos/pandas-dev/pandas/pulls/47177 | 2022-05-30T20:31:50Z | 2022-06-05T22:12:42Z | 2022-06-05T22:12:42Z | 2022-06-06T20:57:03Z |
CLN: Simplify mmap code | diff --git a/pandas/io/common.py b/pandas/io/common.py
index 33f83d7c66433..5eca7eea7eec6 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -7,7 +7,6 @@
)
import bz2
import codecs
-from collections import abc
import dataclasses
import functools
import gzip
@@ -103,7 +102,6 @@ class IOHandles(Generic[A... | The mmap wrapper in pandas/io/common.py had CSV c-engine specific behavior: if mmap is used and encoding="utf-8", then the c-engine can cope with bytes (no need to decode the bytes to str). When pushing this edge case into the c-engine, we can simplify the mmap wrapper a lot! | https://api.github.com/repos/pandas-dev/pandas/pulls/47175 | 2022-05-30T18:36:51Z | 2022-05-30T20:45:01Z | 2022-05-30T20:45:01Z | 2022-06-08T19:26:28Z |
BUG Fix: DataFrameGroupBy.sum() drops column names when applied to an empty dataframe | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index ffbee0bf21a66..303240acae9f3 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1668,7 +1668,7 @@ def _cython_agg_general(
raise NotImplementedError(
f"{type(self)._... | - [ ] closes #46375
- [ ] [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/47174 | 2022-05-30T17:48:36Z | 2022-05-31T00:45:47Z | null | 2022-05-31T00:45:47Z |
Test Case: pd.DataFrame.prob with min_count changes dtype if result contains NaNs | diff --git a/pandas/tests/frame/test_reductions.py b/pandas/tests/frame/test_reductions.py
index 702faf2f480e8..b4d3d1ae548b5 100644
--- a/pandas/tests/frame/test_reductions.py
+++ b/pandas/tests/frame/test_reductions.py
@@ -789,12 +789,29 @@ def test_sum_nanops_min_count(self):
)
def test_sum_nanops_dtype_mi... | - [ ] closes #47091
- [ ] [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/47170 | 2022-05-30T12:13:51Z | 2022-05-30T20:50:48Z | 2022-05-30T20:50:48Z | 2022-05-30T20:50:55Z |
BUG: Raise on parse int overflow #47167 | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 10aef954a3475..012395b9afe1c 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -285,6 +285,15 @@ def time_read_uint64_na_values(self):
)
+class ReadUint8Integers(StringIORewind):
+ def se... | - [x] closes #47167
- [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/47168 | 2022-05-30T09:35:38Z | 2023-01-12T23:59:40Z | null | 2023-01-12T23:59:41Z |
BUG: do not suppress errors when closing file handles | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index b78188409d350..54cad82366e43 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -30,7 +30,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Most I/O methods do no longer suppress ``OSError`` and ``Valu... | Wait for #47153 to be merged (fails on main otherwise). Closes #47136 and should be backported https://github.com/pandas-dev/pandas/pull/47153#discussion_r884156873 | https://api.github.com/repos/pandas-dev/pandas/pulls/47165 | 2022-05-29T20:31:41Z | 2022-05-30T20:49:42Z | 2022-05-30T20:49:41Z | 2022-06-08T19:26:29Z |
DOC: how to_datetime %S differs from strptime | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index d4d61df915acb..2528c47d36422 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -773,8 +773,14 @@ def to_datetime(
format : str, default None
The strftime to parse time, e.g. :const:`"%d/%... | If any other changes are required please let me know.
- [ ] closes #47134 (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://api.github.com/repos/pandas-dev/pandas/pulls/47164 | 2022-05-29T07:48:54Z | 2022-07-17T08:24:08Z | null | 2023-05-11T01:21:46Z |
ENH: implement Timedelta._as_unit | diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd
index 84a3af0490c0a..9c0eb0f9b0945 100644
--- a/pandas/_libs/tslibs/dtypes.pxd
+++ b/pandas/_libs/tslibs/dtypes.pxd
@@ -7,6 +7,7 @@ cdef str npy_unit_to_abbrev(NPY_DATETIMEUNIT unit)
cdef NPY_DATETIMEUNIT freq_group_code_to_npy_unit(int freq)... | - [ ] 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/47162 | 2022-05-29T01:51:53Z | 2022-05-31T18:46:18Z | 2022-05-31T18:46:17Z | 2022-05-31T20:39:18Z |
Backport PR #47159 on branch 1.4.x (TST: Re-enable test after Cython upgrade) | diff --git a/pandas/tests/io/parser/common/test_common_basic.py b/pandas/tests/io/parser/common/test_common_basic.py
index bde69e365cfd1..69b087eff8a20 100644
--- a/pandas/tests/io/parser/common/test_common_basic.py
+++ b/pandas/tests/io/parser/common/test_common_basic.py
@@ -12,7 +12,6 @@
import numpy as np
import p... | Backport PR #47159: TST: Re-enable test after Cython upgrade | https://api.github.com/repos/pandas-dev/pandas/pulls/47161 | 2022-05-28T22:31:53Z | 2022-05-29T00:19:31Z | 2022-05-29T00:19:31Z | 2022-05-29T00:19:31Z |
BUG 1.4: do not suppress errors when closing file handles | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index b78188409d350..54cad82366e43 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -30,7 +30,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Most I/O methods do no longer suppress ``OSError`` and ``Valu... | xref https://github.com/pandas-dev/pandas/pull/47153#discussion_r884156873, closes https://github.com/pandas-dev/pandas/issues/47136 | https://api.github.com/repos/pandas-dev/pandas/pulls/47160 | 2022-05-28T17:21:00Z | 2022-05-29T20:32:27Z | null | 2022-06-08T19:26:32Z |
TST: Re-enable test after Cython upgrade | diff --git a/pandas/tests/io/parser/common/test_common_basic.py b/pandas/tests/io/parser/common/test_common_basic.py
index 0ac0fe23bbbb7..115a2976ce618 100644
--- a/pandas/tests/io/parser/common/test_common_basic.py
+++ b/pandas/tests/io/parser/common/test_common_basic.py
@@ -12,7 +12,6 @@
import numpy as np
import p... | - [ ] 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/47159 | 2022-05-28T17:03:38Z | 2022-05-28T22:31:24Z | 2022-05-28T22:31:24Z | 2022-05-29T17:42:55Z |
Backport PR #47051 on branch 1.4.x (BUG: `DataFrame.shift` shows different behavior for `axis=1` when `freq` is specified) | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 85e5983f877e8..b78188409d350 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in :func:`read_csv` with ``index_col=False`` identifying first row as i... | Backport PR #47051: BUG: `DataFrame.shift` shows different behavior for `axis=1` when `freq` is specified | https://api.github.com/repos/pandas-dev/pandas/pulls/47158 | 2022-05-28T10:11:12Z | 2022-05-28T11:46:22Z | 2022-05-28T11:46:22Z | 2022-05-28T11:46:22Z |
DEPR: na_sentinel in factorize | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7e943bb5832e6..8a2be528d8168 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -721,8 +721,9 @@ Other Deprecations
- Deprecated the ``closed`` argument in :class:`ArrowInterval` in favor of ``inclusive`... | - [x] closes #46910 (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/47157 | 2022-05-28T05:08:07Z | 2022-06-24T21:31:30Z | 2022-06-24T21:31:30Z | 2022-06-24T21:48:55Z |
Allow reading SAS files from archives | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 681139fb51272..1f91953e2448e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -176,6 +176,7 @@ Other enhancements
- ``times`` argument in :class:`.ExponentialMovingWindow` now accepts ``np.timedelta64`... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47154 | 2022-05-27T23:16:29Z | 2022-06-15T19:57:51Z | 2022-06-15T19:57:51Z | 2022-06-15T19:57:59Z |
CLN: Share code between _BytesTarFile and _BytesZipFile | diff --git a/pandas/io/common.py b/pandas/io/common.py
index fdee1600c2a32..33f83d7c66433 100644
--- a/pandas/io/common.py
+++ b/pandas/io/common.py
@@ -1,6 +1,10 @@
"""Common IO api utilities"""
from __future__ import annotations
+from abc import (
+ ABC,
+ abstractmethod,
+)
import bz2
import codecs
from... | - [x] xref #47136
- [x] [Tests added and passed]
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
Needs some more work (test... | https://api.github.com/repos/pandas-dev/pandas/pulls/47153 | 2022-05-27T22:24:59Z | 2022-05-30T12:17:56Z | 2022-05-30T12:17:56Z | 2022-06-08T19:26:31Z |
Backport PR #47150 on branch 1.4.x (DEPS: Bump Cython) | diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml
index 401be14aaca02..2ac97cc479196 100644
--- a/ci/deps/actions-310-numpydev.yaml
+++ b/ci/deps/actions-310-numpydev.yaml
@@ -16,7 +16,7 @@ dependencies:
- pytz
- pip
- pip:
- - cython==0.29.24 # GH#34014
+ - cython==0.29.... | Backport PR #47150: DEPS: Bump Cython | https://api.github.com/repos/pandas-dev/pandas/pulls/47152 | 2022-05-27T21:06:31Z | 2022-05-28T09:53:44Z | 2022-05-28T09:53:44Z | 2022-05-28T09:53:44Z |
ENH: Move SettingWithCopyError to error/__init__.py per GH27656 | diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst
index f636ee1806c9b..e80aa0ace6bc2 100644
--- a/doc/source/reference/testing.rst
+++ b/doc/source/reference/testing.rst
@@ -41,6 +41,7 @@ Exceptions and warnings
errors.ParserError
errors.ParserWarning
errors.PerformanceWarning... | - [x] xref #27656. this GitHub issue is being done in multiple parts
- [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/developme... | https://api.github.com/repos/pandas-dev/pandas/pulls/47151 | 2022-05-27T20:12:31Z | 2022-05-27T23:10:52Z | 2022-05-27T23:10:52Z | 2022-05-27T23:11:10Z |
DEPS: Bump Cython | diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml
index 369d27b8c97b9..d17d29ef38e7f 100644
--- a/ci/deps/actions-310.yaml
+++ b/ci/deps/actions-310.yaml
@@ -5,7 +5,7 @@ dependencies:
- python=3.10
# test dependencies
- - cython=0.29.24
+ - cython=0.29.30
- pytest>=6.0
- pytest-cov
- p... | - [ ] xref #41935 (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/47150 | 2022-05-27T18:48:57Z | 2022-05-27T21:06:23Z | 2022-05-27T21:06:23Z | 2022-05-28T14:27:50Z |
Properly propagate exceptions in sas.pyx | diff --git a/pandas/io/sas/sas.pyx b/pandas/io/sas/sas.pyx
index efb8d81c4552d..483bbd70faec9 100644
--- a/pandas/io/sas/sas.pyx
+++ b/pandas/io/sas/sas.pyx
@@ -13,7 +13,7 @@ ctypedef unsigned short uint16_t
# algorithm. It is partially documented here:
#
# https://cran.r-project.org/package=sas7bdat/vignettes/... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47149 | 2022-05-27T16:26:38Z | 2022-06-05T22:55:37Z | 2022-06-05T22:55:37Z | 2022-06-05T22:55:42Z |
Add note about different series lengths to Series.corr and Series.cov docs | diff --git a/pandas/core/series.py b/pandas/core/series.py
index d1514a3872800..e938acd11ba70 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2541,6 +2541,8 @@ def quantile(self, q=0.5, interpolation="linear"):
def corr(self, other, method="pearson", min_periods=None) -> float:
"""
... | - [x] closes #34602
- [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/47145 | 2022-05-27T13:58:34Z | 2022-05-27T15:35:26Z | 2022-05-27T15:35:26Z | 2022-05-27T15:37:13Z |
Backport PR #47093 on branch 1.4.x (DOC/CI: Use more explicit data setup in user guides) | diff --git a/doc/data/fx_prices b/doc/data/fx_prices
deleted file mode 100644
index 38cadf26909a3..0000000000000
Binary files a/doc/data/fx_prices and /dev/null differ
diff --git a/doc/data/mindex_ex.csv b/doc/data/mindex_ex.csv
deleted file mode 100644
index 935ff936cd842..0000000000000
--- a/doc/data/mindex_ex.csv
++... | Backport PR #47093 | https://api.github.com/repos/pandas-dev/pandas/pulls/47144 | 2022-05-27T13:41:07Z | 2022-05-27T15:23:24Z | 2022-05-27T15:23:24Z | 2022-05-27T15:23:28Z |
REGR: setitem writing into RangeIndex instead of creating a copy | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index bf414ab77cf65..72475d018a61f 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | - [x] closes #47128 (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/47143 | 2022-05-27T13:34:50Z | 2022-06-05T22:56:48Z | 2022-06-05T22:56:48Z | 2022-06-06T20:49:11Z |
Backport PR #47139 on branch 1.4.x (REGR: index_col False and header=None inferring index names in some cases) | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index bf414ab77cf65..f0e208a117068 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :func:`read_fwf` raising ``ValueError`` when ``widths`` was specifie... | Backport PR #47139: REGR: index_col False and header=None inferring index names in some cases | https://api.github.com/repos/pandas-dev/pandas/pulls/47142 | 2022-05-27T13:13:47Z | 2022-05-27T14:26:38Z | 2022-05-27T14:26:38Z | 2022-05-27T14:26:38Z |
Backport PR #47135 on branch 1.4.x (CLN: ensure clean up styler tests) | diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py
index 1a056f8cb3363..ab0fa8349b9c7 100644
--- a/pandas/tests/io/formats/style/test_style.py
+++ b/pandas/tests/io/formats/style/test_style.py
@@ -1552,5 +1552,5 @@ def test_col_trimming_hide_columns():
@pytest.mark.p... | Backport PR #47135: CLN: ensure clean up styler tests | https://api.github.com/repos/pandas-dev/pandas/pulls/47141 | 2022-05-27T11:27:19Z | 2022-05-27T13:14:53Z | 2022-05-27T13:14:53Z | 2022-05-27T13:14:54Z |
TYP: Upgrade mypy to 0.960 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index febad9f2a019c..b509f42389307 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -362,7 +362,7 @@ If installed, we now require:
+-----------------+-----------------+----------+---------+
| Package ... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Looks like this passed out of the box | https://api.github.com/repos/pandas-dev/pandas/pulls/47140 | 2022-05-27T11:26:17Z | 2022-05-28T15:30:16Z | 2022-05-28T15:30:16Z | 2022-06-06T20:49:50Z |
REGR: index_col False and header=None inferring index names in some cases | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index bf414ab77cf65..f0e208a117068 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :func:`read_fwf` raising ``ValueError`` when ``widths`` was specifie... | - [x] closes #46955 (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/47139 | 2022-05-27T11:10:34Z | 2022-05-27T13:13:22Z | 2022-05-27T13:13:22Z | 2022-05-27T13:14:47Z |
BUG: read_csv adding additional columns as integers instead of strings | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index febad9f2a019c..6da0b60f0bcb9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -809,6 +809,7 @@ I/O
- Bug in :func:`read_parquet` when ``engine="pyarrow"`` which caused partial write to disk when column... | - [x] closes #46997 (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/47137 | 2022-05-27T09:58:41Z | 2022-05-27T14:18:45Z | 2022-05-27T14:18:44Z | 2022-05-27T14:18:48Z |
CLN: ensure clean up styler tests | diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py
index 60800bc794592..23b05c8242274 100644
--- a/pandas/tests/io/formats/style/test_style.py
+++ b/pandas/tests/io/formats/style/test_style.py
@@ -1562,5 +1562,5 @@ def test_no_empty_apply(mi_styler):
@pytest.mark.par... | should be back ported | https://api.github.com/repos/pandas-dev/pandas/pulls/47135 | 2022-05-27T07:14:33Z | 2022-05-27T11:26:56Z | 2022-05-27T11:26:56Z | 2022-08-02T08:44:17Z |
Remove ctime.pyx | diff --git a/pandas/_libs/tslibs/ctime.pyx b/pandas/_libs/tslibs/ctime.pyx
deleted file mode 100644
index f5c0546e5f5b6..0000000000000
--- a/pandas/_libs/tslibs/ctime.pyx
+++ /dev/null
@@ -1,78 +0,0 @@
-"""
-Cython implementation of (parts of) the standard library time module.
-"""
-
-from cpython.exc cimport PyErr_Set... | Now that we support zoneinfo, the original motivation for this (having all of the Localizer methods be nogil) is no longer viable, so this module is no longer needed. | https://api.github.com/repos/pandas-dev/pandas/pulls/47133 | 2022-05-26T23:40:57Z | 2022-05-27T12:32:39Z | 2022-05-27T12:32:39Z | 2022-05-27T13:35:46Z |
Fix typo in tz_convert docs | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 0be3f9f7913c8..e2801006178e5 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9810,6 +9810,7 @@ def truncate(
return result
@final
+ @doc(klass=_shared_doc_kwargs["klass"])
def tz_convert(
self: NDFra... | - [x] closes #47129
- [ ] 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/47131 | 2022-05-26T19:25:17Z | 2022-05-26T21:09:57Z | 2022-05-26T21:09:57Z | 2022-05-26T21:26:00Z |
infer_freq handle non-nano | diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py
index 72bc6886b5175..73c93eb905ab2 100644
--- a/pandas/_libs/tslibs/__init__.py
+++ b/pandas/_libs/tslibs/__init__.py
@@ -26,11 +26,16 @@
"BaseOffset",
"tz_compare",
"is_unitless",
+ "get_unit_from_dtype",
+ "periods_per... | - [ ] 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/47126 | 2022-05-26T03:12:33Z | 2022-05-26T18:56:45Z | 2022-05-26T18:56:45Z | 2022-05-26T22:08:40Z |
TYP: read_csv/table (names index_col) | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index f853251d599d2..56df5493027c5 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -11,6 +11,7 @@
IO,
Any,
Callable,
+ Hashable,
Literal,
NamedTuple,
Sequence,
@@ -23,11 +24,11 @@
i... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/47124 | 2022-05-25T23:33:31Z | 2022-06-03T16:47:02Z | 2022-06-03T16:47:02Z | 2022-06-08T19:26:33Z |
Backport PR #46636 on branch 1.4.x (REGR: Replace changes the dtype of other columns) | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 415a3ff4efda0..bf414ab77cf65 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :meth:`Dat... | Backport PR #46636: REGR: Replace changes the dtype of other columns | https://api.github.com/repos/pandas-dev/pandas/pulls/47123 | 2022-05-25T22:40:09Z | 2022-05-26T01:32:07Z | 2022-05-26T01:32:07Z | 2022-05-26T01:32:07Z |
sync "inplace" document strings anywhere possible | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index d563aa8b06ca5..fd1f7a3767b33 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -240,7 +240,7 @@
If 1 or 'columns': apply function to each row.""",
"inplace": """
inplace : bool, default False
- If True, performs opera... | - [x] closes #47030
- [ ] [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/47122 | 2022-05-25T20:35:55Z | 2022-05-26T23:01:14Z | 2022-05-26T23:01:13Z | 2022-05-26T23:01:24Z |
BUG: read_excel loading some xlsx ints as floats | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index f594aae2c7f9f..ca8b8ca15ec47 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -24,6 +24,7 @@ Fixed regressions
- Fixed regression in :func:`read_csv` with ``index_col=False`` identifying first row as i... | - [x] closes #46988
- [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/47121 | 2022-05-25T20:07:34Z | 2022-06-06T17:57:14Z | 2022-06-06T17:57:13Z | 2022-06-07T13:07:27Z |
ENH: DatetimeTZDtype support non-nano | diff --git a/pandas/_libs/tslibs/dtypes.pyi b/pandas/_libs/tslibs/dtypes.pyi
index edc3de05f5df2..5c343f89f38ea 100644
--- a/pandas/_libs/tslibs/dtypes.pyi
+++ b/pandas/_libs/tslibs/dtypes.pyi
@@ -56,3 +56,19 @@ class Resolution(Enum):
def get_reso_from_freqstr(cls, freq: str) -> Resolution: ...
@property
... | - [ ] 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/47120 | 2022-05-25T18:58:50Z | 2022-06-02T18:22:44Z | 2022-06-02T18:22:44Z | 2022-06-03T22:45:15Z |
Changes as requested in #47058 | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 1f524d07bfd3a..2fc137a85daaf 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -3349,8 +3349,9 @@ def to_csv(
sequence should be given if the object uses MultiIndex. If
False do not print fields for index name... | This is my first open-source contribution. Please let me know if there are any mistakes, will rectify them
- [ ] closes #47058 (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... | https://api.github.com/repos/pandas-dev/pandas/pulls/47119 | 2022-05-25T18:24:10Z | 2022-05-25T21:34:06Z | 2022-05-25T21:34:06Z | 2022-05-26T03:46:57Z |
Backport PR #47096 on branch 1.4.x (fix pandas.show_versions() and remove pin for setuptools) | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 23a48e567dfe9..753e288f5e391 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -54,11 +54,10 @@ jobs:
with:
python-version: '3.11-dev'
- # TODO: GH#44980 https://github.com/p... | Backport PR #47096: fix pandas.show_versions() and remove pin for setuptools | https://api.github.com/repos/pandas-dev/pandas/pulls/47118 | 2022-05-25T13:45:51Z | 2022-05-25T19:31:52Z | 2022-05-25T19:31:52Z | 2022-05-25T19:31:52Z |
Fix reading SAS7BDAT files with zero rows | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index ac9f8b02c7acb..61848cb127029 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -819,6 +819,7 @@ I/O
- Bug in :func:`read_excel` when reading a ``.ods`` file with newlines between xml elements (:issue:`4... | - [x] closes #18198 (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/47116 | 2022-05-25T12:17:01Z | 2022-05-31T17:05:03Z | 2022-05-31T17:05:03Z | 2022-05-31T17:05:14Z |
Fix reading some RDC compressed pages | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 4ba9628d8f275..defd7a262f681 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -842,6 +842,7 @@ I/O
- Bug in :func:`read_excel` when reading a ``.ods`` file with newlines between xml elements (:issue:`4... | - [x] closes #35545 (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/47115 | 2022-05-25T11:50:00Z | 2022-06-09T22:53:25Z | 2022-06-09T22:53:25Z | 2022-06-09T22:53:31Z |
DOC: added copy functionality in code blocks | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 49025288f0449..219c468ae51c9 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -61,6 +61,7 @@
"matplotlib.sphinxext.plot_directive",
"sphinx.ext.intersphinx",
"sphinx.ext.coverage",
+ "sphinx_copybutton",
"sphinx.ext.mathjax",
... | Hi, I was going through the docs and thought it would be convenient to have a copy button in the code blocks. So I tried to add it and it works fine. If this is something you'd want as well then, I'll continue to work on this further to make it more reusable and clean. Please let me know what you think. Thank you.
... | https://api.github.com/repos/pandas-dev/pandas/pulls/47114 | 2022-05-25T10:38:49Z | 2022-07-22T17:53:18Z | null | 2022-07-22T17:53:18Z |
Fix SAS 0x40 control byte handling and column name parsing | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 76f6e864a174f..3d8a174740498 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -874,6 +874,9 @@ I/O
- Bug in :class:`StataWriter` where value labels were always written with default encoding (:issue:`46... | - [x] closes #31243 (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/47113 | 2022-05-25T09:40:19Z | 2022-06-24T21:31:58Z | 2022-06-24T21:31:57Z | 2022-06-24T21:32:04Z |
BUG Avoid IndexError on writing empty (row) MI df to excel (GH19543) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 5891eeea98cbb..9fc77a7aaa126 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -872,6 +872,7 @@ I/O
- Bug in :func:`read_sas` returned ``None`` rather than an empty DataFrame for SAS7BDAT files with zer... | - [x] closes #19543
- [x] Tests added and passed
- [x] All code checks passed
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
| https://api.github.com/repos/pandas-dev/pandas/pulls/47111 | 2022-05-25T05:36:39Z | 2022-06-15T19:58:17Z | 2022-06-15T19:58:17Z | 2022-06-17T04:08:31Z |
astype_overflowsafe handle timedelta64 | diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py
index 73c93eb905ab2..68452ce011f9d 100644
--- a/pandas/_libs/tslibs/__init__.py
+++ b/pandas/_libs/tslibs/__init__.py
@@ -26,6 +26,7 @@
"BaseOffset",
"tz_compare",
"is_unitless",
+ "astype_overflowsafe",
"get_unit_from... | - [ ] 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/47110 | 2022-05-25T02:33:42Z | 2022-06-03T16:35:16Z | 2022-06-03T16:35:16Z | 2022-06-03T17:23:46Z |
make series axis parameter docs consistent | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 63a3165b65e10..9ae3eecd9b1ca 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -2004,6 +2004,7 @@ def std(
----------
axis : int optional, default None
Axis for the fun... | - [x] closes #47100
- [x] closes #45969
- [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/47109 | 2022-05-25T01:46:39Z | 2022-05-27T15:47:24Z | 2022-05-27T15:47:23Z | 2022-06-13T23:52:06Z |
Convert ExtensionDtype class objects to instances of that class | diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py
index 6776064342db0..f93ca4e0f903d 100644
--- a/pandas/core/dtypes/common.py
+++ b/pandas/core/dtypes/common.py
@@ -3,6 +3,7 @@
"""
from __future__ import annotations
+import inspect
from typing import (
Any,
Callable,
@@ -67,6 +68,... | - [x] closes #31356, closes #45417
- [ ] [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-... | https://api.github.com/repos/pandas-dev/pandas/pulls/47108 | 2022-05-24T23:51:00Z | 2022-07-22T17:54:17Z | null | 2022-07-22T17:54:17Z |
BUG: Resampler attempts to aggregate the `on` column | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e9e13c3ed5bbe..2aec414f2ad89 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -855,7 +855,7 @@ Groupby/resample/rolling
- Bug in :meth:`Grouper.__repr__` where ``dropna`` was not included. Now it is (:... | - [x] closes #47079 (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/47107 | 2022-05-24T21:15:57Z | 2022-05-27T12:53:32Z | 2022-05-27T12:53:31Z | 2022-05-27T13:18:35Z |
BUG Fix: Cannot read pickle generate_legacy_storage_files version 1.4.2 under environment pandas version 1.5.0 (incompatibilites issue) | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index abdb4aebb625f..a1dc70397fbb9 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -148,7 +148,7 @@ cdef inline _Timestamp create_timestamp_from_ts(
return ts_base
-def _unpickle_tim... | - [x] closes #47090
- [ ] [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/47104 | 2022-05-24T16:59:25Z | 2022-05-24T18:41:39Z | 2022-05-24T18:41:39Z | 2022-05-31T16:12:36Z |
Fix SAS7BDAT run-length encoding formula | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 6fc1ec9c6ff90..a462c343d0bd3 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -940,6 +940,7 @@ I/O
- Bug in :meth:`DataFrame.to_excel` when writing an empty dataframe with :class:`MultiIndex` (:issue:`... | Run across an error/simplification? of a RLE formula in the SAS7BDAT parser. The original code https://bitbucket.org/jaredhobbs/sas7bdat/src/18cbd14407918c1aa90f136c1d6c5d83f307dba0/sas7bdat.py#lines-110:114 has the correct formula. I am not sure why we have another version.
Unfortunately I do not know how to add a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/47099 | 2022-05-23T21:56:03Z | 2022-07-05T17:15:52Z | 2022-07-05T17:15:52Z | 2022-07-05T17:21:59Z |
Fix segfault with printing dataframe | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index b462f0c6a8ffe..cb2e24437433c 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in taking ... | GH 46848
- [x] closes #46848
- [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-com... | https://api.github.com/repos/pandas-dev/pandas/pulls/47097 | 2022-05-23T17:34:21Z | 2022-08-05T18:36:40Z | null | 2022-08-05T18:36:41Z |
fix pandas.show_versions() and remove pin for setuptools | diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml
index 23a48e567dfe9..753e288f5e391 100644
--- a/.github/workflows/python-dev.yml
+++ b/.github/workflows/python-dev.yml
@@ -54,11 +54,10 @@ jobs:
with:
python-version: '3.11-dev'
- # TODO: GH#44980 https://github.com/p... | closes #44980
labelled as 1.4.3 as seeing failures on release checks
(strange I cannot reproduce issue on editable install on 1.4.x or main) | https://api.github.com/repos/pandas-dev/pandas/pulls/47096 | 2022-05-23T12:05:13Z | 2022-05-25T13:45:21Z | 2022-05-25T13:45:21Z | 2022-05-25T14:40:08Z |
DOC/CI: Use more explicit data setup in user guides | diff --git a/doc/data/fx_prices b/doc/data/fx_prices
deleted file mode 100644
index 38cadf26909a3..0000000000000
Binary files a/doc/data/fx_prices and /dev/null differ
diff --git a/doc/data/mindex_ex.csv b/doc/data/mindex_ex.csv
deleted file mode 100644
index 935ff936cd842..0000000000000
--- a/doc/data/mindex_ex.csv
++... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Should fix the current CI failure for the docbuild.
* Use more explicit setup in `io.rst` instead of files / `:suppress:`
* Remove some static files that are no longer needed after refacto... | https://api.github.com/repos/pandas-dev/pandas/pulls/47093 | 2022-05-22T20:00:51Z | 2022-05-27T12:33:39Z | 2022-05-27T12:33:39Z | 2022-05-27T15:09:26Z |
Bug Fix: pd.DataFrame.sum with min_count changes dtype if result contains NaNs | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e9e13c3ed5bbe..ebb4708ada45b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -780,7 +780,7 @@ Indexing
- Bug in setting large integer values into :class:`Series` with ``float32`` or ``float16`` dtype ... | - [ ] closes #46947
- [ ] [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/47091 | 2022-05-22T15:05:08Z | 2022-05-29T19:52:48Z | 2022-05-29T19:52:48Z | 2022-05-30T00:17:36Z |
ENH: move SpecificationError to error/__init__.py | diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst
index f91db4600daec..f636ee1806c9b 100644
--- a/doc/source/reference/testing.rst
+++ b/doc/source/reference/testing.rst
@@ -41,6 +41,7 @@ Exceptions and warnings
errors.ParserError
errors.ParserWarning
errors.PerformanceWarning... | - [x] xref #27656. this GitHub issue is being done in multiple parts
- [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/developme... | https://api.github.com/repos/pandas-dev/pandas/pulls/47089 | 2022-05-22T00:39:16Z | 2022-05-26T17:45:18Z | 2022-05-26T17:45:18Z | 2022-05-27T20:15:12Z |
TST: Added test for bug Reindexing pd.Float64Dtype() series gives runtime warnings when passed to np.log | diff --git a/pandas/tests/series/methods/test_reindex.py b/pandas/tests/series/methods/test_reindex.py
index e0f1491f49485..b64c7bec6ea39 100644
--- a/pandas/tests/series/methods/test_reindex.py
+++ b/pandas/tests/series/methods/test_reindex.py
@@ -2,7 +2,9 @@
import pytest
from pandas import (
+ NA,
Catego... | - [x] closes #47055
- [x] [Tests added and passed] if fixing a bug or adding a new feature
- [x] All [code checks passed]
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
| https://api.github.com/repos/pandas-dev/pandas/pulls/47087 | 2022-05-21T21:51:12Z | 2022-06-08T16:31:21Z | 2022-06-08T16:31:20Z | 2022-06-08T16:31:28Z |
Backport PR #47078 on branch 1.4.x (REGR: Raise NotImplementedError for agg with axis=1 and multiple funcs) | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 7c09eec212d69..415a3ff4efda0 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -18,6 +18,8 @@ Fixed regressions
- Fixed regression in :func:`read_fwf` raising ``ValueError`` when ``widths`` was specifie... | Backport PR #47078: REGR: Raise NotImplementedError for agg with axis=1 and multiple funcs | https://api.github.com/repos/pandas-dev/pandas/pulls/47086 | 2022-05-21T19:37:05Z | 2022-05-22T17:58:48Z | 2022-05-22T17:58:48Z | 2022-05-22T17:58:49Z |
BUG: Eval scopes ignoring empty dictionaries (#47084) | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 54cad82366e43..18d0a0fd97d1f 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -30,6 +30,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Bug in :meth:`pd.eval`, :meth:`DataFrame.eval` and :meth:`DataFr... | closes [#47084](https://github.com/pandas-dev/pandas/issues/47084)
- [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/developm... | https://api.github.com/repos/pandas-dev/pandas/pulls/47085 | 2022-05-21T17:14:46Z | 2022-06-05T22:26:56Z | 2022-06-05T22:26:55Z | 2022-06-05T22:27:38Z |
DOC: Ignore certain doctest warnings | diff --git a/pandas/conftest.py b/pandas/conftest.py
index d330c2de9d23f..1a740d40480b0 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -105,6 +105,24 @@ def pytest_addoption(parser):
)
+def ignore_doctest_warning(item: pytest.Item, path: str, message: str) -> None:
+ """Ignore doctest warning.
... | Part of #44642
- [ ] [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).
- [ ] Ad... | https://api.github.com/repos/pandas-dev/pandas/pulls/47083 | 2022-05-21T15:11:08Z | 2022-05-21T19:35:35Z | 2022-05-21T19:35:35Z | 2022-05-22T13:21:23Z |
BUG: Fix `set_sticky` background | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 581473d3c4798..013fccaacf534 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -812,6 +812,7 @@ Styler
^^^^^^
- Bug when attempting to apply styling functions to an empty DataFrame subset (:issue:`4531... | - [x] closes #46984 (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/47082 | 2022-05-21T08:35:28Z | 2022-05-26T17:59:44Z | 2022-05-26T17:59:44Z | 2023-04-22T05:59:46Z |
BLD: Build shared c dependencies as a library | diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml
index 23bb988ef4d73..bc9bbb82fea06 100644
--- a/.github/actions/build_pandas/action.yml
+++ b/.github/actions/build_pandas/action.yml
@@ -16,7 +16,4 @@ runs:
python -m pip install -e . --no-build-isolation --no-use-p... | - [ ] closes #30873 (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/47081 | 2022-05-21T04:10:19Z | 2022-09-24T21:59:24Z | null | 2023-03-14T12:16:16Z |
DOC: Fix assorted doc warnings | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 184bdcfd39bf6..49025288f0449 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -9,13 +9,13 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.
-
from datetime import datetime
import importlib... | Part of #44642
- [ ] [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).
- [ ] Ad... | https://api.github.com/repos/pandas-dev/pandas/pulls/47080 | 2022-05-21T04:02:22Z | 2022-05-21T19:36:05Z | 2022-05-21T19:36:05Z | 2022-05-22T13:21:42Z |
REGR: Raise NotImplementedError for agg with axis=1 and multiple funcs | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 7c09eec212d69..415a3ff4efda0 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -18,6 +18,8 @@ Fixed regressions
- Fixed regression in :func:`read_fwf` raising ``ValueError`` when ``widths`` was specifie... | - [x] closes #46995 (Replace xxxx with the Github issue number)
- [x] closes #46904
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-do... | https://api.github.com/repos/pandas-dev/pandas/pulls/47078 | 2022-05-21T02:30:25Z | 2022-05-21T19:36:39Z | 2022-05-21T19:36:39Z | 2022-05-23T01:45:34Z |
REF: Manager.fast_xs to return SingleBlockManager instead of array | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 51ca9dbd763b4..2fd0cc79a8ca8 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3484,16 +3484,13 @@ def _ixs(self, i: int, axis: int = 0):
"""
# irow
if axis == 0:
- new_values = self._mgr.fast_xs(i)
+ ... | This is something that I encountered in https://github.com/pandas-dev/pandas/pull/46958, but again something that can be broken off / potentially useful anyway.
Currently the `fast_xs` method returns an array, but the only two places where it is being used (`xs` / `_ixs`), this array is directly wrapped in a Series... | https://api.github.com/repos/pandas-dev/pandas/pulls/47077 | 2022-05-20T18:34:43Z | 2022-05-22T01:20:44Z | 2022-05-22T01:20:44Z | 2022-05-22T09:50:26Z |
ENH: liboffsets support non-nano | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index 9db2e2c2a9732..496db66c78569 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -420,7 +420,7 @@ def time_add_overflow_both_arg_nan(self):
hcal = pd.tseries.holiday.USFederalHolidayCa... | - [ ] 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/47076 | 2022-05-20T17:04:10Z | 2022-05-22T18:04:16Z | 2022-05-22T18:04:16Z | 2022-05-22T20:28:11Z |
CI: mypy&pyright in manual pre-commit stage | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 7d24b26f5538b..7812c4dd00bcb 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -67,15 +67,6 @@ jobs:
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: true
- - na... | xref https://github.com/pandas-dev/pandas/pull/47067#discussion_r877610624 | https://api.github.com/repos/pandas-dev/pandas/pulls/47075 | 2022-05-20T16:20:41Z | 2022-05-22T18:10:26Z | 2022-05-22T18:10:26Z | 2022-05-26T01:58:33Z |
REF: Add Manager.column_setitem to set values into a single column (without intermediate series) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 54ee5ed2f35d1..879a6a2a034d6 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -98,7 +98,6 @@
)
from pandas.core.dtypes.cast import (
- LossySetitemError,
can_hold_element,
construct_1d_arraylike_from_scalar,
construct_2d... | The `column_setitem` is a method I was adding in https://github.com/pandas-dev/pandas/pull/46958, is something that can be broken off from that PR, and is IMO also a generally useful change.
Currently in some cases to set values into a single column (eg `df.loc[idx, "A"] = value`), we create an intermediate Series f... | https://api.github.com/repos/pandas-dev/pandas/pulls/47074 | 2022-05-20T16:04:53Z | 2022-06-08T20:13:10Z | 2022-06-08T20:13:09Z | 2022-06-08T20:13:13Z |
Backport PR #47059 on branch 1.4.x (REGR: Styler buf and encoding in to_latex and to_html) | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 10cf8541effd6..4a8169c0609fd 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -1049,10 +1049,12 @@ def to_latex(
clines=clines,
)
- encoding = encoding or get_option("styler.render.encodi... | Backport PR #47059
release note already backported in #47062 | https://api.github.com/repos/pandas-dev/pandas/pulls/47072 | 2022-05-20T11:02:17Z | 2022-05-21T19:54:26Z | 2022-05-21T19:54:26Z | 2022-05-23T13:07:16Z |
TST: add copy/view test for setting columns with an array/series | diff --git a/pandas/conftest.py b/pandas/conftest.py
index d330c2de9d23f..c0ae92c1778bc 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -1797,3 +1797,11 @@ def using_array_manager():
Fixture to check if the array manager is being used.
"""
return pd.options.mode.data_manager == "array"
+
+
+@... | Similarly as https://github.com/pandas-dev/pandas/pull/46979, this is adding some test cases explicitly testing copy/view behaviour for a specific topic: if we set an array or series as a column, is the new column a copy or a view of the original data?
At this moment, we actually already do make a copy of that data (... | https://api.github.com/repos/pandas-dev/pandas/pulls/47070 | 2022-05-20T09:06:10Z | 2022-05-25T21:40:01Z | 2022-05-25T21:40:01Z | 2022-05-30T23:46:58Z |
CLN: Move test_parallel to gil.py | diff --git a/asv_bench/benchmarks/gil.py b/asv_bench/benchmarks/gil.py
index af2efe56c2530..31654a5c75617 100644
--- a/asv_bench/benchmarks/gil.py
+++ b/asv_bench/benchmarks/gil.py
@@ -1,3 +1,6 @@
+from functools import wraps
+import threading
+
import numpy as np
from pandas import (
@@ -30,21 +33,57 @@
from ... | - [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).
Only used in this file, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/47068 | 2022-05-20T01:37:40Z | 2022-05-20T12:52:43Z | 2022-05-20T12:52:43Z | 2022-05-20T16:10:02Z |
CI: use github action for pyright | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 7d24b26f5538b..18bed0714e5c5 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -67,15 +67,6 @@ jobs:
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: true
- - na... | pyright has a github action integration https://github.com/microsoft/pyright/blob/main/docs/ci-integration.md
I added the `--skipunannotated` option to prevent pyright from trying to infer missing return annotation (mypy doesn't do that either). That does not make a difference at the moment but it cuts reportGeneral... | https://api.github.com/repos/pandas-dev/pandas/pulls/47067 | 2022-05-19T23:17:00Z | 2022-05-20T14:50:31Z | null | 2022-05-26T01:58:32Z |
TYP: resolve mypy ignores in core/apply.py | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index c04d0821fffdc..199382deadfc3 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -32,6 +32,7 @@
AggObjType,
Axis,
NDFrameT,
+ npt,
)
from pandas.util._decorators import cache_readonly
from pandas.util._exceptions import find... | xref https://github.com/pandas-dev/pandas/issues/37715 | https://api.github.com/repos/pandas-dev/pandas/pulls/47066 | 2022-05-19T21:30:33Z | 2022-05-30T12:14:08Z | 2022-05-30T12:14:08Z | 2022-05-30T12:14:08Z |
DOC: Fix deprecation warnings in docs for groupby nuisance columns | diff --git a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst b/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst
index 298d0c4e0111c..346a5cecf601d 100644
--- a/doc/source/getting_started/intro_tutorials/06_calculate_statistics.rst
+++ b/doc/source/getting_started/intro_tutor... | - [ ] 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
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47065 | 2022-05-19T20:59:35Z | 2022-05-19T23:23:44Z | 2022-05-19T23:23:44Z | 2022-05-20T00:08:58Z |
TYP: resolve mypy ignores in core/groupby/ops.py | diff --git a/pandas/core/groupby/ops.py b/pandas/core/groupby/ops.py
index 49c86359c0d55..7f74c60c8e534 100644
--- a/pandas/core/groupby/ops.py
+++ b/pandas/core/groupby/ops.py
@@ -416,16 +416,14 @@ def _reconstruct_ea_result(
if isinstance(values.dtype, StringDtype):
dtype = values.dtype
- ... | xref https://github.com/pandas-dev/pandas/issues/37715 | https://api.github.com/repos/pandas-dev/pandas/pulls/47064 | 2022-05-19T20:35:46Z | 2022-05-21T20:03:33Z | 2022-05-21T20:03:33Z | 2022-05-21T20:03:37Z |
Backport PR #47057 on branch 1.4.x (BUG: groupby.transform/agg with engine='numba' and a MultiIndex) | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 0c326e15d90ed..7c09eec212d69 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -16,7 +16,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.nsmallest` led to wrong results ... | Backport PR #47057 | https://api.github.com/repos/pandas-dev/pandas/pulls/47062 | 2022-05-19T16:56:43Z | 2022-05-19T23:03:26Z | 2022-05-19T23:03:25Z | 2022-05-20T08:53:42Z |
DOC: Improve reshape\concat | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index c2b36dab4a67e..523cd56db3e0a 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -226,6 +226,9 @@ def concat(
pandas objects can be found `here
<https://pandas.pydata.org/pandas-docs/stable/user_guid... | - [x] closes #46825
- [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/47061 | 2022-05-19T15:09:14Z | 2022-05-27T12:28:42Z | 2022-05-27T12:28:41Z | 2022-05-27T12:28:46Z |
REGR: Styler `buf` and `encoding` in `to_latex` and `to_html` | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 0c326e15d90ed..23c8ad63bf7bb 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -16,7 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.nsmallest` led to wrong results ... | - [x] closes #47053
is regression should be backported | https://api.github.com/repos/pandas-dev/pandas/pulls/47059 | 2022-05-18T21:24:09Z | 2022-05-19T12:00:29Z | 2022-05-19T12:00:28Z | 2022-05-27T07:15:26Z |
BUG: groupby.transform/agg with engine='numba' and a MultiIndex | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index 23c8ad63bf7bb..7c09eec212d69 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -16,6 +16,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.nsmallest` led to wrong results ... | - [x] closes #46867 (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/47057 | 2022-05-18T20:46:29Z | 2022-05-19T16:49:22Z | 2022-05-19T16:49:22Z | 2022-05-20T08:54:51Z |
BUG: `DataFrame.shift` shows different behavior for `axis=1` when `freq` is specified | diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst
index f0e208a117068..0aa5c13b5b11a 100644
--- a/doc/source/whatsnew/v1.4.3.rst
+++ b/doc/source/whatsnew/v1.4.3.rst
@@ -22,6 +22,7 @@ Fixed regressions
- Fixed regression in :func:`read_csv` with ``index_col=False`` identifying first row as i... | - [x] closes #47039
- [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/47051 | 2022-05-18T03:05:05Z | 2022-05-28T10:10:48Z | 2022-05-28T10:10:47Z | 2022-05-29T01:36:46Z |
CLN/TST: Remove tm.makeUnicodeIndex | diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py
index f0a855b575139..eec722c9f167b 100644
--- a/asv_bench/benchmarks/strings.py
+++ b/asv_bench/benchmarks/strings.py
@@ -268,7 +268,7 @@ def time_get_dummies(self, dtype):
class Encode:
def setup(self):
- self.ser = Series(tm... | - [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).
Since `np.str_` == `np.u... | https://api.github.com/repos/pandas-dev/pandas/pulls/47050 | 2022-05-18T03:02:06Z | 2022-05-19T12:11:23Z | 2022-05-19T12:11:23Z | 2022-05-19T16:44:00Z |
CI/TST: Lower recurison limit for test_json:test_series_constructor_scalar_with_index on Windows | diff --git a/pandas/tests/extension/json/test_json.py b/pandas/tests/extension/json/test_json.py
index f1e8e82d23691..f3129a89124f4 100644
--- a/pandas/tests/extension/json/test_json.py
+++ b/pandas/tests/extension/json/test_json.py
@@ -186,7 +186,13 @@ def test_series_constructor_scalar_na_with_index(self, dtype, na_v... | xref: https://github.com/pandas-dev/pandas/pull/46950 | https://api.github.com/repos/pandas-dev/pandas/pulls/47049 | 2022-05-18T00:39:12Z | 2022-05-19T12:08:32Z | 2022-05-19T12:08:32Z | 2022-05-19T16:44:14Z |
DEPS: Bump optional dependencies | diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml
index 99f8b89d1d562..786b304bdfc1d 100644
--- a/ci/deps/actions-38-minimum_versions.yaml
+++ b/ci/deps/actions-38-minimum_versions.yaml
@@ -20,38 +20,37 @@ dependencies:
- numpy=1.18.5
- pytz=2020.1
- # optional de... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/47048 | 2022-05-18T00:30:55Z | 2022-05-19T12:10:39Z | 2022-05-19T12:10:39Z | 2022-05-19T16:44:07Z |
ENH: move DataError from core/base.py to error/__init__.py per GH27656 | diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst
index 0d702dd4e702d..f91db4600daec 100644
--- a/doc/source/reference/testing.rst
+++ b/doc/source/reference/testing.rst
@@ -26,6 +26,7 @@ Exceptions and warnings
errors.AbstractMethodError
errors.AccessorRegistrationWarning
+ e... | - [x] xref #27656. I think it might be best to do this GitHub issue in multiple parts
- [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-d... | https://api.github.com/repos/pandas-dev/pandas/pulls/47047 | 2022-05-18T00:10:11Z | 2022-05-21T19:55:29Z | 2022-05-21T19:55:29Z | 2022-05-21T19:55:34Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.