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
Fixed mypy errors in frequencies.py
diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py index 7ad68a812c2e2..a4fe2161983b6 100644 --- a/pandas/tseries/frequencies.py +++ b/pandas/tseries/frequencies.py @@ -394,11 +394,11 @@ def _get_annual_rule(self) -> str | None: return None pos_check = self.month_position...
- [ ] xref #37715 (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/47644
2022-07-08T18:57:52Z
2022-07-08T22:13:05Z
2022-07-08T22:13:05Z
2022-07-08T22:14:41Z
ENH: add result_names argument to DataFrame.compare #44354
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b081f743f9b0b..22a5f2a08362f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -278,6 +278,7 @@ Other enhancements - :meth:`DatetimeIndex.astype` now supports casting timezone-naive indexes to ``datetim...
This is following up on the pull request #44365 - [X] closes #44354 (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:/...
https://api.github.com/repos/pandas-dev/pandas/pulls/47643
2022-07-08T17:48:16Z
2022-07-16T14:29:38Z
2022-07-16T14:29:38Z
2022-07-16T14:29:50Z
ENH: add suffixes argument to DataFrame.compare #44354
This is following up on the pull request #44365 - [X] closes #xxxx (Replace xxxx with the Github issue number) - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://...
https://api.github.com/repos/pandas-dev/pandas/pulls/47642
2022-07-08T17:37:54Z
2022-07-08T17:44:57Z
null
2022-07-08T17:46:10Z
POC/ENH: Timedelta min/max/resolution support non-nano
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 5fd3e33808800..fef2a317a4f26 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -950,14 +950,18 @@ cdef _timedelta_from_value_and_reso(int64_t value, NPY_DATETIMEUNIT reso): cdef: ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47641
2022-07-08T15:56:23Z
2022-07-08T17:49:27Z
2022-07-08T17:49:27Z
2022-07-11T17:06:46Z
TST: adding test for multiindex nunique raising not implemnted error
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py index 193f3eb1a590f..08e15545cb998 100644 --- a/pandas/tests/indexing/multiindex/test_multiindex.py +++ b/pandas/tests/indexing/multiindex/test_multiindex.py @@ -214,6 +214,11 @@ def test_subtracting_t...
- [x] closes #34019 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47638
2022-07-08T10:17:59Z
2022-07-08T17:04:24Z
2022-07-08T17:04:24Z
2022-10-20T08:44:45Z
DEPR: Remove deprecation from private class IntervalTree
diff --git a/pandas/_libs/intervaltree.pxi.in b/pandas/_libs/intervaltree.pxi.in index 1a6106173e58e..8bf1a53d56dfb 100644 --- a/pandas/_libs/intervaltree.pxi.in +++ b/pandas/_libs/intervaltree.pxi.in @@ -8,8 +8,6 @@ import warnings from pandas._libs import lib from pandas._libs.algos import is_monotonic -from pand...
this is private, so no need to deprecate
https://api.github.com/repos/pandas-dev/pandas/pulls/47637
2022-07-08T10:17:25Z
2022-07-08T17:06:05Z
2022-07-08T17:06:05Z
2022-07-08T19:53:25Z
DEPR: Deprecate set_closed and add set_incluive
diff --git a/doc/redirects.csv b/doc/redirects.csv index 173e670e30f0e..90ddf6c4dc582 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -761,6 +761,7 @@ generated/pandas.IntervalIndex.mid,../reference/api/pandas.IntervalIndex.mid generated/pandas.IntervalIndex.overlaps,../reference/api/pandas.IntervalIndex.ove...
Deprecatets set closed for ser_inclusive to keep consistency
https://api.github.com/repos/pandas-dev/pandas/pulls/47636
2022-07-08T10:16:21Z
2022-07-08T22:16:03Z
2022-07-08T22:16:03Z
2022-07-09T02:11:43Z
DOC #45443 edited the documentation of where/mask functions
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ba3474a2513fb..489ad1e3bf5c2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9614,7 +9614,8 @@ def where( The {name} method is an application of the if-then idiom. For each element in the calling DataFrame, if ``co...
- [X] closes #45443 (Replace xxxx with the Github issue number) - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47635
2022-07-08T07:41:27Z
2022-07-08T10:22:57Z
null
2022-07-08T10:22:57Z
DOC #45443 edited the documentation of where/mask functions
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ba3474a2513fb..489ad1e3bf5c2 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9614,7 +9614,8 @@ def where( The {name} method is an application of the if-then idiom. For each element in the calling DataFrame, if ``co...
- [X] closes #47626 - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47634
2022-07-08T07:38:08Z
2022-07-08T07:40:09Z
null
2022-07-08T07:40:09Z
BUG: Series.str.zfill() behaves differently than str.zfill() from standard library
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index c85a087835b80..cbb1d306f9927 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -530,6 +530,7 @@ Conversion Strings ^^^^^^^ - Bug in :meth:`str.startswith` and :meth:`str.endswith` when using other ser...
- [ ] closes #20868 (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/47633
2022-07-08T07:35:44Z
2022-07-10T00:15:25Z
2022-07-10T00:15:25Z
2022-07-10T01:24:04Z
DOC: fixing override of built-in functions in docs
diff --git a/doc/source/getting_started/comparison/comparison_with_r.rst b/doc/source/getting_started/comparison/comparison_with_r.rst index f91f4218c3429..dad6edb25219d 100644 --- a/doc/source/getting_started/comparison/comparison_with_r.rst +++ b/doc/source/getting_started/comparison/comparison_with_r.rst @@ -133,8 +...
- [x] closes #47606 - [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/contributing_codebase.html#pre-commit). - [...
https://api.github.com/repos/pandas-dev/pandas/pulls/47632
2022-07-08T02:53:06Z
2022-07-08T16:26:04Z
null
2022-07-08T16:26:05Z
DOC: avoid overriding Python built-in functions
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index ba3fb17cc8764..5d8ef7ce02097 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -839,10 +839,10 @@ Alternatively, the built-in methods could be used to produce the same outputs. .. ipython:...
- [x] closes #47606 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47631
2022-07-08T02:49:59Z
2022-07-08T16:23:11Z
2022-07-08T16:23:11Z
2022-07-12T01:33:54Z
BUG: using read_xml with iterparse and names will ignore duplicate values
diff --git a/pandas/io/xml.py b/pandas/io/xml.py index 95fac0c739895..9b6eb31dafc07 100644 --- a/pandas/io/xml.py +++ b/pandas/io/xml.py @@ -342,7 +342,7 @@ def _iterparse_nodes(self, iterparse: Callable) -> list[dict[str, str | None]]: for col, nm in zip(self.iterparse[row_node], self.names): ...
- [X] closes #47483 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47630
2022-07-08T01:28:53Z
2022-07-08T16:19:58Z
2022-07-08T16:19:57Z
2022-07-09T00:28:08Z
Test for nested series equality #22400
diff --git a/pandas/tests/util/test_assert_series_equal.py b/pandas/tests/util/test_assert_series_equal.py index 2209bed67325c..963af81bcb6a5 100644 --- a/pandas/tests/util/test_assert_series_equal.py +++ b/pandas/tests/util/test_assert_series_equal.py @@ -1,3 +1,4 @@ +import numpy as np import pytest from pandas.c...
- [ ] closes #22400 (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/47627
2022-07-07T20:25:49Z
2022-07-07T22:27:46Z
2022-07-07T22:27:45Z
2022-07-07T22:27:55Z
"DOC #45443 edited the documentation of where/mask functions"
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ba3474a2513fb..8089fc58db07d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9614,7 +9614,9 @@ def where( The {name} method is an application of the if-then idiom. For each element in the calling DataFrame, if ``co...
- [X] closes #45443 - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47626
2022-07-07T17:58:14Z
2022-07-08T22:17:31Z
2022-07-08T22:17:31Z
2022-07-08T22:17:45Z
ENH: Make categories setitem error more readable
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 70699c45e0c36..0a93ebf82c869 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1474,10 +1474,11 @@ def _validate_scalar(self, fill_value): elif fill_value in self.categories: ...
Closes #46646
https://api.github.com/repos/pandas-dev/pandas/pulls/47624
2022-07-07T12:23:48Z
2022-08-15T16:22:51Z
null
2022-08-15T16:22:52Z
BUG: boolean indexer with NA raising when reindex is necessary
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0b450fab53137..62a99ce3cae44 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -885,6 +885,7 @@ Indexing - Bug when setting a value too large for a :class:`Series` dtype failing to coerce to a common ty...
- [x] closes #46551 (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/47623
2022-07-07T11:47:26Z
2022-07-08T22:53:53Z
2022-07-08T22:53:53Z
2022-07-09T02:12:23Z
WARN: Don't show FutureWarning when enlarging df with iloc
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 665333d0d7b4f..adc4b8c003515 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -2004,11 +2004,16 @@ def _setitem_single_column(self, loc: int, value, plane_indexer): if ( isinstance(new_values, np.ndar...
- [x] xref #47381 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/47621
2022-07-07T06:34:31Z
2022-07-07T16:37:28Z
2022-07-07T16:37:28Z
2022-07-08T20:07:47Z
Equal test
diff --git a/pandas/tests/util/test_assert_series_equal.py b/pandas/tests/util/test_assert_series_equal.py index 2209bed67325c..4e5e45b315fc1 100644 --- a/pandas/tests/util/test_assert_series_equal.py +++ b/pandas/tests/util/test_assert_series_equal.py @@ -382,3 +382,21 @@ def test_assert_series_equal_identical_na(null...
- [ ] 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/47620
2022-07-07T00:42:53Z
2022-07-07T05:46:00Z
null
2022-07-07T05:46:01Z
BUG: Return Float64 for read_parquet(use_nullable_dtypes=True)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0b450fab53137..c70acc0a0b18c 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -948,7 +948,7 @@ I/O - Bug in :func:`read_sas` with RLE-compressed SAS7BDAT files that contain 0x40 control bytes (:issue:`...
- [x] closes #45694 (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/47619
2022-07-06T22:23:23Z
2022-07-07T16:10:11Z
2022-07-07T16:10:10Z
2022-07-07T16:10:14Z
TYP: more return annotations in core/
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 0fcea111716ec..5e90eae27f981 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -529,7 +529,7 @@ def getMixedTypeDict(): return index, data -def makeMixedDataFrame(): +def makeMixedDataFrame() -> DataFrame: ...
Probably the last big PR related to #47521 There are many more missing return annotations but they should be addressed in smaller PRs (they are either difficult to type or lead to many ignore comments).
https://api.github.com/repos/pandas-dev/pandas/pulls/47618
2022-07-06T21:59:25Z
2022-07-07T16:45:19Z
2022-07-07T16:45:19Z
2022-09-21T15:28:31Z
DOC: Fixed pandas capitalization
diff --git a/RELEASE.md b/RELEASE.md index 42cb82dfcf020..344a097a3e81e 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,6 +1,6 @@ Release Notes ============= -The list of changes to Pandas between each release can be found +The list of changes to pandas between each release can be found [here](https://pandas.pydata...
Fixed wrong capitalization of "pandas" in RELEASE.md.
https://api.github.com/repos/pandas-dev/pandas/pulls/47617
2022-07-06T20:59:23Z
2022-07-06T21:11:12Z
2022-07-06T21:11:11Z
2022-07-06T21:11:18Z
TST: Added test for strides in column major Dataframes stored in HDFS…
diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py index 8a933f4981ff3..3a6f699cce94e 100644 --- a/pandas/tests/io/pytables/test_store.py +++ b/pandas/tests/io/pytables/test_store.py @@ -1019,3 +1019,11 @@ def test_hdfstore_iteritems_deprecated(setup_path): hdf.put...
…tore - [x] closes #22073. - [x] Tests added and passed. - [x] All code checks passed. Added test for column-major DataFrames stored in HDFStore which were incorrectly returned as row-major. Tests and linter pass locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/47616
2022-07-06T20:52:14Z
2022-07-07T00:10:56Z
2022-07-07T00:10:56Z
2022-07-07T05:46:09Z
Create codeql-analysis.yml
diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000000000..2ca08a1c1514c --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,72 @@ +# For most projects, this workflow file will not need changing; you simply need +# to commit it t...
- [ ] 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/47615
2022-07-06T17:31:33Z
2022-07-06T21:59:53Z
null
2022-07-06T21:59:59Z
Fix Period not using freq when using same base-freq.
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index e187df6d6f627..9072b90e3e7f8 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2552,12 +2552,11 @@ class Period(_Period): hour, minute, second, freq) ...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/47613
2022-07-06T16:07:32Z
2022-09-01T21:25:30Z
null
2022-09-01T21:25:30Z
CLN: Add tets and fix docstring for concat with sort=True and outer join
diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py index 6820b7b5360a5..b4f47f70c5a84 100644 --- a/pandas/core/indexes/api.py +++ b/pandas/core/indexes/api.py @@ -233,6 +233,7 @@ def _unique_indices(inds, dtype) -> Index: Parameters ---------- inds : list of Index or list ob...
cc @simonjayhawkins Added a couple of tests and fixed the docstring
https://api.github.com/repos/pandas-dev/pandas/pulls/47612
2022-07-06T14:45:25Z
2022-07-07T17:04:55Z
2022-07-07T17:04:55Z
2022-07-08T20:07:04Z
DOC: fix shared compression_options and decompression_options
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3967c3df6b7cb..76a473dad79a4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3296,7 +3296,7 @@ def to_latex( @final @doc( storage_options=_shared_docs["storage_options"], - compression_options=_shared_docs[...
Both compression_options and decompression_options made the same reference to zstandard.ZstdDecompressor however compression uses zstandard.ZstdCompressor and so the documentation for compression_options should refer to this class instead The shared doc strings compression_options and decompression_options requi...
https://api.github.com/repos/pandas-dev/pandas/pulls/47609
2022-07-06T10:55:53Z
2022-07-06T16:45:15Z
2022-07-06T16:45:15Z
2022-07-06T16:45:22Z
BUG: df.groupby().resample()[[cols]] without key columns raise KeyError
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0b450fab53137..5b07fc31287e5 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -996,6 +996,8 @@ Groupby/resample/rolling - Bug in :meth:`.DataFrameGroupBy.describe` and :meth:`.SeriesGroupBy.describe` p...
- [x] closes #47362 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47605
2022-07-06T04:44:26Z
2022-07-11T21:00:02Z
2022-07-11T21:00:02Z
2022-07-12T02:00:41Z
Add test for unique aggregation returning different dtypes
diff --git a/pandas/tests/apply/test_frame_apply.py b/pandas/tests/apply/test_frame_apply.py index 72a9d8723d34c..1ef0865fff552 100644 --- a/pandas/tests/apply/test_frame_apply.py +++ b/pandas/tests/apply/test_frame_apply.py @@ -1585,3 +1585,21 @@ def test_apply_on_empty_dataframe(): result = df.head(0).apply(lamb...
- [ ] closes #22558 (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/47603
2022-07-05T23:16:10Z
2022-07-26T21:11:05Z
2022-07-26T21:11:05Z
2022-07-26T21:11:15Z
BUG: Make xticks from _quarterly_finder() line up better
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0b450fab53137..746d58fb6b437 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -970,6 +970,7 @@ Plotting - Bug in :meth:`DataFrame.plot.scatter` that prevented specifying ``norm`` (:issue:`45809`) - Th...
When I plot a series of quarterly data that spans more than 11 years, my vertical grid lines get placed a year before where they should, i.e., one year before a year that is divisible by the default annual spacing. Changing one line in the _quarterly_finder() function, from +1 to +1970, fixes this for me. Can anyone pl...
https://api.github.com/repos/pandas-dev/pandas/pulls/47602
2022-07-05T21:42:50Z
2022-07-15T19:20:56Z
2022-07-15T19:20:56Z
2022-07-15T19:52:27Z
ENH/TST: Add TestBaseReshaping tests for ArrowExtensionArray
diff --git a/pandas/tests/extension/test_arrow.py b/pandas/tests/extension/test_arrow.py index 861cc44310751..7e0792a6010a7 100644 --- a/pandas/tests/extension/test_arrow.py +++ b/pandas/tests/extension/test_arrow.py @@ -563,13 +563,209 @@ def test_fillna_frame(self, data_missing, using_array_manager, request): ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47601
2022-07-05T20:38:37Z
2022-07-08T13:00:56Z
2022-07-08T13:00:56Z
2022-07-08T16:12:16Z
CI: run flake8-pyi with all the other flake8 plugins
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c8123f90ab3a3..bfbca05a66e08 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,10 +49,13 @@ repos: rev: 4.0.1 hooks: - id: flake8 + types: [text] # overwrite types: [python] + types_or: [python, ...
followup to #47595 @mroeschke
https://api.github.com/repos/pandas-dev/pandas/pulls/47600
2022-07-05T18:07:40Z
2022-07-09T23:01:45Z
null
2022-07-09T23:01:45Z
BUG: `pd.period_range` ignores multiple of `start` frequency.
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0b450fab53137..6b90126f556e0 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -959,6 +959,7 @@ Period - Bug in adding ``np.timedelta64("NaT", "ns")`` to a :class:`Period` with a timedelta-like freq inc...
Fixes: #47465 - [x] closes #47465 - [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#pr...
https://api.github.com/repos/pandas-dev/pandas/pulls/47598
2022-07-05T13:23:43Z
2022-09-01T21:25:23Z
null
2022-09-01T21:25:24Z
Added improvements in to_datetime Error reporting message
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index ee3964b892e2e..39c8aab2ce5dc 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -595,7 +595,7 @@ cpdef array_to_datetime( continue elif is_raise: ...
- This PR aims to close 3 related issues - #16757 , #46509 , #47495 - Changes description - For issue #16757 - added more details in error message about field and its position causing the issue in `pandas/_libs/tslib.pyx` in `_array_to_datetime_object` and `array_to_datetime` - For issue #46509 - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47597
2022-07-05T09:34:43Z
2022-08-07T06:30:48Z
null
2022-08-07T06:30:48Z
CI: flake8-pyi
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 13e0ecd33359f..8d1e13c1e2212 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -229,3 +229,11 @@ repos: entry: python scripts/validate_min_versions_in_sync.py language: python files: ^(ci/deps/actions-.*-...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47595
2022-07-04T19:48:47Z
2022-07-05T17:36:45Z
2022-07-05T17:36:45Z
2022-09-21T15:28:31Z
TST: added test for handling repeated keys when using Series.loc with Multiindex
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py index b88c411636610..193f3eb1a590f 100644 --- a/pandas/tests/indexing/multiindex/test_multiindex.py +++ b/pandas/tests/indexing/multiindex/test_multiindex.py @@ -213,3 +213,12 @@ def test_subtracting_t...
- [x] closes #19414. - [x] Tests added and passed. - [x] All code checks passed. Added test for handling repeated keys when using Series.loc with Multiindex. Tests and linter pass locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/47594
2022-07-04T16:55:42Z
2022-07-05T17:08:22Z
2022-07-05T17:08:22Z
2022-07-05T17:08:29Z
ENH: Move CSSWarning to error/__init__.py per GH27656
diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst index c3ce267ff9dc7..249c2c56cfe57 100644 --- a/doc/source/reference/testing.rst +++ b/doc/source/reference/testing.rst @@ -26,6 +26,7 @@ Exceptions and warnings errors.AbstractMethodError errors.AccessorRegistrationWarning + e...
- [x] xref #27656. this GitHub issue is being done in multiple parts - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/developme...
https://api.github.com/repos/pandas-dev/pandas/pulls/47591
2022-07-03T20:07:01Z
2022-07-05T17:14:46Z
2022-07-05T17:14:46Z
2022-07-05T17:14:54Z
Backport PR #47474 on branch 1.4.x (BUG: to_sql with method=callable not returning int raising TypeError)
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index 0af25daf0468a..6ee140f59e096 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -24,7 +24,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - The :class:`errors.FutureWarning` raised when passing arguments (o...
Backport PR #47474: BUG: to_sql with method=callable not returning int raising TypeError
https://api.github.com/repos/pandas-dev/pandas/pulls/47590
2022-07-03T15:13:33Z
2022-07-04T10:19:22Z
2022-07-04T10:19:22Z
2022-07-04T10:19:23Z
TST: added test for to_json when called on numbers exceeding the int64 limit
diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index eaffbc60ead32..026c3bc68ce34 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -1908,3 +1908,13 @@ def test_complex_data_tojson(self, data, expected): # GH41174 resu...
- [x] closes #21073 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Added test for to_json() when called o...
https://api.github.com/repos/pandas-dev/pandas/pulls/47589
2022-07-03T14:35:49Z
2022-07-05T16:43:47Z
2022-07-05T16:43:46Z
2022-07-05T16:43:57Z
CLN: concat union_indexes now respecting sort keyword
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 82ae93ad31763..8dc838a5d61a5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9523,7 +9523,6 @@ def _append( verify_integrity: bool = False, sort: bool = False, ) -> DataFrame: - combined_columns = None ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47588
2022-07-03T12:09:47Z
2022-07-03T14:14:16Z
2022-07-03T14:14:16Z
2022-07-03T17:10:08Z
TYP: return values in core/*.py
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 7e292f4ccf8cb..159c0bb2e72c0 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -948,7 +948,7 @@ def value_counts( # Called once from SparseArray, otherwise could be private def value_counts_arraylike( values: np.ndar...
This PR is quite a bit larger since many functions needed overloads.
https://api.github.com/repos/pandas-dev/pandas/pulls/47587
2022-07-03T00:36:12Z
2022-07-06T19:57:07Z
2022-07-06T19:57:07Z
2022-09-21T15:28:31Z
BUG: concat losing columns dtypes for join=outer
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 6fc1ec9c6ff90..2f5c2bb36f405 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -995,6 +995,7 @@ Reshaping - Bug in :func:`get_dummies` that selected object and categorical dtypes but not string (:issue:...
- [x] closes #47329 (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/47586
2022-07-02T23:26:10Z
2022-07-03T14:25:18Z
2022-07-03T14:25:18Z
2022-07-08T13:32:05Z
BUG: Series map ignoring na_action for dict or series mapper
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 090fea57872c5..16fcb34fdb7d1 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -914,6 +914,7 @@ Missing ^^^^^^^ - Bug in :meth:`Series.fillna` and :meth:`DataFrame.fillna` with ``downcast`` keyword not...
- [x] closes #47527 (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/47585
2022-07-02T22:48:26Z
2022-07-21T17:26:42Z
2022-07-21T17:26:42Z
2022-08-01T18:16:18Z
REF: share DTA/TDA.__init__
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 00dc8b2a4a13b..48de7771cd8d7 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -25,6 +25,7 @@ algos, lib, ) +from pandas._libs.arrays import NDArrayBacked from pandas._libs.ts...
- [ ] 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/47583
2022-07-02T15:05:45Z
2022-07-05T17:19:00Z
2022-07-05T17:19:00Z
2022-07-05T18:41:01Z
BUG: DataFrame.loc not aligning rhs df for single block case
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 6fc1ec9c6ff90..4e22ec263289f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -882,6 +882,7 @@ Indexing - Bug in :meth:`Series.__setitem__` when setting ``boolean`` dtype values containing ``NA`` incor...
- [x] closes #47578 (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/47581
2022-07-02T11:55:29Z
2022-07-03T14:18:45Z
2022-07-03T14:18:45Z
2022-08-08T13:16:49Z
ENH: DTI/DTA.astype support non-nano
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 3b40ad8caf372..0b450fab53137 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -275,7 +275,9 @@ Other enhancements - :class:`.DataError`, :class:`.SpecificationError`, :class:`.SettingWithCopyError`, :c...
- [ ] 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/47579
2022-07-02T02:56:02Z
2022-07-05T20:00:51Z
2022-07-05T20:00:51Z
2022-07-05T20:04:52Z
Adding testcase for quartile performed on a timestamp column group by ( closes #33168 )
diff --git a/pandas/tests/groupby/test_quantile.py b/pandas/tests/groupby/test_quantile.py index 20328426a69b2..2b7e71d9619a4 100644 --- a/pandas/tests/groupby/test_quantile.py +++ b/pandas/tests/groupby/test_quantile.py @@ -343,3 +343,38 @@ def test_columns_groupby_quantile(): ) tm.assert_frame_equal(resul...
Have added a testcase for quartile performed on a timestamp column group by. This change closes #33168
https://api.github.com/repos/pandas-dev/pandas/pulls/47575
2022-07-01T19:57:41Z
2022-07-03T14:20:33Z
2022-07-03T14:20:33Z
2022-07-03T14:20:37Z
REF: simplify DTA.__init__
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index e3a1d1d0705c4..c019edea5eee0 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -256,7 +256,7 @@ def _scalar_type(self) -> type[Timestamp]: _freq = None def __init__( - self, values...
After this we can share DTA/TDA.`__init__`
https://api.github.com/repos/pandas-dev/pandas/pulls/47574
2022-07-01T19:10:36Z
2022-07-01T22:16:23Z
2022-07-01T22:16:23Z
2022-07-01T22:16:36Z
CLN: Move monotonic check to safe_sort_index
diff --git a/pandas/core/indexes/api.py b/pandas/core/indexes/api.py index 71ecb358cf575..a9e24bd64922b 100644 --- a/pandas/core/indexes/api.py +++ b/pandas/core/indexes/api.py @@ -157,7 +157,7 @@ def _get_combined_index( index = union_indexes(indexes, sort=False) index = ensure_index(index) - if...
- [x] xref #47508 (Replace xxxx with the Github issue number) as discussed there
https://api.github.com/repos/pandas-dev/pandas/pulls/47573
2022-07-01T18:09:03Z
2022-07-01T22:16:44Z
2022-07-01T22:16:44Z
2022-07-01T22:17:13Z
Use license_files instead of license_file
diff --git a/setup.cfg b/setup.cfg index 05b7975cbc0a8..ded05cbb4e413 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,7 @@ url = https://pandas.pydata.org author = The Pandas Development Team author_email = pandas-dev@python.org license = BSD-3-Clause -license_file = LICENSE +license_files = LICENSE platforms = a...
The license_file parameter is deprecated, use license_files instead We get this deprecation warning when rebuilding the extensions
https://api.github.com/repos/pandas-dev/pandas/pulls/47572
2022-07-01T18:01:54Z
2022-07-01T22:12:23Z
2022-07-01T22:12:23Z
2022-07-01T22:17:22Z
BUG: Fixed `tm.set_locale` context manager, it could error and leak when category LC_ALL was used
diff --git a/pandas/_config/localization.py b/pandas/_config/localization.py index fa5503029fd4b..c4355e954c67c 100644 --- a/pandas/_config/localization.py +++ b/pandas/_config/localization.py @@ -39,7 +39,8 @@ def set_locale( particular locale, without globally setting the locale. This probably isn't thread-...
- [x] closes #46595 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [...
https://api.github.com/repos/pandas-dev/pandas/pulls/47570
2022-07-01T14:47:13Z
2022-07-08T22:56:58Z
2022-07-08T22:56:58Z
2022-07-11T07:16:06Z
[DOC] improving the ExcelWriter docstring
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 58bb4b1a8f849..0c4268626099a 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -871,11 +871,14 @@ class ExcelWriter(metaclass=abc.ABCMeta): """ Class for writing DataFrame objects into excel sheets. - Default is ...
- [x] closes #47526 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47568
2022-07-01T12:26:35Z
2022-07-01T17:52:44Z
2022-07-01T17:52:43Z
2022-10-20T08:44:36Z
"Backport PR #47508 on branch 1.4.x REGR: concat materializing index even if sort is not necessary )"
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index b462f0c6a8ffe..0f3d7a55fd6d7 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression in :func:`...
Backport PR #47508
https://api.github.com/repos/pandas-dev/pandas/pulls/47565
2022-07-01T07:21:56Z
2022-07-02T16:41:44Z
2022-07-02T16:41:44Z
2022-07-02T19:18:41Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 13e0ecd33359f..3444bc8de6296 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: pass_filenames: true require_serial: false - repo: https://github.com/python/black - rev: 22.3.0 + rev:...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/main) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/node_...
https://api.github.com/repos/pandas-dev/pandas/pulls/47564
2022-07-01T07:08:08Z
2022-07-06T16:59:53Z
2022-07-06T16:59:53Z
2022-07-06T16:59:56Z
TYP: fix a few errors found by pandas-stub
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 90ee600c1967d..7c89946a0c12f 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -864,7 +864,7 @@ def assert_series_equal( check_dtype: bool | Literal["equiv"] = True, check_index_type="equiv", chec...
There are (unsurprisingly) many errors when trying to use pyright/mypy to validate pandas-stub's tests against the pandas annotations. This PR fixes three of them.
https://api.github.com/repos/pandas-dev/pandas/pulls/47562
2022-07-01T03:30:09Z
2022-07-03T14:21:18Z
2022-07-03T14:21:18Z
2022-09-21T15:28:31Z
DEPR: numeic_only in Series and SeriesGroupBy consistency
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index d237ee9921356..28abfebce1ffc 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -275,6 +275,7 @@ Other enhancements - :class:`.DataError`, :class:`.SpecificationError`, :class:`.SettingWithCopyError`, :c...
Part of #47500 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/47561
2022-07-01T03:05:31Z
2022-07-05T16:42:33Z
2022-07-05T16:42:32Z
2022-07-06T22:14:07Z
TYP: fix type of level in DataFrame.groupby
diff --git a/pandas/_typing.py b/pandas/_typing.py index a1bb119c32ba6..ac1237f8841be 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -109,7 +109,7 @@ Axis = Union[str, int] IndexLabel = Union[Hashable, Sequence[Hashable]] -Level = Union[Hashable, int] +Level = Hashable Shape = Tuple[int, ...] Suffixes ...
fixes #47548
https://api.github.com/repos/pandas-dev/pandas/pulls/47560
2022-07-01T02:12:49Z
2022-07-01T17:50:11Z
2022-07-01T17:50:11Z
2022-09-21T15:28:31Z
TST: Test aggregate with list values #25581
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index d52b6ceaf8990..54ee32502bbc9 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -1413,3 +1413,28 @@ def test_multi_axis_1_raises(fun...
- [ ] closes #25581 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47559
2022-07-01T01:46:37Z
2022-07-05T22:22:19Z
2022-07-05T22:22:19Z
2022-07-05T22:22:29Z
TYP: misc return type annotations
diff --git a/pandas/__init__.py b/pandas/__init__.py index 1c4151372273b..01ff2e1e1f181 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -1,4 +1,5 @@ # flake8: noqa +from __future__ import annotations __docformat__ = "restructuredtext" @@ -185,7 +186,7 @@ __deprecated_num_index_names = ["Float64Index"...
After this most of the low hanging return annotations that `pyright --createstub pandas` finds are in pandas/core (there are still plenty of more tricky return annotations). xref #47521
https://api.github.com/repos/pandas-dev/pandas/pulls/47558
2022-07-01T01:41:45Z
2022-07-03T14:22:54Z
2022-07-03T14:22:53Z
2022-09-21T15:28:31Z
ENH: RangeIndex._shallow_copy can return RangeIndex
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index c70acc0a0b18c..6f7e150965583 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -277,7 +277,7 @@ Other enhancements - Allow reading compressed SAS files with :func:`read_sas` (e.g., ``.sas7bdat.gz`` file...
- [x] closes #46675 (Replace xxxx with the Github issue number) - [x] closes #43885 - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-d...
https://api.github.com/repos/pandas-dev/pandas/pulls/47557
2022-07-01T00:17:47Z
2022-07-08T23:58:32Z
2022-07-08T23:58:31Z
2022-07-09T00:12:05Z
REF: share some constructor code
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index d3c4815af5759..00dc8b2a4a13b 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -94,6 +94,10 @@ DatetimeTZDtype, ExtensionDtype, ) +from pandas.core.dtypes.generic import ( + ...
- [ ] 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/47555
2022-06-30T21:52:37Z
2022-07-01T02:04:29Z
2022-07-01T02:04:29Z
2022-07-01T14:29:33Z
REF: Reduce duplicative methods between XML parser classes
diff --git a/pandas/io/xml.py b/pandas/io/xml.py index 83cc01752682f..95fac0c739895 100644 --- a/pandas/io/xml.py +++ b/pandas/io/xml.py @@ -7,6 +7,7 @@ import io from typing import ( Any, + Callable, Sequence, ) @@ -177,7 +178,7 @@ def parse_data(self) -> list[dict[str, str | None]]: raise...
- [X] Relates to #40131 - [X] [Tests passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests). - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ] Added [type annotations](https://pandas.pyda...
https://api.github.com/repos/pandas-dev/pandas/pulls/47553
2022-06-30T03:11:47Z
2022-07-01T17:23:12Z
2022-07-01T17:23:12Z
2022-07-01T18:59:29Z
ENH/TST: Add BaseMethodsTests tests for ArrowExtensionArray
diff --git a/pandas/core/base.py b/pandas/core/base.py index 3d18194d14bec..33dbc292660d0 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -983,10 +983,12 @@ def unique(self): if not isinstance(values, np.ndarray): result: ArrayLike = values.unique() - if self.dtype.kind ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47552
2022-06-30T00:09:54Z
2022-07-05T19:59:18Z
2022-07-05T19:59:18Z
2022-07-05T19:59:28Z
ASV: Non-unique DataFrame index
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 2c0e2e6ca442a..69e3d166943a8 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -157,25 +157,39 @@ def time_boolean_rows_boolean(self): class DataFrameNumericIndexing: - def setup(self): +...
- [x] closes #26064 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). I added an asv benchmark for non-unique indices in DataFrames - based on the benchmark of indices in Series.
https://api.github.com/repos/pandas-dev/pandas/pulls/47551
2022-06-29T20:49:03Z
2022-06-30T16:18:32Z
2022-06-30T16:18:32Z
2022-06-30T17:01:58Z
REGR: fix eval with inplace=True to correctly update column values inplace
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index 57b8fdee5888a..1e7ed256c05ef 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.loc` not updating the cache correctly after values ...
- [x] closes #47449 - [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/47550
2022-06-29T16:32:14Z
2022-08-19T10:21:24Z
2022-08-19T10:21:24Z
2022-08-19T13:16:50Z
REGR: NotImplementedError: Prefix not defined when slicing offset with loc
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index 927841d42b543..05ebe424a8ea9 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -22,6 +22,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.loc` not updating the cache correctly after values ...
- [x] closes #46671 - [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/47547
2022-06-29T09:09:29Z
2022-08-23T05:06:32Z
2022-08-23T05:06:32Z
2022-08-30T14:10:13Z
Refactoring code to utilize numpy APIs more
diff --git a/pandas/tests/window/test_numba.py b/pandas/tests/window/test_numba.py index 89e00af270a02..1284be898112a 100644 --- a/pandas/tests/window/test_numba.py +++ b/pandas/tests/window/test_numba.py @@ -56,9 +56,7 @@ class TestEngine: @pytest.mark.parametrize("jit", [True, False]) def test_numba_vs_cyth...
Thank you very much for your excellent work in pandas. I am a graduate student at the University of Colorado, studying the best practices of evolving data science codes. From our research, one of the most common evolution best practice in ML code is the migration of loop-based computations, since it improves perfo...
https://api.github.com/repos/pandas-dev/pandas/pulls/47546
2022-06-29T08:40:34Z
2022-06-29T15:12:36Z
null
2022-06-29T17:25:27Z
DOC: Convert URL example to static code block
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 4c5d189e1bba3..7d1aa76613d33 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -2559,16 +2559,29 @@ Let's look at a few examples. Read a URL with no options: -.. ipython:: python +.. code-block:: ipython ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Avoids flaky doc build failure if URL is not available: https://github.com/pandas-dev/pandas/runs/7100909800?check_suite_focus=true
https://api.github.com/repos/pandas-dev/pandas/pulls/47540
2022-06-28T23:19:38Z
2022-06-30T20:49:55Z
2022-06-30T20:49:55Z
2022-06-30T20:49:58Z
Update `to_gbq` wrapper method to contain `api_method` parameter
diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index 3ab27830060b2..7a5d14e9dec84 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -37,7 +37,7 @@ dependencies: - numexpr=2.7.3 - odfpy=1.4.1 - openpyxl=3.0.7...
ENH: add api_method parameter and some documentation DOC: update dependencies to require at least version 0.16.0 of pandas-gbq - [ ] closes #46117 - [ ] [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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/47539
2022-06-28T22:40:43Z
2022-08-15T16:43:44Z
null
2022-08-15T16:43:44Z
BUG: PeriodArray.__sub__(Period) overflows
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 452b4259d4460..40f13726b90b8 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -904,6 +904,7 @@ Period - Bug in constructing a :class:`Period` from a :class:`Timestamp` or ``np.datetime64`` object with ...
- [ ] 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/47538
2022-06-28T21:51:05Z
2022-06-28T23:22:04Z
2022-06-28T23:22:04Z
2022-06-28T23:32:47Z
ENH: DatetimeIndex.snap support non-nano
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 4bc01b8f4ddb0..aacc2a2225743 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -44,7 +44,6 @@ from pandas.util._exceptions import find_stack_level from pandas.core.dtypes.common import ( - ...
- [ ] 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/47537
2022-06-28T21:44:51Z
2022-06-29T17:12:13Z
2022-06-29T17:12:13Z
2022-06-29T17:22:46Z
ENH/TST: Add BaseParsinngTests tests for ArrowExtensionArray
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 1c4187f2aafd2..dfb58f0edd127 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -63,6 +63,23 @@ ArrowExtensionArrayT = TypeVar("ArrowExtensionArrayT", bound="ArrowExtensionArray") +def to...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47536
2022-06-28T21:42:48Z
2022-06-29T16:04:05Z
2022-06-29T16:04:04Z
2022-06-29T17:02:39Z
ENH: DatetimeIndex.indexer_between_time support non-nano
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 4bc01b8f4ddb0..50233a9c7cd78 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -26,9 +26,11 @@ ) from pandas._libs.tslibs import ( Resolution, + periods_per_day, timezones, to...
- [ ] 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/47535
2022-06-28T20:45:41Z
2022-06-28T23:11:33Z
2022-06-28T23:11:33Z
2022-06-28T23:32:35Z
DOC: Add information about StyleFrame, to format Excel output
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 256c3ee36e80c..ce00898460710 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -350,6 +350,9 @@ operations on pandas DataFrames. This is useful when migrating from a database t using pandas or for users more comfortable with S...
Closes #47525 The issue mentions altering the ecosystem page on the pandas website, do you guys know how I would go about doing that?
https://api.github.com/repos/pandas-dev/pandas/pulls/47533
2022-06-28T17:34:35Z
2022-08-10T04:54:57Z
null
2022-08-10T04:54:57Z
WEB: Update to `jupyterlite==0.1.0b10`
diff --git a/environment.yml b/environment.yml index 0a6055d80c071..eb4d53e116927 100644 --- a/environment.yml +++ b/environment.yml @@ -127,4 +127,4 @@ dependencies: # build the interactive terminal - jupyterlab >=3.4,<4 - pip: - - jupyterlite==0.1.0b9 + - jupyterlite==0.1.0b10 diff --git a/requirem...
Update to the latest `jupyterlite` release for the interactive terminal on the website. The latest release adds support for caching assets and offline mode, which should help speed things up a little bit, at least when the page is reloaded. See the release notes for more information: https://github.com/jupyterlit...
https://api.github.com/repos/pandas-dev/pandas/pulls/47532
2022-06-28T16:10:38Z
2022-07-21T16:00:43Z
2022-07-21T16:00:43Z
2022-07-22T08:54:56Z
WEB: Add Telegram to follow us and footer
diff --git a/web/pandas/_templates/layout.html b/web/pandas/_templates/layout.html index 52e06a9bec55b..67876d88a2d1a 100644 --- a/web/pandas/_templates/layout.html +++ b/web/pandas/_templates/layout.html @@ -69,6 +69,11 @@ </main> <footer class="container pt-4 pt-md-5 border-top"> <ul cl...
Since we've been posting way more in Telegram than in Twitter, probably worth adding it to the website. Adding buttons here in the web footer, next to the other icons, and in the home page, in the `Follow us` section (I changed the twitter banner to a button, which I think looks better with more than one item). T...
https://api.github.com/repos/pandas-dev/pandas/pulls/47531
2022-06-28T14:45:24Z
2022-06-28T20:15:48Z
2022-06-28T20:15:48Z
2022-06-30T09:51:28Z
WARN: Clarify datetime warning when can't parse in accordance with dayfirst
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 56b09348189ee..2fed373a5c79b 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -727,6 +727,7 @@ Other Deprecations - Deprecated the ``display.column_space`` global configuration option (:issue:`7576`) ...
- [x] closes #46210 (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/47528
2022-06-28T12:10:29Z
2022-06-28T21:44:13Z
2022-06-28T21:44:12Z
2022-06-28T21:44:19Z
TYP: more return annotations for io/*
diff --git a/pandas/io/common.py b/pandas/io/common.py index d692f26ab0576..ef8b466145daa 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -925,7 +925,7 @@ class _BufferedWriter(BytesIO, ABC): # type: ignore[misc] """ @abstractmethod - def write_to_buffer(self): + def write_to_buffer(sel...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47524
2022-06-28T02:29:04Z
2022-06-28T17:06:59Z
2022-06-28T17:06:59Z
2022-06-28T17:07:07Z
CI: Bump Mac/Windows build timeout to 120 minutes
diff --git a/.github/workflows/macos-windows.yml b/.github/workflows/macos-windows.yml index 7052b770e2586..cf9a59400bc92 100644 --- a/.github/workflows/macos-windows.yml +++ b/.github/workflows/macos-windows.yml @@ -23,7 +23,7 @@ jobs: defaults: run: shell: bash -el {0} - timeout-minutes: 90 + ...
Needed since Windows builds are running with 1 worker #47443
https://api.github.com/repos/pandas-dev/pandas/pulls/47523
2022-06-28T00:10:25Z
2022-07-08T22:18:45Z
2022-07-08T22:18:45Z
2022-07-08T22:18:48Z
ENH: TimedeltaArray add/sub with NaT preserve reso
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index d354d28d0f46f..5e65b124ae0f4 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1087,7 +1087,7 @@ def _cmp_method(self, other, op): __rdivmod__ = make_invalid_op("__rdivmod__") ...
- [ ] 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/47522
2022-06-27T23:52:32Z
2022-06-28T18:38:44Z
2022-06-28T18:38:44Z
2022-06-28T20:42:30Z
added link to advanced indexing guide in .loc docstring
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 09fa08339bd43..22b03b3b2e47e 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -521,6 +521,9 @@ def loc(self) -> _LocIndexer: sidewinder mark i 10 20 mark ii 1 4 vi...
closes #46620 Not sure if the online documentation also needs to change with this docstring. if it does, how can I change that?
https://api.github.com/repos/pandas-dev/pandas/pulls/47520
2022-06-27T18:44:34Z
2022-06-28T00:08:03Z
2022-06-28T00:08:02Z
2022-06-28T00:08:11Z
PERF: use c-division in nancorr
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 29f9a22c9b36e..c05d6a300ccf0 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -324,6 +324,7 @@ def kth_smallest(numeric_t[::1] arr, Py_ssize_t k) -> numeric_t: @cython.boundscheck(False) @cython.wraparound(False) +@cython.cdivisio...
- [ ] 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/47518
2022-06-27T15:11:57Z
2022-07-03T15:02:13Z
2022-07-03T15:02:13Z
2022-07-03T15:02:17Z
DOC: Fix a typo in documentation for styler
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 58187b3052819..43021fcbc13fb 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -151,7 +151,7 @@ "\n", "### Formatting Values\n", "\n", - "Before adding styles it is useful t...
datavlaues => datavalues
https://api.github.com/repos/pandas-dev/pandas/pulls/47517
2022-06-27T07:09:17Z
2022-06-27T16:28:11Z
2022-06-27T16:28:11Z
2022-06-27T16:28:18Z
TYP: Return annotations for io/{formats,json}
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 932805463d1c3..6c0a747b16745 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1008,7 +1008,7 @@ def _repr_fits_horizontal_(self, ignore_width: bool = False) -> bool: # used by repr_html under IPython notebook or scripts ignore ter...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47516
2022-06-27T01:19:53Z
2022-06-27T22:01:22Z
2022-06-27T22:01:21Z
2022-09-21T15:28:31Z
ENH/TST: Add BaseGroupbyTests tests for ArrowExtensionArray
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index 37b42ad66c027..e809e761ebbb2 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -41,6 +41,7 @@ ) from pandas.core.dtypes.dtypes import ( CategoricalDtype, + DatetimeTZDtype, ExtensionDtype, ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/47515
2022-06-27T00:23:49Z
2022-07-03T14:24:31Z
2022-07-03T14:24:31Z
2022-07-05T16:45:44Z
"Backport PR #47387 on branch 1.4.x (TST,WARN: read_csv raises warning at wrong stacklevel, but _assert_raised_with_correct_stacklevel doesn't fail )"
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index b462f0c6a8ffe..ef9537200bccd 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -23,7 +23,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- The :class:`errors.FutureWarning` raised when passing argumen...
Backport PR #47387
https://api.github.com/repos/pandas-dev/pandas/pulls/47513
2022-06-26T19:16:54Z
2022-07-02T17:04:03Z
2022-07-02T17:04:03Z
2022-07-02T17:04:13Z
TYP: some return annotations in pytables.py
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index c20ce0c847b61..b96fa4a57f188 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -19,9 +19,11 @@ Any, Callable, Hashable, + Iterator, Literal, Sequence, cast, + overload, ) import warnings @@ -592,7 +5...
Mostly the low-hanging fruit in pytables.py
https://api.github.com/repos/pandas-dev/pandas/pulls/47512
2022-06-26T16:39:44Z
2022-06-26T19:23:30Z
2022-06-26T19:23:30Z
2022-09-21T15:28:31Z
PERF: lexsort_depth
diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py index a498c6b2e4944..782eb15234ea4 100644 --- a/asv_bench/benchmarks/multiindex_object.py +++ b/asv_bench/benchmarks/multiindex_object.py @@ -24,6 +24,13 @@ def setup(self): self.mi_small = MultiIndex.from_produc...
- [ ] 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/47511
2022-06-26T13:50:39Z
2022-07-10T10:06:23Z
null
2022-07-10T10:06:24Z
TYP: Missing return annotations in util/tseries/plotting
diff --git a/pandas/plotting/_misc.py b/pandas/plotting/_misc.py index 6e7b53e4c5ae4..0e82a0fc924fb 100644 --- a/pandas/plotting/_misc.py +++ b/pandas/plotting/_misc.py @@ -1,7 +1,18 @@ +from __future__ import annotations + from contextlib import contextmanager +from typing import ( + TYPE_CHECKING, + Iterator, ...
Found with ```sh pyright --createstub pandas grep -R "# -> " typings/pandas/ ``` Pyright can infer many of the missing return annotations :)
https://api.github.com/repos/pandas-dev/pandas/pulls/47510
2022-06-26T02:16:40Z
2022-06-27T16:50:04Z
2022-06-27T16:50:04Z
2022-09-21T15:29:48Z
TYP: misc
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6c0a747b16745..a8c33a144378e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5545,7 +5545,7 @@ def replace( inplace: bool = False, limit=None, regex: bool = False, - method: str | lib.NoDefault = lib.no_def...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/47509
2022-06-25T22:50:22Z
2022-06-28T17:11:20Z
2022-06-28T17:11:20Z
2022-09-21T15:28:31Z
REGR: concat materializing index even if sort is not necessary
diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst index b462f0c6a8ffe..0f3d7a55fd6d7 100644 --- a/doc/source/whatsnew/v1.4.4.rst +++ b/doc/source/whatsnew/v1.4.4.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression in :func:`...
- [x] closes #47501 (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/47508
2022-06-25T21:20:02Z
2022-06-30T20:28:18Z
2022-06-30T20:28:18Z
2022-07-02T16:38:20Z
DEPR: pandas.core.groupby
diff --git a/doc/redirects.csv b/doc/redirects.csv index 173e670e30f0e..4450c00c8e742 100644 --- a/doc/redirects.csv +++ b/doc/redirects.csv @@ -165,78 +165,78 @@ generated/pandas.CategoricalIndex.reorder_categories,../reference/api/pandas.Cat generated/pandas.CategoricalIndex.set_categories,../reference/api/pandas.Ca...
Part of #44993 - [ ] 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/d...
https://api.github.com/repos/pandas-dev/pandas/pulls/47507
2022-06-25T20:23:42Z
2022-06-29T21:05:15Z
null
2022-07-26T20:44:23Z
TYP: _item_cache and _ixs
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4a278185b01b..932805463d1c3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3558,16 +3558,16 @@ def T(self) -> DataFrame: # ---------------------------------------------------------------------- # Indexing Methods - def _ixs...
- [ ] 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/47506
2022-06-25T17:41:06Z
2022-06-27T16:47:45Z
2022-06-27T16:47:45Z
2022-06-27T16:47:51Z
DEPR/WIP: Deprecate pandas.core
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 496db66c78569..4b62a7bc3d4c8 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -11,13 +11,13 @@ date_range, to_timedelta, ) +from pandas._core.algorithms import checked_add_wit...
- [ ] 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/47505
2022-06-25T16:03:59Z
2022-06-25T16:44:36Z
null
2022-07-26T20:44:18Z
BUG: read_xml iterparse doesn't handle multiple toplevel elements with lxml parser
diff --git a/pandas/io/xml.py b/pandas/io/xml.py index 78fbeaad09300..9398e995c81ce 100644 --- a/pandas/io/xml.py +++ b/pandas/io/xml.py @@ -693,7 +693,7 @@ def _iterparse_nodes(self) -> list[dict[str, str | None]]: row = None elem.clear() - while elem.getprevious(...
- [X] closes #47422 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [ ]...
https://api.github.com/repos/pandas-dev/pandas/pulls/47504
2022-06-25T03:54:20Z
2022-06-27T22:26:49Z
2022-06-27T22:26:49Z
2022-06-28T22:45:56Z
DOC: Resolve links in whatsnew
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 7e943bb5832e6..a931838fa4910 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -232,7 +232,7 @@ Other enhancements ^^^^^^^^^^^^^^^^^^ - :meth:`Series.map` now raises when ``arg`` is dict but ``na_actio...
- [ ] 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/47499
2022-06-24T19:24:15Z
2022-06-24T20:57:26Z
2022-06-24T20:57:26Z
2022-06-24T21:31:27Z
DOC: Minor fixes in whatsnew 1.5.0
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 35594fbc8fb8a..b8d8f318611fc 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -477,6 +477,9 @@ Deprecations .. _whatsnew_150.deprecations.int_slicing_series: +Label-based integer slicing on a Serie...
- [ ] 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/47498
2022-06-24T18:21:11Z
2022-06-24T20:55:52Z
2022-06-24T20:55:52Z
2022-06-24T21:30:42Z
(WIP) TYP: add some obvious -> None to pandas/core
diff --git a/pandas/core/array_algos/replace.py b/pandas/core/array_algos/replace.py index 19a44dbfe6f6d..1192191512e10 100644 --- a/pandas/core/array_algos/replace.py +++ b/pandas/core/array_algos/replace.py @@ -67,7 +67,7 @@ def compare_or_regex_search( def _check_comparison_types( result: ArrayLike |...
- [ ] 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/47497
2022-06-24T17:59:18Z
2022-07-28T07:28:19Z
null
2022-08-20T16:45:19Z
BUG: read_excel not forward filling index columns when no names are given
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 6fc1ec9c6ff90..a86436fac3487 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -934,6 +934,7 @@ I/O - Bug in :func:`read_parquet` when ``engine="fastparquet"`` where the file was not closed on error (:i...
- [x] closes #47487 (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/47496
2022-06-24T13:05:35Z
2022-07-03T15:27:34Z
2022-07-03T15:27:34Z
2022-07-03T17:10:01Z
BUG: read_csv ignoring non existing header rows for python engine
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 35594fbc8fb8a..5629ebf604697 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -873,6 +873,7 @@ I/O - Bug in :func:`read_csv` interpreting second row as :class:`Index` names even when ``index_col=False`...
- [x] closes #47400 (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/47493
2022-06-24T10:21:23Z
2022-06-24T21:10:11Z
2022-06-24T21:10:11Z
2022-06-25T14:23:34Z