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
Bump pre-commit/action from 3.0.0 to 3.0.1
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 8e29d56f47dcf..24b2de251ce8e 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -86,7 +86,7 @@ jobs: if: ${{ steps.build.outcome == 'success' && always() }} - name: Typing + pyli...
Bumps [pre-commit/action](https://github.com/pre-commit/action) from 3.0.0 to 3.0.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/pre-commit/action/releases">pre-commit/action's releases</a>.</em></p> <blockquote> <h2>pre-commit/action@v3.0.1</h2> <h3>Misc</h3> <ul> <li>Upd...
https://api.github.com/repos/pandas-dev/pandas/pulls/57376
2024-02-12T08:28:08Z
2024-02-12T16:58:20Z
2024-02-12T16:58:20Z
2024-02-12T16:58:23Z
DEPR: Positional arguments in Series.to_string
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 483cf659080ea..77c80dcfe7c7e 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -102,6 +102,7 @@ Deprecations ~~~~~~~~~~~~ - Deprecated :meth:`Timestamp.utcfromtimestamp`, use ``Timestamp.fromtimestamp(...
- [X] closes #57280 - [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/57375
2024-02-12T04:03:04Z
2024-02-17T13:11:08Z
2024-02-17T13:11:08Z
2024-02-17T17:14:36Z
DEPR: Positional arguments in Series.to_markdown
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index 77c80dcfe7c7e..4620de570e230 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -102,6 +102,7 @@ Deprecations ~~~~~~~~~~~~ - Deprecated :meth:`Timestamp.utcfromtimestamp`, use ``Timestamp.fromtimestamp(...
- [X] closes #57280 - [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/57372
2024-02-12T02:18:44Z
2024-02-18T21:57:38Z
2024-02-18T21:57:38Z
2024-02-18T22:00:20Z
Remove close from StataReader
diff --git a/doc/source/whatsnew/v3.0.0.rst b/doc/source/whatsnew/v3.0.0.rst index aa378faac2a00..a830fb594051f 100644 --- a/doc/source/whatsnew/v3.0.0.rst +++ b/doc/source/whatsnew/v3.0.0.rst @@ -115,6 +115,7 @@ Removal of prior version deprecations/changes - Removed ``Series.__int__`` and ``Series.__float__``. Call ...
- [ ] 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/57371
2024-02-11T22:05:23Z
2024-02-12T17:11:32Z
2024-02-12T17:11:32Z
2024-02-12T17:15:14Z
DOC: GL01 numpydoc validation
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 744f934142a24..823687cc20ca0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,8 +93,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, S...
- [x] closes #25324 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44567
2021-11-22T00:34:24Z
2021-11-25T20:48:16Z
2021-11-25T20:48:16Z
2021-11-26T02:05:51Z
PERF: only apply nanops rowwise optimization for narrow arrows
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index d728e6e695c7a..52d2322b11f42 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -455,7 +455,8 @@ def _na_for_min_count(values: np.ndarray, axis: int | None) -> Scalar | np.ndarr def maybe_operate_rowwise(func: F) -> F: """ NumPy ...
See the timings in https://github.com/pandas-dev/pandas/pull/43311#issuecomment-974891737 (this is a regression compared to previous release mostly when using ArrayManager (and thus doesn't need a whatsnew) and is covered by the FrameOps benchmarks)
https://api.github.com/repos/pandas-dev/pandas/pulls/44566
2021-11-21T20:48:48Z
2021-11-23T15:55:03Z
2021-11-23T15:55:03Z
2021-11-24T21:45:39Z
Backport PR #44561 on branch 1.3.x (CI: fix deprecation warning on interpolation)
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index 619713f28ee2d..2d60164ccf075 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -12,9 +12,15 @@ np_version_under1p18 = _nlv < Version("1.18") np_version_under1p19 = _nlv < Version("1.19") np_versio...
Backport PR #44561: CI: fix deprecation warning on interpolation
https://api.github.com/repos/pandas-dev/pandas/pulls/44565
2021-11-21T20:33:40Z
2021-11-21T22:04:32Z
2021-11-21T22:04:32Z
2021-11-21T22:04:32Z
BUG: DataFrame.shift with axis=1 and mismatched fill_value
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index fecfc956852e3..653082fa3b67a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -753,6 +753,7 @@ Other - Bug in :meth:`Series.to_frame` and :meth:`Index.to_frame` ignoring the ``name`` argument when ``na...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44564
2021-11-21T17:22:54Z
2021-11-25T20:46:59Z
2021-11-25T20:46:59Z
2021-11-26T04:44:52Z
CLN/PERF: remove unnecessary ensure_platform_int
diff --git a/pandas/core/array_algos/take.py b/pandas/core/array_algos/take.py index 87d55702b33e0..c9d6640101a8b 100644 --- a/pandas/core/array_algos/take.py +++ b/pandas/core/array_algos/take.py @@ -179,8 +179,6 @@ def take_1d( Note: similarly to `take_nd`, this function assumes that the indexer is a valid(...
This line was added in https://github.com/pandas-dev/pandas/pull/43977, while the docstring and type information (as added in https://github.com/pandas-dev/pandas/pull/43977) indicates this is already the case.
https://api.github.com/repos/pandas-dev/pandas/pulls/44563
2021-11-21T17:03:11Z
2021-11-22T08:54:21Z
2021-11-22T08:54:21Z
2021-11-22T08:54:25Z
PERF/BUG: ensure we store contiguous arrays in DataFrame(ndarray) for ArrayManager
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 803d1c914c954..b8d8e7a2bb893 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -593,13 +593,6 @@ def __init__( copy: bool | None = None, ): - if copy is None: - if isinstance(data, dict) or data is None: - ...
https://github.com/pandas-dev/pandas/pull/42689 removed an "unwanted" copy, but I actually added this on purpose. This is to ensure we store contiguous 1D arrays by default, which is important for performance reasons.
https://api.github.com/repos/pandas-dev/pandas/pulls/44562
2021-11-21T16:22:51Z
2021-11-30T07:32:07Z
2021-11-30T07:32:07Z
2021-11-30T07:32:10Z
CI: fix deprecation warning on interpolation
diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py index 5b87257651a2d..2792a756bf20c 100644 --- a/pandas/compat/numpy/__init__.py +++ b/pandas/compat/numpy/__init__.py @@ -11,9 +11,15 @@ _nlv = Version(_np_version) np_version_under1p19 = _nlv < Version("1.19") np_version_under1p20 = _nlv...
Let's see if this fixes npdev / python dev builds
https://api.github.com/repos/pandas-dev/pandas/pulls/44561
2021-11-21T15:42:18Z
2021-11-21T20:33:07Z
2021-11-21T20:33:07Z
2021-11-21T20:45:30Z
PERF: avoid copy in concatenate_array_managers if reindex already copies
diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py index fcd5cd0979252..598974979fefb 100644 --- a/pandas/core/internals/array_manager.py +++ b/pandas/core/internals/array_manager.py @@ -527,8 +527,8 @@ def copy_func(ax): if deep: new_arrays = [arr.copy() ...
@jbrockmendel https://github.com/pandas-dev/pandas/pull/42797 added an unconditional copy, while if you reindex the arrays, you already are sure you have a copy. This gives a 20% improvement on some of the merge benchmarks.
https://api.github.com/repos/pandas-dev/pandas/pulls/44559
2021-11-21T14:17:58Z
2021-12-06T14:27:49Z
2021-12-06T14:27:49Z
2021-12-06T14:28:53Z
Backport PR #44557 on branch 1.3.x (DOC: follow-up to #44518, move release note)
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index 34e67e51e47e3..dabd9a650f45b 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`Series.equals` when comparing floats with ...
Backport PR #44557
https://api.github.com/repos/pandas-dev/pandas/pulls/44558
2021-11-21T13:42:44Z
2021-11-21T14:55:38Z
2021-11-21T14:55:38Z
2021-11-21T14:55:42Z
DOC: follow-up to #44518, move release note
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index 34e67e51e47e3..dabd9a650f45b 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`Series.equals` when comparing floats with ...
follow-up to #44518
https://api.github.com/repos/pandas-dev/pandas/pulls/44557
2021-11-21T11:50:47Z
2021-11-21T13:38:32Z
2021-11-21T13:38:32Z
2021-11-21T13:43:16Z
Partial Backport PR #44529 on branch 1.3.x (CLN: tighten noqas)
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 1b28aa2900f65..bb0b5ecb2c0ee 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -2977,6 +2977,7 @@ Read in the content of the "books.xml" as instance of ``StringIO`` or Even read XML from AWS S3 buckets such as ...
xref https://github.com/pandas-dev/pandas/pull/44529#issuecomment-974722662
https://api.github.com/repos/pandas-dev/pandas/pulls/44556
2021-11-21T11:30:48Z
2021-11-21T13:37:30Z
2021-11-21T13:37:30Z
2021-11-21T13:37:33Z
Backport PR #44523 on branch 1.3.x (COMPAT: Matplotlib 3.5.0)
diff --git a/pandas/plotting/_matplotlib/compat.py b/pandas/plotting/_matplotlib/compat.py index 70ddd1ca09c7e..5569b1f2979b0 100644 --- a/pandas/plotting/_matplotlib/compat.py +++ b/pandas/plotting/_matplotlib/compat.py @@ -24,3 +24,4 @@ def inner(): mpl_ge_3_2_0 = _mpl_version("3.2.0", operator.ge) mpl_ge_3_3_0 = _...
Backport PR #44523
https://api.github.com/repos/pandas-dev/pandas/pulls/44555
2021-11-21T11:10:17Z
2021-11-21T12:24:42Z
2021-11-21T12:24:42Z
2021-11-21T12:24:47Z
[EHN] pandas.DataFrame.to_orc
diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst index ea27d1efbb235..e71ee80767d29 100644 --- a/doc/source/reference/frame.rst +++ b/doc/source/reference/frame.rst @@ -373,6 +373,7 @@ Serialization / IO / conversion DataFrame.from_dict DataFrame.from_records + DataFrame.to_orc ...
- [x] closes #43864 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44554
2021-11-21T08:29:36Z
2022-06-14T00:02:13Z
2022-06-14T00:02:13Z
2022-06-14T00:22:29Z
CI: Make codecov patch checks informational
diff --git a/codecov.yml b/codecov.yml index 893e40db004a6..883f9fbb20729 100644 --- a/codecov.yml +++ b/codecov.yml @@ -12,6 +12,7 @@ coverage: patch: default: target: '50' + informational: true github_checks: annotations: false
To avoid some false positive coverage results which can make an entire PR appear that it's failing: https://github.com/pandas-dev/pandas/pull/44546/checks?check_run_id=4275864618 https://github.com/pandas-dev/pandas/pull/44461/checks?check_run_id=4276518961 Change codecov patch builds to always pass but still re...
https://api.github.com/repos/pandas-dev/pandas/pulls/44553
2021-11-21T06:15:17Z
2021-11-21T23:41:45Z
2021-11-21T23:41:45Z
2021-11-22T00:09:05Z
TST: Avoid time dependency in GCS zip test
diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py index 887889bce1eaa..2e8e4a9017dbc 100644 --- a/pandas/tests/io/test_gcs.py +++ b/pandas/tests/io/test_gcs.py @@ -1,5 +1,6 @@ from io import BytesIO import os +import zipfile import numpy as np import pytest @@ -88,16 +89,23 @@ def test_to_rea...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them To avoid CI flakiness from this test, only compare the checksum of the ZIP contents to avoid comparing the flaky last modified t...
https://api.github.com/repos/pandas-dev/pandas/pulls/44552
2021-11-21T04:45:48Z
2021-11-22T21:18:15Z
2021-11-22T21:18:15Z
2021-11-22T21:18:19Z
BUG: Indexing on nullable column
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 37e4c9a1378d1..02ef4d2b6acab 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -618,6 +618,8 @@ Indexing - Bug in :meth:`Series.__setitem__` with a boolean mask indexer setting a listlike value of lengt...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44551
2021-11-21T04:13:01Z
2021-11-25T15:15:17Z
2021-11-25T15:15:17Z
2021-11-25T16:05:11Z
TST: Use hypothesis for test_round_sanity
diff --git a/pandas/tests/scalar/timedelta/test_timedelta.py b/pandas/tests/scalar/timedelta/test_timedelta.py index cb3468c097cbf..448ec4353d7e7 100644 --- a/pandas/tests/scalar/timedelta/test_timedelta.py +++ b/pandas/tests/scalar/timedelta/test_timedelta.py @@ -1,6 +1,10 @@ """ test the scalar Timedelta """ from d...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Found this test was flaky in https://github.com/pandas-dev/pandas/runs/4275006116?check_suite_focus=true#step:7:51 Decided to...
https://api.github.com/repos/pandas-dev/pandas/pulls/44550
2021-11-21T01:30:04Z
2021-11-24T01:26:03Z
2021-11-24T01:26:03Z
2021-11-24T01:26:39Z
REF: use base class for BooleanArray any/all
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 0787ec56379b2..925126449eca3 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -21,7 +21,6 @@ npt, type_t, ) -from pandas.compat.numpy import function as nv from pandas.core.dtypes.common impor...
#41970 moved this to the base class, so not needed here anymore
https://api.github.com/repos/pandas-dev/pandas/pulls/44549
2021-11-21T00:29:52Z
2021-11-25T17:47:55Z
2021-11-25T17:47:55Z
2021-11-25T18:00:59Z
REF: deduplicate nullable arrays _cmp_method
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 0787ec56379b2..d3dfd8fec3412 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -5,7 +5,6 @@ TYPE_CHECKING, overload, ) -import warnings import numpy as np @@ -44,7 +43,6 @@ BaseMaskedArr...
xref https://github.com/pandas-dev/pandas/pull/44533#discussion_r753689506, helps on a bullet in #38110
https://api.github.com/repos/pandas-dev/pandas/pulls/44548
2021-11-21T00:21:58Z
2021-11-21T23:36:36Z
2021-11-21T23:36:35Z
2021-11-21T23:38:35Z
Backport PR #44518 on branch 1.3.x (BUG: DataFrame with scalar tzaware Timestamp)
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 92a906e9fd8b0..aadd6faecd861 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -2067,8 +2067,13 @@ def sequence_to_dt64ns( ) if tz and inferred_tz: # two t...
Backport PR #44518
https://api.github.com/repos/pandas-dev/pandas/pulls/44546
2021-11-20T23:04:29Z
2021-11-21T11:52:27Z
2021-11-21T11:52:27Z
2022-01-12T17:22:09Z
BUG: Index with object dtype and negative loc for insert adding none and replacing existing value
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index b962add29db33..c49767e80f535 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -546,6 +546,7 @@ Datetimelike - Bug in constructing a :class:`Series` from datetime-like strings with mixed timezones incor...
- [x] closes #44509 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry This behaves like np.insert, so changed the docstring. Making this compatible with li...
https://api.github.com/repos/pandas-dev/pandas/pulls/44545
2021-11-20T22:49:56Z
2021-11-21T23:49:13Z
2021-11-21T23:49:13Z
2021-11-22T20:30:10Z
COMPAT: Fix the last warning from matplotlib 3.5.0
diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py index 08dc9538227f7..ba47391513ed2 100644 --- a/pandas/plotting/_matplotlib/core.py +++ b/pandas/plotting/_matplotlib/core.py @@ -1036,7 +1036,6 @@ def _plot_colorbar(self, ax: Axes, **kwds): # use the last one which contain...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44544
2021-11-20T22:09:27Z
2021-11-23T00:11:17Z
2021-11-23T00:11:17Z
2021-11-23T03:56:21Z
Backport PR #44531 on branch 1.3.x (Add json normalize back into doc and move read_json to pd namespace)
diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst index 82d4ec4950ef1..7aad937d10a18 100644 --- a/doc/source/reference/io.rst +++ b/doc/source/reference/io.rst @@ -57,7 +57,7 @@ Excel ExcelWriter -.. currentmodule:: pandas.io.json +.. currentmodule:: pandas JSON ~~~~ @@ -65,7 +65,10 @@ ...
Backport PR #44531: Add json normalize back into doc and move read_json to pd namespace
https://api.github.com/repos/pandas-dev/pandas/pulls/44542
2021-11-20T21:11:34Z
2021-11-20T22:52:32Z
2021-11-20T22:52:31Z
2021-11-20T22:52:32Z
REF: remove checknull_old
diff --git a/pandas/_libs/missing.pxd b/pandas/_libs/missing.pxd index e32518864db0a..854dcf2ec9775 100644 --- a/pandas/_libs/missing.pxd +++ b/pandas/_libs/missing.pxd @@ -7,7 +7,6 @@ from numpy cimport ( cpdef bint is_matching_na(object left, object right, bint nan_matches_none=*) cpdef bint checknull(object val,...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44541
2021-11-20T20:04:59Z
2021-11-21T02:34:31Z
2021-11-21T02:34:31Z
2021-11-21T02:36:11Z
CLN: remove is_null_datetimelike
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 25142cad9a30d..611bec50a7393 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1462,7 +1462,7 @@ def infer_dtype(value: object, skipna: bool = True) -> str: for i in range(n): val = values[i] - # do not use is_null_date...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry No longer needed following #44507
https://api.github.com/repos/pandas-dev/pandas/pulls/44540
2021-11-20T19:31:14Z
2021-11-20T21:43:30Z
2021-11-20T21:43:30Z
2021-11-20T21:47:15Z
DEPR: Series/DataFrame.append (#35407)
diff --git a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst b/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst index bdd0f7d8cfddf..19999be9b461f 100644 --- a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst +++ b/doc/source/getting_started/comparison/...
- [x] closes #35407 (adds deprecation warning) - [x] closes #22957 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44539
2021-11-20T17:40:36Z
2021-12-27T20:09:03Z
2021-12-27T20:09:02Z
2021-12-27T20:09:09Z
Backport PR #44530 on branch 1.3.x (Fix regression ignoring arrays in dtype check for merge_asof)
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index 951b05b65c81b..34e67e51e47e3 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`Serie...
Backport PR #44530: Fix regression ignoring arrays in dtype check for merge_asof
https://api.github.com/repos/pandas-dev/pandas/pulls/44538
2021-11-20T16:20:09Z
2021-11-20T20:25:38Z
2021-11-20T20:25:38Z
2021-11-20T20:25:38Z
DOC: update styler user guide for out of date material
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 62e44d73d9f1c..f94f86b4eea58 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -61,7 +61,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The above output looks ver...
- [x] closes #43276 updates some other lines that are out of date.
https://api.github.com/repos/pandas-dev/pandas/pulls/44537
2021-11-20T12:01:34Z
2021-11-20T15:56:51Z
2021-11-20T15:56:51Z
2021-11-21T21:02:03Z
DOC: SS03 numpydoc validation
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index ea9595fd88630..ef026c8e69dbb 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,8 +93,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, S...
- [x] closes #25306 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44536
2021-11-20T06:26:37Z
2021-11-21T20:45:10Z
2021-11-21T20:45:09Z
2021-11-22T00:10:10Z
TST: Address numba warnings in test suite
diff --git a/pandas/tests/groupby/aggregate/test_numba.py b/pandas/tests/groupby/aggregate/test_numba.py index 8e9df8a6da958..e7fa2e0690066 100644 --- a/pandas/tests/groupby/aggregate/test_numba.py +++ b/pandas/tests/groupby/aggregate/test_numba.py @@ -48,7 +48,7 @@ def incorrect_function(x, **kwargs): @td.skip_if...
This match was working for me locally, so hopefully it should also match in the CI.
https://api.github.com/repos/pandas-dev/pandas/pulls/44535
2021-11-20T05:27:04Z
2021-11-20T15:56:17Z
2021-11-20T15:56:17Z
2021-11-20T18:00:31Z
DOC: 'MS' offset alias does not work as described with pd.date_range()
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 2e81032bd4c22..fde9ff0450a12 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -1270,6 +1270,36 @@ frequencies. We will refer to these aliases as *offset aliases*. "U, us", "...
- [x] closes #44146 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [NA] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44534
2021-11-20T01:59:54Z
2021-11-25T21:51:09Z
2021-11-25T21:51:09Z
2021-11-25T21:51:15Z
BUG: BooleanArray raising on comparison to string
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2fe289a5f7c35..5c54753ce3666 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -710,6 +710,7 @@ ExtensionArray - Bug in :func:`array` failing to preserve :class:`PandasArray` (:issue:`43887`) - NumPy u...
- [x] closes #44499 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44533
2021-11-20T01:50:03Z
2021-11-20T16:15:51Z
2021-11-20T16:15:51Z
2021-11-20T16:25:34Z
BUG: td64+offset
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 8b51fe2db7641..b83fd0504342c 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -544,6 +544,8 @@ Datetimelike - Bug in in calling ``np.isnan``, ``np.isfinite``, or ``np.isinf`` on a timezone-aware :class...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44532
2021-11-20T00:13:57Z
2021-11-20T20:45:51Z
2021-11-20T20:45:51Z
2021-11-20T21:30:13Z
Add json normalize back into doc and move read_json to pd namespace
diff --git a/doc/source/reference/io.rst b/doc/source/reference/io.rst index 82d4ec4950ef1..7aad937d10a18 100644 --- a/doc/source/reference/io.rst +++ b/doc/source/reference/io.rst @@ -57,7 +57,7 @@ Excel ExcelWriter -.. currentmodule:: pandas.io.json +.. currentmodule:: pandas JSON ~~~~ @@ -65,7 +65,10 @@ ...
- [x] closes #42540 read_json looked like it had to be used like pandas.io.json.read_json and json_normalize was missing alltogether. Maybe backporting as well? Edit: Build Docs locally, look fine now
https://api.github.com/repos/pandas-dev/pandas/pulls/44531
2021-11-19T23:08:41Z
2021-11-20T21:11:25Z
2021-11-20T21:11:25Z
2021-11-20T21:22:49Z
Fix regression ignoring arrays in dtype check for merge_asof
diff --git a/doc/source/whatsnew/v1.3.5.rst b/doc/source/whatsnew/v1.3.5.rst index 951b05b65c81b..34e67e51e47e3 100644 --- a/doc/source/whatsnew/v1.3.5.rst +++ b/doc/source/whatsnew/v1.3.5.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`Serie...
- [x] closes #42844 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry This restores the 1.2.x behavior. Passing an array as join key is something we don...
https://api.github.com/repos/pandas-dev/pandas/pulls/44530
2021-11-19T21:47:37Z
2021-11-20T16:19:43Z
2021-11-20T16:19:42Z
2021-11-20T20:24:11Z
CLN: tighten noqas
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index e2f8ac09d8873..8c8469b93db68 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3023,6 +3023,7 @@ Read in the content of the "books.xml" as instance of ``StringIO`` or Even read XML from AWS S3 buckets such as ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44529
2021-11-19T20:42:38Z
2021-11-20T04:51:23Z
2021-11-20T04:51:23Z
2021-11-22T15:02:16Z
Comment deleted as build on Mac failed. Suggested by @marcogorelli.
diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst index 4c3c12eb9da92..4ea3701dec029 100644 --- a/doc/source/development/contributing_environment.rst +++ b/doc/source/development/contributing_environment.rst @@ -165,7 +165,7 @@ We'll now kick off a th...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44525
2021-11-19T12:26:48Z
2021-11-19T15:02:29Z
2021-11-19T15:02:29Z
2021-11-19T15:02:40Z
validate PR09 errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index ef026c8e69dbb..744f934142a24 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -93,8 +93,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, S...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44524
2021-11-19T12:01:16Z
2021-11-23T14:01:20Z
2021-11-23T14:01:20Z
2021-11-23T15:29:06Z
COMPAT: Matplotlib 3.5.0
diff --git a/pandas/plotting/_matplotlib/compat.py b/pandas/plotting/_matplotlib/compat.py index 70ddd1ca09c7e..5569b1f2979b0 100644 --- a/pandas/plotting/_matplotlib/compat.py +++ b/pandas/plotting/_matplotlib/compat.py @@ -24,3 +24,4 @@ def inner(): mpl_ge_3_2_0 = _mpl_version("3.2.0", operator.ge) mpl_ge_3_3_0 = _...
- [ ] closes #44521 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Still some deprecation warnings left. Anyone want to approve for me so we can get th...
https://api.github.com/repos/pandas-dev/pandas/pulls/44523
2021-11-19T01:14:16Z
2021-11-20T00:11:40Z
2021-11-20T00:11:39Z
2021-11-21T11:11:08Z
DEPR: DateOffset.apply
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 3ddb6434ed932..2e81032bd4c22 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -852,7 +852,7 @@ savings time. However, all :class:`DateOffset` subclasses that are an hour or sm ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Gives us the flexibility to consolidate the logic in `__add__`
https://api.github.com/repos/pandas-dev/pandas/pulls/44522
2021-11-19T00:41:30Z
2021-11-20T20:46:44Z
2021-11-20T20:46:44Z
2021-11-20T21:30:54Z
REF: implement _maybe_squeeze_arg
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index ca81d54a0fb86..a8e7224eb524f 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -869,6 +869,12 @@ def _replace_coerce( # --------------------------------------------------------------------- ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Allows for sharing some more Block methods. Will be able to do the same for 'where' f...
https://api.github.com/repos/pandas-dev/pandas/pulls/44520
2021-11-18T22:42:52Z
2021-11-20T16:05:08Z
2021-11-20T16:05:08Z
2021-11-20T16:11:52Z
REF: remove unused allow_object kwarg from sequence_to_dt64ns
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index a0a7ef3501d7f..460bfda56276d 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -9,7 +9,6 @@ from typing import ( TYPE_CHECKING, Literal, - overload, ) import warnings @@ -356,7 +355...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44519
2021-11-18T21:13:13Z
2021-11-20T16:05:59Z
2021-11-20T16:05:59Z
2021-11-20T16:13:40Z
BUG: DataFrame with scalar tzaware Timestamp
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index b17b40ec77287..9e8528d45c03a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -573,6 +573,7 @@ Conversion - Bug in :class:`IntegerDtype` not allowing coercion from string dtype (:issue:`25472`) - Bug ...
- [x] closes #42505 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry @simonjayhawkins where does the whatsnew for this go?
https://api.github.com/repos/pandas-dev/pandas/pulls/44518
2021-11-18T21:11:02Z
2021-11-20T21:12:08Z
2021-11-20T21:12:08Z
2021-11-21T10:37:03Z
BUG: IntegerArray/FloatingArray constructors mismatched NAs
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index db5cce8459ca2..c0b11b6250056 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -626,6 +626,7 @@ Indexing - Bug in :meth:`Series.reset_index` not ignoring ``name`` argument when ``drop`` and ``inplace`` ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Same yak-shaving as #44495 (which turned out to be a dead end for this particular yak,...
https://api.github.com/repos/pandas-dev/pandas/pulls/44514
2021-11-18T16:51:09Z
2021-12-01T23:04:26Z
2021-12-01T23:04:26Z
2021-12-06T20:11:28Z
TYP/CI: fix to_string overload
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 751e7911d7130..0960ab4a81149 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1069,7 +1069,7 @@ def to_string( @overload def to_string( self, - buf: FilePathOrBuffer[str], + buf: FilePath | WriteBuffer[str], ...
xref https://github.com/pandas-dev/pandas/pull/44426#issuecomment-972699248
https://api.github.com/repos/pandas-dev/pandas/pulls/44510
2021-11-18T09:51:46Z
2021-11-18T10:56:48Z
2021-11-18T10:56:48Z
2021-11-18T10:56:52Z
BUG: Period incorrectly allowing np.timedelta64('NaT')
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 017acb8ef930b..a64c451ed1075 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -653,6 +653,7 @@ Period ^^^^^^ - Bug in adding a :class:`Period` object to a ``np.timedelta64`` object incorrectly raising...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44507
2021-11-18T02:34:08Z
2021-11-20T18:14:50Z
2021-11-20T18:14:50Z
2021-11-20T18:54:51Z
DOC: df.to_html documentation incorrectly contains min_rows optional param (release note)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2456406f0eca3..2fe289a5f7c35 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -398,6 +398,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^^^^...
- [x] closes #44304 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44506
2021-11-18T01:58:29Z
2021-11-19T10:49:42Z
2021-11-19T10:49:42Z
2021-11-19T10:49:54Z
REF: combine isnaobj+isnaobj_old
diff --git a/pandas/_libs/missing.pxd b/pandas/_libs/missing.pxd index 9d32fcd3625db..e32518864db0a 100644 --- a/pandas/_libs/missing.pxd +++ b/pandas/_libs/missing.pxd @@ -6,9 +6,9 @@ from numpy cimport ( cpdef bint is_matching_na(object left, object right, bint nan_matches_none=*) -cpdef bint checknull(object va...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44505
2021-11-18T00:14:09Z
2021-11-20T16:13:39Z
2021-11-20T16:13:39Z
2021-11-20T16:17:59Z
CLN: whats new 1.4.0 `styler` edits
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 37e4c9a1378d1..133330fd1972f 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -95,26 +95,27 @@ See :ref:`here <advanced.numericindex>` for more about :class:`NumericIndex`. Styler ^^^^^^ -:class:`.S...
cleans up some of my placeholder bullets
https://api.github.com/repos/pandas-dev/pandas/pulls/44503
2021-11-17T19:22:33Z
2021-11-24T22:39:30Z
2021-11-24T22:39:30Z
2021-11-25T06:20:47Z
ENH: `Styler.to_string`
diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst index a739993e4d376..dd7e2fe7434cd 100644 --- a/doc/source/reference/style.rst +++ b/doc/source/reference/style.rst @@ -27,6 +27,7 @@ Styler properties Styler.template_html_style Styler.template_html_table Styler.template_latex + ...
Adds a basic method for writing `Styler` to string using the mechanics already in place and a simplified jinja2 template. With the development of `Styler` in the last 18 months it has moved away from being purely a tool for adding styles and colors to HTML. The methods: `.hide`, `.format`, `.format_index`, and t...
https://api.github.com/repos/pandas-dev/pandas/pulls/44502
2021-11-17T18:39:21Z
2022-01-08T15:57:05Z
2022-01-08T15:57:05Z
2022-01-08T16:23:36Z
(TST) Replacing Timestamp.now () in tests.
diff --git a/pandas/conftest.py b/pandas/conftest.py index 7bc6dbae38e6c..04589993b5f53 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1268,6 +1268,16 @@ def timedelta64_dtype(request): return request.param +@pytest.fixture +def fixed_now_ts(): + """ + Fixture emits fixed Timestamp.now() + ...
- [x] xref #44341 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Replacing Timestamp.now() in tests. Left Timestamp.now () in the following tests: `...
https://api.github.com/repos/pandas-dev/pandas/pulls/44501
2021-11-17T17:30:53Z
2021-11-20T20:10:36Z
2021-11-20T20:10:36Z
2021-11-20T20:10:55Z
TYP: changed variable new_pd_index to final_pd_index
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 0e886befb5f2f..eedf00bcd9c76 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -2093,11 +2093,8 @@ def convert(self, values: np.ndarray, nan_rep, encoding: str, errors: str): if "freq" in kwargs: kwargs["freq"...
xref #37715 Changed variable new_pd_index to final_pd_index in line 2099 Handled mypy type ignore[assignment] error in pandas/io/pytables.py in line 2099
https://api.github.com/repos/pandas-dev/pandas/pulls/44500
2021-11-17T15:15:41Z
2021-11-28T20:49:22Z
2021-11-28T20:49:22Z
2021-12-06T16:10:36Z
ERR: Raise ValueError when BaseIndexer start & end bounds are unequal length
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2fe289a5f7c35..07d448bf811a1 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -677,8 +677,8 @@ Groupby/resample/rolling - Fixed bug in :meth:`Series.rolling` and :meth:`DataFrame.rolling` not calculati...
- [x] closes #44470 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44497
2021-11-17T05:05:47Z
2021-11-20T16:08:54Z
2021-11-20T16:08:53Z
2021-11-20T18:02:43Z
PERF: lib.Validator iteration
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index ec89e52e2eff7..25142cad9a30d 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1704,10 +1704,15 @@ cdef class Validator: cdef bint _validate(self, ndarray values) except -1: cdef: Py_ssize_t i - Py_ssize_...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry This is yak-shaving the trails back to a bug in Series.where with nullable dtypes. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44495
2021-11-17T02:29:26Z
2021-11-17T13:54:38Z
2021-11-17T13:54:38Z
2021-11-17T15:14:05Z
TST: share a bunch of test_custom_business_day
diff --git a/pandas/tests/tseries/offsets/test_business_day.py b/pandas/tests/tseries/offsets/test_business_day.py index ffc2a04334ffc..92176515b6b6f 100644 --- a/pandas/tests/tseries/offsets/test_business_day.py +++ b/pandas/tests/tseries/offsets/test_business_day.py @@ -15,6 +15,7 @@ BDay, BMonthEnd, ) +fr...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44493
2021-11-16T22:31:07Z
2021-11-17T02:01:18Z
2021-11-17T02:01:18Z
2021-11-17T02:43:13Z
BUG: NumericArray.__pos__ should make a copy
diff --git a/pandas/core/arrays/numeric.py b/pandas/core/arrays/numeric.py index e1990dc064a84..eb955e4d42bc5 100644 --- a/pandas/core/arrays/numeric.py +++ b/pandas/core/arrays/numeric.py @@ -168,7 +168,7 @@ def __neg__(self): return type(self)(-self._data, self._mask.copy()) def __pos__(self): - ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44492
2021-11-16T20:31:08Z
2021-11-17T02:03:09Z
2021-11-17T02:03:09Z
2021-11-17T02:30:48Z
DOCS: use non-deprecated method in doc examples
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 3a991b5338c38..62e44d73d9f1c 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -242,7 +242,7 @@ "metadata": {}, "outputs": [], "source": [ - "s = df.style.format('{:.0f}').hide...
as described
https://api.github.com/repos/pandas-dev/pandas/pulls/44491
2021-11-16T20:08:37Z
2021-11-17T01:49:38Z
2021-11-17T01:49:38Z
2021-11-17T16:59:34Z
TST: fix deprecation warning in test
diff --git a/pandas/tests/io/formats/style/test_style.py b/pandas/tests/io/formats/style/test_style.py index 85519398b4444..e793857989ac1 100644 --- a/pandas/tests/io/formats/style/test_style.py +++ b/pandas/tests/io/formats/style/test_style.py @@ -319,7 +319,12 @@ def test_clear(mi_styler_comp): # tests vars are ...
deprecation warning regarding ambiguous boolean of empty array (numpy)
https://api.github.com/repos/pandas-dev/pandas/pulls/44489
2021-11-16T19:37:19Z
2021-11-20T07:28:38Z
2021-11-20T07:28:38Z
2021-11-20T07:28:42Z
Fix 'rtol' and 'atol' for numeric extension types
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index b5ed173fc2473..5d3babfb1c7be 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1068,6 +1068,8 @@ def assert_series_equal( assert_extension_array_equal( left._values, right._va...
- [ ] closes #xxxx - [x] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry cc @stefansorgqc
https://api.github.com/repos/pandas-dev/pandas/pulls/44488
2021-11-16T19:30:03Z
2021-11-25T17:48:38Z
2021-11-25T17:48:38Z
2021-11-25T17:48:42Z
update astype keyerror msg
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index fd8af2c0cedd0..94363f30ae2a2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5835,7 +5835,8 @@ def astype( if col_name not in self: raise KeyError( "Only a column name c...
Hi! This is extremely minor and i just quickly did it in codespaces but I ran into this a few times and I thought it might be helpful for others.
https://api.github.com/repos/pandas-dev/pandas/pulls/44487
2021-11-16T18:45:37Z
2021-11-20T21:14:03Z
2021-11-20T21:14:03Z
2021-11-20T21:14:07Z
BUG: fix get_indexer_non_unique() with 'object' targets with NaNs (#4…
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 39e3894f86302..9c9ec0eddb225 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -592,9 +592,9 @@ Strings Interval ^^^^^^^^ -- Bug in :meth:`IntervalIndex.get_indexer_non_unique` returning boolean mask...
…4482) numpy.searchsorted() does not handle NaNs in 'object' arrays as expected (numpy/numpy#15499). Therefore we cannot search NaNs using binary search. So we use binary search only for targets without NaNs. - [x] closes #44482 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](htt...
https://api.github.com/repos/pandas-dev/pandas/pulls/44483
2021-11-16T13:29:33Z
2021-11-26T15:39:39Z
2021-11-26T15:39:38Z
2021-11-27T20:09:22Z
CLN: TODOs and FIXMEs
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 2e1ebf9d5a266..a8cc07c8fd964 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1466,8 +1466,6 @@ def max(self, *, axis: int | None = None, skipna: bool = True, **kwargs): Index....
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry We have to run out of these eventually, right? right?
https://api.github.com/repos/pandas-dev/pandas/pulls/44479
2021-11-16T03:28:35Z
2021-11-17T02:04:46Z
2021-11-17T02:04:46Z
2021-11-17T02:42:20Z
REF: rolling benchmarks to reduce redundant benchmarks
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 406b27dd37ea5..73adb12c171bf 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -9,22 +9,24 @@ class Methods: params = ( ["DataFrame", "Series"], - [10, 1000], + [("rolli...
xref https://github.com/pandas-dev/pandas/issues/44450 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Some of the current `param` definitions are causing the same benchmark to run more than once witho...
https://api.github.com/repos/pandas-dev/pandas/pulls/44475
2021-11-15T20:25:34Z
2021-11-15T23:57:08Z
2021-11-15T23:57:08Z
2021-11-16T06:26:29Z
BUG: Tick + np.timedelta64
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index a593a03de5c25..a1ac19b815e22 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -538,7 +538,7 @@ Datetimelike - Bug in inplace addition and subtraction of :class:`DatetimeIndex` or :class:`TimedeltaIndex...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Looks like a pass to de-duplicate the test_business_day and test_custom_business_day f...
https://api.github.com/repos/pandas-dev/pandas/pulls/44474
2021-11-15T18:36:51Z
2021-11-16T00:07:26Z
2021-11-16T00:07:26Z
2021-11-16T00:19:31Z
BUG: fix timedelta floordiv with scalar float (correction of #44466)
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index 91e90ebdb6253..2a2e59cfda5e9 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -651,7 +651,7 @@ def __floordiv__(self, other): # at this point we should only have numeric scalars; ...
Follow-up on https://github.com/pandas-dev/pandas/pull/44466#discussion_r749430496 I still need to add a test that would actually catch this
https://api.github.com/repos/pandas-dev/pandas/pulls/44471
2021-11-15T15:33:16Z
2021-11-18T18:59:51Z
2021-11-18T18:59:51Z
2021-11-18T18:59:54Z
Backport PR #44452: Revert "CI: xfail tests failing on numpy dev"
diff --git a/pandas/tests/window/moments/test_moments_rolling.py b/pandas/tests/window/moments/test_moments_rolling.py index 66b52da0f5578..b2e53a676b039 100644 --- a/pandas/tests/window/moments/test_moments_rolling.py +++ b/pandas/tests/window/moments/test_moments_rolling.py @@ -558,7 +558,6 @@ def test_rolling_quanti...
Backport PR #44452
https://api.github.com/repos/pandas-dev/pandas/pulls/44469
2021-11-15T12:36:48Z
2021-11-15T13:39:31Z
2021-11-15T13:39:31Z
2021-11-15T13:39:35Z
TYP/CLN: remove defaults from overloads
diff --git a/pandas/core/base.py b/pandas/core/base.py index a1bf448df18c4..9040414a8f35f 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1239,8 +1239,8 @@ def factorize(self, sort: bool = False, na_sentinel: int | None = -1): def searchsorted( # type: ignore[misc] self, value: np...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/44468
2021-11-15T12:14:08Z
2021-11-15T13:52:06Z
2021-11-15T13:52:06Z
2021-11-15T14:32:51Z
BUG: fix timedelta floordiv with scalar float
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index a593a03de5c25..43756082a7442 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -543,7 +543,7 @@ Datetimelike Timedelta ^^^^^^^^^ - Bug in division of all-``NaT`` :class:`TimeDeltaIndex`, :class:`Serie...
Discovered while trying to fix test failures in https://github.com/pandas-dev/pandas/pull/40482. Currently normal division with a float scalar works, but floordiv doesn't (returns garbage): ``` In [42]: arr = pd.timedelta_range(0, periods=3) In [43]: pd.Series(arr) / 2.0 Out[43]: 0 0 days 00:00:00 1 0 da...
https://api.github.com/repos/pandas-dev/pandas/pulls/44466
2021-11-15T10:53:10Z
2021-11-15T15:06:51Z
2021-11-15T15:06:51Z
2021-11-15T15:33:58Z
DEV: add note to update cython version in environment.yml and asv conf as well
diff --git a/pyproject.toml b/pyproject.toml index 98ab112ab459a..0c3e078d8761a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ requires = [ "setuptools>=51.0.0", "wheel", - "Cython>=0.29.24,<3", # Note: sync with setup.py + "Cython>=0.29.24,<3", # Note: sync with setup.py, environme...
Seeing https://github.com/pandas-dev/pandas/pull/44359, this seems a good idea to remember the next time cython version is bumped
https://api.github.com/repos/pandas-dev/pandas/pulls/44463
2021-11-15T07:48:31Z
2021-11-15T09:39:10Z
2021-11-15T09:39:10Z
2021-11-15T09:49:53Z
DataFrame.rename renames wrong elements
diff --git a/pandas/tests/frame/methods/test_rename.py b/pandas/tests/frame/methods/test_rename.py index 26ecf1356a946..0bd46cbb22f2a 100644 --- a/pandas/tests/frame/methods/test_rename.py +++ b/pandas/tests/frame/methods/test_rename.py @@ -406,3 +406,14 @@ def test_rename_with_duplicate_columns(self): ], ...
- [x] closes #4980 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44462
2021-11-15T06:33:54Z
2021-11-15T13:55:26Z
2021-11-15T13:55:25Z
2021-11-15T13:55:29Z
ENH: Add numba engine to rolling/expanding.std/var
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 73adb12c171bf..1c53d4adc8c25 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -53,7 +53,7 @@ class NumbaEngineMethods: ["DataFrame", "Series"], ["int", "float"], [("rollin...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44461
2021-11-15T04:53:02Z
2021-11-26T23:37:11Z
2021-11-26T23:37:11Z
2021-11-26T23:40:37Z
ENH: don't silently ignore dtype in NaT/Timestamp/Timedelta to_numpy
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index a593a03de5c25..2492b51aa6c23 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -210,6 +210,8 @@ Other enhancements - :meth:`read_excel` now accepts a ``decimal`` argument that allow the user to specify ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44460
2021-11-15T04:43:04Z
2021-11-15T13:58:31Z
2021-11-15T13:58:31Z
2021-11-15T15:25:09Z
BUG: Series/Index arithmetic result names with NAs
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2fe289a5f7c35..3dd4ab656a859 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -563,6 +563,7 @@ Numeric - Bug in ``numexpr`` engine still being used when the option ``compute.use_numexpr`` is set to ``F...
- [x] closes #39757 - [x] closes #22041 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44459
2021-11-15T02:57:34Z
2021-11-20T15:55:56Z
2021-11-20T15:55:55Z
2021-11-20T17:30:54Z
REF: dont dispatch Block.putmask to Block.where
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index a8e7224eb524f..a6fa2a9e3b2c1 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -30,6 +30,7 @@ Shape, npt, ) +from pandas.compat import np_version_under1p20 from pandas.util._decorators im...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44457
2021-11-15T02:12:23Z
2021-11-20T21:15:15Z
2021-11-20T21:15:15Z
2021-11-20T21:27:49Z
CLN: TODOs and FIXMEs
diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py index c5e96f32e261f..a1b40acc2558e 100644 --- a/pandas/core/array_algos/quantile.py +++ b/pandas/core/array_algos/quantile.py @@ -4,7 +4,10 @@ import numpy as np -from pandas._typing import ArrayLike +from pandas._typing import ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44455
2021-11-14T23:02:00Z
2021-11-16T00:02:44Z
2021-11-16T00:02:44Z
2021-11-16T00:22:03Z
DOC: substitute multiple entries for `subset` in `style.py`
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 40803ff14e357..b1b31fef61b91 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -27,7 +27,10 @@ Scalar, ) from pandas.compat._optional import import_optional_dependency -from pandas.util._decorators import doc +fr...
as described
https://api.github.com/repos/pandas-dev/pandas/pulls/44454
2021-11-14T19:12:29Z
2021-11-20T21:21:37Z
2021-11-20T21:21:37Z
2021-11-21T15:01:36Z
Revert "CI: xfail tests failing on numpy dev"
diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py index a638ecbe04936..b60f2e60e1035 100644 --- a/pandas/tests/window/test_rolling.py +++ b/pandas/tests/window/test_rolling.py @@ -1634,7 +1634,6 @@ def test_rolling_quantile_np_percentile(): tm.assert_almost_equal(df_quantile.va...
Reverts pandas-dev/pandas#44362 closes #44343
https://api.github.com/repos/pandas-dev/pandas/pulls/44452
2021-11-14T18:51:57Z
2021-11-15T12:12:19Z
2021-11-15T12:12:19Z
2021-11-15T12:38:02Z
TST: check_stacklevel=True in various tests
diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py index f8c945bb496a8..6cfcfa778b105 100644 --- a/pandas/tests/apply/test_frame_apply.py +++ b/pandas/tests/apply/test_frame_apply.py @@ -1198,9 +1198,7 @@ def test_nuiscance_columns(): ) tm.assert_frame_equal(result, e...
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44449
2021-11-14T15:13:14Z
2021-11-14T16:32:38Z
2021-11-14T16:32:38Z
2021-12-12T16:03:46Z
CI/TST Removed Timestamp.now() from tests. #44341
diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py index 3f1739deb4175..5aa20bedc4a48 100644 --- a/pandas/tests/arrays/test_datetimelike.py +++ b/pandas/tests/arrays/test_datetimelike.py @@ -168,7 +168,7 @@ def test_take(self): tm.assert_index_equal(self.index_cl...
Removed Timestamp.now() from tests. #44341 Replaced Timestamp.now () with pd.Timestamp (2021, 1, 1, 12)
https://api.github.com/repos/pandas-dev/pandas/pulls/44448
2021-11-14T14:30:19Z
2021-11-16T00:02:18Z
2021-11-16T00:02:18Z
2021-11-17T17:06:45Z
DOC: Remove use of as_type for PeriodIndex to DatetimeIndex conversion
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index a112c632ceb25..3ddb6434ed932 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -2073,14 +2073,18 @@ The ``period`` dtype can be used in ``.astype(...)``. It allows one to change t...
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Followup to #44398. Should get docs build to green. cc @jbrockmendel ![image](https://user-images.githubusercontent.com/45562402/141684919-f8e79f49-a2c8...
https://api.github.com/repos/pandas-dev/pandas/pulls/44447
2021-11-14T14:17:07Z
2021-11-14T16:21:58Z
2021-11-14T16:21:58Z
2021-11-14T16:28:49Z
Added "." on to check_dtype and obj parameter
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 79c8e64fc4df3..63c696c663e66 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -540,7 +540,7 @@ def assert_categorical_equal( left : Categorical right : Categorical check_dtype : bool, default Tru...
- [] closes #xxxx - [] tests added / passed - [] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [] whatsnew entry From #28602 `pandas.testing.assert_categorical_equal: Parameter "check_dtype" description...
https://api.github.com/repos/pandas-dev/pandas/pulls/44446
2021-11-14T14:13:42Z
2021-11-15T14:46:18Z
2021-11-15T14:46:18Z
2021-11-15T14:56:55Z
ENH: Infer inner file name of zip archive (GH39465)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index a593a03de5c25..609f085ca7144 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -639,7 +639,7 @@ I/O - Bug in :func:`read_csv` with :code:`float_precision="round_trip"` which did not skip initial/trailin...
relevant for `DataFrame.to_csv` and `Series.to_csv` with `compression='zip'` - [x] closes #39465 - also relevant for #26023 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44445
2021-11-14T12:32:35Z
2021-11-17T02:09:41Z
2021-11-17T02:09:41Z
2021-11-17T06:48:35Z
Backport PR #44443 on branch 1.3.x (COMPAT: Python 3.9.8)
diff --git a/pandas/tests/io/parser/test_quoting.py b/pandas/tests/io/parser/test_quoting.py index 7a07632390eff..e8b86453db9e7 100644 --- a/pandas/tests/io/parser/test_quoting.py +++ b/pandas/tests/io/parser/test_quoting.py @@ -22,7 +22,7 @@ {"quotechar": None, "quoting": csv.QUOTE_MINIMAL}, ...
Backport PR #44443: COMPAT: Python 3.9.8
https://api.github.com/repos/pandas-dev/pandas/pulls/44444
2021-11-14T10:49:57Z
2021-11-14T11:53:48Z
2021-11-14T11:53:48Z
2021-11-14T11:53:49Z
COMPAT: Python 3.9.8
diff --git a/pandas/tests/io/parser/test_quoting.py b/pandas/tests/io/parser/test_quoting.py index 6995965467d05..456dd049d2f4a 100644 --- a/pandas/tests/io/parser/test_quoting.py +++ b/pandas/tests/io/parser/test_quoting.py @@ -24,7 +24,7 @@ {"quotechar": None, "quoting": csv.QUOTE_MINIMAL}, ...
Please see bpo 20028. https://github.com/python/cpython/pull/28705. This breaks our nightlies, but doesn't on regular CI. It should show up pretty soon in regular CI, once the conda-forge folks add it. This means unfortuanately that I have no way to test this. Can someone with with the perms on the MacPython repo ...
https://api.github.com/repos/pandas-dev/pandas/pulls/44443
2021-11-14T04:59:24Z
2021-11-14T10:48:44Z
2021-11-14T10:48:44Z
2021-11-14T14:13:28Z
BUG: AttributeError: 'BooleanArray' object has no attribute 'sum' while infer types #44079
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2fe289a5f7c35..e6835e793cdcb 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -645,6 +645,7 @@ I/O - Bug in :func:`read_csv` with :code:`float_precision="round_trip"` which did not skip initial/trailin...
- [x] closes #44079 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44442
2021-11-14T04:11:49Z
2021-11-20T15:58:54Z
2021-11-20T15:58:54Z
2021-11-20T15:59:00Z
BLD: Exclude CPT data files
diff --git a/MANIFEST.in b/MANIFEST.in index f616fad6b1557..c6ddc79eaa83c 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -33,6 +33,7 @@ global-exclude *.xlsb global-exclude *.xlsm global-exclude *.xlsx global-exclude *.xpt +global-exclude *.cpt global-exclude *.xz global-exclude *.zip global-exclude *~
xref #44300. Since that added a .cpt data file, we should also exclude it from the manifest. - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/44441
2021-11-14T00:03:35Z
2021-11-14T02:11:15Z
2021-11-14T02:11:15Z
2021-11-14T04:41:46Z
DOC: Some minor doc cleanups
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index c2ca3df5ca23d..e2f8ac09d8873 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -102,7 +102,7 @@ header : int or list of ints, default ``'infer'`` names : array-like, default ``None`` List of column names to ...
- [x] closes #40362 - [x] closes #44147
https://api.github.com/repos/pandas-dev/pandas/pulls/44440
2021-11-13T23:16:06Z
2021-11-14T02:13:44Z
2021-11-14T02:13:43Z
2021-11-14T19:41:33Z
ENH: Use stacklevel in warnings
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 8c2c01b6aedc8..acc66ae9deca7 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -35,6 +35,7 @@ npt, ) from pandas.util._decorators import doc +from pandas.util._exceptions import find_stack_level from pandas.core.d...
Part of #44347 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/44439
2021-11-13T22:36:28Z
2021-11-14T02:08:32Z
2021-11-14T02:08:32Z
2021-11-14T02:38:11Z
CLN: small clean-up PeriodIndex (easy parts of #23416)
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 0247ce8dc6ac4..dc7cf51ca109d 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -944,6 +944,9 @@ def validate_dtype_freq(dtype, freq): ValueError : non-period dtype IncompatibleF...
xref #23416
https://api.github.com/repos/pandas-dev/pandas/pulls/23423
2018-10-30T22:32:27Z
2018-10-31T08:09:59Z
2018-10-31T08:09:59Z
2018-10-31T14:54:55Z
API: fix corner case of lib.infer_dtype
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index c57dd66a33fe0..503584cac48d6 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -57,7 +57,7 @@ from tslibs.conversion cimport convert_to_tsobject from tslibs.timedeltas cimport convert_to_timedelta64 from tslibs.timezones cimport get_timezone...
- [x] closes #23421 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Working towards #23167 needs fixing of the type inference for some corner cases (especially not inferring an object column full of NaNs to be `'floating'`).
https://api.github.com/repos/pandas-dev/pandas/pulls/23422
2018-10-30T17:54:25Z
2018-11-04T15:53:28Z
2018-11-04T15:53:28Z
2018-11-05T00:14:29Z
DOC: Clarify documentation of 'ambiguous' parameter
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index f9c604cd76472..7263fde5eb530 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -835,7 +835,20 @@ def tz_localize_to_utc(ndarray[int64_t] vals, object tz, object ambiguous=None, vals ...
when first reading the docs, the `ambiguous` parameter was not clear to me. I propose to add a line of documentation and include an example that exactly indicates the issue that the `ambiguous` parameter solves.
https://api.github.com/repos/pandas-dev/pandas/pulls/23408
2018-10-29T10:29:22Z
2018-11-04T13:56:59Z
2018-11-04T13:56:59Z
2018-11-04T15:57:06Z
BUG/ENH: Handle NonexistentTimeError in date rounding
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index ddf5fffb1d80b..85b7b8c846f1a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -227,6 +227,7 @@ Other Enhancements - :class:`Series` and :class:`DataFrame` now support :class:`Iterable` in construct...
- [x] closes #23324 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Similar strategy as https://github.com/pandas-dev/pandas/pull/22647, added a `nonexistent` keyword argument to `round`, `ceil`, and `floor` to control rounding when encountering...
https://api.github.com/repos/pandas-dev/pandas/pulls/23406
2018-10-29T07:13:37Z
2018-11-02T14:15:10Z
2018-11-02T14:15:10Z
2018-11-02T15:18:06Z
DOC: Add DateOffsets to api.rst
diff --git a/doc/source/api.rst b/doc/source/api.rst index 8f0f5fa7610eb..665649aead33c 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2104,6 +2104,62 @@ Methods Timedelta.to_timedelta64 Timedelta.total_seconds +.. _api.dateoffsets: + +Date Offsets +------------ + +.. currentmodule:: pandas.ts...
- [x] closes #22447
https://api.github.com/repos/pandas-dev/pandas/pulls/23405
2018-10-29T05:08:30Z
2018-11-01T01:09:03Z
2018-11-01T01:09:03Z
2018-11-01T22:01:24Z
PERF: speed up concat on Series by skipping unnecessary DataFrame creation
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index fc7019c486d9a..f53e270b18f97 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1060,6 +1060,7 @@ Performance Improvements - Improved the performance of :func:`pandas.get_dummies` with ``sparse=True...
Removes an unnecessary `DataFrame` creation when dealing solely with `Series` objects, which reduces runtime of `concat`. - [ ] xref #23362 - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ### Performance Comparison ```python import pandas as pd im...
https://api.github.com/repos/pandas-dev/pandas/pulls/23404
2018-10-29T04:23:12Z
2018-11-02T13:46:23Z
2018-11-02T13:46:23Z
2018-11-02T17:51:11Z
BUG: Respect axis when doing DataFrame.expanding
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index de111072bef02..25c2491e0120f 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1238,6 +1238,7 @@ Groupby/Resample/Rolling - Bug in :meth:`SeriesGroupBy.mean` when values were integral but could not...
Closes #23372.
https://api.github.com/repos/pandas-dev/pandas/pulls/23402
2018-10-29T00:37:21Z
2018-11-01T00:35:39Z
2018-11-01T00:35:38Z
2018-11-01T00:40:48Z
CLN: Follow-up comments to gh-23392
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 89acd1a14a412..f4d2e776c137d 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -942,7 +942,7 @@ Removal of prior version deprecations/changes - Removal of the previously deprecated module ``pandas.c...
* Use 'unit' instead of 'frequency' * Minor spacing issues in docs Follow-up to #23392.
https://api.github.com/repos/pandas-dev/pandas/pulls/23401
2018-10-28T19:30:44Z
2018-10-28T23:57:07Z
2018-10-28T23:57:06Z
2018-10-28T23:57:54Z