title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
BUG: float-like string, trailing 0 truncation
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index e280b730679f0..37562be17f02e 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXIS_NAMES`` and ``_AXIS_NUMBERS`` of :c...
- [x] closes #38708 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38759
2020-12-28T21:01:04Z
2020-12-29T03:18:49Z
2020-12-29T03:18:48Z
2020-12-29T03:20:56Z
CLN: simplify tm.decompress_file
diff --git a/pandas/_testing/contexts.py b/pandas/_testing/contexts.py index ac03cc77a321f..d6a4b47571653 100644 --- a/pandas/_testing/contexts.py +++ b/pandas/_testing/contexts.py @@ -1,14 +1,9 @@ -import bz2 from contextlib import contextmanager -import gzip import os from shutil import rmtree import tempfile -im...
Could re-use `get_handle` but I'm not sure whether the testing code should depend on the to-be tested code?
https://api.github.com/repos/pandas-dev/pandas/pulls/38758
2020-12-28T20:56:22Z
2020-12-28T22:23:04Z
2020-12-28T22:23:04Z
2020-12-28T22:23:12Z
REF: implement nested_data_to_arrays
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 940c56340f75e..1bb5556663c29 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2,7 +2,17 @@ from functools import partial import operator from shutil import get_terminal_size -from typing...
In the next step, I plan to use this in the relevant case for ndarray, which we currently treat differently from EA. Categorical edits are unrelated, just sneaking in.
https://api.github.com/repos/pandas-dev/pandas/pulls/38757
2020-12-28T20:37:16Z
2020-12-29T00:02:36Z
2020-12-29T00:02:36Z
2020-12-29T00:05:42Z
TST: use frame_or_series for some tz_localize/tz_convert tests
diff --git a/pandas/tests/frame/methods/test_tz_convert.py b/pandas/tests/frame/methods/test_tz_convert.py index ecb30cf11319b..9176d2300c39e 100644 --- a/pandas/tests/frame/methods/test_tz_convert.py +++ b/pandas/tests/frame/methods/test_tz_convert.py @@ -1,24 +1,47 @@ import numpy as np import pytest -from pandas...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38756
2020-12-28T19:58:36Z
2020-12-28T23:23:44Z
2020-12-28T23:23:44Z
2020-12-28T23:27:16Z
Backport PR #38740 on branch 1.2.x (DEPR: Hide deprecated attrs _AXIS_NAMES & _AXIS_NUMBERS)
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index c630fc26a93a2..769c195229bbd 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- The deprecated attributes `...
Backport PR #38740: DEPR: Hide deprecated attrs _AXIS_NAMES & _AXIS_NUMBERS
https://api.github.com/repos/pandas-dev/pandas/pulls/38755
2020-12-28T19:53:07Z
2020-12-28T21:20:03Z
2020-12-28T21:20:03Z
2020-12-28T21:20:04Z
DOC: chat-ops
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 86d495ef2b097..b810c71e3daa6 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -1610,6 +1610,17 @@ request by pushing to the branch on GitHub:: git push origin ...
- [x] closes #38726 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] Added documentation for `@githubactions pre-commit` - [x] Added documentation for `@meeseeksdev backport`
https://api.github.com/repos/pandas-dev/pandas/pulls/38754
2020-12-28T19:11:48Z
2020-12-30T15:07:16Z
2020-12-30T15:07:16Z
2020-12-30T15:07:21Z
Revert "TST: Bare pytest raises" in base extension tests
diff --git a/pandas/tests/arrays/boolean/test_arithmetic.py b/pandas/tests/arrays/boolean/test_arithmetic.py index 72b378f75c936..01de64568a011 100644 --- a/pandas/tests/arrays/boolean/test_arithmetic.py +++ b/pandas/tests/arrays/boolean/test_arithmetic.py @@ -46,7 +46,7 @@ def test_add_mul(left_array, right_array, opn...
Reverts pandas-dev/pandas#38576, see discussion there. We should not add detailed error message asserts, as those tests are also used by external packages, that might have different error messages.
https://api.github.com/repos/pandas-dev/pandas/pulls/38748
2020-12-28T07:46:04Z
2020-12-28T14:59:02Z
2020-12-28T14:59:02Z
2020-12-28T15:35:00Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1e818e4ef2306..1fd95b8103a41 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -162,7 +162,7 @@ repos: hooks: - id: yesqa - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.3.0 + rev: v3.4.0 ...
<!-- START pr-commits --> <!-- END pr-commits --> ## Base PullRequest default branch (https://github.com/pandas-dev/pandas/tree/master) ## Command results <details> <summary>Details: </summary> <details> <summary><em>add path</em></summary> ```Shell /home/runner/work/_actions/technote-space/create-pr-action/v2/nod...
https://api.github.com/repos/pandas-dev/pandas/pulls/38747
2020-12-28T07:33:34Z
2020-12-28T14:48:02Z
2020-12-28T14:48:02Z
2020-12-30T12:14:18Z
ENH: support downcasting of nullable EAs in pd.to_numeric
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 83bff6d7bfb2d..2bce051dbc18d 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -50,6 +50,7 @@ Other enhancements - Improved consistency of error message when passing an invalid ``win_type`` argument in ...
- [x] closes #33013 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Picking up #33435. In `pd.to_numeric` when encountering an `IntegerArray` and `FloatingArray` (or `Series` built from them) we downcast `_data` t...
https://api.github.com/repos/pandas-dev/pandas/pulls/38746
2020-12-28T07:22:31Z
2020-12-30T13:59:01Z
2020-12-30T13:59:01Z
2020-12-30T14:06:49Z
REF/POC: Share groupby/series algos (rank)
diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py index 70d90ded84545..7386b0b903afd 100644 --- a/asv_bench/benchmarks/frame_methods.py +++ b/asv_bench/benchmarks/frame_methods.py @@ -597,6 +597,19 @@ def time_frame_quantile(self, axis): self.df.quantile([0.1, 0.5], axi...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Right now there are 3 rank algorithms which are extremely similar, but have slight differences. This seems to cause some maintenance pain. First, inconsistencies between implementations allows more bug potential (like ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38744
2020-12-28T05:40:50Z
2021-01-01T00:08:22Z
2021-01-01T00:08:22Z
2021-01-01T00:21:34Z
CLN: NDFrame._where
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index b41931a803053..c7a1e006e8b73 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -293,7 +293,7 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ - +- Bug in :meth:`DataFrame.where` when ``other`` is a :class:`Se...
- [ ] closes #38729 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38742
2020-12-28T04:10:29Z
2020-12-29T14:30:43Z
2020-12-29T14:30:43Z
2020-12-29T15:58:08Z
BUG: IntervalIndex, PeriodIndex, DatetimeIndex symmetric_difference with Categorical
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 35785613fb1e2..601eb782653f9 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -190,6 +190,7 @@ Datetimelike - Bug in :class:`DataFrame` and :class:`Series` constructors sometimes dropping nanoseconds f...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38741
2020-12-28T03:36:04Z
2020-12-28T23:19:32Z
2020-12-28T23:19:32Z
2020-12-28T23:19:58Z
DEPR: Hide deprecated attrs _AXIS_NAMES & _AXIS_NUMBERS
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index c630fc26a93a2..769c195229bbd 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- The deprecated attributes `...
- [x] closes #38722 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Users that do e.g. `[getattr(pd.DataFrame, x) for x in dir(pd.DataFrame())]` or `inspect.getmembers(pd.DataFrame())` currently get an unfriendly dep...
https://api.github.com/repos/pandas-dev/pandas/pulls/38740
2020-12-28T02:57:52Z
2020-12-28T19:51:44Z
2020-12-28T19:51:43Z
2020-12-28T20:12:52Z
CLN: remove duplicate banklist.html file
diff --git a/.gitignore b/.gitignore index 1661862a5d066..b682d93efbd04 100644 --- a/.gitignore +++ b/.gitignore @@ -110,7 +110,7 @@ asv_bench/pandas/ doc/source/generated doc/source/user_guide/styled.xlsx doc/source/reference/api -doc/source/_static +doc/source/_static/*.html doc/source/vbench doc/source/vbench.r...
Wasn't quite a duplicate — had a missing `<tr>`. Also updated the `.gitignore` to more accurately only exclude HTML files from `doc/source/_static/`, since other files are checked in. - [ ] ~~closes #xxxx~~ - [ ] tests added / passed - [ ] ~~passes `black pandas`~~ - [ ] ~~passes `git diff upstream/master -u -- "...
https://api.github.com/repos/pandas-dev/pandas/pulls/38739
2020-12-28T02:20:14Z
2020-12-28T15:19:51Z
2020-12-28T15:19:51Z
2020-12-29T00:08:24Z
BUG/REG: RollingGroupby MultiIndex levels dropped
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 649b17e255f3d..a756239ee6798 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -16,6 +16,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXIS_NAMES`` and ``_AXIS_NUMBERS`` of :c...
- [x] closes #38523 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This was accidentally caused by https://github.com/pandas-dev/pandas/pull/37661 where I thought https://github.com/pandas-dev/pandas/issues/37641 wa...
https://api.github.com/repos/pandas-dev/pandas/pulls/38737
2020-12-27T23:44:21Z
2020-12-29T18:56:08Z
2020-12-29T18:56:08Z
2020-12-29T19:35:36Z
DOC: make shared includes for describing the datasets in the Getting Started tutorials
diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index c9b6a12904311..3457ed142510b 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -16,...
Just a refactor; the net result should be the same. - [ ] ~~closes #xxxx~~ - [x] tests added / passed - [ ] ~~passes `black pandas`~~ - [ ] ~~passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~ - [ ] ~~whatsnew entry~~
https://api.github.com/repos/pandas-dev/pandas/pulls/38735
2020-12-27T21:50:53Z
2020-12-30T13:55:26Z
2020-12-30T13:55:26Z
2020-12-31T00:11:06Z
Backport PR #38344 on branch 1.2.x (CI: Move sql builds from Travis to Github actions)
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml new file mode 100644 index 0000000000000..5fe7fc17a98cb --- /dev/null +++ b/.github/workflows/database.yml @@ -0,0 +1,180 @@ +name: Database + +on: + push: + branches: [master] + pull_request: + branches: + - master + - 1.2.x...
Backport PR #38344: CI: Move sql builds from Travis to Github actions
https://api.github.com/repos/pandas-dev/pandas/pulls/38734
2020-12-27T21:44:48Z
2020-12-28T00:09:58Z
2020-12-28T00:09:58Z
2020-12-28T00:09:58Z
BUG: GroupBy.idxmax/idxmin with EA dtypes
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 6a85bfd852e19..a249d0cf39a0b 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -339,6 +339,7 @@ Groupby/resample/rolling - Fixed bug in :meth:`DataFrameGroupBy.sum` and :meth:`SeriesGroupBy.sum` causing...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry @jorisvandenbossche thoughts on how/where to handle the skipna kwarg?
https://api.github.com/repos/pandas-dev/pandas/pulls/38733
2020-12-27T21:40:23Z
2021-01-19T22:36:42Z
2021-01-19T22:36:42Z
2021-01-19T23:28:59Z
BUG: Ensure series/frame mode() keeps int index
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 77bc080892e6c..d9ee3033b04b9 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -208,6 +208,7 @@ Numeric ^^^^^^^ - Bug in :meth:`DataFrame.quantile`, :meth:`DataFrame.sort_values` causing incorrect subs...
- [x] closes #33321 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38732
2020-12-27T20:31:03Z
2020-12-29T19:51:24Z
2020-12-29T19:51:23Z
2020-12-29T20:00:09Z
DOC: reference the visualization page from the ecosystem one
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 390cf214bad00..e84f156035725 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -90,6 +90,9 @@ Compose is a machine learning tool for labeling data and prediction engineering. Visualization ------------- +While :ref:`pandas ...
The link already exists in the other direction, so want to make sure readers who come across the latter understand the built-in option. - [ ] ~~closes #xxxx~~ - [ ] ~~tests added / passed~~ - [ ] ~~passes `black pandas`~~ - [ ] ~~passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~ - [ ] ~~whatsnew e...
https://api.github.com/repos/pandas-dev/pandas/pulls/38731
2020-12-27T20:00:44Z
2020-12-27T21:37:40Z
2020-12-27T21:37:39Z
2020-12-29T00:08:09Z
REGR: to_csv created corrupt ZIP files when chunksize<rows
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 769c195229bbd..e280b730679f0 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - The deprecated attributes ``_AXI...
- [x] closes #38714 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry When `ZipFile`'s `write` is called multiple times, it will create multiple files within the zip file (with the same filename). Edit: This also ha...
https://api.github.com/repos/pandas-dev/pandas/pulls/38728
2020-12-27T18:51:54Z
2020-12-29T00:05:07Z
2020-12-29T00:05:07Z
2021-02-08T00:43:21Z
BUG: pd.read_json May Not Maintain Numeric String Index
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index b4b98ec0403a8..9d63ddc6f2056 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -274,6 +274,7 @@ I/O - Bug in :func:`json_normalize` resulting in the first element of a generator object not being include...
- [x] closes #28556 - [x] tests added / passed - [ ] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38727
2020-12-27T18:29:22Z
2021-01-04T23:29:00Z
2021-01-04T23:29:00Z
2021-01-04T23:29:00Z
TST: GH30999 Add match=msg to all but two pytest.raises in tests/io
diff --git a/pandas/tests/io/excel/test_xlrd.py b/pandas/tests/io/excel/test_xlrd.py index 2a1114a9570f0..19949cefa13d9 100644 --- a/pandas/tests/io/excel/test_xlrd.py +++ b/pandas/tests/io/excel/test_xlrd.py @@ -43,9 +43,10 @@ def test_read_xlrd_book(read_ext, frame): # TODO: test for openpyxl as well def test_excel...
This pull request partially addresses xref #30999 to remove bare `pytest.raises` by adding `match=msg`. It doesn't close that issue as I have only addressed test modules in the pandas/tests/io/ directory. I thought this was going to be relatively small because there were only 25 such instances, but it turned out som...
https://api.github.com/repos/pandas-dev/pandas/pulls/38724
2020-12-27T17:20:11Z
2020-12-28T14:25:22Z
2020-12-28T14:25:22Z
2020-12-30T11:08:25Z
BUG: inconsistency between frame.any/all with dt64 vs dt64tz
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index 804886fb987ad..4c444ea1020dd 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -19,6 +19,8 @@ Fixed regressions - Fixed a regression in ``groupby().rolling()`` where :class:`MultiIndex` levels were drop...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38723
2020-12-27T17:12:34Z
2020-12-30T13:23:25Z
2020-12-30T13:23:25Z
2020-12-30T15:45:14Z
TST: GH30999 Add match=msg to all pytest.raises in tests/reductions and add an error message to nanmedian
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 88662a4fabed8..356c54e80f0ca 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -685,7 +685,7 @@ def get_median(x): values = values.astype("f8") except ValueError as err: # e.g. "could not convert string t...
This pull request partially addresses xref #30999 to remove bare `pytest.raises` by adding `match=msg`. It doesn't close that issue as I have only addressed test modules in the pandas/tests/reductions directory. When going through the tests I found one case where the error message was the empty string. I decided tha...
https://api.github.com/repos/pandas-dev/pandas/pulls/38720
2020-12-27T14:36:43Z
2020-12-30T19:58:55Z
2020-12-30T19:58:55Z
2020-12-30T19:58:59Z
TST: GH38718 Tests for casting an interval range from float to int
diff --git a/pandas/tests/indexes/interval/test_astype.py b/pandas/tests/indexes/interval/test_astype.py index 34ce810e32273..840e3f641e8ba 100644 --- a/pandas/tests/indexes/interval/test_astype.py +++ b/pandas/tests/indexes/interval/test_astype.py @@ -1,3 +1,5 @@ +import re + import numpy as np import pytest @@ -1...
xrefs #38697 , #15832 - [x] closes #38718 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38719
2020-12-27T13:55:43Z
2020-12-30T03:27:23Z
2020-12-30T03:27:23Z
2020-12-30T03:27:32Z
Slicing columns with mixed types <str>,<int> fails with ValueError #20975
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 68f12a939e061..89315b16937b1 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -1644,6 +1644,14 @@ def test_loc_getitem_slice_labels_int_in_object_index(self, frame_or_series, val ex...
- [ ] closes #20975 - [x] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38717
2020-12-27T11:12:59Z
2020-12-27T22:55:00Z
2020-12-27T22:55:00Z
2020-12-27T22:55:04Z
Backport PR #38715 on branch 1.2.x (CI: pin jedi version<0.18.0)
diff --git a/ci/deps/azure-38-locale.yaml b/ci/deps/azure-38-locale.yaml index 90cd11037e472..15d503e8fd0a5 100644 --- a/ci/deps/azure-38-locale.yaml +++ b/ci/deps/azure-38-locale.yaml @@ -18,6 +18,7 @@ dependencies: - html5lib - ipython - jinja2 + - jedi<0.18.0 - lxml - matplotlib <3.3.0 - moto
Backport PR #38715: CI: pin jedi version<0.18.0
https://api.github.com/repos/pandas-dev/pandas/pulls/38716
2020-12-27T10:53:32Z
2020-12-27T12:55:05Z
2020-12-27T12:55:05Z
2020-12-27T12:55:06Z
CI: pin jedi version<0.18.0
diff --git a/ci/deps/azure-38-locale.yaml b/ci/deps/azure-38-locale.yaml index 90cd11037e472..15d503e8fd0a5 100644 --- a/ci/deps/azure-38-locale.yaml +++ b/ci/deps/azure-38-locale.yaml @@ -18,6 +18,7 @@ dependencies: - html5lib - ipython - jinja2 + - jedi<0.18.0 - lxml - matplotlib <3.3.0 - moto
... so CI jobs pass. xref #38703. OP should be kept open until upstream fix comes through.
https://api.github.com/repos/pandas-dev/pandas/pulls/38715
2020-12-27T08:05:17Z
2020-12-27T10:51:12Z
2020-12-27T10:51:12Z
2020-12-27T17:55:01Z
DOC: fix link redirect to NumFOCUS
diff --git a/doc/source/getting_started/overview.rst b/doc/source/getting_started/overview.rst index 3d8108d78ac89..7084b67cf9424 100644 --- a/doc/source/getting_started/overview.rst +++ b/doc/source/getting_started/overview.rst @@ -147,7 +147,7 @@ pandas possible. Thanks to `all of our contributors <https://github.com...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38713
2020-12-27T04:37:16Z
2020-12-27T12:53:51Z
2020-12-27T12:53:51Z
2020-12-27T15:37:08Z
BUG: loc with empty multiindex raises exception
diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py index 54b22dbc53466..144df1e28f8b6 100644 --- a/pandas/tests/indexing/multiindex/test_getitem.py +++ b/pandas/tests/indexing/multiindex/test_getitem.py @@ -260,3 +260,22 @@ def test_frame_mi_empty_slice(): ...
- [x] closes #36936 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38711
2020-12-27T01:36:38Z
2020-12-28T16:41:47Z
2020-12-28T16:41:47Z
2020-12-29T02:16:54Z
ENH: Add xlsb auto detection to read_excel and respect default options
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 85da250648c28..d89a868479d06 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -51,6 +51,7 @@ Other enhancements - :func:`pandas.read_sql_query` now accepts a ``dtype`` argument to cast the columnar dat...
- [x] closes #35416 , closes #34252 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Note: Even though most of the reader options for read_excel only have 1 option, I think it is still useful to respect pandas.set_opt...
https://api.github.com/repos/pandas-dev/pandas/pulls/38710
2020-12-27T00:39:30Z
2021-01-03T16:48:19Z
2021-01-03T16:48:19Z
2021-01-03T17:19:47Z
API: Series[bool][key] = np.nan -> cast to object
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 82cbf1397031d..28f1102ab738e 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -96,6 +96,45 @@ Preserve dtypes in :meth:`~pandas.DataFrame.combine_first` combined.dtypes +.. _whatsnew_130.notabl...
- [x] closes #38692 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry sits on top of #38688
https://api.github.com/repos/pandas-dev/pandas/pulls/38709
2020-12-27T00:16:16Z
2021-01-28T03:29:55Z
2021-01-28T03:29:55Z
2021-06-30T14:39:48Z
TST: Remove broken test for deprecated functionality
diff --git a/pandas/tests/plotting/test_converter.py b/pandas/tests/plotting/test_converter.py index ae14318cdaa49..38e67a0e55a79 100644 --- a/pandas/tests/plotting/test_converter.py +++ b/pandas/tests/plotting/test_converter.py @@ -54,13 +54,13 @@ def test_timtetonum_accepts_unicode(): class TestRegistration: - ...
Registering converters by default on import is deprecated since #28722. The test did not fail as the subprocess call contains errors in the python code. Specifically, the code is in double and single quotes. This means that the python code passed to the subprocess call is never actually excecuted. Python in the subp...
https://api.github.com/repos/pandas-dev/pandas/pulls/38707
2020-12-26T20:10:28Z
2020-12-28T14:26:10Z
2020-12-28T14:26:10Z
2020-12-28T14:26:14Z
REGR: arithmetic ops recursion error with midx with different dtypes
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index dd909415d9e85..c1fde3d13ef74 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -15,6 +15,7 @@ Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`MultiIndex.join` for extension array dtype...
- [x] closes #49769 (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/49776
2022-11-18T18:22:41Z
2022-11-18T23:28:08Z
2022-11-18T23:28:08Z
2022-11-19T12:27:26Z
DEPR: enforce inplaceness for df.loc[:, foo]=bar
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index e16ef0857685d..8d914b59878b7 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -636,6 +636,7 @@ Removal of prior version deprecations/changes - Changed default of ``numeric_only`` to ``False`` in all Da...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49775
2022-11-18T17:45:47Z
2022-12-21T19:57:24Z
2022-12-21T19:57:24Z
2022-12-21T20:16:29Z
DOC: Update start/end parameter for BusinessHour and CustomBusinessHour
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index d0f73b44e835f..6352ba0ac3275 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1615,16 +1615,24 @@ cdef class BusinessHour(BusinessMixin): Normalize start/end dates to midnight before gener...
These are all valid usages. Examples from pandas-stubs here: https://github.com/pandas-dev/pandas-stubs/blob/main/tests/test_timefuncs.py#L601-L639
https://api.github.com/repos/pandas-dev/pandas/pulls/49774
2022-11-18T17:04:35Z
2022-12-06T17:14:38Z
2022-12-06T17:14:38Z
2022-12-06T17:36:13Z
STYLE: Enable Pylint useless-parent-delegation warning
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 77ef3611b7587..6d9f5510eb8c5 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -836,9 +836,6 @@ def apply_str(self) -> DataFrame | Series: class FrameRowApply(FrameApply): axis: AxisInt = 0 - def apply_broadcast(self, target: DataFr...
Associated with #48855. Enables the Pylint type "W" warning `useless-parent-delegation`. I have questions about the changes that I made to `test_decimal.py` and `test_numpy.py`. I'll elaborate in comments below. - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_co...
https://api.github.com/repos/pandas-dev/pandas/pulls/49773
2022-11-18T15:02:43Z
2022-11-23T18:50:25Z
2022-11-23T18:50:25Z
2022-11-23T18:50:25Z
PERF: first try inplace setitem for .at indexer
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 1c9da3f1ed9df..65ea14da08c79 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -139,6 +139,12 @@ def setup(self): def time_loc(self): self.df.loc[self.idx_scalar, self.col_scalar] ...
This is from the commit that I originally also tested in the PR that caused the perf regression: https://github.com/pandas-dev/pandas/pull/47074/files#r878902106 (but eventually didn't include because it didn't seem needed for getting the correct behaviour, but didn't consider performance at the time) Using the exam...
https://api.github.com/repos/pandas-dev/pandas/pulls/49772
2022-11-18T14:53:55Z
2022-12-09T08:15:44Z
2022-12-09T08:15:44Z
2022-12-09T09:00:42Z
PERF: Use fastpath for accessing option value in internals
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 3eca3756e1678..1b1bc46b1f5b3 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -15,7 +15,7 @@ import numpy as np -from pandas._config import get_option +from pandas._config.config import...
Related to https://github.com/pandas-dev/pandas/issues/49729 Accessing an option value is in general quite fast, but when it is in code that is called repeatedly in a for loop, it still adds up it seems. Using the example from https://github.com/pandas-dev/pandas/issues/49729: ```python import pandas as pd ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49771
2022-11-18T14:44:41Z
2022-12-08T15:23:14Z
2022-12-08T15:23:14Z
2022-12-08T15:23:19Z
STYLE enable pylint: typevar-name-incorrect-variance
diff --git a/pandas/_typing.py b/pandas/_typing.py index dad5ffd48caa8..2f912e9d97ef5 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -188,8 +188,8 @@ PythonFuncType = Callable[[Any], Any] # filenames and file-like-objects -AnyStr_cov = TypeVar("AnyStr_cov", str, bytes, covariant=True) -AnyStr_con = TypeV...
Issue #48855. This PR enables pylint type "C" warning: `typevar-name-incorrect-variance` - [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/49768
2022-11-18T10:52:49Z
2022-11-18T18:27:17Z
2022-11-18T18:27:17Z
2022-11-18T18:27:26Z
BUG: loc raising error for MultiIndex with bool indexer
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1ad66b07a9d08..620d16ccf8b41 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -661,6 +661,7 @@ Indexing ^^^^^^^^ - Bug in :meth:`DataFrame.reindex` filling with wrong values when indexing columns and ...
- [x] closes #47687 (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/49766
2022-11-18T10:34:10Z
2022-11-18T18:40:58Z
2022-11-18T18:40:58Z
2022-11-18T18:41:24Z
DOC: Slight clarification regarding date_range and timezones
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 57cbc76d1c2fa..b95a290a43189 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -849,7 +849,7 @@ def date_range( tz : str or tzinfo, optional Time zone name for returning localized D...
If a timezone-aware datetime-like gets passed, it's timezone gets used as expected. From reading the docs I had the impression that the timezone would be ignored.
https://api.github.com/repos/pandas-dev/pandas/pulls/49764
2022-11-18T09:28:01Z
2022-11-21T20:48:01Z
2022-11-21T20:48:01Z
2022-11-21T20:48:01Z
STYLE: fixing linting issues (redefined-outer-name)
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 30cd707926e05..4d685bd8e8858 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -91,24 +91,24 @@ def _mpl(func: Callable) -> Generator[tuple[Any, Any], None, None]: #### # Shared Doc Strings -subset = """subset : lab...
Fixing pylint issues in xml.py, style.py, and _json.py - [ ] Adds Fixes to #49656 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/49762
2022-11-18T08:34:07Z
2022-11-22T08:55:27Z
2022-11-22T08:55:27Z
2022-11-22T22:35:14Z
CLN: Cleanups in groupby due to numeric_only deprecations
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 6f0bb3091133f..58d8ec39120e6 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -671,12 +671,8 @@ class String: ["str", "string[python]"], [ "sum", - "prod", ...
- [ ] 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/49761
2022-11-18T03:56:36Z
2022-11-22T02:03:04Z
2022-11-22T02:03:04Z
2022-11-22T03:23:21Z
BUG/TST: Include sem & count in all_numeric_reductions
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 20e99d007c798..94c2aa4ae24d7 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -645,7 +645,7 @@ Numeric ^^^^^^^ - Bug in :meth:`DataFrame.add` cannot apply ufunc when inputs contain mixed DataFrame typ...
The `sem` bug with Arrow types could be backported to 1.5.x but given the larger testing changes IMO it's fine for 2.0
https://api.github.com/repos/pandas-dev/pandas/pulls/49759
2022-11-17T23:24:08Z
2022-11-28T22:55:48Z
2022-11-28T22:55:48Z
2022-11-28T22:55:53Z
TST: Refactor sql test classes.
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 1f0a2eee90bea..394fceb69b788 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -10,8 +10,7 @@ connection - Tests for the different SQL flavors (flavor specific type conversions) - Tests for the sqlalche...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [X] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49757
2022-11-17T21:58:45Z
2022-11-18T23:31:19Z
2022-11-18T23:31:19Z
2022-11-19T01:08:03Z
TST: Use stronger assertion in test_regression_allowlist_methods
diff --git a/pandas/tests/groupby/test_allowlist.py b/pandas/tests/groupby/test_allowlist.py index f7af4892635bb..5a130da4937fd 100644 --- a/pandas/tests/groupby/test_allowlist.py +++ b/pandas/tests/groupby/test_allowlist.py @@ -62,11 +62,8 @@ def df_letters(): @pytest.fixture -def raw_frame(multiindex_dataframe_r...
- [ ] closes #49629 - [ ] [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/49755
2022-11-17T21:22:13Z
2022-11-18T18:43:37Z
2022-11-18T18:43:37Z
2022-11-18T19:12:34Z
CLN: Testing and unused
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index bbca5773afdfe..ce4b3d1e8c7f3 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -151,8 +151,7 @@ It's not a stretch to see how this can be very useful. More detail on this functionality below...
* Removed references to `append` * Removed unused `randbool` * Reuse fixtures that are defined in `pandas/conftest.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/49754
2022-11-17T19:40:58Z
2022-11-17T23:25:18Z
2022-11-17T23:25:18Z
2022-11-17T23:25:21Z
Backport PR Revert "Add color and size to arguments (#44856)"
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 7f6bc05b4eaad..bce1ad25afbb1 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -1155,7 +1155,6 @@ Plotting - Bug in :meth:`DataFrame.boxplot` that prevented passing in ``xlabel`` and ``ylabel`` (:issue:...
- [ ] 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/49752
2022-11-17T18:51:50Z
2022-11-17T21:39:21Z
2022-11-17T21:39:20Z
2022-11-17T21:39:21Z
STYLE enable pylint: method-cache-max-size-none
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index dd909415d9e85..4654b7630c882 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -27,7 +27,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in the Copy-on-Write implementation losing track of views in c...
Issue #48855. This PR enables pylint type "W" warning: `method-cache-max-size-none` Based on issue #47371 PERF: Improve Styler to_excel Performance I believe the warning is a false-positive in pandas/io/formats/excel.py#L176. I disabled this warning [on the line 176](https://github.com/pandas-dev/pandas/blob/a37b78d5...
https://api.github.com/repos/pandas-dev/pandas/pulls/49751
2022-11-17T18:46:50Z
2022-11-19T07:15:10Z
2022-11-19T07:15:10Z
2023-01-12T12:31:52Z
STYLE ignore no-else-* checks, + assorted cleanups
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 583619826265c..66bc7cd917b31 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -37,8 +37,8 @@ jobs: - name: Run pre-commit uses: pre-commit/action@v2.0.3 - typing_and_docstring...
@jbrockmendel 's mentioned he's not keen on the`no-else-*` pylint checks, and to be fair, they are kinda nitpicky. Hard to imagine that they could ever help uncover a bug Let's keep them turned off then. Have added a section of "intentionally turned off checks"
https://api.github.com/repos/pandas-dev/pandas/pulls/49750
2022-11-17T18:16:50Z
2022-11-23T12:27:18Z
2022-11-23T12:27:18Z
2022-11-23T12:27:19Z
BUG: parsing ISO8601 string with `format=` and timezone name fails
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4577d20a509ce..efb4a572486e3 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -629,6 +629,7 @@ Timedelta Timezones ^^^^^^^^^ - Bug in :meth:`Series.astype` and :meth:`DataFrame.astype` with object-dt...
- [x] closes #49746 (Replace xxxx with the GitHub issue number) - [x] closes #49748 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-do...
https://api.github.com/repos/pandas-dev/pandas/pulls/49747
2022-11-17T15:43:03Z
2022-11-17T18:35:03Z
2022-11-17T18:35:03Z
2022-11-17T18:35:03Z
API: read_stata with index_col=None should return RangeIndex
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index f2bed9cc9f782..d8757cbcabb69 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -340,6 +340,7 @@ Other API changes - Passing strings that cannot be parsed as datetimes to :class:`Series` or :class:`DataF...
If `read_stata` was used with parameter `index=None`, an index based on `np.arange` was supplied to the constructed DataFrame, i.e. (pre pandas 2.0) an `Int64Index`. `np.arange` has dtype `np.int_`, i.e. like `np.intp`, except is always 32bit on windows, which makes it annoying to use with tests when indexes can tak...
https://api.github.com/repos/pandas-dev/pandas/pulls/49745
2022-11-17T08:39:29Z
2022-11-18T17:56:26Z
2022-11-18T17:56:26Z
2022-11-18T18:39:38Z
STYLE enable pylint: global-variable-not-assigned
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index a942da663889b..4170bb7706bdd 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -767,7 +767,7 @@ def config_prefix(prefix) -> Generator[None, None, None]: # Note: reset_option relies on set_option, and on key directly ...
Issue #48855. This PR enables pylint type "W" warning:` global-variable-not-assigned` - [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/49744
2022-11-17T07:21:32Z
2022-11-17T17:22:13Z
2022-11-17T17:22:13Z
2022-11-17T17:22:24Z
STYLE: fix pylint redefined-outer-name warnings (#49656)
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index cc5ff2e756cfa..426e48179842a 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -278,8 +278,8 @@ def _get_hashtable_algo(values: np.ndarray): values = _ensure_data(values) ndtype = _check_object_for_strings(value...
- [x] Fixed warnings for the file : `algorithms.py` - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/...
https://api.github.com/repos/pandas-dev/pandas/pulls/49743
2022-11-17T05:56:52Z
2022-11-17T10:28:32Z
2022-11-17T10:28:32Z
2022-11-17T10:47:22Z
CLN: Don't intercept NotImplementedError in _cython_transform
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 4ac701952e258..32802f6429c4c 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1357,13 +1357,9 @@ def arr_func(bvalues: ArrayLike) -> ArrayLike: # We could use `mgr.apply` here and not have 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/49742
2022-11-17T04:14:25Z
2022-11-18T17:38:07Z
2022-11-18T17:38:07Z
2023-11-26T13:42:30Z
CLN: Fix pylint undefined-loop-variable warnings
diff --git a/pandas/io/formats/latex.py b/pandas/io/formats/latex.py index 4bc9da96885f1..b2622e61896a0 100644 --- a/pandas/io/formats/latex.py +++ b/pandas/io/formats/latex.py @@ -160,8 +160,7 @@ def _get_strcols(self) -> list[list[str]]: def pad_empties(x): for pad in reversed(x): ...
Contributes to #48855. I added in-line pylint disables or refactored code where relevant. I'm still a little unsure about the some of these warnings, any help is appreciated.
https://api.github.com/repos/pandas-dev/pandas/pulls/49740
2022-11-17T03:19:47Z
2022-12-19T08:55:55Z
2022-12-19T08:55:55Z
2022-12-19T08:55:55Z
BUG: Fixes dataFrame to_string(header=False)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4577d20a509ce..47f03910d8a86 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -694,7 +694,9 @@ I/O - Improved error message in :func:`read_excel` by including the offending sheet name when an exception...
- [x] closes #49230 - [x] [Tests added and passed] if fixing a bug or adding a new feature - [x] All [code checks passed]. - [x] Added an entry in the latest `doc/source/whatsnew/v2.0.0.rst` file if fixing a bug or adding a new feature.
https://api.github.com/repos/pandas-dev/pandas/pulls/49738
2022-11-17T01:51:54Z
2022-11-17T23:32:43Z
2022-11-17T23:32:43Z
2023-05-03T15:08:07Z
ENH: infer Timestamp(iso8601string) resolution
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 75ba169600962..a34ec90fd2250 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -465,7 +465,8 @@ Other API changes - :meth:`Index.astype` now allows casting from ``float64`` dtype to datetime-like dtypes...
- [ ] 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/49737
2022-11-17T00:22:31Z
2022-12-27T08:16:07Z
2022-12-27T08:16:07Z
2022-12-27T18:35:23Z
Fix: Treat Generic classes as not being is_list_like
diff --git a/doc/source/whatsnew/v1.5.3.rst b/doc/source/whatsnew/v1.5.3.rst index b86b628ddea0e..581d28e10bd67 100644 --- a/doc/source/whatsnew/v1.5.3.rst +++ b/doc/source/whatsnew/v1.5.3.rst @@ -28,6 +28,7 @@ Bug fixes ~~~~~~~~~ - Bug in :meth:`.Styler.to_excel` leading to error when unrecognized ``border-style`` (...
- [x] closes #49649 - [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 - `tests/dtypes/test_inference.py:test_is_list_like_generic` - [x] All [code checks passed](https://pandas.pydata.org/pandas-doc...
https://api.github.com/repos/pandas-dev/pandas/pulls/49736
2022-11-16T23:34:21Z
2022-12-13T01:44:55Z
2022-12-13T01:44:55Z
2023-02-13T20:48:20Z
Revert "Add 'color' and 'size' to arguments (#44856)"
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 08dbb357c8053..a1c374db91f8b 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -1155,7 +1155,6 @@ Plotting - Bug in :meth:`DataFrame.boxplot` that prevented passing in ``xlabel`` and ``ylabel`` (:issue:...
- [x] xref #49732 (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/49734
2022-11-16T21:21:56Z
2022-11-17T18:33:43Z
2022-11-17T18:33:43Z
2022-11-17T21:08:06Z
STYLE enable pylint: 48855-useless-import-alias
diff --git a/pandas/tests/io/pytables/test_file_handling.py b/pandas/tests/io/pytables/test_file_handling.py index 28c6d13d58043..19a92163c6dd2 100644 --- a/pandas/tests/io/pytables/test_file_handling.py +++ b/pandas/tests/io/pytables/test_file_handling.py @@ -22,7 +22,7 @@ tables, ) -from pandas.io import pyta...
Issue #48855. This PR enables pylint type "C" warning: `useless-import-alias` - [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/49730
2022-11-16T11:34:44Z
2022-11-16T13:32:25Z
2022-11-16T13:32:24Z
2022-11-16T13:32:25Z
Backport PR #49720 on branch 1.5.x (Suppress spurious warning)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d3116f83d58cb..84d45b9e105c2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8255,7 +8255,9 @@ def update( if mask.all(): continue - self.loc[:, col] = expressions.where(mask, this, that) + ...
Backport PR #49720: Suppress spurious warning
https://api.github.com/repos/pandas-dev/pandas/pulls/49726
2022-11-16T08:44:21Z
2022-11-16T13:36:28Z
2022-11-16T13:36:28Z
2022-11-16T13:36:28Z
CLN: enable pylint's redefined-outer-name in pandas/core/resample.py
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index f0ffd694ff953..4cce6f2b71771 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -1106,16 +1106,16 @@ def f( # type: ignore[misc] setattr(Resampler, name, f) -for method in ["sum", "prod", "min", "max", "first", "last"]: - ...
- [ ] this is for #49656 - [ ] [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/49724
2022-11-16T06:52:22Z
2022-11-17T10:27:03Z
2022-11-17T10:27:03Z
2022-11-17T10:27:03Z
PERF: Series.fillna for pyarrow-backed dtypes
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 75fbedc5f4d9c..18c5be3b421f9 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -79,6 +79,48 @@ def time_dropna(self, dtype): self.s.dropna() +class Fillna: + ...
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [x] Added [type annotati...
https://api.github.com/repos/pandas-dev/pandas/pulls/49722
2022-11-16T02:55:18Z
2022-11-22T02:09:55Z
2022-11-22T02:09:55Z
2022-12-20T00:46:29Z
Suppress spurious warning
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9f13471d0aa3f..85222e06502bf 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8082,7 +8082,9 @@ def update( if mask.all(): continue - self.loc[:, col] = expressions.where(mask, this, that) + ...
- [ ] 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/49720
2022-11-16T00:47:01Z
2022-11-16T08:43:36Z
2022-11-16T08:43:36Z
2022-11-16T15:15:34Z
REF: use sanitize_array in Index.__new__
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index d40c334ab1840..28af62bd9a0d7 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -499,6 +499,7 @@ def sanitize_array( copy: bool = False, *, allow_2d: bool = False, + strict_ints: bool = False, ) ->...
- [ ] 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/49718
2022-11-16T00:16:40Z
2022-11-18T01:39:47Z
2022-11-18T01:39:47Z
2022-11-18T02:24:26Z
DEPR: enforce ufunc, reduction diff deprecations
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 032bcf09244e5..168a0cbca3624 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -553,6 +553,9 @@ Removal of prior version deprecations/changes - Changed behavior of :meth:`DataFrame.apply` with list-like...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49717
2022-11-15T23:54:01Z
2022-11-16T15:41:02Z
2022-11-16T15:41:02Z
2022-11-16T15:44:48Z
API: dtlike.astype(inty)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 4577d20a509ce..e13b48521ad50 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -329,6 +329,7 @@ Other API changes - Default value of ``dtype`` in :func:`get_dummies` is changed to ``bool`` from ``uint8`...
- [ ] 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/49715
2022-11-15T22:51:48Z
2023-01-11T23:45:56Z
2023-01-11T23:45:55Z
2023-01-12T00:02:30Z
API: dont do type inference on arithmetic results
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 75ba169600962..cff226c3d03a3 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -477,7 +477,7 @@ Other API changes - Passing a sequence containing a type that cannot be converted to :class:`Timedelta` 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/49714
2022-11-15T22:43:05Z
2022-12-27T18:30:57Z
2022-12-27T18:30:57Z
2022-12-27T18:37:38Z
STYLE Enable Pylint statement use-sequence-for-iteration
diff --git a/pandas/tests/indexes/interval/test_interval.py b/pandas/tests/indexes/interval/test_interval.py index 5d077f014dc89..c8d7470032e5f 100644 --- a/pandas/tests/indexes/interval/test_interval.py +++ b/pandas/tests/indexes/interval/test_interval.py @@ -537,7 +537,7 @@ def test_isin(self, closed): resul...
Associated with Issue #48855. This PR enables the pylint type "C" warning `use-sequence-for-iteration`. - [ ] 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/49713
2022-11-15T21:12:56Z
2022-11-16T09:02:33Z
2022-11-16T09:02:33Z
2022-11-16T14:50:19Z
REF change to_datetime -> Timestamp for in odf reader
diff --git a/pandas/io/excel/_odfreader.py b/pandas/io/excel/_odfreader.py index 8d2434e96ca61..615d03589047c 100644 --- a/pandas/io/excel/_odfreader.py +++ b/pandas/io/excel/_odfreader.py @@ -213,9 +213,9 @@ def _get_cell_value(self, cell) -> Scalar | NaTType: return float(cell_value) elif cell_t...
Broken off from https://github.com/pandas-dev/pandas/pull/49024 Users wouldn't have the option to pass arguments to `to_datetime` here anyway, so might as well use `Timestamp` and avoid warnings related to `to_datetime` (like to pass `format` to ensure consistent parsing)
https://api.github.com/repos/pandas-dev/pandas/pulls/49712
2022-11-15T16:32:09Z
2022-11-15T22:52:39Z
2022-11-15T22:52:39Z
2022-11-15T22:52:46Z
ENH: dont guess %Y/%m
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index 6f5b1e5b4e799..003ce77a221db 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -1013,12 +1013,15 @@ def guess_datetime_format(dt_str: str, bint dayfirst=False) -> str | None: found_a...
Follow-up from https://github.com/pandas-dev/pandas/pull/49389 Guess "year month", but only if it's "%Y-%m" as that's ISO8601 compliant
https://api.github.com/repos/pandas-dev/pandas/pulls/49711
2022-11-15T14:02:41Z
2022-11-17T02:54:09Z
2022-11-17T02:54:09Z
2022-11-17T02:54:15Z
DOC: document read_orc columns order behaviour
diff --git a/pandas/io/orc.py b/pandas/io/orc.py index 40754a56bbe8b..2670390746d80 100644 --- a/pandas/io/orc.py +++ b/pandas/io/orc.py @@ -47,6 +47,9 @@ def read_orc( ``file://localhost/path/to/table.orc``. columns : list, default None If not None, only these columns will be read from the file....
- [X] closes #47944 - [ ] [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/49709
2022-11-15T11:12:46Z
2022-11-21T21:55:59Z
2022-11-21T21:55:59Z
2022-11-24T08:21:48Z
for issue #49656 STYLE enable pylint's redefined-outer-name
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b90833bda82b5..5174f25e0da06 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2,7 +2,7 @@ from __future__ import annotations import collections -from datetime import timedelta +import datetime as dt import gc import json impor...
@MarcoGorelli Sir in the file `pandas\core\generic.py` I had one doubt for line 7684 and I could not understand how todo the correct changes in `pandas\core\resmple.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/49708
2022-11-15T09:51:46Z
2022-11-15T21:48:32Z
2022-11-15T21:48:32Z
2022-11-17T19:32:21Z
STYLE enable B005 check in flake8-bugbear
diff --git a/doc/source/conf.py b/doc/source/conf.py index 24482d7c7461a..6671cefae9073 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -583,7 +583,14 @@ class AccessorCallableDocumenter(AccessorLevelDocumenter, MethodDocumenter): priority = 0.5 def format_name(self): - return MethodDocum...
From https://github.com/pandas-dev/pandas/pull/40570#issuecomment-811515884 > B005 would also be great I agree, `strip` / `rstrip` / `lstrip` are common sources of confusion https://docs.python.org/3/library/stdtypes.html#str.lstrip , e.g. ```python >>> 'Arthur: three!'.lstrip('Arthur: ') 'ee!' ```
https://api.github.com/repos/pandas-dev/pandas/pulls/49707
2022-11-15T09:14:54Z
2022-11-17T11:59:51Z
2022-11-17T11:59:51Z
2022-11-17T11:59:52Z
Bug: Fix Inconsistent Behavior for Series.searchsorted
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 1ca513e8f5e6a..4f61cc51e9f7e 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -740,6 +740,8 @@ Metadata Other ^^^^^ +- Bug in :meth:`Series.searchsorted` inconsistent behavior when accepting :class:...
- [x] closes #49620 - [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/49706
2022-11-15T05:53:01Z
2023-01-06T20:42:28Z
2023-01-06T20:42:28Z
2023-01-06T20:42:35Z
Backport PR #49676 on branch 1.5.x (REGR: Remove groupby's __getattribute__ for nth)
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index 446235d1656dc..540ca2b12165c 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.plot` preventing :class:`~matplotlib.colors.Colorma...
Backport PR #49676: REGR: Remove groupby's __getattribute__ for nth
https://api.github.com/repos/pandas-dev/pandas/pulls/49705
2022-11-15T04:45:07Z
2022-11-16T09:59:43Z
2022-11-16T09:59:43Z
2022-11-16T09:59:53Z
BUG: SparseArray.astype(np.int64)
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3f1ac9bb18f75..c96144ef627d9 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -722,7 +722,7 @@ Reshaping Sparse ^^^^^^ -- +- Bug in :meth:`Series.astype` when converting a ``SparseDtype`` with ``dat...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49704
2022-11-14T23:42:46Z
2022-11-17T22:13:39Z
2022-11-17T22:13:39Z
2022-11-17T22:44:48Z
BUG: support ambiguous=infer with ZoneInfo
diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd index c1a4e2bd5e1ac..31de2c5eeb8d5 100644 --- a/pandas/_libs/tslibs/timezones.pxd +++ b/pandas/_libs/tslibs/timezones.pxd @@ -6,6 +6,7 @@ from cpython.datetime cimport ( cdef tzinfo utc_pytz +cdef tzinfo utc_stdlib cpdef bint is_...
- [x] closes #48442 (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/49700
2022-11-14T19:17:05Z
2022-11-23T19:23:42Z
2022-11-23T19:23:42Z
2022-11-23T20:50:20Z
PDEP-5: NoRowIndex
diff --git a/web/pandas/pdeps/0005-no-default-index-mode.md b/web/pandas/pdeps/0005-no-default-index-mode.md new file mode 100644 index 0000000000000..d543a4718e896 --- /dev/null +++ b/web/pandas/pdeps/0005-no-default-index-mode.md @@ -0,0 +1,380 @@ +# PDEP-5: NoRowIndex + +- Created: 14 November 2022 +- Status: Withdr...
Initial draft of a proposal to have a "no index by default" mode @pandas-dev/pandas-core @pandas-dev/pandas-triage would appreciate any thoughts / feedback, thanks 🙏
https://api.github.com/repos/pandas-dev/pandas/pulls/49694
2022-11-14T12:46:11Z
2023-03-02T02:56:03Z
2023-03-02T02:56:03Z
2023-03-02T02:56:03Z
DOC: mention tz_convert(None) and tz_localize(None) for dataframe or series
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 969dcde9d792e..fa35060c8aff8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10139,7 +10139,9 @@ def tz_convert( Parameters ---------- - tz : str or tzinfo object + tz : str or tzinfo object or None...
DOC: mention tz_convert(None) and tz_localize(None) for dataframe or series --- I found the functionality to convert tz-aware axis to tz-naive axis is documented in DatatimeIndex but not documented in DataFrame or Series. Add more documentation to mention this feature. [pandas.DatetimeIndex.tz_convert](https://p...
https://api.github.com/repos/pandas-dev/pandas/pulls/49691
2022-11-14T11:02:57Z
2022-11-21T21:57:14Z
2022-11-21T21:57:14Z
2022-11-22T10:53:00Z
CLN: Remove MultiIndex._get_grouper_for_level
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 688dcb44c31f3..9e756e7006bd4 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -472,7 +472,6 @@ def __init__( ilevel = self._ilevel if ilevel is not None: - mapper = self.g...
- [x] closes #49452 (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/49690
2022-11-14T04:04:30Z
2022-12-01T03:26:54Z
2022-12-01T03:26:54Z
2022-12-01T03:27:06Z
ENH: Add copy-on-write to `DataFrame.drop`
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6288ebe77c8c0..c51cc235d9fcd 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4483,6 +4483,7 @@ def _drop_axis( indexer, axis=bm_axis, allow_dups=True, + copy=None, only_...
- [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). Progress towards #49473 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/49689
2022-11-14T00:19:15Z
2022-11-16T08:58:13Z
2022-11-16T08:58:13Z
2023-01-03T10:13:29Z
STYLE: Fix redefined-outer-name linting issue
diff --git a/pandas/plotting/_matplotlib/converter.py b/pandas/plotting/_matplotlib/converter.py index 4a10311b1f9fa..69f46a333503d 100644 --- a/pandas/plotting/_matplotlib/converter.py +++ b/pandas/plotting/_matplotlib/converter.py @@ -17,16 +17,14 @@ ) from dateutil.relativedelta import relativedelta -from matplo...
Part of the fix for #49656 - [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/49687
2022-11-13T22:51:10Z
2022-11-14T19:03:25Z
2022-11-14T19:03:25Z
2022-11-14T19:03:25Z
STYLE: fix pylint consider-merging-isinstance warnings
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index d0a95e764472d..a5641465b0be0 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -571,20 +571,12 @@ def raise_assert_detail( if isinstance(left, np.ndarray): left = pprint_thing(left) - elif ( -...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49686
2022-11-13T22:43:24Z
2022-11-14T01:57:05Z
2022-11-14T01:57:05Z
2022-11-14T13:05:37Z
BUG: rendering dt64tz values with non-pytz
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 032bcf09244e5..51ec4361a171e 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -610,6 +610,8 @@ Datetimelike - Bug in :class:`DatetimeIndex` constructor failing to raise when ``tz=None`` is explicitly s...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49684
2022-11-13T18:46:05Z
2022-11-16T20:26:14Z
2022-11-16T20:26:14Z
2022-12-24T20:24:47Z
DEPR: remove Int64Index, UInt64Index, Float64Index from tests.indexes.numeric
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index 97b640b252329..2fb95942b08db 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -818,6 +818,19 @@ def test_can_hold_identifiers(self, simple_index): key = idx[0] assert idx._can_hold_ide...
Progress towards #42717. Other locations will follow. There are tests in here that probably should be parametrized when `Index` will be able to return non-64 bit dtypes. I'll do that in followups, after `Index` returns a `NumericIndex`.
https://api.github.com/repos/pandas-dev/pandas/pulls/49682
2022-11-13T17:22:40Z
2022-11-16T20:08:17Z
2022-11-16T20:08:17Z
2022-11-16T21:00:15Z
DOC: Update interpolation docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6288ebe77c8c0..b90833bda82b5 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7247,12 +7247,15 @@ def interpolate( given length of interval. * 'index', 'values': use the actual numerical values of the inde...
DOC: Update interpolation docstring to highlight slinear and spline differences between pandas and scipy. # Scipy vs Pandas interpolation documentation missmatching We can find information in [Pandas documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Series.interpolate.html) that, Pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/49681
2022-11-13T15:42:51Z
2022-11-14T20:52:05Z
2022-11-14T20:52:05Z
2022-11-14T20:52:20Z
BUG: df.explode mulitcol with Nan+emptylist
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 3f1ac9bb18f75..f9561c9aa4325 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -719,6 +719,7 @@ Reshaping - Bug in :func:`join` when ``left_on`` or ``right_on`` is or includes a :class:`CategoricalIndex...
- [x] closes #46084 - [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/49680
2022-11-13T15:24:49Z
2022-11-16T20:28:20Z
2022-11-16T20:28:20Z
2022-11-17T05:46:44Z
DEPR: remove Int|Uint|Float64Index from conftest & _testing
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 6cce1137e707b..c1c5b26a2daba 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -34,6 +34,7 @@ is_float_dtype, is_integer_dtype, is_sequence, + is_signed_integer_dtype, is_unsigned_integer_dtyp...
Progress towards #42717. In particular cleans up conftest.py::indices_dict to not use old style indexes and cleans up the `tm.make*Index` functions to not return old style numeric indexes. I've kept `tm.MakeIntIndex`etc. and just made them tighter versions of `tm.makeNumericIndex` though if they should be deleted...
https://api.github.com/repos/pandas-dev/pandas/pulls/49678
2022-11-13T07:46:04Z
2022-11-16T21:07:36Z
2022-11-16T21:07:36Z
2022-11-16T21:13:59Z
API: default to stdlib timezone objects for fixed-offsets
diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst index 139a00b9df4d6..4196b8501ec77 100644 --- a/doc/source/whatsnew/v2.0.0.rst +++ b/doc/source/whatsnew/v2.0.0.rst @@ -312,6 +312,40 @@ The new behavior, as for datetime64, either gives exactly the requested dtype or ser.astype("timedelta...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49677
2022-11-13T00:36:47Z
2022-12-13T01:41:19Z
2022-12-13T01:41:19Z
2022-12-13T16:10:48Z
REGR: Remove groupby's __getattribute__ for nth
diff --git a/doc/source/whatsnew/v1.5.2.rst b/doc/source/whatsnew/v1.5.2.rst index 446235d1656dc..540ca2b12165c 100644 --- a/doc/source/whatsnew/v1.5.2.rst +++ b/doc/source/whatsnew/v1.5.2.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :meth:`DataFrame.plot` preventing :class:`~matplotlib.colors.Colorma...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/49676
2022-11-12T22:29:01Z
2022-11-15T04:44:38Z
2022-11-15T04:44:38Z
2022-11-22T03:23:41Z
STYLE: Fixed redefined-outer-name linting issue
diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py index 3a00301fbc042..b2242191798b1 100644 --- a/pandas/core/indexes/datetimes.py +++ b/pandas/core/indexes/datetimes.py @@ -1,12 +1,6 @@ from __future__ import annotations -from datetime import ( - date, - datetime, - time, - ...
Fixed `redefined-outer-name` linting issue in the following files (Towards #49656) * `pandas/core/indexes/datetimes.py` * `pandas/io/formats/xml.py` * `pandas/io/json/_table_schema.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/49675
2022-11-12T22:09:29Z
2022-11-13T08:30:11Z
2022-11-13T08:30:11Z
2022-11-13T19:19:53Z
STYLE: fix pylint unnecessary-comprehension warnings
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index 171e4feb290cf..9c043e8db9389 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -112,9 +112,7 @@ def setup(self, dtype): values = np.take(list(string.ascii_letters), indices) ...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49674
2022-11-12T19:33:32Z
2022-11-13T07:58:28Z
2022-11-13T07:58:28Z
2022-11-13T07:58:29Z
STYLE enable pylint's redefined-outer-name
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 71b72073c26ca..2059ed05d95e3 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -4,10 +4,7 @@ from __future__ import annotations -from datetime import ( - datetime, - timedelta, -) +import datetime as dt impo...
Fixed warnings for the following files :- - pandas/core/dtypes/cast.py - pandas/core/dtypes/dtypes.py - pandas/core/indexes/base.py
https://api.github.com/repos/pandas-dev/pandas/pulls/49671
2022-11-12T18:20:56Z
2022-11-14T21:11:29Z
2022-11-14T21:11:29Z
2022-11-14T21:11:29Z
DEPR: remove Int64Index, UInt64Index, Float64Index from public namespace
diff --git a/asv_bench/benchmarks/hash_functions.py b/asv_bench/benchmarks/hash_functions.py index da752b902b4fd..c6e73e28f4a27 100644 --- a/asv_bench/benchmarks/hash_functions.py +++ b/asv_bench/benchmarks/hash_functions.py @@ -57,14 +57,14 @@ def time_unique(self, exponent): class NumericSeriesIndexing: param...
Progress towards #42717. In a followup they will be removed internally.
https://api.github.com/repos/pandas-dev/pandas/pulls/49670
2022-11-12T17:15:51Z
2022-11-16T21:25:06Z
2022-11-16T21:25:06Z
2022-11-16T21:58:36Z
STYLE: fix pylints redefined-outer-name warnings
diff --git a/pandas/core/dtypes/inference.py b/pandas/core/dtypes/inference.py index de240a39e2951..3c28bd0c0a843 100644 --- a/pandas/core/dtypes/inference.py +++ b/pandas/core/dtypes/inference.py @@ -417,8 +417,8 @@ def is_dataclass(item): """ try: - from dataclasses import is_dataclass + imp...
Fixed pylint redefined-outer-name warnings for following 2 files **1. pandas\core\frame.py 2. pandas\core\dtypes\inference.py** - [ ] [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 c...
https://api.github.com/repos/pandas-dev/pandas/pulls/49669
2022-11-12T17:08:05Z
2022-11-12T21:05:55Z
2022-11-12T21:05:55Z
2022-11-13T02:58:44Z
STYLE: enable pylint useless-option-value
diff --git a/pyproject.toml b/pyproject.toml index b436b29c03c84..3d38999e65817 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -122,7 +122,6 @@ disable = [ "too-many-statements", "unnecessary-comprehension", "unnecessary-list-index-lookup", - "useless-option-value", # pylint type "W": warning, for p...
Related to https://github.com/pandas-dev/pandas/issues/48855 - [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/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/49666
2022-11-12T16:31:25Z
2022-11-12T17:49:46Z
2022-11-12T17:49:46Z
2022-11-12T18:11:02Z