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
DEPR: Adjust read excel behavior for xlrd >= 2.0
diff --git a/ci/deps/azure-38-slow.yaml b/ci/deps/azure-38-slow.yaml index 2b4339cf12658..9651837f26114 100644 --- a/ci/deps/azure-38-slow.yaml +++ b/ci/deps/azure-38-slow.yaml @@ -30,7 +30,7 @@ dependencies: - moto>=1.3.14 - scipy - sqlalchemy - - xlrd<2.0 + - xlrd>=2.0 - xlsxwriter - xlwt - moto d...
- [x] closes #38424 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Alternative to #38522. I've been testing this locally using both xlrd 1.2.0 and 2.0.1. One test fails because we used to default to xlrd but now ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38571
2020-12-18T23:42:20Z
2020-12-23T23:01:22Z
2020-12-23T23:01:22Z
2020-12-24T09:04:59Z
TST/REF: misplaced Series.reindex test
diff --git a/pandas/tests/frame/methods/test_set_index.py b/pandas/tests/frame/methods/test_set_index.py index ca098296daf8d..b66a95bae51c5 100644 --- a/pandas/tests/frame/methods/test_set_index.py +++ b/pandas/tests/frame/methods/test_set_index.py @@ -684,3 +684,14 @@ def __str__(self) -> str: with pytest.rai...
- [ ] 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/38570
2020-12-18T22:29:35Z
2020-12-19T02:13:10Z
2020-12-19T02:13:10Z
2020-12-19T02:19:05Z
TST/REF: indexes/datetimes/methods/
diff --git a/pandas/tests/indexes/datetimelike_/__init__.py b/pandas/tests/indexes/datetimelike_/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/indexes/test_datetimelike.py b/pandas/tests/indexes/datetimelike_/test_equals.py similarity index 100% rename from pandas/tests/i...
https://api.github.com/repos/pandas-dev/pandas/pulls/38569
2020-12-18T22:24:42Z
2020-12-19T02:10:45Z
2020-12-19T02:10:45Z
2020-12-19T02:13:30Z
TST/REF: misplaced DataFrame.append test
diff --git a/pandas/tests/frame/methods/test_append.py b/pandas/tests/frame/methods/test_append.py index 38b5c150630fe..356dc800d9662 100644 --- a/pandas/tests/frame/methods/test_append.py +++ b/pandas/tests/frame/methods/test_append.py @@ -2,15 +2,14 @@ import pytest import pandas as pd -from pandas import DataFra...
https://api.github.com/repos/pandas-dev/pandas/pulls/38568
2020-12-18T22:00:13Z
2020-12-19T02:10:11Z
2020-12-19T02:10:11Z
2020-12-19T02:13:08Z
BUG: .sparse.to_coo() with numeric col index without a 0
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 3545dd8a89159..72317b1b7da63 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -270,6 +270,7 @@ Reshaping Sparse ^^^^^^ +- Bug in :meth:`DataFrame.sparse.to_coo` raising ``KeyError`` with columns tha...
- [x] closes #18414 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Added tests for some other column name types which raised before this change, if that's overkill I can just test the int case from the OP.
https://api.github.com/repos/pandas-dev/pandas/pulls/38567
2020-12-18T20:13:14Z
2020-12-22T14:10:54Z
2020-12-22T14:10:54Z
2020-12-22T14:31:58Z
Backport PR #38560 on branch 1.2.x (Revert "REF: remove special casing from Index.equals (always dispatchto subclass) (#35330)")
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 46a1646727bae..11d191597d61e 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4455,15 +4455,16 @@ def equals(self, other: object) -> bool: if not isinstance(other, Index): return False - ...
Backport PR #38560: Revert "REF: remove special casing from Index.equals (always dispatchto subclass) (#35330)"
https://api.github.com/repos/pandas-dev/pandas/pulls/38565
2020-12-18T19:05:46Z
2020-12-18T20:54:56Z
2020-12-18T20:54:56Z
2020-12-18T20:54:56Z
TST: GH30999 Add match=msg to test_nat_comparisons_invalid
diff --git a/pandas/tests/scalar/test_nat.py b/pandas/tests/scalar/test_nat.py index 2ea7602b00206..5dc0c40ef42dd 100644 --- a/pandas/tests/scalar/test_nat.py +++ b/pandas/tests/scalar/test_nat.py @@ -558,20 +558,28 @@ def test_nat_comparisons_numpy(other): assert not NaT >= other -@pytest.mark.parametrize("ot...
This pull request xref #30999 to remove bare pytest.raises. It doesn't close that issue as I have only addressed one file: pandas/tests/scalar/test_nat.py . In that file there was only one test that had a bare pytest.raises and I added a message to the two instances of pytest.raises in that test. It required modificati...
https://api.github.com/repos/pandas-dev/pandas/pulls/38564
2020-12-18T18:59:20Z
2020-12-18T23:07:55Z
2020-12-18T23:07:55Z
2020-12-21T12:37:04Z
REF: handle non-list_like cases upfront in sanitize_array
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 248963ca3c859..3dc7acc6cf0b5 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -449,6 +449,11 @@ def sanitize_array( # extract ndarray or ExtensionArray, ensure we have no PandasArray data = extract_array(...
so we can rule them out later
https://api.github.com/repos/pandas-dev/pandas/pulls/38563
2020-12-18T18:34:33Z
2020-12-18T23:16:07Z
2020-12-18T23:16:07Z
2020-12-18T23:31:55Z
REF: Block._astype defer to astype_nansafe in more cases
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ee1323b71f146..79ecf8620c70c 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -346,7 +346,7 @@ def astype(self, dtype, copy=True): elif is_string_dtype(dtype) and not is_categor...
Makes astype_nansafe for (td64|dt64) -> (object|str|string) match DTA/TDA/Series behavior. Medium-term (weeks) the goal is to get rid of Block._astype altogether and just use astype_nansafe, which among other things will be helpful for ArrayManager. This changes `Series[dt64].astype("string")` behavior in a way t...
https://api.github.com/repos/pandas-dev/pandas/pulls/38562
2020-12-18T18:30:09Z
2020-12-21T16:38:25Z
2020-12-21T16:38:25Z
2021-05-10T11:06:10Z
Move docstring of NDFrame.replace in preparation of #32542
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1bf40f782f666..78b2accf92752 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -180,6 +180,9 @@ "axis": """axis : {0 or 'index', 1 or 'columns'}, default 0 If 0 or 'index': apply function to each column. If 1 or 'columns...
This is a pre-cursor PR for #32542 as requested by @jreback [here](https://github.com/pandas-dev/pandas/pull/32542#issuecomment-744043100). It moves the docstring of `replace()` method(s) to `pandas.core.shared_docs` so that we can reuse most of it for index classes.
https://api.github.com/repos/pandas-dev/pandas/pulls/38561
2020-12-18T15:55:35Z
2020-12-22T23:21:10Z
2020-12-22T23:21:10Z
2020-12-23T06:47:41Z
Revert "REF: remove special casing from Index.equals (always dispatchto subclass) (#35330)"
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8d38e7f173594..6e2bbc5e3a0e6 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4442,15 +4442,16 @@ def equals(self, other: object) -> bool: if not isinstance(other, Index): return False - ...
This reverts commit 0b90685f4df2024754748b992d5eaaa352e7caa5. - [ ] closes #35804 - [ ] closes #35805 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ``` before after ratio [546822...
https://api.github.com/repos/pandas-dev/pandas/pulls/38560
2020-12-18T13:08:58Z
2020-12-18T16:44:51Z
2020-12-18T16:44:50Z
2020-12-18T19:05:32Z
Backport PR #38514 on branch 1.2.x (CI: un-xfail)
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index fe3ca0d0937b3..99e7c3061d670 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -671,12 +671,7 @@ def test_s3_roundtrip(self, df_compat, s3_resource, pa, s3so): @pytest.mark.parametrize( ...
Backport PR #38514: CI: un-xfail
https://api.github.com/repos/pandas-dev/pandas/pulls/38559
2020-12-18T12:07:24Z
2020-12-18T14:14:33Z
2020-12-18T14:14:33Z
2020-12-18T14:14:33Z
MultiIndex: support isna, fixes #34019
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index e80e6f370f46e..26de1c60f5feb 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -153,7 +153,8 @@ def _isna(obj, inf_as_na: bool = False): return libmissing.checknull(obj) # hack (for now) be...
- [x] closes #34019 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Note sure what to do with the (smoke) tests here. I suppose an explicit test comparing input and output would be good to have.
https://api.github.com/repos/pandas-dev/pandas/pulls/38558
2020-12-18T11:31:02Z
2021-02-11T01:39:37Z
null
2021-02-11T01:39:37Z
Backport PR #38526 on branch 1.2.x (CI: pin xlrd<2.0)
diff --git a/ci/deps/azure-37-slow.yaml b/ci/deps/azure-37-slow.yaml index 50fccf86b6340..05b33fa351ac9 100644 --- a/ci/deps/azure-37-slow.yaml +++ b/ci/deps/azure-37-slow.yaml @@ -31,7 +31,7 @@ dependencies: - moto>=1.3.14 - scipy - sqlalchemy - - xlrd + - xlrd<2.0 - xlsxwriter - xlwt - moto diff -...
Backport PR #38526: CI: pin xlrd<2.0
https://api.github.com/repos/pandas-dev/pandas/pulls/38557
2020-12-18T10:17:00Z
2020-12-18T12:49:04Z
2020-12-18T12:49:04Z
2020-12-18T12:49:05Z
Backport PR #38504: REG: DataFrame.shift with axis=1 and CategoricalIndex columns
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a1582a57e9a71..396108bab47b7 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4572,20 +4572,23 @@ def shift( if axis == 1 and periods != 0 and fill_value is lib.no_default and ncols > 0: # We will infer fill_value to ma...
Backport PR #38504
https://api.github.com/repos/pandas-dev/pandas/pulls/38555
2020-12-18T09:33:46Z
2020-12-18T15:05:04Z
2020-12-18T15:05:04Z
2020-12-18T15:05:08Z
DOC: add Comparison with Excel
diff --git a/doc/source/_static/excel_pivot.png b/doc/source/_static/excel_pivot.png new file mode 100644 index 0000000000000..beacc90bc313e Binary files /dev/null and b/doc/source/_static/excel_pivot.png differ diff --git a/doc/source/_static/logo_excel.svg b/doc/source/_static/logo_excel.svg new file mode 100644 inde...
- [x] closes https://github.com/pandas-dev/pandas/issues/22993 - [x] tests added / passed - [ ] ~~passes `black pandas`~~ - [ ] ~~passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~ - [ ] ~~whatsnew entry~~ ## Background I teach [a class on pandas for public policy students](https://github.com/af...
https://api.github.com/repos/pandas-dev/pandas/pulls/38554
2020-12-18T05:22:13Z
2020-12-28T16:52:14Z
2020-12-28T16:52:14Z
2020-12-30T21:40:47Z
REF: helpers for sanitize_array
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index a8ca457cdf2a7..248963ca3c859 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -508,11 +508,7 @@ def sanitize_array( # the result that we want elif subarr.ndim == 1: - if index is not None: - - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38553
2020-12-18T03:47:02Z
2020-12-18T18:29:00Z
2020-12-18T18:29:00Z
2020-12-18T18:32:15Z
BUG: Index([date]).astype("category").astype(object) roundtrip
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index fbd2c2b5345fc..874ce40f36a9f 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -172,7 +172,8 @@ Categorical ^^^^^^^^^^^ - Bug in ``CategoricalIndex.reindex`` failed when ``Index`` passed with element...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This also makes some MultiIndex constructor behavior consistent with Index behavior, with the side-effect of fixing the thorny cases in #36131
https://api.github.com/repos/pandas-dev/pandas/pulls/38552
2020-12-18T00:53:45Z
2020-12-23T14:17:46Z
2020-12-23T14:17:46Z
2020-12-23T15:52:12Z
BUG: Support timespec argument in Timestamp.isoformat() (#26131)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e2521cedb64cc..8625f94bf39c0 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -607,6 +607,7 @@ Datetimelike - Bug in :meth:`Series.isin` with ``datetime64[ns]`` dtype and :meth:`.DatetimeIndex.isin` fa...
- [x] closes #26131 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I have just tried to support the same behaviour as `datetime.datetime()`, without adding the additional `"nanoseconds"` option, but this could be ha...
https://api.github.com/repos/pandas-dev/pandas/pulls/38550
2020-12-17T22:51:47Z
2021-03-12T03:49:55Z
null
2021-11-11T16:25:33Z
ENH: Map pandas integer to optimal SQLAlchemy integer type (GH35076)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index c3d896166fabe..c7573ee860744 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -44,6 +44,7 @@ Other enhancements - Improve error message when ``usecols`` and ``names`` do not match for :func:`read_csv` ...
- [x] closes #35076 - [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/38548
2020-12-17T20:38:54Z
2020-12-24T18:51:42Z
2020-12-24T18:51:42Z
2020-12-24T18:51:51Z
patch wsl compatibility
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 990c87eab5a8d..44d97fffe1731 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -240,6 +240,7 @@ I/O - Bug in :func:`read_csv` raising ``IndexError`` with multiple header columns and ``index_col`` specif...
Change wsl check to something more universal and consistent - [x] closes #38527 - [ ] 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/38546
2020-12-17T17:52:56Z
2020-12-23T14:08:08Z
2020-12-23T14:08:08Z
2020-12-23T14:08:11Z
BENCH: Increase sample of CategoricalIndexIndexing.time_get_indexer_list benchmark
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 38d1f64bd5f4e..e95e5bec5849c 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -3,6 +3,7 @@ lower-level methods directly on Index and subclasses, see index_object.py, indexing_engine.py, and in...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/38476#discussion_r543329205
https://api.github.com/repos/pandas-dev/pandas/pulls/38545
2020-12-17T17:30:47Z
2020-12-17T22:45:03Z
2020-12-17T22:45:03Z
2020-12-17T23:17:29Z
DEPR: datetimelike.astype(int)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 65bfd8289fe3d..0c86d1da55233 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -145,6 +145,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ - Deprecated allowing subclass-specific keyword arguments in...
- [x] closes #24381 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Sits on top of #38535
https://api.github.com/repos/pandas-dev/pandas/pulls/38544
2020-12-17T16:50:42Z
2020-12-23T19:24:36Z
2020-12-23T19:24:36Z
2021-09-16T15:35:51Z
testing case sort_index with pd.set_option('use_inf_as_na', True)
diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py index de847c12723b2..16eb9d2f52642 100644 --- a/pandas/tests/frame/methods/test_sort_index.py +++ b/pandas/tests/frame/methods/test_sort_index.py @@ -857,3 +857,23 @@ def test_sort_index_multiindex_sparse_column(s...
- [ ] closes #29687 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Create test cases for sort_index works with 'pd.set_option('mode.use_inf_as_na',True)
https://api.github.com/repos/pandas-dev/pandas/pulls/38542
2020-12-17T15:06:32Z
2021-02-11T01:42:30Z
null
2021-02-11T01:42:30Z
Tests .loc on sparse DataFrame #34687
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 68f12a939e061..dccd9e0a0a89d 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -1087,6 +1087,22 @@ def test_loc_getitem_listlike_all_retains_sparse(self): result = df.loc[[0, 1]] ...
- [ ✔️] closes #34687 - [ ✔️] tests added / passed Created test case for ttps://github.com/pandas-dev/pandas/issues/34687
https://api.github.com/repos/pandas-dev/pandas/pulls/38540
2020-12-17T13:49:35Z
2021-02-11T01:31:34Z
null
2021-03-23T01:55:59Z
BUG: fix array conversion from Arrow for slided array
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e2521cedb64cc..4816e45861f4c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -747,6 +747,7 @@ I/O - :meth:`DataFrame.to_html` was ignoring ``formatters`` argument for ``ExtensionDtype`` columns (:issu...
Closes #38525
https://api.github.com/repos/pandas-dev/pandas/pulls/38539
2020-12-17T11:26:21Z
2020-12-21T13:54:38Z
2020-12-21T13:54:38Z
2020-12-21T13:58:38Z
TYP: pandas/io/sql.py (easy: bool/str)
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 23f992ceb009a..836c16c109b57 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -7,7 +7,7 @@ from datetime import date, datetime, time from functools import partial import re -from typing import Iterator, List, Optional, Union, overload +from typing import ...
- [ ] closes #xxxx - [ ] 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/38537
2020-12-17T07:26:33Z
2020-12-21T23:45:23Z
2020-12-21T23:45:23Z
2020-12-21T23:45:28Z
Added Documentation to specify that DataFrame.last() needs the index to be sorted to deliver the expected results
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f9aa5ca9e8ea9..9b0c3caa0b407 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8439,8 +8439,8 @@ def last(self: FrameOrSeries, offset) -> FrameOrSeries: """ Select final periods of time series data based on a date of...
Added Documentation mentioning that DataFrame.last() needs the index to be sorted to deliver the expected results Haven't yet worked on raising an error will work as advised - [ ] closes #38000 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 -...
https://api.github.com/repos/pandas-dev/pandas/pulls/38536
2020-12-17T05:40:31Z
2020-12-17T16:54:24Z
2020-12-17T16:54:23Z
2021-09-27T23:40:01Z
CLN: use .view(i8) instead of .astype(i8) for datetimelike values
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index f8237a436f436..0fc6c8a23f5f2 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -12,6 +12,7 @@ from pandas.util._decorators import Appender, Substitution, doc from pandas.core.dtypes.common import is_datetime64_ns_dtype ...
prelude to deprecating the astype behavior
https://api.github.com/repos/pandas-dev/pandas/pulls/38535
2020-12-17T03:07:24Z
2020-12-19T02:21:41Z
2020-12-19T02:21:41Z
2020-12-19T02:39:37Z
BUG&TST: HTML formatting error in Styler.render() in rowspan attribute
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e2521cedb64cc..c4e1ecaf57c19 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -766,6 +766,10 @@ Plotting - Bug in :meth:`DataFrame.plot` and :meth:`Series.plot` was overwriting matplotlib's shared y ax...
- [x] closes [#38234](https://github.com/pandas-dev/pandas/issues/38234) - [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/38533
2020-12-17T00:27:41Z
2020-12-22T20:33:37Z
2020-12-22T20:33:37Z
2020-12-22T20:34:02Z
BUG: Regression in logical ops raising ValueError with Categorical columns with unused categories
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index e2521cedb64cc..372dfa0f8ad42 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -859,7 +859,7 @@ Other - Bug in :meth:`RangeIndex.difference` returning :class:`Int64Index` in some cases where it should r...
- [x] closes #38367 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry @simonjayhawkins This would fix the issue, but is pretty dirty. If we decide to merge this, we should remove this again with #38140 Also test wo...
https://api.github.com/repos/pandas-dev/pandas/pulls/38532
2020-12-16T22:51:44Z
2020-12-21T13:55:18Z
2020-12-21T13:55:18Z
2020-12-21T15:50:24Z
CLN: share .values
diff --git a/pandas/_testing.py b/pandas/_testing.py index 73b1dcf31979f..964c8d4d3d61a 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -834,7 +834,9 @@ def _get_ilevel_values(index, level): # skip exact index checking when `check_categorical` is False if check_exact and check_categorical: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38531
2020-12-16T22:32:47Z
2020-12-17T15:06:34Z
2020-12-17T15:06:34Z
2020-12-17T15:42:21Z
REF: avoid special-casing Categorical astype
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index ecf77a9987bee..059c36a901297 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -354,11 +354,6 @@ def __contains__(self, key: Any) -> bool: return contains(self, key, container=self._engine...
Sits on top of #38516
https://api.github.com/repos/pandas-dev/pandas/pulls/38530
2020-12-16T22:28:54Z
2020-12-22T20:44:49Z
2020-12-22T20:44:49Z
2020-12-22T20:53:45Z
CLN: remove CategoricalIndex._engine
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index e2a7752cf3f0d..7c826000d035a 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -8,7 +8,7 @@ from pandas._libs import index as libindex from pandas._libs.lib import no_default from pandas._typing i...
https://api.github.com/repos/pandas-dev/pandas/pulls/38529
2020-12-16T22:25:52Z
2020-12-17T01:23:33Z
2020-12-17T01:23:33Z
2020-12-17T01:27:13Z
Editing Pandas Documentation homepage
diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css index 43cd631890330..0ceec43e6aeca 100644 --- a/doc/source/_static/css/pandas.css +++ b/doc/source/_static/css/pandas.css @@ -34,3 +34,8 @@ margin-bottom: 0rem; color: #484848; } + +.custom-button:hover { + box-shadow: 0 5px 23...
Trying to improve the user experience and interaction with the webpage. 1.Edited button hover effect. 2. Make links open in new tabs instead of redirect in the current webpage because this may be not good for some people. 3. Added data manipulation note in the introduction section.
https://api.github.com/repos/pandas-dev/pandas/pulls/38528
2020-12-16T19:51:12Z
2021-05-07T20:04:50Z
null
2021-05-07T20:04:50Z
CI: pin xlrd<2.0
diff --git a/ci/deps/azure-37-slow.yaml b/ci/deps/azure-37-slow.yaml index 50fccf86b6340..05b33fa351ac9 100644 --- a/ci/deps/azure-37-slow.yaml +++ b/ci/deps/azure-37-slow.yaml @@ -31,7 +31,7 @@ dependencies: - moto>=1.3.14 - scipy - sqlalchemy - - xlrd + - xlrd<2.0 - xlsxwriter - xlwt - moto diff -...
- [ ] closes #38524 - [ ] 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/38526
2020-12-16T17:43:14Z
2020-12-16T19:26:04Z
2020-12-16T19:26:03Z
2021-11-20T23:21:03Z
Better inference of spreadsheet formats.
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index bf1011176693f..0dbe1ce200e4b 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -1,11 +1,11 @@ import abc import datetime -import inspect from io import BufferedIOBase, BytesIO, RawIOBase import os from textwrap import fill...
See: https://github.com/pandas-dev/pandas/issues/38424#issuecomment-744062773 https://github.com/pandas-dev/pandas/pull/38456 Discussion happening on #38424, code review happening here ;-)
https://api.github.com/repos/pandas-dev/pandas/pulls/38522
2020-12-16T13:09:26Z
2020-12-23T14:11:05Z
null
2020-12-23T14:11:06Z
REF: use astype_nansafe in Index.astype
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index bafb37775cbb1..2101893d39dc9 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -33,6 +33,7 @@ from pandas.util._decorators import Appender, cache_readonly, doc from pandas.core.dtypes.cast import ( + astype_n...
https://api.github.com/repos/pandas-dev/pandas/pulls/38518
2020-12-16T04:09:54Z
2020-12-16T22:32:24Z
2020-12-16T22:32:24Z
2020-12-16T23:09:11Z
BUG: read_excel forward-filling MI names
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 931ec895cc73f..09b7bff31d323 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -267,6 +267,7 @@ I/O - Bug in :func:`to_hdf` raising ``KeyError`` when trying to apply for subclasses of ``DataFrame`` o...
- [x] closes #34673 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Added test with OP's issue as a sheet in the style of existing sheets in `tests/io/data/excel/testmultiindex.*` (the same as the "both_name" shee...
https://api.github.com/repos/pandas-dev/pandas/pulls/38517
2020-12-16T02:58:53Z
2021-01-01T19:45:28Z
2021-01-01T19:45:27Z
2021-01-01T20:02:32Z
API: CategoricalDtype.__eq__ with categories=None stricter
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index ce64940d964ca..fbd2c2b5345fc 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -133,7 +133,7 @@ See :ref:`install.dependencies` and :ref:`install.optional_dependencies` for mor Other API changes ^^^^...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry xref #37929 This will allow us to remove special-casing for Categorical in Block._astype, Index.astype, and Categorical.astype.
https://api.github.com/repos/pandas-dev/pandas/pulls/38516
2020-12-16T02:35:21Z
2020-12-22T17:35:58Z
2020-12-22T17:35:58Z
2020-12-22T17:45:47Z
ENH: support none in header list #37625
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index dd30bf37793d0..79442671dd7f8 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -458,7 +458,7 @@ def parse( sheets = list(dict.fromkeys(sheets).keys()) output = {} - + header_input = header fo...
closes #37625 tests passed read_excel funtion can now accept header={'Sheet1': 0, 'Sheet2': None} as dictionary with header for each sheet.
https://api.github.com/repos/pandas-dev/pandas/pulls/38515
2020-12-15T23:33:28Z
2021-02-11T01:32:24Z
null
2021-02-11T01:32:24Z
CI: un-xfail
diff --git a/pandas/tests/io/test_parquet.py b/pandas/tests/io/test_parquet.py index fe3ca0d0937b3..99e7c3061d670 100644 --- a/pandas/tests/io/test_parquet.py +++ b/pandas/tests/io/test_parquet.py @@ -671,12 +671,7 @@ def test_s3_roundtrip(self, df_compat, s3_resource, pa, s3so): @pytest.mark.parametrize( ...
No idea why this stopped failing, but not going to look a gift horse in the mouth.
https://api.github.com/repos/pandas-dev/pandas/pulls/38514
2020-12-15T23:30:15Z
2020-12-16T01:02:11Z
2020-12-16T01:02:11Z
2021-01-21T14:50:03Z
df.melt() column name 'variable'
diff --git a/pandas/core/reshape/melt.py b/pandas/core/reshape/melt.py index f49aaee8bbc00..9c76811344121 100644 --- a/pandas/core/reshape/melt.py +++ b/pandas/core/reshape/melt.py @@ -39,6 +39,16 @@ def melt( else: cols = list(frame.columns) + if 'variable' in frame.columns: + warnings.warn( ...
- [x] closes #37716 - [x] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is my first time contributing to the open source project. Although I didn't make a significant change, I saw a bug report and asked to just rai...
https://api.github.com/repos/pandas-dev/pandas/pulls/38513
2020-12-15T23:17:07Z
2021-02-11T01:31:53Z
null
2021-02-11T01:31:54Z
BUG: .item() incorrectly casts td64/dt64 to int
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 63445d0e1598d..29d3130aa3316 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -733,7 +733,7 @@ def infer_dtype_from_scalar(val, pandas_dtype: bool = False) -> Tuple[DtypeObj, raise ValueError(msg) ...
- [ ] 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/38512
2020-12-15T22:32:47Z
2020-12-16T02:36:56Z
2020-12-16T02:36:56Z
2020-12-16T02:45:48Z
BUG: MultiIndex.equals returning incorrectly True when Indexes contains NaN
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 57dd1d05a274e..af96269019ca4 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -232,7 +232,7 @@ MultiIndex ^^^^^^^^^^ - Bug in :meth:`DataFrame.drop` raising ``TypeError`` when :class:`MultiIndex` is...
- [x] xref #38439 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Depending on the expected behavior of align, this may have hidden an additional bug in align in the referenced issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/38511
2020-12-15T22:29:30Z
2020-12-17T02:12:43Z
2020-12-17T02:12:42Z
2020-12-17T16:11:00Z
BUG: Series(dt64, dtype="Sparse[object]")
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index abcc60a15c641..3ff785edf2da1 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -30,7 +30,6 @@ conversion, iNaT, ints_to_pydatetime, - ints_to_pytimedelta, ) from pandas._libs.tslibs.timezones import ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry As a side effect of fixing astype_nansafe, we can rip some code out of Block._astype.
https://api.github.com/repos/pandas-dev/pandas/pulls/38508
2020-12-15T19:17:58Z
2020-12-16T17:39:52Z
null
2020-12-16T17:40:17Z
REF: handle ravel inside astype_nansafe
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 63445d0e1598d..2f35f34f838ec 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -973,6 +973,14 @@ def astype_nansafe( ValueError The dtype was a datetime64/timedelta64 dtype, but it had no unit. """ + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/38507
2020-12-15T18:59:45Z
2020-12-16T00:50:30Z
2020-12-16T00:50:30Z
2020-12-16T01:14:31Z
WIP: CI: Supress urllib3 tests in pytest
diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py index 5d4705dbe7d77..f859a22c5f44d 100644 --- a/pandas/tests/io/conftest.py +++ b/pandas/tests/io/conftest.py @@ -50,7 +50,6 @@ def s3_base(worker_id): pytest.importorskip("s3fs") pytest.importorskip("boto3") requests = pytest.importo...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref https://github.com/pandas-dev/pandas/pull/38480, there are some remaining urllib3 logs coming from somewhere. Testing if this gets rid of those.
https://api.github.com/repos/pandas-dev/pandas/pulls/38506
2020-12-15T18:44:56Z
2020-12-16T17:50:06Z
null
2020-12-16T17:50:10Z
REF: require listlike in maybe_cast_to_datetime
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 3dc7acc6cf0b5..5f67db0244a4a 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -481,6 +481,7 @@ def sanitize_array( return subarr elif isinstance(data, (list, tuple, abc.Set, abc.ValuesView)) and len...
https://api.github.com/repos/pandas-dev/pandas/pulls/38505
2020-12-15T17:51:59Z
2020-12-22T00:58:35Z
2020-12-22T00:58:35Z
2020-12-22T01:02:40Z
REG: DataFrame.shift with axis=1 and CategoricalIndex columns
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 57dd1d05a274e..d6dd1872c3e7e 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -195,7 +195,6 @@ Numeric ^^^^^^^ - Bug in :meth:`DataFrame.quantile`, :meth:`DataFrame.sort_values` causing incorrect subs...
- [x] closes #38434 - [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/38504
2020-12-15T16:33:25Z
2020-12-17T13:46:46Z
2020-12-17T13:46:45Z
2020-12-18T09:35:17Z
DOC: Corrected Out-of-date list of sort algorithms
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index bd5cf43e19e9f..918d96cd03112 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -561,7 +561,7 @@ def argsort( ascending : bool, default True Whether the indices should result in an ascending ...
Reference Issues/PRs Fixes: #38287 Implemented changes: Changed the docstring of all the methods using np.sort as it now includes one additional stable algorithm
https://api.github.com/repos/pandas-dev/pandas/pulls/38503
2020-12-15T16:05:37Z
2020-12-30T13:49:06Z
2020-12-30T13:49:06Z
2020-12-30T13:49:09Z
Backport PR #38480 on branch 1.2.x (CI: Supress moto server logs in tests)
diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py index bcc666a88e3be..5d4705dbe7d77 100644 --- a/pandas/tests/io/conftest.py +++ b/pandas/tests/io/conftest.py @@ -50,8 +50,7 @@ def s3_base(worker_id): pytest.importorskip("s3fs") pytest.importorskip("boto3") requests = pytest.importo...
Backport PR #38480: CI: Supress moto server logs in tests
https://api.github.com/repos/pandas-dev/pandas/pulls/38501
2020-12-15T14:58:17Z
2020-12-15T17:18:08Z
2020-12-15T17:18:08Z
2020-12-15T17:18:09Z
Backport PR #38494 on branch 1.2.x (TST: don't use global fixture in the base extension tests)
diff --git a/pandas/_testing.py b/pandas/_testing.py index 469f5e1bed6ba..73b1dcf31979f 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -108,6 +108,8 @@ + BYTES_DTYPES ) +NULL_OBJECTS = [None, np.nan, pd.NaT, float("nan"), pd.NA] + # set testing_mode _testing_mode_warnings = (DeprecationWarning,...
Backport PR #38494: TST: don't use global fixture in the base extension tests
https://api.github.com/repos/pandas-dev/pandas/pulls/38500
2020-12-15T14:57:39Z
2020-12-15T16:30:28Z
2020-12-15T16:30:28Z
2020-12-15T16:30:28Z
DOC: Fix incorrect doc string for infer_dtype (#38375)
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index c5fb20596d7b6..4e451fc33b055 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1313,7 +1313,7 @@ def infer_dtype(value: object, skipna: bool = True) -> str: 'boolean' >>> infer_dtype([True, False, np.nan]) - 'mixed' + 'boole...
- [x] closes #38375 - ~~tests added / passed~~ - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - ~~whatsnew entry~~ A minor fix to https://github.com/pandas-dev/pandas/issues/38375 correcting the output of an example in `infer_dtype` doc string
https://api.github.com/repos/pandas-dev/pandas/pulls/38499
2020-12-15T14:30:52Z
2020-12-16T02:14:19Z
2020-12-16T02:14:18Z
2020-12-16T02:14:22Z
Backport PR #38478 on branch 1.2.x (CI: Use --strict-markers for pytest 6.0.2)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2848437a76a16..48a3c464b8fe2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,7 @@ jobs: - name: Testing docstring validation script run: | source activate pandas-dev - pytest --capture=no...
Backport PR #38478: CI: Use --strict-markers for pytest 6.0.2
https://api.github.com/repos/pandas-dev/pandas/pulls/38497
2020-12-15T10:47:33Z
2020-12-15T13:07:39Z
2020-12-15T13:07:39Z
2020-12-15T13:07:39Z
Backport PR #38486 on branch 1.2.x (DOC: Fix missing ipython block in user_guide/indexing.rst)
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 817ea3445f995..0a11344d575f1 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -380,6 +380,8 @@ NA values in a boolean array propagate as ``False``: .. versionchanged:: 1.0.2 +.. ipy...
Backport PR #38486: DOC: Fix missing ipython block in user_guide/indexing.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/38496
2020-12-15T09:03:17Z
2020-12-15T12:16:37Z
2020-12-15T12:16:37Z
2020-12-15T12:16:37Z
TST: don't use global fixture in the base extension tests
diff --git a/pandas/_testing.py b/pandas/_testing.py index 469f5e1bed6ba..73b1dcf31979f 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -108,6 +108,8 @@ + BYTES_DTYPES ) +NULL_OBJECTS = [None, np.nan, pd.NaT, float("nan"), pd.NA] + # set testing_mode _testing_mode_warnings = (DeprecationWarning,...
Follow-up on https://github.com/pandas-dev/pandas/pull/37867. In the discussion about using this fixture, I forgot that we should not use global pandas fixtures in those tests, but only the ones that are defined in the local /pandas/tests/extension/conftest.py, otherwise this doesn't work for downstream projects (eg ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/38494
2020-12-15T08:00:28Z
2020-12-15T14:57:09Z
2020-12-15T14:57:09Z
2020-12-15T15:01:31Z
TYP: func argument to DataFrame.apply, DataFrame.applymap, core.apply.frame_apply
diff --git a/pandas/_typing.py b/pandas/_typing.py index 99c46d21844f3..c79942c48509e 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -133,6 +133,8 @@ "Resampler", ] +PythonFuncType = Callable[[Any], Any] + # filenames and file-like-objects Buffer = Union[IO[AnyStr], RawIOBase, BufferedIOBase, TextI...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Spinning off from #38416, xref https://github.com/pandas-dev/pandas/pull/38416#discussion_r542911035
https://api.github.com/repos/pandas-dev/pandas/pulls/38493
2020-12-15T06:53:44Z
2020-12-18T23:06:46Z
2020-12-18T23:06:46Z
2020-12-18T23:06:51Z
BUG: CategoricalIndex.reindex fails when Index passed with labels all in category
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 57dd1d05a274e..719b5b5433f9c 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -170,7 +170,7 @@ Bug fixes Categorical ^^^^^^^^^^^ -- +- Bug in ``CategoricalIndex.reindex`` failed when ``Index`` passe...
- [x] closes #28690 - [x] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/38492
2020-12-15T05:59:55Z
2020-12-17T23:40:05Z
2020-12-17T23:40:05Z
2020-12-18T11:23:46Z
Updated README
diff --git a/README.md b/README.md index 6d1d890c54093..f238e219bd3d8 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ The source code is currently hosted on GitHub at: https://github.com/pandas-dev/pandas Binary installers for the latest released version are available at the [Python -package index](https:/...
I have updated the README with the following - 1. Added Links for Conda, Cython and AQR. 2. Added a brief description for what all the Dependencies do so people who are unfamiliar with them can atleast get a basic idea about them 3. Corrected PyPI spelling in one instance
https://api.github.com/repos/pandas-dev/pandas/pulls/38491
2020-12-15T04:52:09Z
2020-12-16T16:18:40Z
2020-12-16T16:18:40Z
2020-12-16T17:31:23Z
REF: share astype code in MaskedArray
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 44cc108ed9cfd..ea2ca1f70d414 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -10,7 +10,6 @@ from pandas.core.dtypes.common import ( is_bool_dtype, - is_extension_array_dtype, is_float, ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @jorisvandenbossche i dont know if this is the optimal way to do this, but it seems like there is a lot of share-ability here.
https://api.github.com/repos/pandas-dev/pandas/pulls/38490
2020-12-15T04:36:05Z
2020-12-21T23:47:06Z
2020-12-21T23:47:06Z
2020-12-22T00:11:44Z
REF: simplify maybe_upcast_putmask
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 63445d0e1598d..859783ace5006 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -419,9 +419,7 @@ def maybe_cast_to_extension_array( return result -def maybe_upcast_putmask( - result: np.ndarray, mask: np.ndar...
https://api.github.com/repos/pandas-dev/pandas/pulls/38487
2020-12-15T01:49:49Z
2020-12-16T02:13:25Z
2020-12-16T02:13:25Z
2020-12-16T02:19:42Z
DOC: Fix missing ipython block in user_guide/indexing.rst
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index 2bc7e13e39ec4..6698a79f2741f 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -380,6 +380,8 @@ NA values in a boolean array propagate as ``False``: .. versionchanged:: 1.0.2 +.. ipy...
- [x] closes #38485
https://api.github.com/repos/pandas-dev/pandas/pulls/38486
2020-12-15T01:31:15Z
2020-12-15T09:02:13Z
2020-12-15T09:02:13Z
2020-12-15T16:00:38Z
REF: share .astype code for astype_nansafe + TDA.astype
diff --git a/pandas/core/arrays/timedeltas.py b/pandas/core/arrays/timedeltas.py index c51882afc4871..93c9567380f7f 100644 --- a/pandas/core/arrays/timedeltas.py +++ b/pandas/core/arrays/timedeltas.py @@ -24,6 +24,7 @@ ) from pandas.compat.numpy import function as nv +from pandas.core.dtypes.cast import astype_td64...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This changes TDI.astype and TDA.astype in the cast with no-NAs to return float64 instead of int64, matching Series behavior.
https://api.github.com/repos/pandas-dev/pandas/pulls/38481
2020-12-15T00:00:31Z
2020-12-16T01:00:01Z
2020-12-16T01:00:01Z
2020-12-16T21:06:43Z
CI: Supress moto server logs in tests
diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py index bcc666a88e3be..5d4705dbe7d77 100644 --- a/pandas/tests/io/conftest.py +++ b/pandas/tests/io/conftest.py @@ -50,8 +50,7 @@ def s3_base(worker_id): pytest.importorskip("s3fs") pytest.importorskip("boto3") requests = pytest.importo...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry https://github.com/pandas-dev/pandas/pull/38096 originally did not do the trick. This change worked for me locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/38480
2020-12-14T23:54:45Z
2020-12-15T14:58:04Z
2020-12-15T14:58:04Z
2020-12-29T02:56:46Z
REF: share unboxing code
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 63445d0e1598d..e91622b773724 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -3,7 +3,7 @@ """ from contextlib import suppress -from datetime import date, datetime, timedelta +from datetime import datetime, timedel...
https://api.github.com/repos/pandas-dev/pandas/pulls/38479
2020-12-14T23:24:24Z
2020-12-16T02:12:19Z
2020-12-16T02:12:19Z
2020-12-16T02:17:58Z
CI: Use --strict-markers for pytest 6.0.2
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2848437a76a16..48a3c464b8fe2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -64,7 +64,7 @@ jobs: - name: Testing docstring validation script run: | source activate pandas-dev - pytest --capture=no...
closes #38483 Found in the npdev build. Noted in pytest changlog: https://docs.pytest.org/en/stable/changelog.html#deprecations
https://api.github.com/repos/pandas-dev/pandas/pulls/38478
2020-12-14T23:15:52Z
2020-12-15T00:14:35Z
2020-12-15T00:14:35Z
2020-12-15T10:47:21Z
ENH: skip_blank_columns in read_csv
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 7a56b03326762..f9e76e6ce83cf 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -74,7 +74,7 @@ from pandas.core.series import Series from pandas.core.tools import datetimes as tools -from pandas.io.common import IOHandles, get_handle, strin...
- [ ] closes #34231 - [ ] adds skip_blank_columns functionality - [ ] updates API documentation
https://api.github.com/repos/pandas-dev/pandas/pulls/38477
2020-12-14T23:02:01Z
2021-03-10T05:44:40Z
null
2021-03-10T05:44:41Z
BENCH: Fix CategoricalIndexing benchmark
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 48a3c464b8fe2..e8834bd509bf0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,14 +74,10 @@ jobs: asv check -E existing git remote add upstream https://github.com/pandas-dev/pandas.git git fetch u...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This benchmark behavior changed after https://github.com/pandas-dev/pandas/pull/38372 Additionally, exploring if its feasible to always run the be...
https://api.github.com/repos/pandas-dev/pandas/pulls/38476
2020-12-14T22:13:59Z
2020-12-16T01:01:43Z
2020-12-16T01:01:43Z
2020-12-16T21:03:48Z
DOC: Add doc-string examples for pd.read_sql using custom parse_dates arg values
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 3eeee61f62a7e..d2f20a91cc654 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -178,6 +178,10 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then pytest -q --doctest-modules pandas/core/strings/ RET=$(($RET + $?)) ; echo $MSG "DONE" + M...
follow on PR for #37823 - [x] 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/38475
2020-12-14T22:08:33Z
2020-12-17T02:18:51Z
2020-12-17T02:18:51Z
2020-12-17T02:18:57Z
BUG: require arraylike in infer_dtype_from_array
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index abcc60a15c641..8c795c2aad224 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -674,7 +674,7 @@ def infer_dtype_from(val, pandas_dtype: bool = False) -> Tuple[DtypeObj, Any]: If False, scalar/array belongs to p...
- [ ] 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/38473
2020-12-14T21:41:34Z
2020-12-22T01:03:11Z
2020-12-22T01:03:11Z
2020-12-22T01:03:45Z
BUG: disallow scalar in Categorical constructor
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 64b9a11b1980d..15f4a2677bf57 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -144,6 +144,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ +- Deprecating allowing scalars passed to the :class:`Categ...
- [x] closes #38433 - [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/38472
2020-12-14T21:35:02Z
2020-12-23T18:44:29Z
2020-12-23T18:44:29Z
2020-12-23T19:18:59Z
DOC: fixes for assert_frame_equal check_freq argument
diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst index a1612117072a5..b1f8389420cd9 100644 --- a/doc/source/whatsnew/v1.2.1.rst +++ b/doc/source/whatsnew/v1.2.1.rst @@ -10,6 +10,20 @@ including other versions of pandas. .. ------------------------------------------------------------------...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is just a minor documentation change to fix the `versionadded` tag on the `check_freq` argument to `assert_frame_equal` and also to add a descri...
https://api.github.com/repos/pandas-dev/pandas/pulls/38471
2020-12-14T21:12:10Z
2021-01-01T23:10:06Z
2021-01-01T23:10:05Z
2021-01-03T01:38:30Z
Added Link to Conda Website in the README
diff --git a/README.md b/README.md index 6d1d890c54093..647ef96fb0bd6 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ The source code is currently hosted on GitHub at: https://github.com/pandas-dev/pandas Binary installers for the latest released version are available at the [Python -package index](https:/...
Added Link to Conda Website in the README for easy access especially for first-timers - [ ] 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/38470
2020-12-14T20:05:51Z
2020-12-15T04:32:52Z
null
2020-12-15T04:32:58Z
TYP : DataFrame.(merge, join) core.reshape.merge.(merge, ...) (easy)
diff --git a/pandas/_typing.py b/pandas/_typing.py index 924fc323584b0..99c46d21844f3 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -95,6 +95,7 @@ IndexLabel = Union[Label, Sequence[Label]] Level = Union[Label, int] Shape = Tuple[int, ...] +Suffixes = Tuple[str, str] Ordered = Optional[bool] JSONSerial...
- [ ] closes #xxxx - [ ] 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/38468
2020-12-14T18:46:35Z
2020-12-16T00:55:18Z
2020-12-16T00:55:18Z
2020-12-16T01:09:31Z
CLN: unnecessary checks
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 0a2ef2fb29b96..27110fe1f8439 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -321,7 +321,7 @@ def __init__( if is_categorical_dtype(values): if dtype.categories is Non...
https://api.github.com/repos/pandas-dev/pandas/pulls/38467
2020-12-14T17:57:27Z
2020-12-14T20:36:56Z
2020-12-14T20:36:56Z
2020-12-14T21:18:13Z
CLN: astype_nansafe require dtype object
diff --git a/pandas/core/arrays/sparse/array.py b/pandas/core/arrays/sparse/array.py index 8268ebb48a017..575ae7531de2c 100644 --- a/pandas/core/arrays/sparse/array.py +++ b/pandas/core/arrays/sparse/array.py @@ -1061,7 +1061,7 @@ def astype(self, dtype=None, copy=True): else: return self....
https://api.github.com/repos/pandas-dev/pandas/pulls/38466
2020-12-14T17:51:30Z
2020-12-14T20:37:09Z
2020-12-14T20:37:09Z
2020-12-14T21:17:53Z
Backport PR #38427 on branch 1.2.x (REGR: Assigning label with registered EA dtype raises)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 4906288cc07d9..e2521cedb64cc 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -858,7 +858,7 @@ Other - Bug in :meth:`Index.drop` raising ``InvalidIndexError`` when index has duplicates (:issue:`38051`)...
Backport PR #38427: REGR: Assigning label with registered EA dtype raises
https://api.github.com/repos/pandas-dev/pandas/pulls/38464
2020-12-14T14:11:32Z
2020-12-14T16:11:17Z
2020-12-14T16:11:17Z
2020-12-14T16:11:17Z
Update 10min.rst
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index cf548ba5d1133..e37d4cc05c8c7 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -722,6 +722,8 @@ We use the standard convention for referencing the matplotlib API: plt.close("all") +The :meth:...
Added Links for Matplotlib Close along with a line explaining what it does. I had faced difficulty when I read it for the first time and had to google search what close does - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --di...
https://api.github.com/repos/pandas-dev/pandas/pulls/38462
2020-12-14T12:59:39Z
2020-12-14T20:38:03Z
2020-12-14T20:38:03Z
2020-12-15T04:31:51Z
TYP: DataFrame.to_gbq, DataFrame.to_html (easy: copy-paste from format module)
diff --git a/pandas/_typing.py b/pandas/_typing.py index 09c490e64957d..924fc323584b0 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -146,5 +146,12 @@ CompressionOptions = Optional[Union[str, CompressionDict]] -# type of float formatter in DataFrameFormatter +# types in DataFrameFormatter +FormattersTyp...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Spinning off from #38416
https://api.github.com/repos/pandas-dev/pandas/pulls/38461
2020-12-14T04:28:12Z
2020-12-14T14:24:42Z
2020-12-14T14:24:42Z
2020-12-14T15:43:46Z
REF: roll DatetimeBlock.astype into Block._astype
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 031d28b19b138..b9558daf05ad2 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -654,6 +654,16 @@ def _astype(self, dtype: DtypeObj, copy: bool) -> ArrayLike: return Categorical(values,...
Anything past this requires getting a handle on #36153.
https://api.github.com/repos/pandas-dev/pandas/pulls/38460
2020-12-14T04:13:09Z
2020-12-14T14:18:16Z
2020-12-14T14:18:16Z
2021-11-20T23:21:31Z
REF: simplify _sanitize_column
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d698edbb0b8ad..4cc7a21ad2964 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3160,6 +3160,8 @@ def __setitem__(self, key, value): self._setitem_frame(key, value) elif isinstance(key, (Series, np.ndarray, list, Index)):...
It gets called indirectly from `iloc._setitem_with_indexer`, which we're trying to simplify
https://api.github.com/repos/pandas-dev/pandas/pulls/38459
2020-12-14T04:08:07Z
2020-12-14T17:59:46Z
2020-12-14T17:59:46Z
2020-12-14T18:01:21Z
Backport PR #38141 on branch 1.2.x (BUG: do not stringify file-like objects)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bc7f5b8174573..4906288cc07d9 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -746,6 +746,7 @@ I/O - :meth:`read_fwf` was inferring compression with ``compression=None`` which was not consistent with t...
Backport PR #38141: BUG: do not stringify file-like objects
https://api.github.com/repos/pandas-dev/pandas/pulls/38458
2020-12-14T01:10:30Z
2020-12-14T10:24:49Z
2020-12-14T10:24:49Z
2020-12-14T10:24:50Z
STYLE: use types_or in pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 717334bfe1299..e4ea29aef2736 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +minimum_pre_commit_version: '2.9.2' repos: - repo: https://github.com/python/black rev: 20.8b1 @@ -21,10 +22,8 @@ repos: rev...
- [x] closes #38022 - [ ] 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/38457
2020-12-13T23:51:27Z
2020-12-16T00:46:50Z
2020-12-16T00:46:50Z
2020-12-16T00:46:54Z
DOC: update wording about when xlrd engine can be used
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 965833c013c03..eba097cd8c345 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -2820,15 +2820,40 @@ parse HTML tables in the top-level pandas io function ``read_html``. Excel files ----------- -The :func:`~p...
See https://github.com/pandas-dev/pandas/issues/38424#issuecomment-744043899.
https://api.github.com/repos/pandas-dev/pandas/pulls/38456
2020-12-13T18:18:03Z
2020-12-23T16:48:12Z
2020-12-23T16:48:12Z
2020-12-23T17:04:25Z
REF: Separate values-casting from Block.astype
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index ac0564e1f4f79..031d28b19b138 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -10,7 +10,7 @@ from pandas._libs.internals import BlockPlacement from pandas._libs.tslibs import conversion from pand...
This separates Block._astype from Block.astype. Block._astype only requires Block.values, the idea being that we can roll it into astype_nansafe before long.
https://api.github.com/repos/pandas-dev/pandas/pulls/38455
2020-12-13T17:44:13Z
2020-12-13T23:41:35Z
2020-12-13T23:41:34Z
2020-12-14T00:36:08Z
ENH: Improve error message when names and usecols do not match for read_csv with engine=c
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d86c1b7911528..1246d89db9960 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -20,7 +20,7 @@ Other enhancements ^^^^^^^^^^^^^^^^^^ - Added :meth:`MultiIndex.dtypes` (:issue:`37062`) -- +- Improve er...
- [x] closes #29042 - [x] tests added / passed This case was already covered with differing error messages. I adjusted the message accordingly - [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/38452
2020-12-13T16:21:43Z
2020-12-13T17:37:04Z
2020-12-13T17:37:04Z
2020-12-13T18:29:29Z
Revert "BUG: first("1M") returning two months when first day is last day of month"
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index ac7ef462cdea6..bc7f5b8174573 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -607,7 +607,6 @@ Datetimelike - Bug in :meth:`Series.isin` with ``datetime64[ns]`` dtype and :meth:`.DatetimeIndex.isin` fa...
Reverts pandas-dev/pandas#38331
https://api.github.com/repos/pandas-dev/pandas/pulls/38448
2020-12-13T14:08:12Z
2020-12-13T15:45:02Z
2020-12-13T15:45:02Z
2020-12-13T15:45:08Z
BUG: first("2M") returning incorrect results
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d86c1b7911528..4202c01dfe551 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -156,7 +156,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ - Bug in :class:`DataFrame` and :class:`Series` constructors somet...
- [x] closes #29623 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This would fix #29623 for offsets with n > 1 cc @simonjayhawkins
https://api.github.com/repos/pandas-dev/pandas/pulls/38446
2020-12-13T13:37:15Z
2020-12-19T02:14:08Z
2020-12-19T02:14:08Z
2020-12-19T17:21:21Z
BUG: read_csv usecols and names parameters inconsistent between c and python
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d86c1b7911528..26e548f519ecd 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -217,6 +217,7 @@ MultiIndex I/O ^^^ +- Bug in :func:`read_csv` not accepting ``usecols`` with different length than ``na...
- [x] closes #16469 - [x] tests added / passed The tests added by @gfyoung which were marked as xfail are passing now. - [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/38445
2020-12-13T11:17:41Z
2020-12-13T17:08:29Z
2020-12-13T17:08:28Z
2020-12-13T17:15:09Z
CI: add slash dispatch workflow to trigger pre-commit checks with comment
diff --git a/.github/workflows/autoupdate-pre-commit-config.yml b/.github/workflows/autoupdate-pre-commit-config.yml index 42d6ae6606442..801e063f72726 100644 --- a/.github/workflows/autoupdate-pre-commit-config.yml +++ b/.github/workflows/autoupdate-pre-commit-config.yml @@ -23,7 +23,7 @@ jobs: - name: Update p...
This would be an on-demand bot to run pre-commit checks on a PR, which can be triggered by commenting ``` @github-actions pre-commit ``` on a pull request (see [here](https://github.com/nbQA-dev/nbQA/pull/518) for a demo). Use case: if a PR is submitted and is good-to-go except for some linting error, we can...
https://api.github.com/repos/pandas-dev/pandas/pulls/38444
2020-12-13T11:16:20Z
2020-12-22T18:39:27Z
2020-12-22T18:39:27Z
2020-12-23T08:06:55Z
BUG: Fix Index.__repr__ when `display.max_seq_items` = 1
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index d62356e45b723..a4260965db442 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -217,6 +217,7 @@ MultiIndex I/O ^^^ +- Bug in :meth:`Index.__repr__` when ``display.max_seq_items=1`` (:issue:`38415`) ...
- [x] closes #38415 - [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/38443
2020-12-13T09:10:20Z
2020-12-28T18:38:47Z
2020-12-28T18:38:47Z
2020-12-28T18:38:55Z
BENCH/REF: parametrize CSV benchmarks on engine
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 9bcd125f56bbb..24d21ad6a633d 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -1,4 +1,4 @@ -from io import StringIO +from io import BytesIO, StringIO import random import string @@ -146,10 +146,10 @...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The diff in basic PR implementing the `pyarrow`-based CSV engine (#38370) is quite big. A part of that PR is a small refactor of the CSV I/O benchmar...
https://api.github.com/repos/pandas-dev/pandas/pulls/38442
2020-12-13T06:57:01Z
2020-12-17T01:23:05Z
2020-12-17T01:23:05Z
2020-12-17T01:43:28Z
TYP: pandas/core/frame.py (easy: Axis/Level)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b4ef6e8eaf64f..0dff1305357b2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4050,7 +4050,7 @@ def _reindex_index( new_index, method, copy: bool, - level, + level: Level, fill_value=np.nan, ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Splitting this away from #38416
https://api.github.com/repos/pandas-dev/pandas/pulls/38441
2020-12-13T05:37:03Z
2020-12-13T22:04:41Z
2020-12-13T22:04:41Z
2020-12-13T22:04:47Z
TYP: pandas/core/frame.py (easy: bool/str)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fd7820196f9a9..650809ebcf771 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1440,7 +1440,7 @@ def to_numpy( return result - def to_dict(self, orient="dict", into=dict): + def to_dict(self, orient: str = "dict", into=dict...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Splitting this away from #38416
https://api.github.com/repos/pandas-dev/pandas/pulls/38440
2020-12-13T04:39:41Z
2020-12-13T17:22:09Z
2020-12-13T17:22:09Z
2020-12-13T17:22:09Z
BUG: add sorting_reamaining=True to avoid IndexError GH25831
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bea650c1b50fd..d81f93cfb43d8 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4440,11 +4440,9 @@ def sort_index( inplace = validate_bool_kwarg(inplace, "inplace") axis = self._get_axis_number(axis) target =...
- [x] closes #25831 - [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/38438
2020-12-13T02:10:33Z
2021-02-11T01:39:56Z
null
2021-02-11T01:39:57Z
Backport PR #38331 on branch 1.2.x (BUG: first("1M") returning two months when first day is last day of month)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index af9219bc25931..b9f23a0180007 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -606,6 +606,7 @@ Datetimelike - Bug in :meth:`Series.isin` with ``datetime64[ns]`` dtype and :meth:`.DatetimeIndex.isin` fa...
Backport PR #38331: BUG: first("1M") returning two months when first day is last day of month
https://api.github.com/repos/pandas-dev/pandas/pulls/38436
2020-12-12T23:32:42Z
2020-12-13T12:46:11Z
null
2020-12-13T12:46:12Z
Backport PR #38247 on branch 1.2.x (BUG: Limited available colors)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index af9219bc25931..bc7f5b8174573 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -308,6 +308,7 @@ Other enhancements - Improved error reporting for subsetting columns of a :class:`.DataFrameGroupBy` with ...
Backport PR #38247: BUG: Limited available colors
https://api.github.com/repos/pandas-dev/pandas/pulls/38435
2020-12-12T23:32:26Z
2020-12-13T17:09:57Z
2020-12-13T17:09:57Z
2020-12-13T19:19:45Z
Added test_set_index_dtypes_on_empty_DataFrames to check dtypes after…
diff --git a/pandas/tests/frame/methods/test_set_index.py b/pandas/tests/frame/methods/test_set_index.py index aea8caff5936b..79165145f5baf 100644 --- a/pandas/tests/frame/methods/test_set_index.py +++ b/pandas/tests/frame/methods/test_set_index.py @@ -494,6 +494,14 @@ def test_set_index_period(self): tm.asser...
… using set_index on a DataFrame with empty Series that have dtype - [x] closes #38419 - [x] tests added / passed test_set_index_dtypes_on_empty_DataFrames - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry. Added a test to check that dtypes don'...
https://api.github.com/repos/pandas-dev/pandas/pulls/38432
2020-12-12T21:33:21Z
2020-12-12T22:11:03Z
null
2020-12-12T22:11:04Z
BUG: read_csv raising TypeError for engine=c with names and parse_dates
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index ab9f303bec6aa..30f71201ed3dc 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -147,7 +147,7 @@ MultiIndex I/O ^^^ -- +- Bug in :func:`read_csv` raising ``TypeError`` when ``names`` and ``parse_dates...
- [x] closes #33699 - [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/38431
2020-12-12T21:04:30Z
2020-12-12T23:03:53Z
2020-12-12T23:03:53Z
2020-12-12T23:09:31Z