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
TST: change pyarrow skips to xfails
diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py index d407f98029e8d..0f42aa81e4b37 100644 --- a/pandas/tests/io/parser/common/test_chunksize.py +++ b/pandas/tests/io/parser/common/test_chunksize.py @@ -16,9 +16,13 @@ ) import pandas._testing as tm -pyte...
orthogonal to #55576. These two together close #49411
https://api.github.com/repos/pandas-dev/pandas/pulls/55637
2023-10-22T21:00:36Z
2023-10-23T09:26:56Z
2023-10-23T09:26:56Z
2023-10-23T14:57:26Z
DEPR: correct class of Warning for offsets deprecated frequency ('M' to 'ME')
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 5c9da24185060..fad41fff6abb6 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -4731,7 +4731,7 @@ cpdef to_offset(freq, bint is_period=False): warnings.warn( ...
xref #52064, #55553 for offsets deprecated frequency ('M' to 'ME', etc.) replaced UserWarning with FutureWarning
https://api.github.com/repos/pandas-dev/pandas/pulls/55636
2023-10-22T20:23:38Z
2023-10-23T07:48:59Z
2023-10-23T07:48:59Z
2023-10-23T07:49:00Z
Backport PR #55537 on branch 2.1.x (BUG: Series inferring new string dtype even if dtype is given for scalar value)
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index e661d590ab330..5903187769f08 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -540,6 +540,7 @@ def sanitize_array( ------- np.ndarray or ExtensionArray """ + original_dtype = dtype if isinsta...
Backport PR #55537: BUG: Series inferring new string dtype even if dtype is given for scalar value
https://api.github.com/repos/pandas-dev/pandas/pulls/55635
2023-10-22T19:49:11Z
2023-10-22T22:37:16Z
2023-10-22T22:37:16Z
2023-10-22T22:37:16Z
BUG: indexing raises for ea into numpy series
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c8c27f2f2e178..cf3756eb101be 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -344,9 +344,9 @@ Interval Indexing ^^^^^^^^ +- Bug in :meth:`DataFrame.loc` when setting :class:`Series` with extension ...
- [x] closes #55604 (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/55633
2023-10-22T19:35:35Z
2023-10-23T18:08:35Z
2023-10-23T18:08:35Z
2023-11-16T16:59:09Z
Backport PR #55620 on branch 2.1.x (BUG: Groupby not keeping object dtype when infer string is set)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 97a718dd496e9..175c534ce0d04 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -23,6 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Fixed bug in :class:`.DataFrameGroupBy` reductions not preservin...
Backport PR #55620: BUG: Groupby not keeping object dtype when infer string is set
https://api.github.com/repos/pandas-dev/pandas/pulls/55629
2023-10-22T15:20:41Z
2023-10-22T17:06:47Z
2023-10-22T17:06:47Z
2023-10-22T17:06:47Z
BUG: value_counts returning incorrect dtype for string dtype
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 8298cc0607512..f9c37206cf4f8 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -24,6 +24,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :class:`.DataFrameGroupBy` reductions not preserving ...
- [ ] 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/55627
2023-10-22T14:43:53Z
2023-10-25T10:46:27Z
2023-10-25T10:46:27Z
2023-10-25T10:58:35Z
DOC: Change core paths to api.typing in URLs
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 771163ae1b0bc..fe02fa106f941 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -5,7 +5,7 @@ ======= GroupBy ======= -.. currentmodule:: pandas.core.groupby +.. currentmodule:: pandas.api.typin...
- [ ] 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/55626
2023-10-22T14:40:26Z
2023-10-22T19:18:53Z
2023-10-22T19:18:53Z
2023-12-14T20:12:25Z
Backport PR #55518 on branch 2.1.x (CoW: Use exponential backoff when clearing dead references)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 97a718dd496e9..ef69e874fdaf3 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.join` where result has missing values and dtype is ...
Backport PR #55518: CoW: Use exponential backoff when clearing dead references
https://api.github.com/repos/pandas-dev/pandas/pulls/55625
2023-10-22T13:42:15Z
2023-10-22T19:18:02Z
2023-10-22T19:18:02Z
2023-10-22T19:18:02Z
BUG: pytables with non-nano dt64
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 9eb5bbc8f07d5..fc199d3fd00f8 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -365,8 +365,10 @@ I/O - Bug in :func:`read_csv` with ``engine="pyarrow"`` where ``usecols`` wasn't working with a csv with ...
- [ ] 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 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55622
2023-10-21T21:52:38Z
2023-10-23T16:51:15Z
2023-10-23T16:51:15Z
2023-10-23T16:59:28Z
BUG: mode not sorting values for arrow backed strings
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 8298cc0607512..db65e0b9f4315 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -31,6 +31,7 @@ Bug fixes - Fixed bug in :meth:`Index.insert` raising when inserting ``None`` into :class:`Index` with ``dty...
- [ ] 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/55621
2023-10-21T19:42:40Z
2023-10-25T01:31:32Z
2023-10-25T01:31:32Z
2023-10-25T09:38:01Z
BUG: Groupby not keeping object dtype when infer string is set
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 97a718dd496e9..175c534ce0d04 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -23,6 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Fixed bug in :class:`.DataFrameGroupBy` reductions not preservin...
- [ ] 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/55620
2023-10-21T19:13:57Z
2023-10-22T15:20:33Z
2023-10-22T15:20:33Z
2023-10-22T15:22:11Z
BUG: Groupby not keeping string dtype for empty objects
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 8863bfa9f3f69..1dd7bc49fad42 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -26,6 +26,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :class:`.DataFrameGroupBy` reductions not preserving ...
- [ ] 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/55619
2023-10-21T18:08:25Z
2023-10-26T13:10:49Z
2023-10-26T13:10:49Z
2023-10-26T14:14:54Z
CLN: assorted
diff --git a/pandas/_libs/tslibs/np_datetime.pyx b/pandas/_libs/tslibs/np_datetime.pyx index c3ee68e14a8d4..25249e4f6f225 100644 --- a/pandas/_libs/tslibs/np_datetime.pyx +++ b/pandas/_libs/tslibs/np_datetime.pyx @@ -484,7 +484,6 @@ import operator cdef int op_to_op_code(op): - # TODO: should exist somewhere? ...
- [ ] 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/55618
2023-10-21T16:08:05Z
2023-10-22T19:25:05Z
2023-10-22T19:25:05Z
2023-10-22T20:31:42Z
REF: implement ParseState
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 4989feaf84006..8fdbd9affa58a 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -46,7 +46,10 @@ from pandas._libs.tslibs.np_datetime cimport ( import_pandas_datetime() -from pandas._libs.tslibs.strptime cimport parse_today_now +fro...
In the near future, the state being tracked in array_to_datetime and array_strptime will include a resolution (xref #55564). This implements a ParseState object to de-duplicate tracking, validation, and updating.
https://api.github.com/repos/pandas-dev/pandas/pulls/55617
2023-10-21T15:54:11Z
2023-10-23T17:27:09Z
2023-10-23T17:27:09Z
2023-10-23T18:46:55Z
REF: Misplaced DatetimeIndex tests
diff --git a/pandas/tests/indexes/datetimes/test_asof.py b/pandas/tests/indexes/datetimes/methods/test_asof.py similarity index 100% rename from pandas/tests/indexes/datetimes/test_asof.py rename to pandas/tests/indexes/datetimes/methods/test_asof.py diff --git a/pandas/tests/indexes/datetimes/methods/test_astype.py b/...
- [ ] 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/55614
2023-10-20T23:51:02Z
2023-10-22T19:27:08Z
2023-10-22T19:27:08Z
2023-10-22T20:30:59Z
Backport PR #55611 on branch 2.1.x (DEPR: correct warning message while parsing datetimes with mixed time zones if utc=False)
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 20a18cf56779f..e61ad28c54afb 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -671,7 +671,7 @@ cdef _array_to_datetime_object( if len(unique_timezones) > 1: warnings.warn( "In a future version of pandas, par...
Backport PR #55611: DEPR: correct warning message while parsing datetimes with mixed time zones if utc=False
https://api.github.com/repos/pandas-dev/pandas/pulls/55613
2023-10-20T23:09:02Z
2023-10-21T19:43:32Z
2023-10-21T19:43:32Z
2023-10-21T19:43:32Z
REF: separate out _parse_with_format
diff --git a/pandas/_libs/tslibs/strptime.pyx b/pandas/_libs/tslibs/strptime.pyx index 866181246a284..717ec41a918d8 100644 --- a/pandas/_libs/tslibs/strptime.pyx +++ b/pandas/_libs/tslibs/strptime.pyx @@ -179,11 +179,7 @@ def array_strptime( npy_datetimestruct dts int64_t[::1] iresult object[...
The non-string paths in array_strptime look a lot like the non-string paths in array_to_datetime. I'd like to share more of those. This is a step in that direction.
https://api.github.com/repos/pandas-dev/pandas/pulls/55612
2023-10-20T22:32:39Z
2023-10-22T19:30:00Z
2023-10-22T19:30:00Z
2023-10-22T20:24:22Z
DEPR: correct warning message while parsing datetimes with mixed time zones if utc=False
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 3694a358cfb56..4989feaf84006 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -668,7 +668,7 @@ cdef _array_to_datetime_object( if len(unique_timezones) > 1: warnings.warn( "In a future version of pandas, par...
xref #54014 replaced "warning" with "error" in warning message for parsing datetimes with mixed time zones if `utc=False`
https://api.github.com/repos/pandas-dev/pandas/pulls/55611
2023-10-20T19:13:41Z
2023-10-20T23:07:55Z
2023-10-20T23:07:55Z
2023-10-20T23:08:01Z
BUG: inferred_freq with non-nano
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c8c27f2f2e178..679845eb0098c 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -410,6 +410,7 @@ Styler Other ^^^^^ - Bug in :func:`cut` incorrectly allowing cutting of timezone-aware datetimes with ti...
- [ ] 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/55609
2023-10-20T16:22:18Z
2023-10-22T19:30:49Z
2023-10-22T19:30:49Z
2023-10-22T20:30:43Z
BUG: BusinessDay addition with non-nano
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index b74f93942c411..412dd6ccb27f3 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -324,6 +324,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.union` returning object dtype for tz-aware indexes with the sam...
- [ ] 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 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55608
2023-10-20T16:12:19Z
2023-10-25T17:15:09Z
2023-10-25T17:15:09Z
2023-10-25T17:38:12Z
TST: move misplaced tests
diff --git a/pandas/tests/arrays/test_datetimes.py b/pandas/tests/arrays/test_datetimes.py index fc46e5a372806..c2d68a79f32d4 100644 --- a/pandas/tests/arrays/test_datetimes.py +++ b/pandas/tests/arrays/test_datetimes.py @@ -746,14 +746,6 @@ def test_iter_zoneinfo_fold(self, tz): assert str(left) == str(right2...
Also split some tests
https://api.github.com/repos/pandas-dev/pandas/pulls/55603
2023-10-20T01:51:12Z
2023-10-20T16:43:44Z
2023-10-20T16:43:44Z
2023-10-20T18:32:34Z
Backport PR #55596 on branch 2.1.x (CI: Have NumpyDev build only test nightly numpy)
diff --git a/ci/deps/actions-311-numpydev.yaml b/ci/deps/actions-311-numpydev.yaml index 7fd3a65ec91f8..9a6c05a138f9b 100644 --- a/ci/deps/actions-311-numpydev.yaml +++ b/ci/deps/actions-311-numpydev.yaml @@ -29,5 +29,4 @@ dependencies: - "--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheel...
Backport PR #55596: CI: Have NumpyDev build only test nightly numpy
https://api.github.com/repos/pandas-dev/pandas/pulls/55602
2023-10-19T22:53:42Z
2023-10-20T03:23:25Z
2023-10-20T03:23:25Z
2023-10-20T03:23:25Z
DOC: Correct groupby().mean() usage in table layout getting started article
diff --git a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst b/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst index 6a0b59b26350c..e4b34e3af57bf 100644 --- a/doc/source/getting_started/intro_tutorials/07_reshape_table_layout.rst +++ b/doc/source/getting_started/intro_tutor...
This would close #55599 in line with the suggestion in the issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/55600
2023-10-19T17:29:15Z
2023-10-19T22:52:31Z
2023-10-19T22:52:30Z
2023-10-19T22:53:06Z
Backport PR #55534 on branch 2.1.x (BUG: Ensure "string[pyarrow]" type is preserved when calling extractall)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 5df34f20bece3..ea6b6d523f405 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -29,6 +29,7 @@ Bug fixes - Fixed bug in :meth:`Series.all` and :meth:`Series.any` not treating missing values correctly fo...
Backport PR #55534: BUG: Ensure "string[pyarrow]" type is preserved when calling extractall
https://api.github.com/repos/pandas-dev/pandas/pulls/55597
2023-10-19T16:43:46Z
2023-10-19T18:12:47Z
2023-10-19T18:12:47Z
2023-10-19T18:12:48Z
CI: Have NumpyDev build only test nightly numpy
diff --git a/ci/deps/actions-311-numpydev.yaml b/ci/deps/actions-311-numpydev.yaml index 7fd3a65ec91f8..9a6c05a138f9b 100644 --- a/ci/deps/actions-311-numpydev.yaml +++ b/ci/deps/actions-311-numpydev.yaml @@ -29,5 +29,4 @@ dependencies: - "--extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheel...
Since scipy is an optional dependency and is only use sparsely within the pandas API, I don't think it's entirely necessary to test its nightly
https://api.github.com/repos/pandas-dev/pandas/pulls/55596
2023-10-19T16:26:29Z
2023-10-19T22:53:34Z
2023-10-19T22:53:34Z
2023-10-19T22:53:38Z
BUG: DateOffset addition with non-nano
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index be565616036e6..91863848827a4 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -302,6 +302,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.union` returning object dtype for tz-aware indexes with the sam...
- [ ] 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/55595
2023-10-19T15:40:17Z
2023-10-19T22:54:24Z
2023-10-19T22:54:24Z
2023-10-19T23:04:41Z
BLD: Allow building with NumPy nightlies and use it for nightlies
diff --git a/.circleci/config.yml b/.circleci/config.yml index ba124533e953a..1c70debca0caf 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,7 +49,12 @@ jobs: no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doesn't get killed by that co...
I am not sure that this is uncontested that this is a good version pin change. I also took the liberty of removing the current use of oldest-support-numpy, since Python 3.9 means that you should normally always get 1.25 anyway and that should work for any NumPy version. The `<=2.0.0.dev0` is a way to explicitly all...
https://api.github.com/repos/pandas-dev/pandas/pulls/55594
2023-10-19T12:45:40Z
2023-10-25T14:45:44Z
2023-10-25T14:45:44Z
2023-10-25T14:46:15Z
DEPR: fix stacklevel for DataFrame(mgr) deprecation
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index e9f1a073d77ef..c8e67710c85a9 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -763,14 +763,12 @@ Parquet Writing to a Parquet file: .. ipython:: python - :okwarning: df.to_parquet("foo.p...
Follow-up on https://github.com/pandas-dev/pandas/pull/52419. To ensure end users don't see this warning (unless they would be passing a manager themselves), but only libraries see them in their tests. See https://github.com/pandas-dev/pandas/pull/52419#issuecomment-1770215326 for context.
https://api.github.com/repos/pandas-dev/pandas/pulls/55591
2023-10-19T07:22:14Z
2023-11-09T07:49:54Z
2023-11-09T07:49:54Z
2023-11-09T07:49:57Z
[Documentation] Added another example in `df.clip` documentation.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1ae4c3cdfc458..c525003cabd10 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8785,6 +8785,16 @@ def clip( 3 -1 6 4 5 -4 + Clips using specific lower and upper thresholds per column: + + ...
df.clip takes lower and upper threshholds as inputs, and both of these can be `float or array-like, default None` type. I am aware of an example in doc which Clips specific lower and upper thresholds per column element. But it would be also nice to have example clipping is happening per column with specific low...
https://api.github.com/repos/pandas-dev/pandas/pulls/55589
2023-10-19T05:20:42Z
2023-10-20T16:46:23Z
2023-10-20T16:46:23Z
2023-10-20T16:46:30Z
REGR: Groupby methods not supporting numba raising TypeError when the…
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index 7c04d1a03a6e4..9d2826395b0ef 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -16,6 +16,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.join` where result has missing values and dtype is ...
… global option is set - [ ] closes #55520 (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/pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/55586
2023-10-19T02:27:14Z
2023-10-25T17:14:04Z
2023-10-25T17:14:04Z
2023-10-25T17:14:11Z
Backport PR #55582 on branch 2.1.x (CI: Unpin Cython)
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index a7eead7aafbf7..8ff7d290ea9d1 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -236,7 +236,7 @@ jobs: . ~/virtualenvs/pandas-dev/bin/activate python -m pip install --no-cach...
Backport PR #55582: CI: Unpin Cython
https://api.github.com/repos/pandas-dev/pandas/pulls/55585
2023-10-19T01:15:38Z
2023-10-19T12:42:56Z
2023-10-19T12:42:56Z
2023-10-19T12:42:56Z
TST: Test patching over fake instead of real method in accessor test
diff --git a/pandas/tests/test_register_accessor.py b/pandas/tests/test_register_accessor.py index 5b200711f4b36..4e569dc40005d 100644 --- a/pandas/tests/test_register_accessor.py +++ b/pandas/tests/test_register_accessor.py @@ -82,19 +82,13 @@ def test_accessor_works(): def test_overwrite_warns(): - # Need to ...
Ran into a scenario where `Series.mean` was patched while running tests in parallel and `Series.mean` therefore was not behaving correctly
https://api.github.com/repos/pandas-dev/pandas/pulls/55584
2023-10-19T00:29:04Z
2023-10-19T16:34:55Z
2023-10-19T16:34:55Z
2023-10-19T16:34:58Z
BUG: Week.__add__ with non-nano
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index b29d35c8ce332..be565616036e6 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -301,8 +301,9 @@ Datetimelike ^^^^^^^^^^^^ - Bug in :meth:`DatetimeIndex.union` returning object dtype for tz-aware indexe...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/55583
2023-10-18T22:49:54Z
2023-10-19T16:36:03Z
2023-10-19T16:36:03Z
2023-10-19T16:36:59Z
CI: Unpin Cython
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 53a1f5b95374d..b0a2427732a6a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -236,7 +236,7 @@ jobs: . ~/virtualenvs/pandas-dev/bin/activate python -m pip install --no-cach...
- [ ] 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/55582
2023-10-18T22:17:40Z
2023-10-19T01:15:30Z
2023-10-19T01:15:30Z
2023-10-19T01:15:31Z
BUG: conversion a JSON field descriptor into pandas type for deprecated offsets frequency 'M'
diff --git a/pandas/io/json/_table_schema.py b/pandas/io/json/_table_schema.py index 3f2291ba7a0c3..4d9fba72cf173 100644 --- a/pandas/io/json/_table_schema.py +++ b/pandas/io/json/_table_schema.py @@ -15,6 +15,7 @@ from pandas._libs import lib from pandas._libs.json import ujson_loads from pandas._libs.tslibs import...
xref #52064 when converting a JSON field descriptor into its corresponding pandas type we don't check if we have deprecated for offsets frequency "M". corrected the definition of `convert_json_field_to_pandas_type`, added a test.
https://api.github.com/repos/pandas-dev/pandas/pulls/55581
2023-10-18T22:00:19Z
2023-10-24T08:41:43Z
2023-10-24T08:41:43Z
2023-10-24T10:03:14Z
BUG/PERF: merge_asof with multiple "by" keys
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c8c27f2f2e178..f21cbdfa0c3a4 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -277,6 +277,7 @@ Other Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ - Performance improvement in :func:...
- [x] closes #43541 - [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/55580
2023-10-18T21:15:57Z
2023-10-22T19:47:32Z
2023-10-22T19:47:32Z
2023-11-16T12:57:01Z
REF: add creso keyword to parse_pydatetime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 43252ffb5bf13..55454e6c58755 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -456,6 +456,7 @@ cpdef array_to_datetime( tzinfo tz_out = None bint found_tz = False, found_naive = False cnp.flatiter it = cnp.P...
Broken off branch implementing #55564
https://api.github.com/repos/pandas-dev/pandas/pulls/55579
2023-10-18T21:01:11Z
2023-10-18T23:29:04Z
2023-10-18T23:29:04Z
2023-10-18T23:56:40Z
Backport PR #55562 on branch 2.1.x (Floordiv fix for pyarrow dtypes)
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index ddd1f95c56aea..5df34f20bece3 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -27,9 +27,9 @@ Bug fixes - Fixed bug in :meth:`DataFrame.interpolate` raising incorrect error message (:issue:`55347`) - F...
Backport PR #55562: Floordiv fix for pyarrow dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/55578
2023-10-18T20:31:27Z
2023-10-18T22:56:23Z
2023-10-18T22:56:23Z
2023-10-18T22:56:23Z
TST: change pyarrow skips to xfails
diff --git a/pandas/tests/io/parser/common/test_common_basic.py b/pandas/tests/io/parser/common/test_common_basic.py index 1f6ba3af5bfe5..4b4366fa387bf 100644 --- a/pandas/tests/io/parser/common/test_common_basic.py +++ b/pandas/tests/io/parser/common/test_common_basic.py @@ -34,7 +34,6 @@ ) xfail_pyarrow = pytest....
- [x] closes #49411
https://api.github.com/repos/pandas-dev/pandas/pulls/55576
2023-10-18T18:11:30Z
2023-10-23T17:29:19Z
2023-10-23T17:29:19Z
2023-10-23T19:48:03Z
Put create_manager_from_blocks in internals.api
diff --git a/pandas/core/internals/api.py b/pandas/core/internals/api.py index 10e6b76e985b3..a3fd77fc8d9ea 100644 --- a/pandas/core/internals/api.py +++ b/pandas/core/internals/api.py @@ -105,3 +105,25 @@ def maybe_infer_ndim(values, placement: BlockPlacement, ndim: int | None) -> int else: ndim ...
Deprecated this from `internals.__init__` telling downstream libraries to get it from internals.api, but forgot to actually put it there.
https://api.github.com/repos/pandas-dev/pandas/pulls/55575
2023-10-18T14:59:12Z
2023-10-18T16:52:01Z
2023-10-18T16:52:01Z
2023-10-18T17:57:18Z
Series.pow when right operand is missing value
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index b29d35c8ce332..4f5f31da75e03 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -317,6 +317,7 @@ Timezones Numeric ^^^^^^^ - Bug in :func:`read_csv` with ``engine="pyarrow"`` causing rounding errors fo...
- [x] closes #55512 (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/55568
2023-10-18T01:08:00Z
2023-10-19T16:40:55Z
2023-10-19T16:40:55Z
2023-10-19T16:54:15Z
Backport PR #55565 on branch 2.1.x (TST: Remove np.core usage)
diff --git a/pandas/tests/frame/constructors/test_from_records.py b/pandas/tests/frame/constructors/test_from_records.py index 55d4a6c3b39fa..bb4aed2163dac 100644 --- a/pandas/tests/frame/constructors/test_from_records.py +++ b/pandas/tests/frame/constructors/test_from_records.py @@ -42,7 +42,7 @@ def test_from_records...
Backport PR #55565: TST: Remove np.core usage
https://api.github.com/repos/pandas-dev/pandas/pulls/55567
2023-10-17T22:30:57Z
2023-10-18T00:28:20Z
2023-10-18T00:28:20Z
2023-10-18T00:28:20Z
TST: Remove np.core usage
diff --git a/pandas/tests/frame/constructors/test_from_records.py b/pandas/tests/frame/constructors/test_from_records.py index 55d4a6c3b39fa..bb4aed2163dac 100644 --- a/pandas/tests/frame/constructors/test_from_records.py +++ b/pandas/tests/frame/constructors/test_from_records.py @@ -42,7 +42,7 @@ def test_from_records...
https://github.com/numpy/numpy/pull/24634
https://api.github.com/repos/pandas-dev/pandas/pulls/55565
2023-10-17T17:29:54Z
2023-10-17T22:29:37Z
2023-10-17T22:29:37Z
2023-10-17T22:35:05Z
Floordiv fix for pyarrow dtypes
diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst index cc51e22265d7c..28b271f9cf446 100644 --- a/doc/source/whatsnew/v2.1.2.rst +++ b/doc/source/whatsnew/v2.1.2.rst @@ -29,9 +29,9 @@ Bug fixes - Fixed bug in :meth:`DataFrame.interpolate` raising incorrect error message (:issue:`55347`) - F...
- [x] closes #55561(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/55562
2023-10-17T14:25:54Z
2023-10-18T20:30:22Z
2023-10-18T20:30:22Z
2023-10-18T20:40:50Z
added assert
diff --git a/pandas/tests/indexing/interval/test_interval_new.py b/pandas/tests/indexing/interval/test_interval_new.py index 1aa62326e9071..283921a23e368 100644 --- a/pandas/tests/indexing/interval/test_interval_new.py +++ b/pandas/tests/indexing/interval/test_interval_new.py @@ -140,7 +140,7 @@ def test_loc_with_overl...
- [x] closes #55557 - [x] [Tests added and passed] - [ ] All [code checks passed] - [x] Added [type annotations] to new arguments/methods/functions. - [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/55560
2023-10-17T14:13:50Z
2023-10-21T21:19:58Z
2023-10-21T21:19:58Z
2023-10-21T21:20:10Z
BUG: Don't clean docs and open browser in code_checks
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6caa39ae42926..e91629744463f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -176,9 +176,8 @@ fi ### SINGLE-PAGE DOCS ### if [[ -z "$CHECK" || "$CHECK" == "single-docs" ]]; then - python doc/make.py --warnings-are-errors --single pandas.Series.va...
- [ ] 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/55556
2023-10-17T03:41:05Z
2023-10-17T15:46:25Z
2023-10-17T15:46:25Z
2023-11-26T13:41:41Z
DOC: Remove explicit paths from references
diff --git a/doc/source/getting_started/comparison/comparison_with_sql.rst b/doc/source/getting_started/comparison/comparison_with_sql.rst index f0eaa7362c52c..daa528c7d408a 100644 --- a/doc/source/getting_started/comparison/comparison_with_sql.rst +++ b/doc/source/getting_started/comparison/comparison_with_sql.rst @@ ...
- [ ] 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/55555
2023-10-17T01:59:49Z
2023-10-17T15:47:23Z
2023-10-17T15:47:23Z
2023-10-17T19:38:07Z
TST: split/collect/parametrize tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index 829ac64884dac..ce5647320837c 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -19,7 +19,7 @@ """ from collections import abc -from datetime import date, time, timedelta, timezone +from datetime import date, datetime, time, timedelta, timezone fr...
https://api.github.com/repos/pandas-dev/pandas/pulls/39663
2021-02-08T03:22:52Z
2021-02-08T13:49:06Z
2021-02-08T13:49:06Z
2021-02-08T15:04:07Z
TST/REF: collect indexing tests
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 5c1fabd67bc8d..346258fe5162b 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -115,7 +115,7 @@ ) if TYPE_CHECKING: - from pandas import IntervalIndex, MultiIndex, RangeIndex, Series + from pandas import C...
and assorted cleanups
https://api.github.com/repos/pandas-dev/pandas/pulls/39661
2021-02-08T00:02:04Z
2021-02-08T13:48:00Z
2021-02-08T13:48:00Z
2021-02-08T15:04:51Z
CLN: Styler Types for CSS variables on `ctx` object.
diff --git a/doc/source/whatsnew/v0.20.0.rst b/doc/source/whatsnew/v0.20.0.rst index 5dac3a26424a8..ad8a23882e1e8 100644 --- a/doc/source/whatsnew/v0.20.0.rst +++ b/doc/source/whatsnew/v0.20.0.rst @@ -374,7 +374,7 @@ For example, after running the following, ``styled.xlsx`` renders as below: df.iloc[0, 2] = np.nan ...
- [x] tests changed / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them `Styler` currently has three formats for keeping track of CSS: A) `CSSList type: [('a1', 'v1'), ('a2', 'v2')]` B) `List[str] ...
https://api.github.com/repos/pandas-dev/pandas/pulls/39660
2021-02-07T23:12:16Z
2021-02-19T01:10:21Z
2021-02-19T01:10:21Z
2021-07-07T10:01:22Z
Backport PR #39605: REGR: appending to existing excel file created corrupt files
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index b2b7326b9cb04..078ae7bd95a9b 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_pickle` failing to create bz2/xz compressed pic...
Backport PR #39605
https://api.github.com/repos/pandas-dev/pandas/pulls/39659
2021-02-07T21:56:29Z
2021-02-08T06:44:22Z
2021-02-08T06:44:22Z
2022-05-16T11:30:45Z
DOC: pin sphinx theme to avoid mobile dropdown bug
diff --git a/environment.yml b/environment.yml index 1224336dadda4..6376da76bd580 100644 --- a/environment.yml +++ b/environment.yml @@ -113,5 +113,5 @@ dependencies: - tabulate>=0.8.3 # DataFrame.to_markdown - natsort # DataFrame.sort_values - pip: - - git+https://github.com/pandas-dev/pydata-sphinx-them...
In the latest master version of the pydata-sphinx-theme, there is a bug in the menu dropdown on mobile mode (https://github.com/pydata/pydata-sphinx-theme/issues/304), and since this will probably not be fixed by tomorrow when releasing 1.2.2, I am pinning it here to a few commits earlier to avoid this specific bug (bu...
https://api.github.com/repos/pandas-dev/pandas/pulls/39658
2021-02-07T21:07:15Z
2021-02-08T13:44:03Z
2021-02-08T13:44:02Z
2021-02-08T13:46:59Z
Backport PR #39646 on branch 1.2.x (DOC: typo in 1.2.2 whatsnew)
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 974f84d3b244a..f38657b1b4613 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -17,7 +17,7 @@ Fixed regressions - Fixed regression in :func:`read_excel` that caused it to raise ``AttributeError`` when...
Backport PR #39646: DOC: typo in 1.2.2 whatsnew
https://api.github.com/repos/pandas-dev/pandas/pulls/39657
2021-02-07T20:17:29Z
2021-02-07T20:18:30Z
2021-02-07T20:18:30Z
2021-02-07T20:18:30Z
BUG: Series[dt64tz].__setitem__(mask, different_tz) raises
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 9e6c89345d76a..23bb9947686f4 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4528,7 +4528,7 @@ def putmask(self, mask, value): if not mask.any(): return self.copy() - if value is No...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry sits on top of #39650 after this we'll be ready to cleanup/de-duplicate some of the putm...
https://api.github.com/repos/pandas-dev/pandas/pulls/39656
2021-02-07T20:05:08Z
2021-02-10T23:13:01Z
2021-02-10T23:13:01Z
2021-02-10T23:16:06Z
REGR: fix case all-NaN/numeric object column in groupby
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index b6e81e44e6f08..c9cbf33ff2ad9 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -23,7 +23,8 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_csv` opening ``codecs.StreamWriter`` in binary ...
Fixes #39329 This basically reverts #35841, although the code itself has changed quite a bit since then, so it's simpler here as the original PR² (not dealing with blocks anymore) The original code comment that was removed in #35841 *"We've split an object block!"* was correct, as it can actually happen in those ...
https://api.github.com/repos/pandas-dev/pandas/pulls/39655
2021-02-07T19:56:10Z
2021-02-08T13:42:32Z
2021-02-08T13:42:31Z
2021-02-08T14:47:13Z
Backport PR #39639: REGR: fix transform of empty DataFrame/Series
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 974f84d3b244a..63e793c013497 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_pickle` failing to create bz2/xz compressed pic...
Backport PR #39639
https://api.github.com/repos/pandas-dev/pandas/pulls/39654
2021-02-07T18:29:53Z
2021-02-07T22:53:58Z
2021-02-07T22:53:58Z
2021-02-07T22:54:02Z
Backport PR #39586: REG: read_excel with engine specified raises on non-path/non-buffer
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 974f84d3b244a..9cd3f8b7ff6cf 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :func:`pandas.testing.assert_series_equal` and :func:`pandas.testing...
Backport PR #39586
https://api.github.com/repos/pandas-dev/pandas/pulls/39652
2021-02-07T17:58:43Z
2021-02-08T06:43:13Z
2021-02-08T06:43:13Z
2021-02-08T06:43:22Z
REF: implement Index._view, Index._rename
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index f4a6ed5f26c89..4e32b6e496929 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -323,7 +323,7 @@ def time_get_loc(self): self.index.get_loc(self.category) def time_...
take these 2 special cases out of _shallow_copy. We can get rid of some more _shallow_copy usages following #38140
https://api.github.com/repos/pandas-dev/pandas/pulls/39651
2021-02-07T17:55:19Z
2021-02-08T19:36:43Z
2021-02-08T19:36:43Z
2021-02-08T19:50:59Z
BUG: equals/assert_numpy_array_equals with non-singleton NAs
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index bed3484793bcc..a3a9a4c5eda08 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -454,7 +454,8 @@ Other - Bug in :func:`pandas.testing.assert_series_equal`, :func:`pandas.testing.assert_frame_equal`, :fun...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39650
2021-02-07T17:48:47Z
2021-02-10T20:35:05Z
2021-02-10T20:35:05Z
2021-02-10T20:36:30Z
DOC: fix an incomplete sentence
diff --git a/doc/source/user_guide/dsintro.rst b/doc/source/user_guide/dsintro.rst index f2bb99dd2ebc0..7d65e0c6faff7 100644 --- a/doc/source/user_guide/dsintro.rst +++ b/doc/source/user_guide/dsintro.rst @@ -126,7 +126,7 @@ However, operations such as slicing will also slice the index. .. note:: We will address...
"We will address array-based indexing like s[[4, 3, 1]] in section." -> "We will address array-based indexing like s[[4, 3, 1]] in section on indexing." - [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.h...
https://api.github.com/repos/pandas-dev/pandas/pulls/39648
2021-02-07T17:06:30Z
2021-02-08T21:47:22Z
2021-02-08T21:47:22Z
2021-02-08T22:52:16Z
DOC: typo in 1.2.2 whatsnew
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 52dbf3a4ae3ea..4f80263fda92d 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -17,7 +17,7 @@ Fixed regressions - Fixed regression in :func:`read_excel` that caused it to raise ``AttributeError`` when...
- [ ] closes #xxxx - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39646
2021-02-07T17:00:17Z
2021-02-07T20:16:53Z
2021-02-07T20:16:53Z
2021-02-07T20:16:59Z
Backport PR #39374 on branch 1.2.x (DOC: Clarify behavior for Series with dict-like data and index)
diff --git a/pandas/core/series.py b/pandas/core/series.py index b4e8696ad9e13..4b0d5f0b407be 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -169,8 +169,8 @@ class Series(base.IndexOpsMixin, generic.NDFrame): Values must be hashable and have the same length as `data`. Non-unique ind...
Backport PR #39374: DOC: Clarify behavior for Series with dict-like data and index
https://api.github.com/repos/pandas-dev/pandas/pulls/39645
2021-02-07T16:26:47Z
2021-02-07T18:04:27Z
2021-02-07T18:04:27Z
2021-02-07T18:04:27Z
fix #39556 (infer_freq not working with freq="H" and DST
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 09e1853429d9f..d8c4f633d2d0d 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -287,6 +287,7 @@ Datetimelike - Bug in :meth:`Timestamp.round`, :meth:`Timestamp.floor`, :meth:`Timestamp.ceil` for values ...
- check that the delta are unique before checking if they are day multiples - add test with freq="H" that raises the bug - [x] closes #39556 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how t...
https://api.github.com/repos/pandas-dev/pandas/pulls/39644
2021-02-07T15:18:22Z
2021-02-23T02:25:47Z
2021-02-23T02:25:47Z
2021-02-23T02:25:56Z
DOC: Fixed comment for pandas.unique (#39557)
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 2b0d3f5aa8862..cdbef673643e8 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -324,7 +324,8 @@ def unique(values): Hash table-based unique. Uniques are returned in order of appearance. This does NOT sort. - ...
xref https://github.com/pandas-dev/pandas/pull/39557#issuecomment-774667542
https://api.github.com/repos/pandas-dev/pandas/pulls/39643
2021-02-07T14:38:26Z
2021-02-07T16:35:23Z
2021-02-07T16:35:23Z
2021-02-07T16:36:05Z
CLN: reorganise vars in `Styler` init
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 3d9eb4e96f78a..b3eabf3552a75 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -157,53 +157,40 @@ def __init__( na_rep: Optional[str] = None, uuid_len: int = 5, ): - self.ctx: DefaultDict[T...
Trying to clean up Styler class grouping and ordering variables and adding typing where necessary.
https://api.github.com/repos/pandas-dev/pandas/pulls/39642
2021-02-07T13:41:14Z
2021-02-08T13:50:14Z
2021-02-08T13:50:14Z
2021-02-10T08:36:18Z
Revert "Backport PR #39526 on branch 1.2.x (CI: pin numpy for CI / Checks github action)"
diff --git a/environment.yml b/environment.yml index 71d7e47894f9d..6f3f81d8a4d77 100644 --- a/environment.yml +++ b/environment.yml @@ -3,7 +3,7 @@ channels: - conda-forge dependencies: # required - - numpy>=1.16.5, <1.20 # gh-39513 + - numpy>=1.16.5 - python=3 - python-dateutil>=2.7.3 - pytz diff --...
Reverts pandas-dev/pandas#39529 will be merging this just prior to tagging 1.2.2 see https://github.com/pandas-dev/pandas/issues/39513#issuecomment-771006563 and then re-appling after release so that ci on 12.x is green
https://api.github.com/repos/pandas-dev/pandas/pulls/39641
2021-02-07T13:39:01Z
2021-02-08T18:07:41Z
2021-02-08T18:07:41Z
2021-02-08T18:07:45Z
REGR: fix transform of empty DataFrame/Series
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 974f84d3b244a..63e793c013497 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_pickle` failing to create bz2/xz compressed pic...
Closes #39636
https://api.github.com/repos/pandas-dev/pandas/pulls/39639
2021-02-07T12:55:47Z
2021-02-07T16:22:38Z
2021-02-07T16:22:38Z
2021-02-07T19:08:27Z
API: transform behaves differently with 'ffill' on DataFrameGroupBy and SeriesGroupBy
diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py index 3f04f0f1163e7..04eb2f42d745b 100644 --- a/pandas/tests/groupby/transform/test_transform.py +++ b/pandas/tests/groupby/transform/test_transform.py @@ -769,6 +769,18 @@ def test_transform_numeric_ret(col...
- [ ] closes #24211 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39638
2021-02-07T12:46:04Z
2021-02-15T22:34:48Z
2021-02-15T22:34:47Z
2021-02-15T22:34:51Z
Revert "Fixed comment for pandas.unique"
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 51eeabc14c4c9..58384405a5cab 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -321,8 +321,7 @@ def unique(values): Hash table-based unique. Uniques are returned in order of appearance. This does NOT sort. - ...
Reverts pandas-dev/pandas#39557
https://api.github.com/repos/pandas-dev/pandas/pulls/39637
2021-02-07T12:41:00Z
2021-02-07T16:25:04Z
2021-02-07T16:25:04Z
2021-02-07T16:28:05Z
Backport PR #39551: CI: numpy deprecation warnings
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 2db46abca119c..9f3689779d056 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -87,8 +87,8 @@ def setup(self): self.vals_short = np.arange(2).astype(object) ...
Backport PR #39551
https://api.github.com/repos/pandas-dev/pandas/pulls/39635
2021-02-07T12:33:16Z
2021-02-07T13:32:00Z
2021-02-07T13:32:00Z
2021-02-07T13:32:04Z
Backport PR #39604: REGR: Rolling.count setting min_periods after call
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 0ee1abaa2a0eb..e9500ab531785 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_pickle` failing to create bz2/xz compressed pic...
Backport PR #39604
https://api.github.com/repos/pandas-dev/pandas/pulls/39634
2021-02-07T12:22:37Z
2021-02-07T13:14:34Z
2021-02-07T13:14:34Z
2021-02-07T13:14:37Z
Backport PR #39486: BUG: read_excel with openpyxl and missing dimension'
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 0ee1abaa2a0eb..cc5653fe2f360 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -31,6 +31,7 @@ Bug fixes ~~~~~~~~~ - :func:`pandas.read_excel` error message when a specified ``sheetname`` does not exi...
Backport PR #39486
https://api.github.com/repos/pandas-dev/pandas/pulls/39633
2021-02-07T12:04:34Z
2021-02-07T13:08:20Z
2021-02-07T13:08:20Z
2021-02-07T13:08:23Z
CLN: redundant function in `Styler`
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 6eac9ba87c73d..3d9eb4e96f78a 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -391,9 +391,6 @@ def _translate(self): BLANK_CLASS = "blank" BLANK_VALUE = "" - def format_attr(pair): - ...
simplifies code by removing unnecessary function def.
https://api.github.com/repos/pandas-dev/pandas/pulls/39632
2021-02-07T11:05:48Z
2021-02-07T17:12:20Z
2021-02-07T17:12:20Z
2021-02-16T18:24:09Z
CLN: Styler HTML output adopt structured code standard
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 17d8c79994dbe..895c21e79886f 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -448,7 +448,7 @@ Other - :meth:`Index.where` behavior now mirrors :meth:`Index.putmask` behavior, i.e. ``index.where(mask, ...
- [x] closes #39626 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39627
2021-02-06T21:26:34Z
2021-02-07T17:01:12Z
2021-02-07T17:01:12Z
2021-02-07T18:38:09Z
CLN: Use kwargs instead of kwds in apply functions
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 533190e692891..828b460f84ec6 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -63,7 +63,7 @@ def frame_apply( raw: bool = False, result_type: Optional[str] = None, args=None, - kwds=None, + kwargs=None, ) -> FrameApply: ...
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them I've applied the change here to the API function `apply` but I don't believe this is an API change as you cannot pass to `**kwds` (or `**kwargs`) by name.
https://api.github.com/repos/pandas-dev/pandas/pulls/39625
2021-02-06T17:05:01Z
2021-02-07T16:41:20Z
2021-02-07T16:41:20Z
2021-02-07T16:43:05Z
CI/TST: Disallow usage of pytest.xfail
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0fc6e61049a44..fc08a1b164caf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -127,6 +127,12 @@ repos: types: [python] files: ^pandas/tests/ exclude: ^pandas/tests/extension/ + - id: unwanted-patter...
- [x] closes #38902 - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/39624
2021-02-06T14:55:01Z
2021-02-08T21:47:50Z
2021-02-08T21:47:50Z
2021-02-08T22:05:35Z
BUG: Series.loc raising KeyError for Iterator indexer in case of setitem
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 1c7942dfedafa..1b011be839ff5 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -691,6 +691,8 @@ Indexing - Bug in :meth:`DataFrame.__setitem__` raising ``ValueError`` with empty :class:`DataFrame` and s...
- [x] closes #39614 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39623
2021-02-06T10:55:16Z
2021-04-16T00:46:28Z
2021-04-16T00:46:28Z
2021-04-16T08:13:47Z
REF: remove Float64Index get_loc, __contains__
diff --git a/pandas/_libs/index_class_helper.pxi.in b/pandas/_libs/index_class_helper.pxi.in index e1ea1fbf9bd46..e5026ce2fa292 100644 --- a/pandas/_libs/index_class_helper.pxi.in +++ b/pandas/_libs/index_class_helper.pxi.in @@ -34,10 +34,14 @@ cdef class {{name}}Engine(IndexEngine): cdef _make_hash_table(self, Py...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39620
2021-02-06T04:39:09Z
2021-02-07T16:42:50Z
2021-02-07T16:42:49Z
2021-02-07T16:58:15Z
BUG: Series[int].__setitem__(mask, td64_or_dt64) incorrect casting
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 17d8c79994dbe..79e9cec71d03d 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -338,7 +338,7 @@ Indexing - Bug in :meth:`Series.__setitem__` raising ``ValueError`` when setting a :class:`Series` with a ...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39619
2021-02-05T23:12:01Z
2021-02-07T16:58:58Z
2021-02-07T16:58:58Z
2021-02-07T17:01:42Z
REF: simplify BlockManager.quantile
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 11efa44e9d15f..477dbd4c1570e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9401,6 +9401,14 @@ def quantile( """ validate_percentile(q) + if not is_list_like(q): + # BlockManager.quantile expects listl...
Handle the scalar-qs case early on in DataFrame.quantile, hugely simplifies BlockManager.quantile and to a lesser extent Block.quantile
https://api.github.com/repos/pandas-dev/pandas/pulls/39618
2021-02-05T22:52:09Z
2021-02-08T13:50:34Z
2021-02-08T13:50:34Z
2021-02-08T15:05:15Z
BUG: fix Categorical.astype for dtype=np.int32 argument
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index b6e81e44e6f08..28ddfa197eae3 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_pickle` failing to create bz2/xz compressed pic...
- [x] closes #39402 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry Fixing a bug I introduced in #37355
https://api.github.com/repos/pandas-dev/pandas/pulls/39615
2021-02-05T16:49:37Z
2021-02-08T13:43:34Z
2021-02-08T13:43:34Z
2021-02-08T14:21:27Z
[ArrayManager] REF: Implement concat with reindexing
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index b2d30f3540e77..cfadb3e9f45c5 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -30,11 +30,13 @@ ) -def _cast_to_common_type(arr: ArrayLike, dtype: DtypeObj) -> ArrayLike: +def cast_to_common_type(arr: Array...
xref https://github.com/pandas-dev/pandas/issues/39146 (the concat work item) This PR implements `concat` for DataFrames using the ArrayManager, and all tests in `pandas/tests/reshape/` already pass. Summary of the changes: * In `internals/concat.py`, I added a `concatenate_block_managers` equivalent for Arra...
https://api.github.com/repos/pandas-dev/pandas/pulls/39612
2021-02-05T12:15:00Z
2021-04-12T10:56:11Z
2021-04-12T10:56:11Z
2021-04-12T10:56:14Z
Minor fix in read_csv docs
diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py index d547bfbfb3895..dc45336bb4c0f 100644 --- a/pandas/io/parsers/readers.py +++ b/pandas/io/parsers/readers.py @@ -283,7 +283,7 @@ error_bad_lines : bool, default True Lines with too many fields (e.g. a csv line with too many commas) will b...
Fix typo.
https://api.github.com/repos/pandas-dev/pandas/pulls/39608
2021-02-05T08:04:27Z
2021-02-05T08:53:02Z
2021-02-05T08:53:02Z
2021-02-05T08:53:13Z
BUG: quantile for ExtensionArray
diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py new file mode 100644 index 0000000000000..8d4dd7be28839 --- /dev/null +++ b/pandas/core/array_algos/quantile.py @@ -0,0 +1,77 @@ +import numpy as np + +from pandas._libs import lib + +from pandas.core.dtypes.common import is_list_lik...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry I _think_ this should work for arbitrary EAs, but we only have tests for sparse, dt64tz, an...
https://api.github.com/repos/pandas-dev/pandas/pulls/39606
2021-02-05T04:50:25Z
2021-02-12T01:24:39Z
2021-02-12T01:24:39Z
2021-02-12T07:12:55Z
REGR: appending to existing excel file created corrupt files
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 63e793c013497..8e69bf5e1991a 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_pickle` failing to create bz2/xz compressed pic...
- [x] closes #39576 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Tentatively ready: I added a working test but I don't have MS Excel to make sure it is hap...
https://api.github.com/repos/pandas-dev/pandas/pulls/39605
2021-02-05T03:32:07Z
2021-02-07T17:28:01Z
2021-02-07T17:28:01Z
2021-02-07T21:57:11Z
REGR: Rolling.count setting min_periods after call
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index cc5653fe2f360..974f84d3b244a 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -21,6 +21,7 @@ Fixed regressions - Fixed regression in :meth:`~DataFrame.to_pickle` failing to create bz2/xz compressed pic...
- [x] closes #39554 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39604
2021-02-05T03:28:52Z
2021-02-05T20:24:03Z
2021-02-05T20:24:03Z
2021-02-07T12:23:43Z
BUG: Timedelta.round near implementation bounds
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 4d0384abbf0c6..ccc34678a9f2c 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -279,6 +279,7 @@ Datetimelike - Bug in :class:`Categorical` incorrectly typecasting ``datetime`` object to ``Timestamp`` (:...
- [x] closes #38964 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39601
2021-02-05T00:20:32Z
2021-02-05T03:11:54Z
2021-02-05T03:11:54Z
2021-02-05T04:39:24Z
TST: misplaced tests
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 3b1a8ebcb13d0..6808ffe65e561 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -1732,34 +1732,6 @@ def test_setitem(self, uint64_frame): )...
https://api.github.com/repos/pandas-dev/pandas/pulls/39598
2021-02-04T20:17:47Z
2021-02-04T22:40:37Z
2021-02-04T22:40:37Z
2021-02-05T00:02:51Z
[PERF] taking upper 32bit of PyObject_Hash into account
diff --git a/asv_bench/benchmarks/hash_functions.py b/asv_bench/benchmarks/hash_functions.py index 5227ad0f53a04..3743882b936e2 100644 --- a/asv_bench/benchmarks/hash_functions.py +++ b/asv_bench/benchmarks/hash_functions.py @@ -25,6 +25,15 @@ def time_isin_outside(self, dtype, exponent): self.s.isin(self.valu...
- [x] closes #37615 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Until now the upper 32bits of PyObject_Hash aren't taken into account at all. Because for ...
https://api.github.com/repos/pandas-dev/pandas/pulls/39592
2021-02-04T07:05:23Z
2021-02-07T16:42:08Z
2021-02-07T16:42:08Z
2021-02-09T07:17:39Z
PERF: Rolling/Expanding.cov/corr
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 5f8cdb2a0bdac..5738775fe2b27 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -140,8 +140,11 @@ class Pairwise: def setup(self, window, method, pairwise): N = 10 ** 4 + n_grou...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry Also I think I stumbled on some bugs along the way; added whatsnew and modified the existing tests where necess...
https://api.github.com/repos/pandas-dev/pandas/pulls/39591
2021-02-04T06:40:51Z
2021-02-05T14:26:14Z
2021-02-05T14:26:13Z
2021-02-05T17:49:23Z
TST: Remove duplicate invalid sheet tests from io.excel
diff --git a/pandas/tests/io/excel/test_odf.py b/pandas/tests/io/excel/test_odf.py index c99d9ae62bf54..ddc3c42710a61 100644 --- a/pandas/tests/io/excel/test_odf.py +++ b/pandas/tests/io/excel/test_odf.py @@ -36,11 +36,3 @@ def test_read_writer_table(): result = pd.read_excel("writertable.odt", sheet_name="Table1"...
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them Followup from #39482 - removed tests are duplicates of `test_readers.test_bad_sheetname_raises`
https://api.github.com/repos/pandas-dev/pandas/pulls/39589
2021-02-04T01:52:04Z
2021-02-04T15:50:12Z
2021-02-04T15:50:12Z
2021-02-04T15:51:47Z
REG: read_excel with engine specified raises on non-path/non-buffer
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 974f84d3b244a..9cd3f8b7ff6cf 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :func:`pandas.testing.assert_series_equal` and :func:`pandas.testing...
- [x] closes #39528 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39586
2021-02-03T23:40:06Z
2021-02-07T16:24:23Z
2021-02-07T16:24:23Z
2021-02-12T03:01:12Z
BUG: at/iat __setitem__ failing to cast
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 6abe70e56b9b9..e42bba1bf07bb 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -341,6 +341,8 @@ Indexing - Bug in incorrectly raising in :meth:`Index.insert`, when setting a new column that cannot be he...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39582
2021-02-03T18:11:38Z
2021-02-04T01:59:27Z
2021-02-04T01:59:27Z
2021-02-04T02:33:52Z
TST/REF: de-duplicate SetitemCastingEquivalents
diff --git a/pandas/tests/series/indexing/test_setitem.py b/pandas/tests/series/indexing/test_setitem.py index 338e1c65e582b..c19dbaa5c6045 100644 --- a/pandas/tests/series/indexing/test_setitem.py +++ b/pandas/tests/series/indexing/test_setitem.py @@ -307,57 +307,71 @@ class SetitemCastingEquivalents: - the s...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39575
2021-02-03T04:51:24Z
2021-02-04T15:12:47Z
2021-02-04T15:12:47Z
2021-02-04T15:13:36Z
BUG: DataFrame.append with timedelta64
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 99ae60859b68c..71874aea77e58 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -430,6 +430,7 @@ Reshaping - Bug in :meth:`DataFrame.apply` would give incorrect results when used with a string argument a...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry AFAICT several of the existing tests are just wrong, xref #39122 cc @jorisvandenbossche ...
https://api.github.com/repos/pandas-dev/pandas/pulls/39574
2021-02-03T04:16:46Z
2021-02-12T20:13:53Z
2021-02-12T20:13:53Z
2021-02-12T20:28:45Z
CLN: dtypes.concat
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index 624e71a5cf760..5b46bee96d4b3 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -1,7 +1,7 @@ """ Utility functions related to concat. """ -from typing import Set, cast +from typing import cast import numpy ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39572
2021-02-03T02:54:31Z
2021-02-03T13:37:23Z
2021-02-03T13:37:23Z
2021-02-03T15:06:34Z
CLN: re-use na_value_for_dtype
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index e55ddbcc783d0..2b0d3f5aa8862 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -1660,18 +1660,6 @@ def take(arr, indices, axis: int = 0, allow_fill: bool = False, fill_value=None) return result -# TODO: can we de-d...
https://api.github.com/repos/pandas-dev/pandas/pulls/39571
2021-02-03T00:15:59Z
2021-02-03T01:31:46Z
2021-02-03T01:31:46Z
2021-02-03T02:08:35Z
Backport PR #39569 on branch 1.2.x (CI: ipython tab completion tests)
diff --git a/pandas/tests/arrays/categorical/test_warnings.py b/pandas/tests/arrays/categorical/test_warnings.py index 9e164a250cdb1..6ba3347796e08 100644 --- a/pandas/tests/arrays/categorical/test_warnings.py +++ b/pandas/tests/arrays/categorical/test_warnings.py @@ -15,15 +15,8 @@ async def test_tab_complete_warning(...
Backport PR #39569: CI: ipython tab completion tests
https://api.github.com/repos/pandas-dev/pandas/pulls/39570
2021-02-02T23:34:59Z
2021-02-03T00:48:44Z
2021-02-03T00:48:44Z
2021-02-03T00:48:44Z
CI: ipython tab completion tests
diff --git a/pandas/tests/arrays/categorical/test_warnings.py b/pandas/tests/arrays/categorical/test_warnings.py index 9e164a250cdb1..6ba3347796e08 100644 --- a/pandas/tests/arrays/categorical/test_warnings.py +++ b/pandas/tests/arrays/categorical/test_warnings.py @@ -15,15 +15,8 @@ async def test_tab_complete_warning(...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/39569
2021-02-02T22:34:42Z
2021-02-02T23:33:56Z
2021-02-02T23:33:56Z
2021-02-02T23:41:21Z
Backport PR #39484: BUG: Regression in astype not casting to bytes
diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst index 240acf787f9c9..0ee1abaa2a0eb 100644 --- a/doc/source/whatsnew/v1.2.2.rst +++ b/doc/source/whatsnew/v1.2.2.rst @@ -17,6 +17,7 @@ Fixed regressions - Fixed regression in :func:`read_excel` that caused it to raise ``AttributeError`` when...
Manual backport
https://api.github.com/repos/pandas-dev/pandas/pulls/39568
2021-02-02T22:21:24Z
2021-02-02T23:33:11Z
2021-02-02T23:33:11Z
2021-12-15T10:39:31Z