title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
TST: Add tests string series min max
diff --git a/pandas/tests/series/test_reductions.py b/pandas/tests/series/test_reductions.py index 8fb51af70f3a0..151383ba18717 100644 --- a/pandas/tests/series/test_reductions.py +++ b/pandas/tests/series/test_reductions.py @@ -9,6 +9,14 @@ import pandas._testing as tm +@pytest.mark.parametrize("operation, expect...
Add tests for max and min aggregation at string series In line with #31746 - [X] closes #31746 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/45505
2022-01-20T19:10:58Z
2022-01-23T00:07:04Z
2022-01-23T00:07:04Z
2022-01-23T22:40:57Z
Backport PR #45204 on branch 1.4.x (CI: Use broader condition to maybe catch ResourceWarning from Matplotlib)
diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index 44a62e607555e..f9443f80e585c 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -2,7 +2,7 @@ from contextlib import contextmanager import re -import subprocess +import sys from typing import ( Sequence,...
Backport PR #45204: CI: Use broader condition to maybe catch ResourceWarning from Matplotlib
https://api.github.com/repos/pandas-dev/pandas/pulls/45504
2022-01-20T18:48:29Z
2022-01-20T21:36:03Z
2022-01-20T21:36:03Z
2022-01-20T21:36:03Z
BLD: Fix pydata-sphix-theme version GH45374
diff --git a/environment.yml b/environment.yml index 15dd329f80deb..9b8eec70a30e0 100644 --- a/environment.yml +++ b/environment.yml @@ -120,6 +120,6 @@ dependencies: - tabulate>=0.8.3 # DataFrame.to_markdown - natsort # DataFrame.sort_values - pip: - - git+https://github.com/pydata/pydata-sphinx-theme.gi...
- [x] closes #45374 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45503
2022-01-20T18:30:51Z
2022-01-23T02:30:15Z
2022-01-23T02:30:14Z
2022-01-25T13:04:59Z
Backport PR #45496 on branch 1.4.x (BUG: allow DBAPI2 object #45416)
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index f7fdc47afa8d1..8694e7ff62118 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -742,6 +742,7 @@ def pandasSQL_builder(con, schema: str | None = None): provided parameters. """ import sqlite3 + import warnings if isinstance(con, sqlite...
Backport PR #45496: BUG: allow DBAPI2 object #45416
https://api.github.com/repos/pandas-dev/pandas/pulls/45502
2022-01-20T18:22:05Z
2022-01-20T20:27:31Z
2022-01-20T20:27:31Z
2022-01-20T20:27:31Z
REF: mask values in loc.__setitem__ with bool indexer
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 5f9bc142c5836..4a251ae0d93da 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -53,6 +53,7 @@ is_empty_indexer, is_exact_shape_match, is_list_like_indexer, + is_scalar_indexer, length_of_indexer, ) from pan...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry The motivation here is the 1-line change in Block.setitem, which will enable us to sha...
https://api.github.com/repos/pandas-dev/pandas/pulls/45501
2022-01-20T18:09:48Z
2022-01-31T00:19:28Z
2022-01-31T00:19:28Z
2022-01-31T00:21:26Z
BUG: Adds newline after info() call on empty dataframe
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 1ae76984484af..3a8bbf420da1a 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -227,7 +227,7 @@ MultiIndex I/O ^^^ - Bug in :meth:`DataFrame.to_stata` where no error is raised if the :class:`DataFrame...
- [ ] closes #45494 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry This fix improves the formatting of the output of pd.DataFrame.info() when called on...
https://api.github.com/repos/pandas-dev/pandas/pulls/45498
2022-01-20T16:07:41Z
2022-01-22T00:40:54Z
2022-01-22T00:40:53Z
2022-01-22T00:40:57Z
BUG: allow DBAPI2 object #45416
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index b723eea334e84..fcb3f5177ae3f 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -731,6 +731,7 @@ def pandasSQL_builder(con, schema: str | None = None): provided parameters. """ import sqlite3 + import warnings if isinstance(con, sqlite...
- [x] closes #45416
https://api.github.com/repos/pandas-dev/pandas/pulls/45496
2022-01-20T15:44:02Z
2022-01-20T18:21:24Z
2022-01-20T18:21:24Z
2022-01-20T18:40:39Z
Backport PR #45408 on branch 1.4.x (DOC: Clean up redirects & dead links)
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 77c8d56765e5e..7bbfc010fbfb2 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -28,7 +28,7 @@ Testing Failing tests -------------- -See https://docs.pytest.org/en/latest/s...
Backport PR #45408
https://api.github.com/repos/pandas-dev/pandas/pulls/45492
2022-01-20T14:25:35Z
2022-01-20T18:22:25Z
2022-01-20T18:22:25Z
2022-01-20T19:20:43Z
Backport PR #45451 on branch 1.4.x (Add back __array_wrap__ for dask compatibility)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 8a08ee68fa577..cca8ed9789518 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2071,6 +2071,41 @@ def empty(self) -> bool_t: def __array__(self, dtype: npt.DTypeLike | None = None) -> np.ndarray: return np.asarray(self._...
Backport PR #45451: Add back __array_wrap__ for dask compatibility
https://api.github.com/repos/pandas-dev/pandas/pulls/45491
2022-01-20T13:47:07Z
2022-01-20T15:26:40Z
2022-01-20T15:26:40Z
2022-01-20T15:26:40Z
Bug tojson memleak
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 327432de0a3f7..363d4b57544a9 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -966,6 +966,7 @@ I/O - Bug in :func:`read_json` raising ``ValueError`` when attempting to parse json strings containing ":/...
- [x] closes #43877 - [x] tests passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Fix memory leak when calling `to_json` appeared in 1.1.0. From these [changes](https://github...
https://api.github.com/repos/pandas-dev/pandas/pulls/45489
2022-01-20T11:23:06Z
2022-01-22T01:23:08Z
2022-01-22T01:23:07Z
2022-01-22T23:15:24Z
DOC: Update import statement
diff --git a/pandas/tseries/holiday.py b/pandas/tseries/holiday.py index 10b09cbc34443..365406617ab46 100644 --- a/pandas/tseries/holiday.py +++ b/pandas/tseries/holiday.py @@ -177,35 +177,37 @@ class from pandas.tseries.offsets Examples -------- - >>> from pandas.tseries.holiday import Holid...
Corrected Conventional import statements - [x] xref https://github.com/pandas-dev/pandas/issues/21749 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45485
2022-01-20T06:33:49Z
2022-01-21T22:24:43Z
2022-01-21T22:24:43Z
2022-01-21T22:24:47Z
BUG: IntervalArray.__setitem__ with nan raise TypeError, not ValueError
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 1ae76984484af..c8b87519cc335 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -203,7 +203,7 @@ Strings Interval ^^^^^^^^ -- +- Bug in :meth:`IntervalArray.__setitem__` when setting ``np.nan`` into a...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45484
2022-01-20T04:38:10Z
2022-01-22T00:19:39Z
2022-01-22T00:19:39Z
2022-01-22T00:59:51Z
Rename to main
diff --git a/doc/source/getting_started/comparison/comparison_with_sql.rst b/doc/source/getting_started/comparison/comparison_with_sql.rst index 0596687b4d15e..0a891a4c6d2d7 100644 --- a/doc/source/getting_started/comparison/comparison_with_sql.rst +++ b/doc/source/getting_started/comparison/comparison_with_sql.rst @@ ...
- [ ] see #39577 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45483
2022-01-20T04:02:10Z
2022-01-21T21:41:09Z
2022-01-21T21:41:09Z
2022-01-21T21:41:54Z
closes #44914 by changing the path object to string if it is of io.BufferWriter
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index fa19a49b7ff45..5c36bd83adcce 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -232,6 +232,8 @@ I/O ^^^ - Bug in :meth:`DataFrame.to_stata` where no error is raised if the :class:`DataFrame` contains `...
Changes the path object in to_parquet to string type if it is io.BufferWriter type. PyArrow does not remove the partial file on disk if the path is not string type. - [x] closes #44914 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/...
https://api.github.com/repos/pandas-dev/pandas/pulls/45480
2022-01-20T00:00:45Z
2022-01-23T00:21:23Z
2022-01-23T00:21:22Z
2022-01-23T16:35:15Z
BUG: ser.loc[range] = foo treating key as positional
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 4e73ea348dfde..270a58c33cb8a 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -261,6 +261,7 @@ Indexing - Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`DataFrame` with a single...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45479
2022-01-19T23:22:18Z
2022-01-27T00:39:19Z
2022-01-27T00:39:19Z
2022-01-27T02:18:02Z
CI: Don't run DataManager/Azure tests on only doc/ dir changes
diff --git a/.github/workflows/datamanger.yml b/.github/workflows/datamanger.yml index 3fc515883a225..e796c536688b1 100644 --- a/.github/workflows/datamanger.yml +++ b/.github/workflows/datamanger.yml @@ -9,6 +9,8 @@ on: branches: - main - 1.4.x + paths-ignore: + - "doc/**" env: ENV_FIL...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/45477
2022-01-19T21:13:42Z
2022-01-23T03:26:47Z
2022-01-23T03:26:47Z
2022-01-23T03:26:49Z
REF: merge_asof dont use values_for_argsort
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 9690efb57e87b..d2d844c05dc71 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -76,6 +76,7 @@ from pandas.core import groupby import pandas.core.algorithms as algos from pandas.core.arrays import ExtensionArr...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry cc @mroeschke @jreback Original motivation here was to remove an anti-pattern usage ...
https://api.github.com/repos/pandas-dev/pandas/pulls/45475
2022-01-19T20:35:19Z
2022-01-25T17:31:06Z
2022-01-25T17:31:06Z
2022-01-25T19:29:28Z
Backport PR #45283 on branch 1.4.x (BUG: do not replace all nulls with "NaN"-string in Series index)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 485ad4cedcacb..bb93ce1a12b2a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -1050,6 +1050,7 @@ Other - Bug in :meth:`Series.replace` raising ``ValueError`` when using ``regex=True`` with a :class:`Se...
Backport PR #45283: BUG: do not replace all nulls with "NaN"-string in Series index
https://api.github.com/repos/pandas-dev/pandas/pulls/45473
2022-01-19T14:08:00Z
2022-01-19T18:04:53Z
2022-01-19T18:04:53Z
2022-01-19T18:04:54Z
Small doc fix to `usecols` argument
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index bf2d6f0b27e41..f159228b94545 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -119,12 +119,13 @@ those columns will be combined into a ``MultiIndex``. If a subset of data is selected with ``usecols``, index_col ...
Very minor doc changes for `pd.read_excel` argument `usecols`. Remove int option from list (c.f. #29795) and clarify 0-indexing.
https://api.github.com/repos/pandas-dev/pandas/pulls/45471
2022-01-19T09:27:09Z
2022-01-19T23:50:38Z
2022-01-19T23:50:38Z
2022-01-19T23:50:45Z
CI/TST: xfail(strict=False) s3 networking tests
diff --git a/pandas/tests/io/json/test_compression.py b/pandas/tests/io/json/test_compression.py index a752c93a8046a..9ca49b8880929 100644 --- a/pandas/tests/io/json/test_compression.py +++ b/pandas/tests/io/json/test_compression.py @@ -38,6 +38,11 @@ def test_read_zipped_json(datapath): @td.skip_if_not_us_locale ...
Band-aid for https://github.com/pandas-dev/pandas/issues/45433 to ensure more CI stability before https://github.com/pandas-dev/pandas/issues/44584 or alternative is implemented cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/45466
2022-01-19T01:53:36Z
2022-01-19T05:54:13Z
2022-01-19T05:54:13Z
2022-01-19T05:54:16Z
BUG: Boxplots ignore xlabel and boxplot() doesn't support horizontal layout
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index aa519d2053d55..4e73ea348dfde 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -291,6 +291,9 @@ Period Plotting ^^^^^^^^ - Bug in :meth:`DataFrame.plot.barh` that prevented labeling the x-axis and ``x...
- [X] closes #36918 and closes #45463 - [X] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45465
2022-01-19T00:55:35Z
2022-01-24T21:29:53Z
2022-01-24T21:29:53Z
2022-01-24T22:56:07Z
Backport PR #45120: CI: Migrate Python 3.10 testing to Posix GHA/Azure Pipelines
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index b8b85201982d2..f7600a712922d 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -28,14 +28,16 @@ jobs: [actions-38-downstream_compat.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],...
Backport PR #45120 - [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Also backport #45257 & #45323 since this PR sits on top of them ...
https://api.github.com/repos/pandas-dev/pandas/pulls/45464
2022-01-19T00:55:18Z
2022-01-19T14:22:30Z
2022-01-19T14:22:30Z
2022-01-20T20:17:47Z
BUG: Series[bool].__setitem__(BooleanArray)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0c3ad0f7d8d21..706821afeb237 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -216,6 +216,7 @@ Indexing - Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`DataFrame` with a single...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45462
2022-01-19T00:03:45Z
2022-01-23T19:44:31Z
2022-01-23T19:44:31Z
2022-01-23T20:57:27Z
CI: bump type checker versions
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 7141b02cac376..8a74ae14404b3 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -74,7 +74,7 @@ jobs: - name: Install pyright # note: keep version in sync with .pre-commit-config....
null
https://api.github.com/repos/pandas-dev/pandas/pulls/45461
2022-01-18T23:30:58Z
2022-01-22T17:06:33Z
2022-01-22T17:06:32Z
2022-03-09T02:56:20Z
Backport PR #45370 on branch 1.4.x (DOC: add version dropdown to the online doc site)
diff --git a/doc/source/conf.py b/doc/source/conf.py index ea878f052f1f8..e8cd85e3369f7 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -225,11 +225,24 @@ # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the # do...
Backport PR #45370: DOC: add version dropdown to the online doc site
https://api.github.com/repos/pandas-dev/pandas/pulls/45460
2022-01-18T23:11:21Z
2022-01-19T01:07:48Z
2022-01-19T01:07:48Z
2022-01-19T01:07:48Z
CI/DOC: Fix docbuild link warnings (1.4.x manual backport)
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index b7b9cb9ac3aed..f72145475e5a4 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -490,8 +490,7 @@ Writing tests All tests should go ...
Performing this manually since there were some recent changes to `doc/source/ecosystem.rst` and `doc/source/user_guide/cookbook.rst` that were not backported
https://api.github.com/repos/pandas-dev/pandas/pulls/45458
2022-01-18T22:36:25Z
2022-01-18T23:10:16Z
2022-01-18T23:10:16Z
2022-01-20T14:28:49Z
DOC: Update 10min.rst (removes superfluous indirection in zip-statement.)
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index 494d5308b284c..9ccf191194e19 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -554,10 +554,8 @@ Stack tuples = list( zip( - *[ - ["bar", "bar", "baz", "baz", "f...
removes superfluous indirection in zip-statement. (was: #45445)
https://api.github.com/repos/pandas-dev/pandas/pulls/45457
2022-01-18T22:20:39Z
2022-01-19T17:32:58Z
2022-01-19T17:32:58Z
2022-01-19T17:33:12Z
CI/DOC: Fix docbuild link warnings
diff --git a/doc/source/development/contributing_codebase.rst b/doc/source/development/contributing_codebase.rst index d3e48ba0deaee..4826921d4866b 100644 --- a/doc/source/development/contributing_codebase.rst +++ b/doc/source/development/contributing_codebase.rst @@ -490,8 +490,7 @@ Writing tests All tests should go ...
Showing up in recent builds ``` /home/runner/work/pandas/pandas/doc/source/user_guide/advanced.rst:1263: WARNING: hardcoded link 'https://github.com/pandas-dev/pandas/issues/2388' could be replaced by an extlink (try using ':issue:`2388`' instead) /home/runner/work/pandas/pandas/doc/source/user_guide/cookbook.rst:...
https://api.github.com/repos/pandas-dev/pandas/pulls/45456
2022-01-18T20:45:26Z
2022-01-18T23:01:10Z
2022-01-18T23:01:10Z
2022-01-20T14:23:17Z
DOC: Added info on dict of Series with copy=False solution
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d08c59338af9e..1075111996848 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -491,6 +491,8 @@ class DataFrame(NDFrame, OpsMixin): Copy data from inputs. For dict data, the default of None behaves like ``copy=True``. For Da...
- [ ] closes #9216 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45455
2022-01-18T19:40:42Z
2022-01-24T17:32:29Z
2022-01-24T17:32:29Z
2022-01-24T17:32:40Z
CI: py38 builds
diff --git a/pandas/tests/extension/json/array.py b/pandas/tests/extension/json/array.py index 538ca83667ef5..2ce242baf2e5e 100644 --- a/pandas/tests/extension/json/array.py +++ b/pandas/tests/extension/json/array.py @@ -145,6 +145,9 @@ def __ne__(self, other): def __array__(self, dtype=None): if dtype is...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45454
2022-01-18T18:44:14Z
2022-01-18T23:13:26Z
2022-01-18T23:13:26Z
2022-01-18T23:15:23Z
REF: move np_can_hold_element to mgr method
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d08c59338af9e..88b848f34fbe5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -93,7 +93,6 @@ ) from pandas.core.dtypes.cast import ( - can_hold_element, construct_1d_arraylike_from_scalar, construct_2d_arraylike_from_scalar, ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Yak shaving towards code-sharing.
https://api.github.com/repos/pandas-dev/pandas/pulls/45453
2022-01-18T18:35:16Z
2022-01-19T02:42:02Z
2022-01-19T02:42:02Z
2022-02-08T19:59:51Z
Add back __array_wrap__ for dask compatibility
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index eb6f399c8d223..b8a7864a3a7e0 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2052,6 +2052,41 @@ def empty(self) -> bool_t: def __array__(self, dtype: npt.DTypeLike | None = None) -> np.ndarray: return np.asarray(self._...
xref https://github.com/pandas-dev/pandas/pull/44006/files#r786627658
https://api.github.com/repos/pandas-dev/pandas/pulls/45451
2022-01-18T16:13:49Z
2022-01-20T13:46:32Z
2022-01-20T13:46:32Z
2022-01-21T12:12:35Z
Backport PR #45364 on branch 1.4.x (CI/TST: update pyarrow pin in windows-3.8 env / fix failing parquet test on windows)
diff --git a/ci/deps/actions-38-locale.yaml b/ci/deps/actions-38-locale.yaml index ef2288e2a24a6..9053bc677eb4e 100644 --- a/ci/deps/actions-38-locale.yaml +++ b/ci/deps/actions-38-locale.yaml @@ -32,5 +32,5 @@ dependencies: - xlrd - xlsxwriter - xlwt - - pyarrow=1.0.1 + - pyarrow=4 - pyxlsb diff --git a/...
Manual backport of https://github.com/pandas-dev/pandas/pull/45364
https://api.github.com/repos/pandas-dev/pandas/pulls/45450
2022-01-18T15:41:19Z
2022-01-18T20:23:12Z
2022-01-18T20:23:12Z
2022-01-18T20:23:17Z
DEPR: undo deprecation of astype(int64) for datetimelike values
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index ed66861efad93..a392aeb5274c2 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -811,7 +811,7 @@ Other Deprecations - Deprecated allowing scalars to be passed to the :class:`Categorical` constructor (:is...
Closes #45034
https://api.github.com/repos/pandas-dev/pandas/pulls/45449
2022-01-18T14:09:21Z
2022-01-20T13:42:16Z
2022-01-20T13:42:16Z
2022-01-21T11:20:45Z
Backport PR #45426 on branch 1.4.x (BENCH: Fix ASV branch to main)
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 9ad856d5d03ed..daf2834c50d6a 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -13,6 +13,10 @@ // benchmarked "repo": "..", + // List of branches to benchmark. If not provided, defaults to "master" + // (for git) ...
Backport PR #45426: BENCH: Fix ASV branch to main
https://api.github.com/repos/pandas-dev/pandas/pulls/45447
2022-01-18T13:27:18Z
2022-01-18T18:25:17Z
2022-01-18T18:25:17Z
2022-01-18T18:25:17Z
Backport PR #45432 on branch 1.4.x (REGR: DataFrame(dict) missing columns should not be views)
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 532309dfc40b3..d14db58540a05 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -466,7 +466,13 @@ def dict_to_mgr( # GH#1783 nan_dtype = np.dt...
Backport PR #45432: REGR: DataFrame(dict) missing columns should not be views
https://api.github.com/repos/pandas-dev/pandas/pulls/45446
2022-01-18T13:27:03Z
2022-01-18T18:25:02Z
2022-01-18T18:25:02Z
2022-01-18T18:25:03Z
REF: remove Block.putmask fallback to where
diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py index 24a0f83dbb313..daf7d0bd3f213 100644 --- a/pandas/core/array_algos/putmask.py +++ b/pandas/core/array_algos/putmask.py @@ -126,6 +126,8 @@ def putmask_without_repeat( mask : np.ndarray[bool] new : Any """ + new =...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Works locally, curious to see how it fares on other builds.
https://api.github.com/repos/pandas-dev/pandas/pulls/45440
2022-01-18T04:23:52Z
2022-01-22T00:35:26Z
2022-01-22T00:35:26Z
2022-01-22T00:46:08Z
compat: catch dateutil ParserError
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 9d7e07df871d1..141a609e86809 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -20,6 +20,7 @@ ) import warnings +from dateutil.parser import ParserError import numpy as np from pandas._libs import lib @@ -1336,9...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Giving this another shot.
https://api.github.com/repos/pandas-dev/pandas/pulls/45438
2022-01-18T03:17:20Z
2022-01-19T02:39:43Z
2022-01-19T02:39:43Z
2022-01-19T02:40:58Z
CI: Don't split slow vs non slow jobs for GHA posix
diff --git a/.github/workflows/datamanger.yml b/.github/workflows/datamanger.yml index e796c536688b1..4ca92a7adcc52 100644 --- a/.github/workflows/datamanger.yml +++ b/.github/workflows/datamanger.yml @@ -28,12 +28,9 @@ jobs: AWS_SECRET_ACCESS_KEY: foobar_secret ports: - 5000:5000 - st...
Since GHA has a 6 hour job limit, and it appears that slow jobs take ~25 mins and non-slow jobs take ~35 minutes, it shouldn't be necessary to split these anymore. Helps reduce the number of builds so more can run concurrently.
https://api.github.com/repos/pandas-dev/pandas/pulls/45437
2022-01-18T02:56:31Z
2022-01-25T18:29:03Z
2022-01-25T18:29:03Z
2022-01-25T18:30:04Z
PERF: MaskedArray._values_for_argsort
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index c16c404d56295..ebff9bb306afe 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -628,6 +628,16 @@ def _values_for_argsort(self) -> np.ndarray: See Also -------- ExtensionArray.argsort : Return ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Avoid making copies.
https://api.github.com/repos/pandas-dev/pandas/pulls/45434
2022-01-17T23:36:03Z
2022-01-22T00:23:19Z
2022-01-22T00:23:19Z
2022-01-22T00:33:26Z
REGR: DataFrame(dict) missing columns should not be views
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 4bec30cad22cc..03016371dd553 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -464,7 +464,13 @@ def dict_to_mgr( # GH#1783 nan_dtype = np.dt...
- [x] closes #45369 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45432
2022-01-17T21:57:48Z
2022-01-18T13:25:46Z
2022-01-18T13:25:45Z
2022-01-18T15:44:42Z
BUG: setting pd.NA into Series casts to object
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 1ae76984484af..6b398c88f96f3 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -212,6 +212,7 @@ Indexing - Bug in :meth:`DataFrame.iloc` where indexing a single row on a :class:`DataFrame` with a single...
- [x] closes #44199 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Example ``` ser = pd.Series([0.0, 1.0]) ser[0] = pd.NA >>> ser.dtype dtype('O') ...
https://api.github.com/repos/pandas-dev/pandas/pulls/45431
2022-01-17T21:26:53Z
2022-01-22T00:20:57Z
2022-01-22T00:20:57Z
2022-01-22T00:55:40Z
CI: py38 builds
diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py index 57934338cbb7b..b6c492aa45038 100644 --- a/pandas/core/arrays/masked.py +++ b/pandas/core/arrays/masked.py @@ -257,7 +257,9 @@ def _validate_setitem_value(self, value): return value # TODO: unsigned checks - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45429
2022-01-17T20:23:49Z
2022-01-17T23:58:23Z
2022-01-17T23:58:23Z
2022-01-18T00:00:05Z
ENH: Add numba engine to groupby.min/max
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b259f182a1197..ecddaaf752a5d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -34,6 +34,7 @@ Other enhancements - :class:`StringArray` now accepts array-likes containing nan-likes (``None``, ``np.nan``...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45428
2022-01-17T19:57:29Z
2022-01-22T00:24:02Z
2022-01-22T00:24:02Z
2022-01-22T03:45:26Z
BENCH: Fix ASV branch to main
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 9ad856d5d03ed..daf2834c50d6a 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -13,6 +13,10 @@ // benchmarked "repo": "..", + // List of branches to benchmark. If not provided, defaults to "master" + // (for git) ...
Needed post main renaming to run `asv run ...`
https://api.github.com/repos/pandas-dev/pandas/pulls/45426
2022-01-17T19:34:10Z
2022-01-18T13:26:06Z
2022-01-18T13:26:06Z
2022-01-18T17:19:40Z
REF: share EABackedBlock.fillna
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index ef1cd92a60540..60bb6851e4d19 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1488,6 +1488,40 @@ def putmask(self, mask, new) -> list[Block]: return [self] + def fillna( + se...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45425
2022-01-17T19:23:15Z
2022-01-22T00:14:51Z
2022-01-22T00:14:51Z
2022-01-22T00:59:25Z
BUG: accept strings in FloatingArray._from_sequence
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 0c3ad0f7d8d21..4aaf9c68ee647 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -198,6 +198,7 @@ Conversion - Bug in constructing a :class:`Series` from a float-containing list or a floating-dtype ndarra...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry Makes FloatingArray behavior match IntegerArray. After this we can refactor to share ...
https://api.github.com/repos/pandas-dev/pandas/pulls/45424
2022-01-17T19:10:43Z
2022-01-23T19:44:14Z
2022-01-23T19:44:14Z
2022-01-23T19:45:42Z
DEPR: Index.is_monotonic for Index.is_monotonic_increasing
diff --git a/asv_bench/benchmarks/index_cached_properties.py b/asv_bench/benchmarks/index_cached_properties.py index 16fbc741775e4..1020d07e5a716 100644 --- a/asv_bench/benchmarks/index_cached_properties.py +++ b/asv_bench/benchmarks/index_cached_properties.py @@ -56,9 +56,6 @@ def time_values(self, index_type): d...
- [x] closes #21335 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45422
2022-01-17T18:27:07Z
2022-01-23T00:22:58Z
2022-01-23T00:22:57Z
2022-01-23T03:14:32Z
BUG: BooleanArray+pd.NA altering array inplace
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b259f182a1197..1ae76984484af 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -185,7 +185,7 @@ Timezones Numeric ^^^^^^^ -- +- Bug in operations with array-likes with ``dtype="boolean"`` and :attr:`...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45421
2022-01-17T17:34:25Z
2022-01-19T07:49:54Z
2022-01-19T07:49:54Z
2022-01-19T16:26:30Z
REF: share BooleanArray.astype+NumericArray.astype
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index b5c32f7dbdda1..f05f99b5764d5 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -1,10 +1,7 @@ from __future__ import annotations import numbers -from typing import ( - TYPE_CHECKING, - overload, -) ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45420
2022-01-17T17:08:53Z
2022-01-23T02:12:07Z
2022-01-23T02:12:07Z
2022-01-23T05:04:05Z
CLN: remove _from_mgr (no longer used after GH-45363)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 9b713e626ad24..eb6f399c8d223 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -285,22 +285,6 @@ def _init_mgr( mgr = mgr.astype(dtype=dtype) return mgr - @classmethod - def _from_mgr(cls, mgr: Manager...
One part of the follow-up to https://github.com/pandas-dev/pandas/pull/45363 This one doesn't necessarily need to be backported to 1.4
https://api.github.com/repos/pandas-dev/pandas/pulls/45415
2022-01-17T09:33:34Z
2022-01-19T02:44:21Z
2022-01-19T02:44:21Z
2022-01-19T07:06:49Z
ENH: Add dtypes/converters arguments for pandas.read_xml
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index b32416418a39f..c20369181c4ac 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -88,6 +88,48 @@ Optional libraries below the lowest tested version may still work, but are not c See :ref:`install.depend...
- [X] closes #43567 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/45411
2022-01-17T05:06:42Z
2022-01-23T19:46:27Z
2022-01-23T19:46:27Z
2022-01-23T23:17:34Z
CLN: remove sqlalchemy<14 compat
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index f7fdc47afa8d1..b723eea334e84 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -46,7 +46,6 @@ from pandas.core.base import PandasObject import pandas.core.common as com from pandas.core.tools.datetimes import to_datetime -from pandas.util.version import Ve...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/45410
2022-01-17T04:55:23Z
2022-01-19T18:38:00Z
2022-01-19T18:38:00Z
2022-11-18T02:20:05Z
DOC: Clean up redirects & dead links
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 77c8d56765e5e..7bbfc010fbfb2 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -28,7 +28,7 @@ Testing Failing tests -------------- -See https://docs.pytest.org/en/latest/s...
Ran `sphinx-build -b linkcheck` and fixed some redirects and dead links
https://api.github.com/repos/pandas-dev/pandas/pulls/45408
2022-01-17T01:27:04Z
2022-01-17T13:43:59Z
2022-01-17T13:43:59Z
2022-01-20T14:27:28Z
STYLE: use option_context almost always
diff --git a/pandas/tests/indexes/multi/test_formats.py b/pandas/tests/indexes/multi/test_formats.py index a6dadd42f7bf0..f71472b726fa2 100644 --- a/pandas/tests/indexes/multi/test_formats.py +++ b/pandas/tests/indexes/multi/test_formats.py @@ -8,7 +8,6 @@ Index, MultiIndex, ) -import pandas._testing as tm ...
Replaces `set_option` except when this function is directly tested. Happy to revisit/revise if I missed anything. Thanks! - [x] closes #38813 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) fo...
https://api.github.com/repos/pandas-dev/pandas/pulls/45407
2022-01-17T01:21:35Z
2022-01-17T13:44:27Z
2022-01-17T13:44:27Z
2022-01-17T13:44:27Z
DOC removed unnecessary use of parameter in example rename function call
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ba58382db4e76..e4725d24421f2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3995,20 +3995,28 @@ def rename(self, *args, **kwargs): We *highly* recommend using keyword arguments to clarify your intent. + Rename co...
removed unnecessary (and misleading) use of index parameter in docstring example function call of rename function xref #26248 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26250
2019-04-30T18:32:34Z
2019-05-07T01:38:09Z
2019-05-07T01:38:09Z
2019-05-07T01:38:26Z
TST: make test_astype_categorical_to_other deterministic
diff --git a/pandas/tests/series/test_dtypes.py b/pandas/tests/series/test_dtypes.py index afa0377205236..945b89e7c6f99 100644 --- a/pandas/tests/series/test_dtypes.py +++ b/pandas/tests/series/test_dtypes.py @@ -268,7 +268,8 @@ def test_astype_from_categorical(self): def test_astype_categorical_to_other(self): ...
The use of an unseeded random number generator means that this test can occasionally fail for no particular reason. In particular, I saw the following error: ``` =================================== FAILURES =================================== ______________ TestSeriesDtypes.test_astype_categorical_to_other _____...
https://api.github.com/repos/pandas-dev/pandas/pulls/26244
2019-04-30T00:01:21Z
2019-04-30T10:25:38Z
2019-04-30T10:25:38Z
2019-04-30T10:25:44Z
ENH: Poisson exponential window
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index c96e066a5874b..466486586f50b 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -365,7 +365,8 @@ The list of recognized types are the `scipy.signal window functions * ``kaiser...
- [x] closes #21303 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26243
2019-04-29T20:23:07Z
2019-05-07T11:31:42Z
2019-05-07T11:31:41Z
2019-05-07T11:31:46Z
ENH: clearer error msg for unequal categoricals in merge_asof (GH#26136)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index b2a379d9fe6f5..9d7868ed1394e 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -37,6 +37,7 @@ Other Enhancements - :class:`RangeIndex` has gained :attr:`~RangeIndex.start`, :attr:`~RangeIndex.stop`,...
- [x] closes #26136 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26242
2019-04-29T19:55:45Z
2019-05-01T21:48:01Z
2019-05-01T21:48:00Z
2019-05-02T14:02:58Z
BUG: Enable plotting with PeriodIndex with arbitrary frequencies, resolves #14763
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 1fff30525853d..1de02e24910ec 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -458,6 +458,8 @@ Plotting - Fixed bug where :class:`api.extensions.ExtensionArray` could not be used in matplotlib plot...
- [x] closes #14763 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Enables plotting of data with PeriodIndex with frequencies which are multiples of the `data.index.freq.rule_code`. Hopefully I'll find some time to include tests within the next 3 weeks. Since this...
https://api.github.com/repos/pandas-dev/pandas/pulls/26241
2019-04-29T19:32:17Z
2019-05-28T20:56:00Z
2019-05-28T20:55:59Z
2019-06-05T11:51:23Z
TST: Test pd.Grouper base floating point error (#25161)
diff --git a/pandas/tests/resample/test_datetime_index.py b/pandas/tests/resample/test_datetime_index.py index b5cc28e07fca6..c2868979e9d8d 100644 --- a/pandas/tests/resample/test_datetime_index.py +++ b/pandas/tests/resample/test_datetime_index.py @@ -751,6 +751,19 @@ def test_resample_base(): tm.assert_index_equ...
- [x] closes #25161 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/26240
2019-04-29T18:25:21Z
2019-05-02T12:17:37Z
2019-05-02T12:17:37Z
2019-07-11T15:47:58Z
Fix Memory Leak in to_json with Numeric Values
diff --git a/asv_bench/benchmarks/io/json.py b/asv_bench/benchmarks/io/json.py index ec2ddc11b7c1d..19d11e6610198 100644 --- a/asv_bench/benchmarks/io/json.py +++ b/asv_bench/benchmarks/io/json.py @@ -124,4 +124,26 @@ def time_float_int_str_lines(self, orient): self.df_int_float_str.to_json(self.fname, orient=...
- [X] closes #24889 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry It looks like the extension module is unnecessarily incrementing the reference count for numeric objects and never releasing it, which causes a leak in to_json. Still trying ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26239
2019-04-29T18:03:12Z
2019-04-30T13:04:06Z
2019-04-30T13:04:06Z
2020-01-16T00:34:07Z
CLN: Remove unnecessary io function returns
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e539391ba011e..ee2a700de6c62 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1394,13 +1394,12 @@ def to_gbq(self, destination_table, project_id=None, chunksize=None, read_gbq : Read a DataFrame from Google BigQuery. """ ...
These functions return a function either with empty return statement or doesn’t return. It causes docstring validation error with type RT01 (See #26234). - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/26238
2019-04-29T17:12:34Z
2019-04-30T13:02:12Z
2019-04-30T13:02:12Z
2019-07-11T15:48:02Z
DOC: Fix validation error type `RT01` and check in CI (#25356)
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 4468b5e07cc07..2eb6d08ce22e5 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -261,8 +261,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL03, GL06, GL07, GL09, SS04, SS05, PR03, PR04,...
- [x] closes #25356 - [x] passes `./scripts/validate_docstrings.py --errors=RT01` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/26234
2019-04-28T20:41:58Z
2019-05-08T03:57:10Z
2019-05-08T03:57:09Z
2019-07-11T15:47:55Z
Refactor init for Excel readers to _BaseExcelReader
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index c5f6019d7aeb5..a41e97831d104 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -1,13 +1,14 @@ import abc from collections import OrderedDict from datetime import date, datetime, timedelta +from io import BytesIO import os ...
Pre-cursor for #25092. To support multiple excel readers the init function is moved to _BaseExcelReader. The function is made a bit more general to be able to support multiple excel readers. - [ ] tests passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26233
2019-04-28T19:50:00Z
2019-04-30T15:17:59Z
2019-04-30T15:17:59Z
2019-05-01T10:12:37Z
Revert "xref #26189, xfail scipy interpolate test for pchip with timedelta
diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py index 2f9f11c272814..4c722406ab60f 100644 --- a/pandas/tests/series/test_missing.py +++ b/pandas/tests/series/test_missing.py @@ -1440,12 +1440,10 @@ def test_interpolate_timedelta_index(self, interp_methods_ind): if method ...
closes #26189 This reverts commit e134ddb727069e50bd76c319d9d220fc23ca170f.
https://api.github.com/repos/pandas-dev/pandas/pulls/26231
2019-04-28T15:29:19Z
2019-04-28T16:11:15Z
2019-04-28T16:11:15Z
2019-04-28T16:11:16Z
Fix .transform crash when SeriesGroupBy is empty (#26208)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 506b0b7a850e5..2b04a58c4b9da 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -403,6 +403,7 @@ Groupby/Resample/Rolling - Bug in :meth:`pandas.core.groupby.GroupBy.idxmax` and :meth:`pandas.core.gr...
- [X] closes #26208 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26228
2019-04-27T18:01:07Z
2019-05-15T13:01:29Z
2019-05-15T13:01:28Z
2019-05-15T13:01:33Z
[CI] Remove duplicate config in .pep8speaks.yml
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index cbcb098c47125..5a83727ddf5f8 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -2,18 +2,3 @@ scanner: diff_only: True # If True, errors caused by only the patch are shown - -# Opened issue in pep8speaks, so we can directly use the config in setup.cfg -# ...
- closes #25605
https://api.github.com/repos/pandas-dev/pandas/pulls/26226
2019-04-27T15:10:13Z
2019-04-28T15:30:22Z
2019-04-28T15:30:22Z
2019-04-28T15:30:27Z
[PERF] Get rid of MultiIndex conversion in IntervalIndex.intersection
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 78fe2ae966896..de72f08515246 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -196,11 +196,20 @@ def setup(self, N): self.intv = IntervalIndex.from_arrays(left, right) ...
- xref #24813 - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - whatsnew entry ``` before after ratio [64104ec3] [e9ddf02b] <master> <GH24813-inter> - 1.76±0.01ms 233±0.5μs 0.13 index_object.IntervalIndexMethod.time_intersect...
https://api.github.com/repos/pandas-dev/pandas/pulls/26225
2019-04-27T14:32:30Z
2019-06-06T14:30:38Z
2019-06-06T14:30:38Z
2019-06-07T12:24:49Z
Continued ujson cleanups
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index ef6ff61a29630..55e508eab816e 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -48,10 +48,9 @@ Numeric decoder derived from from TCL library #include <../../....
ref some of the comments by @jbrockmendel in #26212
https://api.github.com/repos/pandas-dev/pandas/pulls/26222
2019-04-26T21:49:12Z
2019-04-30T13:07:17Z
2019-04-30T13:07:17Z
2020-01-16T00:34:08Z
PERF: added no exception versions of '_string_to_dts' and 'parse_iso_8601_datetime' functions
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 50e3fb1c38cc7..68ad38dc37165 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -204,7 +204,7 @@ def _test_parse_iso8601(object ts): elif ts == 'today': return Timestamp.now().normalize() - _string_to_dts(ts, &obj.dts...
- [x] closes #N/A - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry `asv continuous -f 1.05 origin/master HEAD -b ^io.csv -b ^timeseries -a warmup_time=1 -a sample_time=1`: master| patch| ratio| test name -|-|-|- 98.4±3ms| 76.2±2ms| ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26220
2019-04-26T21:07:53Z
2019-05-07T01:08:38Z
2019-05-07T01:08:38Z
2019-05-10T08:24:08Z
CLN: Remove inheritance from object in pyx-files
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 11ff5444223d0..908eaa3a9d214 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -181,7 +181,7 @@ def time_get_loc(self): self.ind.get_loc(0) -class IntervalIndexMethod...
- [x] xref #25725 and #26128 Continuation of #26128, this time dealing with pyx-files.
https://api.github.com/repos/pandas-dev/pandas/pulls/26217
2019-04-26T18:15:44Z
2019-04-27T07:08:21Z
2019-04-27T07:08:21Z
2019-04-27T08:18:56Z
Removed Unnecessary Compat Directives from ujson
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 36bf69c50217f..ef6ff61a29630 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -62,10 +62,6 @@ npy_int64 get_nat(void) { return NPY_MIN_INT64; } typedef void ...
Continuing cleanup of ujson source there are some preprocessor directives in there which are no longer valid given minimum Python and NumPy versions
https://api.github.com/repos/pandas-dev/pandas/pulls/26211
2019-04-25T17:09:15Z
2019-04-26T00:45:12Z
2019-04-26T00:45:11Z
2020-01-16T00:34:11Z
DOC: Fix misspelling in get_dummies docstring
diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py index beb497fb96e7e..bd695e2d0d83d 100644 --- a/pandas/core/reshape/reshape.py +++ b/pandas/core/reshape/reshape.py @@ -718,7 +718,7 @@ def get_dummies(data, prefix=None, prefix_sep='_', dummy_na=False, If `columns` is None then all t...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26207
2019-04-24T21:44:03Z
2019-04-24T22:27:14Z
2019-04-24T22:27:14Z
2019-04-24T22:27:22Z
PERF: Cython version of Python _TIMEPAT regexp in parsing.pyx
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 260c1c3905628..add0943c5ce9f 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -252,11 +252,12 @@ def mem_parser_chunks(self): class ReadCSVParseSpecialDate(StringIORewind): - params = (['mY', 'm...
- [x] closes #N/A - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry `asv continuous -f 1.05 origin/master HEAD -b ^io.csv.ReadCSVParseSpecialDate -a warmup_time=2 -a sample_time=2`: master | patch | ratio | test_name -|-|-|- 276±1ms| ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26204
2019-04-24T09:43:45Z
2019-04-24T15:05:20Z
2019-04-24T15:05:20Z
2019-04-24T15:05:25Z
Relaxed error message for failing test
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py index 2ad7b931aae78..d6627f0fb8b72 100644 --- a/pandas/tests/indexes/datetimes/test_tools.py +++ b/pandas/tests/indexes/datetimes/test_tools.py @@ -1323,8 +1323,7 @@ def test_string_na_nat_conversion(self, cache): ...
xref #26200
https://api.github.com/repos/pandas-dev/pandas/pulls/26201
2019-04-23T23:05:51Z
2019-04-24T12:12:31Z
2019-04-24T12:12:31Z
2019-04-25T15:57:39Z
ujson Py2 compat removal
diff --git a/pandas/_libs/src/ujson/python/JSONtoObj.c b/pandas/_libs/src/ujson/python/JSONtoObj.c index 85cf1d5e5e7a1..7fd5fb4eb8e83 100644 --- a/pandas/_libs/src/ujson/python/JSONtoObj.c +++ b/pandas/_libs/src/ujson/python/JSONtoObj.c @@ -35,14 +35,12 @@ Numeric decoder derived from from TCL library * Copyright (c)...
There was a header file in the ujson source specifically meant to bridge compatibility between Py2 and Py3. With the Py2 support drop this could be removed and the source code simplified. Most of these changes are simply verbatim, though there are probably a few follow ups on context to simplify further that could b...
https://api.github.com/repos/pandas-dev/pandas/pulls/26199
2019-04-23T22:52:59Z
2019-04-24T21:00:57Z
2019-04-24T21:00:57Z
2019-04-25T15:57:29Z
Remove Unused Functions from ujson
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 3e00ec9cbb742..49b8c49573b6a 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -417,7 +417,7 @@ Sparse Other ^^^^^ -- +- Removed unused C functions from vendored UltraJSON implementation (:issue:...
dump and load don't appear anywhere in the code base except for UltraJSON tests. Since they are part of the exposed API I figure makes just as much sense to remove
https://api.github.com/repos/pandas-dev/pandas/pulls/26198
2019-04-23T22:17:31Z
2019-04-25T14:53:25Z
2019-04-25T14:53:25Z
2019-04-25T15:57:15Z
CLN: remove '# -*- coding: utf-8 -*-' pattern
diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py index 6811e3c9841e9..26e344758596f 100644 --- a/asv_bench/benchmarks/offset.py +++ b/asv_bench/benchmarks/offset.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import warnings from datetime import datetime diff --git a/ci/code_checks.sh b/ci/...
- [x] xref #25725 & #26196 Remove usage of ``-# -*- coding: utf-8 -*-`` pattern from code base.
https://api.github.com/repos/pandas-dev/pandas/pulls/26197
2019-04-23T18:08:47Z
2019-04-28T15:51:08Z
2019-04-28T15:51:08Z
2019-05-01T20:03:21Z
CLN: remove python2 file encodings
diff --git a/pandas/tests/frame/test_asof.py b/pandas/tests/frame/test_asof.py index 4ba3431d102df..4c21895f2d4ec 100644 --- a/pandas/tests/frame/test_asof.py +++ b/pandas/tests/frame/test_asof.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import numpy as np import pytest diff --git a/pandas/tests/series/indexing/test_alter...
- [x] xref #25725 Remove usage of ``# coding=utf-8`` pattern from code base.
https://api.github.com/repos/pandas-dev/pandas/pulls/26196
2019-04-23T17:39:25Z
2019-04-24T12:23:57Z
2019-04-24T12:23:57Z
2019-05-05T06:59:22Z
Revert "DOC: temporary remove pyarrow example of reading subset columns (#18661)
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 98cba6969587b..9ec39c0ff2b23 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4704,7 +4704,8 @@ Read only certain columns of a parquet file. result = pd.read_parquet('example_fp.parquet', ...
This reverts commit 695e89345a46c0cab06c479c83007f5adbb70ad5. Closes https://github.com/pandas-dev/pandas/issues/18628 (reverts https://github.com/pandas-dev/pandas/pull/18661)
https://api.github.com/repos/pandas-dev/pandas/pulls/26194
2019-04-23T11:18:30Z
2019-04-23T12:16:28Z
2019-04-23T12:16:27Z
2019-04-23T12:16:32Z
TST: Remove bare pytest.raises in some test files
diff --git a/pandas/tests/util/test_assert_produces_warning.py b/pandas/tests/util/test_assert_produces_warning.py index e125f01a494e7..79b2a56537613 100644 --- a/pandas/tests/util/test_assert_produces_warning.py +++ b/pandas/tests/util/test_assert_produces_warning.py @@ -12,8 +12,9 @@ def f(): @pytest.mark.filterwa...
https://api.github.com/repos/pandas-dev/pandas/pulls/26193
2019-04-23T08:02:07Z
2019-04-23T12:24:18Z
2019-04-23T12:24:18Z
2019-04-24T03:43:50Z
xref #26189, xfail scipy interpolate test for pchip with timedelta
diff --git a/pandas/tests/series/test_missing.py b/pandas/tests/series/test_missing.py index 94b643900ee0f..0f0e1511b0c3f 100644 --- a/pandas/tests/series/test_missing.py +++ b/pandas/tests/series/test_missing.py @@ -1441,10 +1441,12 @@ def test_interpolate_timedelta_index(self, interp_methods_ind): if method ...
xref #26189
https://api.github.com/repos/pandas-dev/pandas/pulls/26190
2019-04-22T23:56:31Z
2019-04-23T00:39:35Z
2019-04-23T00:39:35Z
2019-04-23T00:39:35Z
Fixed code issue from compat with new numpydoc
diff --git a/environment.yml b/environment.yml index 48b873d4c3a3d..cf17dc1281ec9 100644 --- a/environment.yml +++ b/environment.yml @@ -24,7 +24,7 @@ dependencies: - pytest>=4.0.2 - pytest-mock - sphinx - - numpydoc + - numpydoc>=0.9.0 - pip # optional diff --git a/requirements-dev.txt b/requirement...
- [X] closes #26187 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26188
2019-04-22T22:36:45Z
2019-04-23T12:10:36Z
2019-04-23T12:10:36Z
2020-01-16T00:34:11Z
BUG: Plotting use FixedLocator
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index accfeee484430..383ec7cda82cd 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -371,7 +371,7 @@ Plotting - Fixed bug where :class:`api.extensions.ExtensionArray` could not be used in matplotlib pl...
For string x values or multiindex, the axis locator is now set to a FixedLocator for Line and Area plot. The ticklabel stay consistent when scaling and zooming. closes #7612 closes #15912 closes #22334 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whats...
https://api.github.com/repos/pandas-dev/pandas/pulls/26185
2019-04-22T17:46:51Z
2019-04-30T12:59:54Z
2019-04-30T12:59:53Z
2019-05-01T14:00:04Z
DOC: satisfy codechecks
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index d6124f0ddfdc4..5c8a563a47d00 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -58,8 +58,6 @@ Computations / Descriptive Stats GroupBy.first GroupBy.head GroupBy.last - GroupBy.idxm...
https://api.github.com/repos/pandas-dev/pandas/pulls/26180
2019-04-21T19:42:50Z
2019-04-21T23:28:49Z
2019-04-21T23:28:49Z
2019-04-21T23:28:49Z
CLN: remove __metaclass__ from code base
diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py index 85dfbc56d5187..0c2342082e9ef 100644 --- a/pandas/core/computation/engines.py +++ b/pandas/core/computation/engines.py @@ -35,12 +35,9 @@ def _check_ne_builtin_clash(expr): .format(expr=expr, ...
- [x] xref #25725 & #26165 Removes uses of ``__metaclass__`` from the code base. After #26165 there was actually only one left.
https://api.github.com/repos/pandas-dev/pandas/pulls/26178
2019-04-21T19:05:26Z
2019-04-23T04:45:02Z
2019-04-23T04:45:02Z
2019-05-05T06:58:55Z
CLN: Clean-up use of super() in instance methods.
diff --git a/asv_bench/benchmarks/io/stata.py b/asv_bench/benchmarks/io/stata.py index b4d78c5d8f528..fff10cf10a4d3 100644 --- a/asv_bench/benchmarks/io/stata.py +++ b/asv_bench/benchmarks/io/stata.py @@ -38,7 +38,7 @@ def time_write_stata(self, convert_dates): class StataMissing(Stata): def setup(self, convert...
- [x] xref #25725 Simplifies the use of simple uses of ``super`` by converting to use python3 idioms. This is a quite big PR, but only deals with converting ``super(MyClass, self)`` to ``super()`` so it's very simple. In addition to the uses of ``super`` dealt with in this PR, there are some more advanced uses of...
https://api.github.com/repos/pandas-dev/pandas/pulls/26177
2019-04-21T18:55:05Z
2019-04-24T21:02:12Z
2019-04-24T21:02:12Z
2019-04-25T04:28:05Z
BUG: read_json converted date strings with Z to UTC
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 957b4f6284d74..e8a774579b8ae 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -290,6 +290,7 @@ Timezones - Bug in :func:`Series.at` where setting :class:`Timestamp` with timezone raises ``TypeError...
- [x] closes #25546 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26170
2019-04-21T05:23:24Z
2019-05-07T04:19:24Z
2019-05-07T04:19:24Z
2019-05-07T15:19:45Z
CLN: Unused imports in tslibs
diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx index 67d9092ceb0d5..30f3f1c24e607 100644 --- a/pandas/_libs/tslibs/c_timestamp.pyx +++ b/pandas/_libs/tslibs/c_timestamp.pyx @@ -23,8 +23,6 @@ cimport numpy as cnp from numpy cimport int64_t, int8_t cnp.import_array() -from date...
Removed unused imports in tslibs found via PyCharm.
https://api.github.com/repos/pandas-dev/pandas/pulls/26168
2019-04-20T23:07:16Z
2019-04-21T15:49:19Z
2019-04-21T15:49:19Z
2019-04-21T15:50:18Z
BUG: DataFrame/Series constructor with tz aware data and datetime64[ns] dtype converts to naive
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 2a0bc0afc095c..b4a2b1ccb09d3 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -271,7 +271,7 @@ Datetimelike - Bug in :func:`to_datetime` which would raise an (incorrect) ``ValueError`` when calle...
- [x] closes #25843 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26167
2019-04-20T22:12:20Z
2019-04-21T16:37:05Z
2019-04-21T16:37:05Z
2019-04-21T17:51:36Z
CLN: remove abc.abstractproperty from code base
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index b99908fd902c8..301647bf29e35 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -600,14 +600,16 @@ def __new__(cls, path, engine=None, **kwargs): curr_sheet = None path = None - @abc.abstractproperty + @propert...
- [x] xref #25725 - [x] xref #26165 While doing #26165 I discovered some uses of ``abc.abstractproperty`` in the codebase. This propery was deprecated in Python 3.3 and superseeded by using ``abc.abstractmethod`` and ``property`` together instead (see [python abc.abstractproperty docs](https://docs.python.org/3.7/...
https://api.github.com/repos/pandas-dev/pandas/pulls/26166
2019-04-20T21:15:28Z
2019-04-21T15:54:27Z
2019-04-21T15:54:27Z
2019-04-21T16:31:32Z
CLN: remove compat.add_metaclass
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 332b435d33403..5c256a53b5036 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -6,8 +6,6 @@ Key items to import for compatible code: * lists: lrange(), lmap(), lzip() -* add_metaclass(metaclass) - class decorator that r...
- [x] xref #25725 This removes the ``compat.add_metaclass`` function from the code base and replaces it with a metaclass parameter in class instation. I don't understand why ``ExcelWriter`` needs to use a abc.ABCMeta metaclass, as the class is being used directly in the code base and I thought abstract classes c...
https://api.github.com/repos/pandas-dev/pandas/pulls/26165
2019-04-20T21:00:25Z
2019-04-21T15:50:51Z
2019-04-21T15:50:50Z
2019-04-21T16:31:42Z
CLN: remove util._doctools._WritableDoc
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 7b20c7e1b6336..5de265eb83561 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -7,10 +7,8 @@ from pandas._libs.interval import ( Interval, IntervalMixin, intervals_to_interval_bounds) -from panda...
- [x] xref #25725 Removes the metaclass ``_WritableDoc`` from the code base.
https://api.github.com/repos/pandas-dev/pandas/pulls/26164
2019-04-20T17:56:51Z
2019-04-20T18:44:50Z
2019-04-20T18:44:50Z
2019-04-20T18:45:52Z
TST: add strict=False; xref #26069
diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py index 325056b789162..4a7729dc15671 100644 --- a/pandas/tests/series/test_analytics.py +++ b/pandas/tests/series/test_analytics.py @@ -1404,7 +1404,7 @@ def test_value_counts_with_nan(self): "dtype", ["int_", "ui...
xref #26069
https://api.github.com/repos/pandas-dev/pandas/pulls/26163
2019-04-20T17:21:20Z
2019-04-20T18:20:12Z
2019-04-20T18:20:12Z
2019-04-20T18:22:42Z
BUG: groupby ffill adds labels as extra column (#21521)
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index dacd433f112a5..338d5bcc4cb44 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -153,6 +153,37 @@ Providing any ``SparseSeries`` or ``SparseDataFrame`` to :func:`concat` will cause a ``SparseSeries``...
- [x] closes #21521 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26162
2019-04-20T17:10:04Z
2019-05-15T01:41:43Z
2019-05-15T01:41:43Z
2019-05-15T19:02:34Z
TST: parameterize indexes base test to introspect ufuncs fails on numpy_dev
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index b694d2c2dc44c..660eb244b3cfc 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -9,9 +9,9 @@ import pandas as pd from pandas import ( - CategoricalIndex, DatetimeIndex, Float64Index, Index, Int64In...
https://api.github.com/repos/pandas-dev/pandas/pulls/26161
2019-04-20T14:38:53Z
2019-04-20T16:43:43Z
2019-04-20T16:43:42Z
2019-04-20T16:45:59Z
GH26139, DOC: Explicit statement of default complevel for HDFStore
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 70fa8a48cafe4..85cc738667a34 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -422,7 +422,7 @@ class HDFStore(StringMixin): It is similar to ``'a'``, but the file must already exist. complevel : int, 0-9, default None ...
State what `None` complevel in `HDFStore` means explicitly. - [x] closes #26139
https://api.github.com/repos/pandas-dev/pandas/pulls/26158
2019-04-20T05:07:41Z
2019-04-21T10:52:32Z
2019-04-21T10:52:32Z
2019-04-22T10:32:07Z
BUG: Series.nlargest thinks True < False
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index accfeee484430..9afcf3ddcdbb1 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -402,6 +402,7 @@ Reshaping - Bug in :func:`merge` where merging with equivalent Categorical dtypes was raising an error...
- use `1-arr` instead of `-arr` when sorting a boolean array casted to uint - [x] closes #26154 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26157
2019-04-20T04:10:14Z
2019-04-23T12:12:28Z
2019-04-23T12:12:28Z
2019-04-23T12:12:32Z
BUG: Raise KeyError when indexing a Series with MultiIndex
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index c25bc87a00d2e..e73c5c441608a 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -327,6 +327,7 @@ Indexing ^^^^^^^^ - Improved exception message when calling :meth:`DataFrame.iloc` with a list of n...
- [x] closes #14885 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26155
2019-04-20T01:20:03Z
2019-04-26T01:12:43Z
2019-04-26T01:12:43Z
2019-04-26T08:30:02Z