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 |
|---|---|---|---|---|---|---|---|
TYP: remove ignore from pandas/tseries/frequencies.py II | diff --git a/pandas/tseries/frequencies.py b/pandas/tseries/frequencies.py
index 522daf7188bfb..caa34a067ac69 100644
--- a/pandas/tseries/frequencies.py
+++ b/pandas/tseries/frequencies.py
@@ -140,10 +140,7 @@ def infer_freq(
>>> pd.infer_freq(idx)
'D'
"""
- from pandas.core.api import (
- Date... | Related to pr #52623, which doesn't work correctly.
mypy ignore[assignment] was removed from pandas/tseries/frequencies.py | https://api.github.com/repos/pandas-dev/pandas/pulls/53120 | 2023-05-06T15:36:53Z | 2023-05-08T14:59:17Z | 2023-05-08T14:59:17Z | 2023-05-08T14:59:25Z |
REGR: read_sql dropping duplicated columns | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 1bc2fda7b8af9..c234de3e3b3ae 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :func:`rea... | - [x] closes #53117 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/53118 | 2023-05-06T10:51:14Z | 2023-05-08T13:14:35Z | 2023-05-08T13:14:35Z | 2023-05-08T15:55:45Z |
REF: move SparseDtype, ArrowDtype to dtypes.dtypes | diff --git a/pandas/__init__.py b/pandas/__init__.py
index ffdd7294cace1..d11a429987ac4 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -108,7 +108,7 @@
DataFrame,
)
-from pandas.core.arrays.sparse import SparseDtype
+from pandas.core.dtypes.dtypes import SparseDtype
from pandas.tseries.api impor... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53116 | 2023-05-05T22:54:17Z | 2023-05-15T20:44:28Z | 2023-05-15T20:44:28Z | 2023-05-15T20:50:42Z |
Backport PR #53102 on branch 2.0.x (REGR: MultiIndex.join not resorting levels of new index) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index ae251f25de578..7864791f8bc59 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -15,6 +15,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.loc` losing :class:`MultiIndex` ... | Backport PR #53102: REGR: MultiIndex.join not resorting levels of new index | https://api.github.com/repos/pandas-dev/pandas/pulls/53113 | 2023-05-05T22:24:35Z | 2023-05-06T14:42:11Z | 2023-05-06T14:42:11Z | 2023-05-06T14:42:11Z |
TYP: remove mypy ignore from pandas/core/construction.py | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index 7e03d2ec8092e..9b4d67a20a7cd 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -502,9 +502,7 @@ def sanitize_masked_array(data: ma.MaskedArray) -> np.ndarray:
if mask.any():
dtype, fill_value = maybe_p... | Related to #37715
mypy ignore[assignment] was removed from pandas/core/construction.py | https://api.github.com/repos/pandas-dev/pandas/pulls/53112 | 2023-05-05T21:01:14Z | 2023-05-06T17:29:30Z | 2023-05-06T17:29:30Z | 2023-05-06T17:29:30Z |
Backport PR #53055 on branch 2.0.x (BUG: Fix regression when printing backslash in DataFrame.to_string) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 726ff60f7a197..ae251f25de578 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | Backport PR #53055: BUG: Fix regression when printing backslash in DataFrame.to_string | https://api.github.com/repos/pandas-dev/pandas/pulls/53107 | 2023-05-05T17:16:08Z | 2023-05-05T19:26:53Z | 2023-05-05T19:26:53Z | 2023-05-05T19:26:54Z |
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) | diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py
index a1939de0d2a8d..cfc42e81a4234 100644
--- a/pandas/tests/frame/indexing/test_where.py
+++ b/pandas/tests/frame/indexing/test_where.py
@@ -328,15 +328,14 @@ def test_where_bug_mixed(self, any_signed_int_numpy_dtype):
... | another precursor to PDEP6, similar to https://github.com/pandas-dev/pandas/pull/52957
turns out there were even more of these which could be factored upon further inspection | https://api.github.com/repos/pandas-dev/pandas/pulls/53104 | 2023-05-05T14:36:58Z | 2023-05-05T17:43:55Z | 2023-05-05T17:43:55Z | 2023-05-05T21:37:01Z |
DEPR: stricter downcast values in fillna | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index da1b2e750392c..d29aa8d8a2d1d 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -259,6 +259,7 @@ Deprecations
- Deprecated unused "closed" and "normalize" keywords in the :class:`DatetimeIndex` construct... | xref #40988 (doesn't close) | https://api.github.com/repos/pandas-dev/pandas/pulls/53103 | 2023-05-05T14:04:32Z | 2023-05-05T19:25:54Z | 2023-05-05T19:25:54Z | 2023-05-05T19:58:51Z |
REGR: MultiIndex.join not resorting levels of new index | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 7dc00e8e4bfeb..1bc2fda7b8af9 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -15,6 +15,8 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataFrame.loc` losing :class:`MultiIndex` ... | - [x] closes #53093 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/53102 | 2023-05-05T13:57:17Z | 2023-05-05T19:26:24Z | 2023-05-05T19:26:24Z | 2023-05-14T16:20:32Z |
TYP: added explanation of the join methods within df.align | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 09f5e0542db18..017fb44413c8f 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -9471,6 +9471,14 @@ def align(
----------
other : DataFrame or Series
join : {{'outer', 'inner', 'left', 'right'}}, default 'oute... | - closes #53092
Added type annotations of the join methods within df.align - ([here](https://github.com/Antony-evm/pandas-aevmorfop/blob/0.21.x/pandas/core/generic.py))
from join : {{'outer', 'inner', 'left', 'right'}}, default 'outer'
To
join : {{'outer', 'inner', 'left', 'right'}}, default 'ou... | https://api.github.com/repos/pandas-dev/pandas/pulls/53101 | 2023-05-05T13:36:47Z | 2023-05-09T16:43:39Z | 2023-05-09T16:43:39Z | 2023-05-09T16:43:47Z |
Fix bug #37782 | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 36b2aa3c28da5..8fac2f7737fc3 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -374,6 +374,7 @@ I/O
^^^
- :meth:`DataFrame.to_orc` now raising ``ValueError`` when non-default :class:`Index` is given (:... | - [X] closes #37782
- [X] [Tests added and passed]
- [X] All [code checks passed]
- [X] Added an entry in the latest `doc/source/whatsnew/v2.1.0.rst` file.
| https://api.github.com/repos/pandas-dev/pandas/pulls/53099 | 2023-05-05T11:14:25Z | 2023-05-08T16:44:34Z | 2023-05-08T16:44:33Z | 2023-05-08T16:44:40Z |
REF: define _header_line and have_mi_columns non-dynamically | diff --git a/pandas/io/parsers/python_parser.py b/pandas/io/parsers/python_parser.py
index 4e1bcf54c0ae9..36d5ef7111685 100644
--- a/pandas/io/parsers/python_parser.py
+++ b/pandas/io/parsers/python_parser.py
@@ -365,6 +365,17 @@ def _convert_data(
clean_dtypes,
)
+ @cache_readonly
+ def _... | Trying to make this code a little less stateful. Not having much luck. Pushing what I have before it falls off the radar. | https://api.github.com/repos/pandas-dev/pandas/pulls/53091 | 2023-05-04T23:51:24Z | 2023-05-05T20:45:39Z | 2023-05-05T20:45:39Z | 2023-05-05T21:04:21Z |
ENH: EA._from_scalars | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index e7b7ecba60e0b..05e6fc09a5ef6 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -86,6 +86,7 @@
AstypeArg,
AxisInt,
Dtype,
+ DtypeObj,
FillnaOptions,
InterpolateOptions,... | - [x] closes #33254
- [x] closes #31108 (someone double-check me on this)
xref #33254 _from_sequence is generally not very strict. This implements _from_scalars for a few EAs as a POC to get rid of an ugly kluge in `maybe_cast_pointwise_result`. The changed behavior in test_resample_categorical_data_with_timedel... | https://api.github.com/repos/pandas-dev/pandas/pulls/53089 | 2023-05-04T23:24:00Z | 2023-10-16T18:50:28Z | 2023-10-16T18:50:28Z | 2023-10-16T18:50:43Z |
PERF: Improve performance when accessing GroupBy.groups | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index da1b2e750392c..468a0eefc62ef 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -285,6 +285,7 @@ Performance improvements
- Performance improvement accessing :attr:`arrays.IntegerArrays.dtype` & :attr:`a... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53088 | 2023-05-04T22:59:39Z | 2023-05-05T17:59:41Z | 2023-05-05T17:59:41Z | 2023-05-05T18:00:59Z |
CI: Build wheel from sdist | diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml
index 0ebede6501f5f..0a508a8b1701f 100644
--- a/.github/workflows/wheels.yml
+++ b/.github/workflows/wheels.yml
@@ -4,7 +4,7 @@
# In an attempt to save CI resources, wheel builds do
# not run on each push but only weekly and for releases.
# W... | Builds the wheels for all platforms/Python versions from the sdist
Other changes:
* Cleans up the `wheel.yml` file
* Uses `delvewheel` to repair the windows wheels instead of manually patching
* Tests windows wheels with `windows-servercore` directly in the `wheels.yml` file
* Runs `wheel unpack` for every whe... | https://api.github.com/repos/pandas-dev/pandas/pulls/53087 | 2023-05-04T22:55:19Z | 2023-06-01T23:12:22Z | 2023-06-01T23:12:22Z | 2023-06-12T23:46:38Z |
CLN: assorted | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index da1b2e750392c..4139b65e248d8 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -438,7 +438,7 @@ Metadata
Other
^^^^^
-- Bug in :class:`FloatingArray.__contains__` with ``NaN`` item incorrectly return... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53086 | 2023-05-04T22:54:54Z | 2023-05-05T18:02:30Z | 2023-05-05T18:02:30Z | 2023-05-05T18:23:17Z |
STY: Enable more ruff checks | diff --git a/pyproject.toml b/pyproject.toml
index 042d13ea7956a..6eef8e4fa9b7c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -208,8 +208,12 @@ select = [
"B",
# flake8-quotes
"Q",
+ # flake8-debugger
+ "T10",
+ # flake8-gettext
+ "INT",
# pylint
- "PLE", "PLR", "PLW",
+ "PLC", "PLE", "PLR", "PL... | Enable ruff's pylint PLC, flake8-gettext, and flake8-debugger | https://api.github.com/repos/pandas-dev/pandas/pulls/53082 | 2023-05-04T20:14:36Z | 2023-05-05T10:37:24Z | 2023-05-05T10:37:24Z | 2023-05-05T17:09:47Z |
Backport PR #53078 on branch 2.0.x (BUG: pd.api.interchange.from_pandas raises with all-null categorical) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 8322c8408a0e3..71c31e61fa6a3 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -20,6 +20,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Bug in :func:`api.interchange.from_dataframe` was raising ``Inde... | Backport PR #53078: BUG: pd.api.interchange.from_pandas raises with all-null categorical | https://api.github.com/repos/pandas-dev/pandas/pulls/53081 | 2023-05-04T17:45:12Z | 2023-05-04T20:15:55Z | 2023-05-04T20:15:55Z | 2023-05-04T20:15:55Z |
Backport PR #53060 on branch 2.0.x (REGR: df.loc setitem losing midx names) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 8322c8408a0e3..4b5735c5721fd 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :meth:`Dat... | Backport PR #53060: REGR: df.loc setitem losing midx names | https://api.github.com/repos/pandas-dev/pandas/pulls/53080 | 2023-05-04T17:23:11Z | 2023-05-04T20:32:22Z | 2023-05-04T20:32:22Z | 2023-05-04T20:32:23Z |
CLN: clean Apply._try_aggregate_string_function | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 0c2adb89a2422..585afc571132f 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -278,7 +278,7 @@ def transform_str_or_callable(self, func) -> DataFrame | Series:
kwargs = self.kwargs
if isinstance(func, str):
- re... | CC @rhshadrach. | https://api.github.com/repos/pandas-dev/pandas/pulls/53079 | 2023-05-04T16:25:21Z | 2023-05-18T16:27:19Z | 2023-05-18T16:27:19Z | 2023-05-18T16:49:38Z |
BUG: pd.api.interchange.from_pandas raises with all-null categorical | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index b6c6df8424ef1..e10fc77699dd6 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -20,6 +20,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Bug in :func:`api.interchange.from_dataframe` was raising ``Inde... | - [ ] closes #53077 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/53078 | 2023-05-04T15:27:38Z | 2023-05-04T17:45:05Z | 2023-05-04T17:45:05Z | 2023-05-04T17:45:11Z |
Added test for sort_index parameter multiindex 'sort_remaining' = False | diff --git a/pandas/tests/frame/methods/test_sort_index.py b/pandas/tests/frame/methods/test_sort_index.py
index af55bc424d396..d7de369703ae9 100644
--- a/pandas/tests/frame/methods/test_sort_index.py
+++ b/pandas/tests/frame/methods/test_sort_index.py
@@ -914,3 +914,32 @@ def test_sort_index_na_position(self):
... | - [x] closes #24247
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
Issue fixed on main, added validation tests | https://api.github.com/repos/pandas-dev/pandas/pulls/53076 | 2023-05-04T15:01:50Z | 2023-05-06T14:43:31Z | 2023-05-06T14:43:31Z | 2023-05-08T07:08:34Z |
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) | diff --git a/pandas/tests/indexing/test_at.py b/pandas/tests/indexing/test_at.py
index 9df6cb640257e..01315647c464b 100644
--- a/pandas/tests/indexing/test_at.py
+++ b/pandas/tests/indexing/test_at.py
@@ -114,9 +114,10 @@ def test_at_setitem_multiindex(self):
@pytest.mark.parametrize("row", (Timestamp("2019-01-0... | another precursor to PDEP6, similar to https://github.com/pandas-dev/pandas/pull/52957
getting there...I think most of the remaining ones are when the test explicitly checks for upcasting behaviour, and so probably can't be changed right now | https://api.github.com/repos/pandas-dev/pandas/pulls/53075 | 2023-05-04T14:39:53Z | 2023-05-04T17:05:16Z | 2023-05-04T17:05:16Z | 2023-05-04T17:05:23Z |
Fix ns precision isoformat | diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx
index 27ff719b1a143..9e4bba1cf3544 100644
--- a/pandas/_libs/tslibs/timestamps.pyx
+++ b/pandas/_libs/tslibs/timestamps.pyx
@@ -1026,7 +1026,7 @@ cdef class _Timestamp(ABCTimestamp):
base1, base2 = base, ""
if t... | - [x] closes #53020
- [x] [Tests added and passed] Added new tests
- [x] All [code checks passed]
- [x] Added [type annotations]
- [x] Added an entry in the latest `doc/source/whatsnew/v2.1.0.rst` file
| https://api.github.com/repos/pandas-dev/pandas/pulls/53073 | 2023-05-04T13:35:35Z | 2023-05-09T18:04:04Z | 2023-05-09T18:04:04Z | 2023-05-09T18:04:13Z |
CLN: avoid upcasting in tests where unnecessary (PDEP-6 precursor) | diff --git a/pandas/tests/arrays/masked_shared.py b/pandas/tests/arrays/masked_shared.py
index 831fc64512b98..b0523ed496d45 100644
--- a/pandas/tests/arrays/masked_shared.py
+++ b/pandas/tests/arrays/masked_shared.py
@@ -24,11 +24,11 @@ def _compare_other(self, data, op, other):
ser = pd.Series(data)
... | another precursor to PDEP6, similar to #52957 | https://api.github.com/repos/pandas-dev/pandas/pulls/53070 | 2023-05-04T10:25:08Z | 2023-05-04T13:43:13Z | 2023-05-04T13:43:13Z | 2023-05-04T13:43:20Z |
REF: implement Manager.concat_vertical, concat_horizontal | diff --git a/pandas/core/internals/array_manager.py b/pandas/core/internals/array_manager.py
index c3be914aa095d..d7b899cc192fc 100644
--- a/pandas/core/internals/array_manager.py
+++ b/pandas/core/internals/array_manager.py
@@ -3,6 +3,7 @@
"""
from __future__ import annotations
+import itertools
from typing impor... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53066 | 2023-05-04T01:48:49Z | 2023-05-04T22:11:07Z | 2023-05-04T22:11:07Z | 2023-05-04T22:14:54Z |
CLN: remove pandas_dtype kwd from infer_dtype_from_x | diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py
index 8c8d962e7782b..74cc30a4e030d 100644
--- a/pandas/core/array_algos/putmask.py
+++ b/pandas/core/array_algos/putmask.py
@@ -136,7 +136,7 @@ def setitem_datetimelike_compat(values: np.ndarray, num_set: int, other):
other : Any
... | The only non-test place it is not True is in mask_missing, where that leads to an unnecessary object-dtype cast. | https://api.github.com/repos/pandas-dev/pandas/pulls/53064 | 2023-05-04T00:29:24Z | 2023-05-04T17:15:13Z | 2023-05-04T17:15:13Z | 2023-05-04T17:49:25Z |
CLN: avoid infer_dtype | diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py
index b90ceb7c2074d..8c9b45bd452a0 100644
--- a/pandas/core/arrays/masked.py
+++ b/pandas/core/arrays/masked.py
@@ -75,7 +75,11 @@
from pandas.core.array_algos.quantile import quantile_with_mask
from pandas.core.arraylike import OpsMixin
from p... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53063 | 2023-05-04T00:01:35Z | 2023-05-04T17:19:53Z | 2023-05-04T17:19:53Z | 2023-05-04T17:46:10Z |
STY: Enable pygrep ruff checks | diff --git a/asv_bench/benchmarks/pandas_vb_common.py b/asv_bench/benchmarks/pandas_vb_common.py
index 97d91111e833a..4bd56ccb1b5ce 100644
--- a/asv_bench/benchmarks/pandas_vb_common.py
+++ b/asv_bench/benchmarks/pandas_vb_common.py
@@ -17,7 +17,7 @@
try:
import pandas._testing as tm
except ImportError:
- imp... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53062 | 2023-05-03T23:42:28Z | 2023-05-06T07:07:17Z | 2023-05-06T07:07:17Z | 2023-05-06T19:32:23Z |
REF: privatize maybe_cast_to_extension_array | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 165a421989002..27eb7994d3ccb 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -38,7 +38,7 @@
validate_insert_loc,
)
-from pandas.core.dtypes.cast import maybe_cast_to_extension_array
+from pandas.core.dtypes.ca... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53061 | 2023-05-03T21:42:06Z | 2023-05-04T17:16:24Z | 2023-05-04T17:16:24Z | 2023-05-04T17:48:26Z |
REGR: df.loc setitem losing midx names | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index b6c6df8424ef1..5c3187cda15ae 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -13,6 +13,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+- Fixed regression in :meth:`Dat... | - [x] closes #53053 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/c... | https://api.github.com/repos/pandas-dev/pandas/pulls/53060 | 2023-05-03T21:36:00Z | 2023-05-04T17:21:41Z | 2023-05-04T17:21:41Z | 2023-05-04T17:29:26Z |
BUG: incorrect is_array_like checks | diff --git a/pandas/_typing.py b/pandas/_typing.py
index dc3f2f54a54ca..9d4acbe76ba15 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -155,7 +155,7 @@
RandomState = Union[
int,
- ArrayLike,
+ np.ndarray,
np.random.Generator,
np.random.BitGenerator,
np.random.RandomState,
diff --gi... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53057 | 2023-05-03T18:40:38Z | 2023-05-04T17:25:40Z | 2023-05-04T17:25:40Z | 2023-05-04T17:45:35Z |
STY: Enable ruff C4 - comprehensions | diff --git a/asv_bench/benchmarks/dtypes.py b/asv_bench/benchmarks/dtypes.py
index 52c87455b12b3..c33043c0eddc1 100644
--- a/asv_bench/benchmarks/dtypes.py
+++ b/asv_bench/benchmarks/dtypes.py
@@ -24,7 +24,7 @@
class Dtypes:
- params = _dtypes + list(map(lambda dt: dt.name, _dtypes))
+ params = _dtypes + [dt... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53056 | 2023-05-03T17:43:52Z | 2023-05-03T21:37:42Z | 2023-05-03T21:37:42Z | 2023-05-03T21:37:45Z |
BUG: Fix regression when printing backslash in DataFrame.to_string | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 692315bb88d30..7dc00e8e4bfeb 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | - [x] closes #53054
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/53055 | 2023-05-03T15:53:57Z | 2023-05-05T17:15:02Z | 2023-05-05T17:15:02Z | 2023-05-08T07:43:08Z |
DOC: Typo on the close argument of pandas.DataFrame.rolling | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index e26b4779ef7fa..56d6aa92022f9 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -2771,7 +2771,7 @@ def rolling(self, *args, **kwargs) -> RollingGroupby:
If ``'left'``, the last point in the... | The documentation "close" argument of pandas.DataFrame.rolling for option "both" had an extra "the", it is removed here.
| https://api.github.com/repos/pandas-dev/pandas/pulls/53050 | 2023-05-03T08:03:41Z | 2023-05-03T15:55:09Z | 2023-05-03T15:55:09Z | 2023-05-03T15:55:17Z |
BUG: `GroupBy.quantile` implicitly sorts `index.levels` | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 9fb039de8f73a..08ea347708b8f 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -412,6 +412,7 @@ Groupby/resample/rolling
the function operated on the whole index rather than each element of the index.... | - [x] Closes #53009
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit)
- [x] Added an entry in the latest `doc/source... | https://api.github.com/repos/pandas-dev/pandas/pulls/53049 | 2023-05-03T07:09:33Z | 2023-05-12T17:20:30Z | 2023-05-12T17:20:30Z | 2023-06-28T05:43:11Z |
STY: Bump black to 23.3.0 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2116bc64a5805..de1e615beaaa2 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,7 +26,7 @@ repos:
language: python
require_serial: true
types_or: [python, pyi]
- additional_dependencies: [black=... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53048 | 2023-05-03T03:14:32Z | 2023-05-03T08:42:00Z | 2023-05-03T08:42:00Z | 2023-05-03T15:45:40Z |
ERR: Raise TypeError for groupby.var with timeldeta | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 84e011bf80da6..4e0f31aa24f84 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -401,7 +401,7 @@ Groupby/resample/rolling
the function operated on the whole index rather than each element of the index.... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53045 | 2023-05-02T21:09:25Z | 2023-05-03T14:41:35Z | 2023-05-03T14:41:35Z | 2023-05-03T18:25:31Z |
BUG: `MultiIndex` displays incorrectly with a long element | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 84e011bf80da6..c390f57a904cb 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -372,7 +372,7 @@ I/O
- Bug in :func:`read_hdf` not properly closing store after a ``IndexError`` is raised (:issue:`52781`)... | - [x] Closes #52960
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit)
- [x] Added an entry in the latest `doc/source... | https://api.github.com/repos/pandas-dev/pandas/pulls/53044 | 2023-05-02T20:31:03Z | 2023-05-05T18:05:48Z | 2023-05-05T18:05:48Z | 2023-09-23T13:40:07Z |
DEPR: require SparseDtype.fill_value be compatible with SparseDtype.subtype | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 5b62883c2741e..63e212e40e9a3 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -261,6 +261,7 @@ Deprecations
- Deprecated unused "closed" keyword in the :class:`TimedeltaIndex` constructor (:issue:`5262... | - [x] closes #23124 (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/53043 | 2023-05-02T20:09:56Z | 2023-05-11T20:24:02Z | 2023-05-11T20:24:02Z | 2023-05-11T20:30:26Z |
REF: merge.py check for known arraylikes | diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py
index 0c438a7b8eb7c..a96a08f18e81f 100644
--- a/pandas/core/reshape/merge.py
+++ b/pandas/core/reshape/merge.py
@@ -52,7 +52,6 @@
ensure_float64,
ensure_int64,
ensure_object,
- is_array_like,
is_bool,
is_bool_dtype,
... | #48454 was going to do this as a deprecation, but before that got merged another PR accidentally made most weird-arraylikes raise (making it difficult to write a test for the deprecation). We agreed to wait a while to see if anyone complained about that, then to change over the checks explicitly. Among other things t... | https://api.github.com/repos/pandas-dev/pandas/pulls/53041 | 2023-05-02T16:10:44Z | 2023-05-04T17:41:27Z | 2023-05-04T17:41:27Z | 2023-05-04T17:43:47Z |
PERF: BaseMaskedArray._empty | diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py
index f1df86788ac44..7c30d53522ad9 100644
--- a/pandas/core/arrays/masked.py
+++ b/pandas/core/arrays/masked.py
@@ -132,6 +132,19 @@ def _from_sequence(cls, scalars, *, dtype=None, copy: bool = False) -> Self:
values, mask = cls._coerce_t... | 10x improvement in this method (but small effect overall as this is typically a small part of total time cost). | https://api.github.com/repos/pandas-dev/pandas/pulls/53040 | 2023-05-02T16:10:17Z | 2023-05-02T19:40:55Z | 2023-05-02T19:40:54Z | 2023-05-02T21:02:23Z |
DEPR: SparseArray(scalar) | diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst
index 35f9f623bf8ef..2c655301e44ce 100644
--- a/doc/source/whatsnew/v2.1.0.rst
+++ b/doc/source/whatsnew/v2.1.0.rst
@@ -259,6 +259,8 @@ Deprecations
- Deprecated unused "closed" and "normalize" keywords in the :class:`DatetimeIndex` construct... | - [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/53039 | 2023-05-02T15:55:41Z | 2023-05-02T19:41:37Z | 2023-05-02T19:41:37Z | 2023-05-02T19:42:44Z |
Backport PR #53001 on branch 2.0.x (BUG: Series.describe treating pyarrow timestamps/timedeltas as categorical) | diff --git a/doc/source/whatsnew/v2.0.2.rst b/doc/source/whatsnew/v2.0.2.rst
index 3ee7031795d16..8322c8408a0e3 100644
--- a/doc/source/whatsnew/v2.0.2.rst
+++ b/doc/source/whatsnew/v2.0.2.rst
@@ -23,6 +23,7 @@ Bug fixes
- Bug in :func:`api.interchange.from_dataframe` was returning :class:`DataFrame`'s of incorrect si... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/53031 | 2023-05-02T00:42:09Z | 2023-05-02T03:49:03Z | 2023-05-02T03:49:03Z | 2023-05-30T22:16:34Z |
DEPS: Unpin pydata-sphinx-theme | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 6f7e770e5d554..66fca61c2c6e5 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -237,14 +237,14 @@
html_theme_options = {
"external_links": [],
- "footer_items": ["pandas_footer", "sphinx-version"],
+ "footer_start": ["pandas_footer", "sp... | - [ ] closes #48988 (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/53029 | 2023-05-01T23:49:00Z | 2023-05-11T01:04:35Z | 2023-05-11T01:04:35Z | 2023-05-11T01:04:38Z |
ENH: Support multiple opening hours intervals for BusinessHour | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index da939687500b6..b647b8cff2058 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -158,6 +158,7 @@ Other enhancements
- :meth:`DataFrame.describe` now formats integer percentiles without decimal point ... | - [x] closes #15481
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I'm not sure why, but after rebasing on latest master my previous PR #26400 is automatically closed. So I created a new PR here. I have edited as per all the comments there. | https://api.github.com/repos/pandas-dev/pandas/pulls/26628 | 2019-06-03T08:00:14Z | 2019-06-28T14:10:21Z | 2019-06-28T14:10:21Z | 2019-06-28T14:10:28Z |
DOC/CI: Removing Panel specific code from validate_docstrings.py | diff --git a/scripts/validate_docstrings.py b/scripts/validate_docstrings.py
index 63db50db45a7c..64eaf45376b2f 100755
--- a/scripts/validate_docstrings.py
+++ b/scripts/validate_docstrings.py
@@ -539,14 +539,9 @@ def first_line_ends_in_dot(self):
if self.doc:
return self.doc.split('\n')[0][-1] ==... | - [X] xref #25632
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26627 | 2019-06-03T07:51:31Z | 2019-06-04T11:23:42Z | 2019-06-04T11:23:42Z | 2019-06-04T11:23:43Z |
DOC: Tidy documentation about plotting Series histograms | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index fed4b0d90983c..3f6a30c4639bc 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -2477,8 +2477,6 @@ def hist_series(self, by=None, ax=None, grid=True, xlabelsize=None,
bin edges are calculated and returned. If bins is a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26624 | 2019-06-02T20:05:46Z | 2019-06-02T23:11:49Z | 2019-06-02T23:11:49Z | 2019-06-02T23:11:53Z | |
DOC/CI: restore travis CI doc build environment | diff --git a/.travis.yml b/.travis.yml
index 90dd904e6cb1e..ce8817133a477 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -51,14 +51,14 @@ matrix:
# In allow_failures
- dist: trusty
env:
- - JOB="3.6, doc" ENV_FILE="environment.yml" DOC=true
+ - JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-do... | xref https://github.com/pandas-dev/pandas/pull/26591#issuecomment-498040997
This is one option (adding back the specific doc build environment yml file), another option would be to actually update the main `environment.yaml` file to be suitable for the doc build.
At the moment, my preference is to add back the sep... | https://api.github.com/repos/pandas-dev/pandas/pulls/26621 | 2019-06-02T15:38:29Z | 2019-06-03T05:35:26Z | 2019-06-03T05:35:26Z | 2019-06-03T07:28:29Z |
[CI] Add pytest-azurepipelines in pandas-dev | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index c783670e78d52..fe207d122657b 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -22,6 +22,7 @@ dependencies:
- hypothesis>=3.58.0
- pytest-xdist
- pytest-mock
+ - pytest-azurepipelines
- pip
- pip... | - closes #26601
Is it better to put `pip install pytest-azurepipelines` inside `setup_env.sh`? | https://api.github.com/repos/pandas-dev/pandas/pulls/26620 | 2019-06-02T11:28:58Z | 2019-06-28T14:12:24Z | 2019-06-28T14:12:24Z | 2019-06-28T14:12:45Z |
CI: pin pytest version on Python 3.5 | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index d0a48bd3f8b27..e55a4fbdf3fa9 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -26,5 +26,5 @@ dependencies:
- pip
- pip:
# for python 3.5, pytest>=4.0.2 is not available in conda
- - pytest>=4.0.2
... | closes #26614 | https://api.github.com/repos/pandas-dev/pandas/pulls/26619 | 2019-06-02T10:44:29Z | 2019-06-02T11:47:35Z | 2019-06-02T11:47:35Z | 2019-06-03T11:15:59Z |
PERF: custom ops for RangeIndex.[all|any|__contains__] | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1fb9b5ae695a0..0f31078d7bf43 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -502,7 +502,7 @@ Performance Improvements
- Improved performance of :meth:`Series.searchsorted`. The speedup is especia... | - [x] xref #26565
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Follow-up to #26565. Make ``RangeIndex._data`` be created in fewer cases.
Performance examples (but the larger gain is from memory savings by not creating the ``_data`` array):... | https://api.github.com/repos/pandas-dev/pandas/pulls/26617 | 2019-06-02T09:14:11Z | 2019-06-06T17:38:21Z | 2019-06-06T17:38:21Z | 2019-06-19T13:43:48Z |
CLN: Remove convert_objects | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index dfa475684c834..b4fb85c028b3e 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -48,7 +48,6 @@ Conversion
:toctree: api/
DataFrame.astype
- DataFrame.convert_objects
DataFrame.infer_object... | - [x] xref #6581
- [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/26612 | 2019-06-02T00:02:51Z | 2019-06-02T23:20:16Z | 2019-06-02T23:20:16Z | 2019-06-03T15:11:03Z |
CI: Removing doc build in azure | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 0064d0a932960..85325c52e7e6d 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -116,63 +116,3 @@ jobs:
fi
displayName: 'Running benchmarks'
condition: true
-
-- job: 'Docs'
- pool:
- vmImage: ubuntu-16.04
- timeoutInMinutes: ... | Stop building the docs in azure. Beside not working, azure became unreliable, raising random errors for unrelated changes.
See: #26591 #26602 #26604
CC: @jreback (sorry for the trouble, hopefully this takes things back to normality) | https://api.github.com/repos/pandas-dev/pandas/pulls/26609 | 2019-06-01T16:14:38Z | 2019-06-01T16:46:56Z | 2019-06-01T16:46:56Z | 2019-06-01T17:15:20Z |
TST/API: Forbid str-accessor for 1-level MultiIndex | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 461c883f542ab..0e8cd95084a8d 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -434,6 +434,7 @@ Other API Changes
- The ``arg`` argument in :meth:`pandas.core.groupby.DataFrameGroupBy.agg` has been ... | - [x] closes #23679
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Another PR that had been blocked by #23167. | https://api.github.com/repos/pandas-dev/pandas/pulls/26608 | 2019-06-01T15:56:52Z | 2019-06-03T11:56:30Z | 2019-06-03T11:56:29Z | 2019-06-05T22:15:17Z |
Better error for str.cat with listlike of wrong dtype. | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c1d4797af9145..720cbdc2aeba8 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -613,7 +613,7 @@ Strings
^^^^^^^
- Bug in the ``__name__`` attribute of several methods of :class:`Series.str`, whic... | - [x] closes #22722
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This had been blocked on #23167. | https://api.github.com/repos/pandas-dev/pandas/pulls/26607 | 2019-06-01T15:51:00Z | 2019-06-14T12:27:01Z | 2019-06-14T12:27:01Z | 2019-06-14T18:16:15Z |
Clean up ufuncs post numpy bump | diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py
index ecc06db2bd07b..926ed6a829a6d 100644
--- a/pandas/core/arrays/sparse.py
+++ b/pandas/core/arrays/sparse.py
@@ -573,7 +573,6 @@ class SparseArray(PandasObject, ExtensionArray, ExtensionOpsMixin):
Whether to explicitly copy the incomin... | Found an old branch lying around I had forgotten about after the numpy bump, which had been requested by @TomAugspurger in [this comment](https://github.com/pandas-dev/pandas/pull/25554#pullrequestreview-212474594)
| https://api.github.com/repos/pandas-dev/pandas/pulls/26606 | 2019-06-01T15:42:26Z | 2019-06-02T23:34:28Z | 2019-06-02T23:34:27Z | 2019-06-03T05:17:26Z |
PERF: Add if branch for empty sep in str.cat | diff --git a/pandas/core/strings.py b/pandas/core/strings.py
index 54882d039f135..43514153b0515 100644
--- a/pandas/core/strings.py
+++ b/pandas/core/strings.py
@@ -59,6 +59,9 @@ def cat_core(list_of_columns: List, sep: str):
nd.array
The concatenation of list_of_columns with sep
"""
+ if sep == "... | Follow-up to #23167, resp dropping py2. The branch I'm readding here had to be deleted originally to pass some python2 bytes-tests. In case there is no separator, we can avoid all the list-ops and speed up cat_core by a fair bit. | https://api.github.com/repos/pandas-dev/pandas/pulls/26605 | 2019-06-01T15:32:46Z | 2019-07-31T12:29:59Z | 2019-07-31T12:29:59Z | 2019-07-31T13:26:42Z |
CI: Changing dev docs ssh key | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 9f83917024049..0064d0a932960 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -161,7 +161,7 @@ jobs:
- task: InstallSSHKey@0
inputs:
hostName: 'github.com'
- sshPublicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDHmz3l/EdqrgNxE... | #26591 made master builds to fail. Looks like there was a problem with the ssh keys. I regenerated them and updated them in the github deployment keys and azure pipelines secret. Updating the settings here.
CC: @jreback
| https://api.github.com/repos/pandas-dev/pandas/pulls/26604 | 2019-06-01T15:15:21Z | 2019-06-01T15:34:58Z | 2019-06-01T15:34:58Z | 2019-06-01T16:09:22Z |
TST/CLN: deduplicate fixture from test_to_latex.py | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 8f71028f51ab4..09fe8e0829fa1 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -12,6 +12,8 @@
import pandas.util._test_decorators as td
import pandas as pd
+from pandas import DataFrame
+import pandas.util.testing as tm
hypothesis.settings.regi... | this PR is basically just to promote the float_frame fixture to top-level conftest.
once there, there is opportunities to re-use by fixturising current instances of
```
df = DataFrame(tm.getSeriesData())
```
also allows removing duplicate fixture from pandas/tests/io/formats/test_to_latex.py
so this is j... | https://api.github.com/repos/pandas-dev/pandas/pulls/26603 | 2019-06-01T15:04:51Z | 2019-06-02T23:13:09Z | 2019-06-02T23:13:09Z | 2019-06-03T11:15:20Z |
MAINT: Condense TIMEZONE_IDS construction | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 09fe8e0829fa1..c4285e9db038a 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -378,12 +378,7 @@ def unique_nulls_fixture(request):
FixedOffset(0), FixedOffset(-300), timezone.utc,
timezone(timedelta(hours=1)),
... | Follow-up to #26596 | https://api.github.com/repos/pandas-dev/pandas/pulls/26600 | 2019-06-01T06:33:07Z | 2019-06-06T14:50:05Z | 2019-06-06T14:50:05Z | 2019-06-06T18:11:24Z |
CLN: remove sample_time attributes from benchmarks | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 0fdf46e7c64de..896a20bae2069 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -52,7 +52,6 @@ def time_is_dates_only(self):
class Ops:
- sample_time = 0.2
params = ['... | Very minor benchmark cleanup now that I was on it...
These attributes appear to have been brought in by direct replacement of a
deprecated ASV attribute goal_time -> sample_time, but the two have
different semantics (the value sample_time=0.2 is 20x the default).
Increasing this from the default value is probably... | https://api.github.com/repos/pandas-dev/pandas/pulls/26598 | 2019-05-31T17:57:53Z | 2019-06-01T14:08:20Z | 2019-06-01T14:08:20Z | 2019-06-01T14:08:37Z |
TST: prepare conftest for #25637 | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 3c411f8ba3e31..8f71028f51ab4 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -376,10 +376,16 @@ def unique_nulls_fixture(request):
FixedOffset(0), FixedOffset(-300), timezone.utc,
timezone(timedelta(hours=1)),
... | Split off from #25637 at the [request](https://github.com/pandas-dev/pandas/pull/25637#discussion_r289447555) of @gfyoung
Relevant discussions:
https://github.com/pandas-dev/pandas/pull/25637#discussion_r289042255
https://github.com/pandas-dev/pandas/pull/25637#discussion_r289441644
| https://api.github.com/repos/pandas-dev/pandas/pulls/26596 | 2019-05-31T16:01:11Z | 2019-06-01T00:17:54Z | 2019-06-01T00:17:54Z | 2019-06-01T15:14:11Z |
Test conda 4.7.1 | diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml
index 6d4afccb57865..20cad1bb4af96 100644
--- a/ci/azure/windows.yml
+++ b/ci/azure/windows.yml
@@ -21,7 +21,9 @@ jobs:
displayName: 'Add conda to PATH'
- script: conda update -q -n base conda
displayName: Update conda
- - script: conda env ... | Testing conda 4.7.x | https://api.github.com/repos/pandas-dev/pandas/pulls/26595 | 2019-05-31T14:44:43Z | 2019-06-26T11:21:37Z | 2019-06-26T11:21:37Z | 2019-06-26T12:17:57Z |
TST: add concrete examples of dataframe fixtures to docstrings | diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py
index 27c0e070c10c2..c451cd58f1497 100644
--- a/pandas/tests/frame/conftest.py
+++ b/pandas/tests/frame/conftest.py
@@ -11,6 +11,25 @@ def float_frame():
Fixture for DataFrame of floats with index of unique strings
Columns are ['A'... | add concrete examples of dataframe fixtures to docstrings to make it easier when looking for fixtures to reuse.
and also appear when using `pytest --fixtures` and `pytest --fixtures-per-test` so could be an aid to debugging
```
------------------ fixtures used by test_set_index_directly -------------------
----... | https://api.github.com/repos/pandas-dev/pandas/pulls/26593 | 2019-05-31T14:22:30Z | 2019-06-01T14:09:28Z | 2019-06-01T14:09:28Z | 2019-06-03T11:16:28Z |
CI/DOC: Building documentation with azure | diff --git a/.travis.yml b/.travis.yml
index ce8817133a477..90dd904e6cb1e 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -51,14 +51,14 @@ matrix:
# In allow_failures
- dist: trusty
env:
- - JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true
+ - JOB="3.6, doc" ENV_FILE="environme... | - [X] xref #22766, #26574
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26591 | 2019-05-31T12:36:54Z | 2019-06-01T14:12:41Z | 2019-06-01T14:12:40Z | 2019-06-02T15:29:18Z |
remove outdated gtk package from code | diff --git a/doc/source/install.rst b/doc/source/install.rst
index b3b5945cc515e..98443ede2e965 100644
--- a/doc/source/install.rst
+++ b/doc/source/install.rst
@@ -281,7 +281,6 @@ Optional Dependencies
`qtpy <https://github.com/spyder-ide/qtpy>`__ (requires PyQt or PySide),
`PyQt5 <https://www.riverbankcomputin... | - [x] closes #26563
- [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/26590 | 2019-05-31T12:11:28Z | 2019-06-02T21:09:45Z | 2019-06-02T21:09:45Z | 2019-06-02T21:09:53Z |
Convert Unions to TypeVar | diff --git a/pandas/_typing.py b/pandas/_typing.py
index f5bf0dcd3e220..a2bb168c1e2da 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -1,5 +1,5 @@
from pathlib import Path
-from typing import IO, AnyStr, Type, Union
+from typing import IO, AnyStr, TypeVar, Union
import numpy as np
@@ -11,12 +11,14 @@
f... | - [x] closes #26453
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/26588 | 2019-05-31T08:31:49Z | 2019-06-08T21:55:31Z | 2019-06-08T21:55:31Z | 2019-06-09T03:12:26Z |
Revert test_constructors xfail | diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py
index f371f4e93a29e..68017786eb6a6 100644
--- a/pandas/tests/frame/test_constructors.py
+++ b/pandas/tests/frame/test_constructors.py
@@ -15,7 +15,7 @@
import pandas as pd
from pandas import (
Categorical, DataFrame, I... | Reverts https://github.com/pandas-dev/pandas/pull/26548
xref https://github.com/numpy/numpy/pull/13663
Closes https://github.com/pandas-dev/pandas/issues/26546
| https://api.github.com/repos/pandas-dev/pandas/pulls/26586 | 2019-05-31T02:56:57Z | 2019-05-31T03:40:37Z | 2019-05-31T03:40:37Z | 2019-05-31T03:40:37Z |
BUG: fix TypeError for invalid integer dates %Y%m%d with errors='ignore' | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1619ba1a45739..5d30cbe9e2a15 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -529,6 +529,7 @@ Datetimelike
- Bug in :func:`to_datetime` which does not replace the invalid argument with ``NaT`` whe... | - [x] closes #26583
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
array_strptime returned TypeError when trying to slice 'too long' integer for the given format %Y%m%d (for example 2121010101).
After parsing date in the first 8 symbols i... | https://api.github.com/repos/pandas-dev/pandas/pulls/26585 | 2019-05-31T02:06:51Z | 2019-06-05T19:06:15Z | 2019-06-05T19:06:14Z | 2019-06-05T19:06:47Z |
Add more specific error message when user passes incorrect matrix format to from_coo | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1619ba1a45739..95b7b3dce82da 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -692,7 +692,7 @@ Sparse
- Significant speedup in :class:`SparseArray` initialization that benefits most operations, fix... | - [x] closes #26554
- [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/26584 | 2019-05-31T01:31:58Z | 2019-06-02T23:42:55Z | 2019-06-02T23:42:55Z | 2019-06-02T23:43:04Z |
use range in RangeIndex instead of _start etc. | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 461c883f542ab..295452c300931 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -473,6 +473,9 @@ Other Deprecations
the :meth:`SparseArray.to_dense` method instead (:issue:`26421`).
- The function... | - [x] xref #26565
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Make RangeIndex use python's ``range`` internally, rather than the three scalars ``_start``, ``_stop`` and ``_step``.
Python3's ``range`` has several nice properties, that wer... | https://api.github.com/repos/pandas-dev/pandas/pulls/26581 | 2019-05-30T20:37:22Z | 2019-06-05T12:50:34Z | 2019-06-05T12:50:34Z | 2019-06-05T12:59:33Z |
ENH: Named aggregation in SeriesGroupBy.agg | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 2014dbd9865f3..9895fc606f70d 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -595,7 +595,7 @@ accepts the special syntax in :meth:`GroupBy.agg`, known as "named aggregation",
animals.gr... | ```python
In [4]: animals = pd.DataFrame({'kind': ['cat', 'dog', 'cat', 'dog'],
...: 'height': [9.1, 6.0, 9.5, 34.0],
...: 'weight': [7.9, 7.5, 9.9, 198.0]})
...: animals.groupby("kind").height.agg(max_height='max')
Out[4]:
max_height
kin... | https://api.github.com/repos/pandas-dev/pandas/pulls/26580 | 2019-05-30T19:14:12Z | 2019-06-10T12:45:05Z | 2019-06-10T12:45:05Z | 2019-06-10T12:45:08Z |
Remove SharedItems from test_excel | diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py
index 7693caf3b31d2..b99f0336fa4c5 100644
--- a/pandas/tests/io/test_excel.py
+++ b/pandas/tests/io/test_excel.py
@@ -26,13 +26,22 @@
from pandas.io.formats.excel import ExcelFormatter
from pandas.io.parsers import read_csv
-_seriesd = tm.ge... | Pretty big step towards logically partitioning tests in this module - replaced SharedItems and instance attributes with fixtures. Should make subsequent test reorg easier
@simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/26579 | 2019-05-30T18:57:20Z | 2019-06-05T12:59:13Z | 2019-06-05T12:59:12Z | 2020-01-16T00:34:49Z |
TST: update tests\plotting\test_frame.py message check for mpl 3.1.0 | diff --git a/pandas/plotting/_compat.py b/pandas/plotting/_compat.py
index 4077bef8f36f5..36bbe0f4ec174 100644
--- a/pandas/plotting/_compat.py
+++ b/pandas/plotting/_compat.py
@@ -17,3 +17,4 @@ def inner():
_mpl_ge_2_2_3 = _mpl_version('2.2.3', operator.ge)
_mpl_ge_3_0_0 = _mpl_version('3.0.0', operator.ge)
+_mpl_... | new error message for df.plot.line
https://travis-ci.org/pandas-dev/pandas/jobs/539282780 | https://api.github.com/repos/pandas-dev/pandas/pulls/26577 | 2019-05-30T17:09:13Z | 2019-05-30T19:51:04Z | 2019-05-30T19:51:04Z | 2019-05-30T21:54:40Z |
PERF/CI: fix benchmark import error + run asv check on all builds | diff --git a/asv_bench/benchmarks/frame_methods.py b/asv_bench/benchmarks/frame_methods.py
index 0c1d861ce0839..5b76eeba115a4 100644
--- a/asv_bench/benchmarks/frame_methods.py
+++ b/asv_bench/benchmarks/frame_methods.py
@@ -96,6 +96,8 @@ def time_dict_rename_both_axes(self):
class Iteration:
+ # mem_itertuples... | Fix benchmark suite import error on master and 0.23.
Run `asv check` on all commits to lint the benchmark suite.
Also, fixed a timeout error that appears on newer asv versions,
which have an updated asizeof.py module. | https://api.github.com/repos/pandas-dev/pandas/pulls/26575 | 2019-05-30T14:31:41Z | 2019-05-30T19:16:58Z | 2019-05-30T19:16:58Z | 2019-05-30T19:17:06Z |
DOC: sparse doc fixups | diff --git a/doc/source/user_guide/sparse.rst b/doc/source/user_guide/sparse.rst
index 8fed29d7a6316..09ed895a847ff 100644
--- a/doc/source/user_guide/sparse.rst
+++ b/doc/source/user_guide/sparse.rst
@@ -269,7 +269,7 @@ have no replacement.
Interaction with scipy.sparse
-----------------------------
-Use :meth:`Da... | https://api.github.com/repos/pandas-dev/pandas/pulls/26571 | 2019-05-30T11:29:20Z | 2019-06-01T14:35:26Z | 2019-06-01T14:35:26Z | 2019-06-02T15:26:33Z | |
PERF: don't call RangeIndex._data unnecessarily | diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py
index 896a20bae2069..78fe2ae966896 100644
--- a/asv_bench/benchmarks/index_object.py
+++ b/asv_bench/benchmarks/index_object.py
@@ -94,6 +94,12 @@ def time_min(self):
def time_min_trivial(self):
self.idx_inc.min()
+... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I've looked into ``RangeIndex`` and found that the index type creates and caches a int64 array if/when ``RangeIndex._data`` property is being called. This basically means that in... | https://api.github.com/repos/pandas-dev/pandas/pulls/26565 | 2019-05-29T19:50:55Z | 2019-06-01T17:03:59Z | 2019-06-01T17:03:59Z | 2019-06-01T17:28:14Z |
Provide ExtensionDtype.construct_from_string by default | diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py
index 42aa6a055acca..29337b7f76131 100644
--- a/pandas/core/arrays/integer.py
+++ b/pandas/core/arrays/integer.py
@@ -78,17 +78,6 @@ def construct_array_type(cls):
"""
return IntegerArray
- @classmethod
- def construct_... | - [ ] closes #xxxx
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
I think it makes sense to provide a standard `construct_from_string` by default, instead of forcing subclasses of `ExtensionDtype` to implement it.
This way we can define a si... | https://api.github.com/repos/pandas-dev/pandas/pulls/26562 | 2019-05-29T16:26:27Z | 2019-06-06T14:28:26Z | 2019-06-06T14:28:26Z | 2019-06-11T07:51:54Z |
BUG: ignore errors for invalid dates in to_datetime() with errors=coerce (#25512) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 32faf7115f0fd..e81bc57317c89 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -359,6 +359,7 @@ Datetimelike
- Bug in :class:`Series` and :class:`DataFrame` repr where ``np.datetime64('NaT')`` and `... | - [x] closes #25512
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
parsing.try_parse_year_month_day() in _attempt_YYYYMMDD() throws not only ValueError but also OverFlowError for incorrect dates. So handling of this error was added.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26561 | 2019-05-29T11:20:50Z | 2019-06-01T14:45:07Z | 2019-06-01T14:45:07Z | 2019-06-01T14:45:56Z |
TST/CLN: Fixturize tests/frame/test_quantile.py | diff --git a/pandas/tests/frame/test_quantile.py b/pandas/tests/frame/test_quantile.py
index a5771839e0997..9ccbd290923ba 100644
--- a/pandas/tests/frame/test_quantile.py
+++ b/pandas/tests/frame/test_quantile.py
@@ -3,24 +3,24 @@
import pandas as pd
from pandas import DataFrame, Series, Timestamp
-from pandas.test... | - xref #22471
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26556 | 2019-05-29T07:29:18Z | 2019-06-01T14:48:37Z | 2019-06-01T14:48:37Z | 2019-06-01T14:48:43Z |
Remove Unnecessary Subclasses from test_excel | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index 3af6be7a371e7..24412b26b021b 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -591,7 +591,7 @@ class ExcelWriter(metaclass=abc.ABCMeta):
def __new__(cls, path, engine=None, **kwargs):
# only switch class if gener... | More cleanup... | https://api.github.com/repos/pandas-dev/pandas/pulls/26553 | 2019-05-29T05:14:28Z | 2019-05-30T01:49:17Z | 2019-05-30T01:49:17Z | 2019-05-30T01:49:20Z |
xfail constructor test for numpydev | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index bd871c47fa08b..3499d631376d8 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -12,6 +12,7 @@
_np_version_under1p15 = _nlv < LooseVersion('1.15')
_np_version_under1p16 = _nlv < LooseVersion('1.16')... | xref #26546. It seems like that will be fixed upstream, which will require new wheels. xfailing for now.
When fixed and new wheels are available, this will fail again, but we can merge PRs in the meantime. | https://api.github.com/repos/pandas-dev/pandas/pulls/26548 | 2019-05-28T17:05:01Z | 2019-05-28T20:21:42Z | 2019-05-28T20:21:41Z | 2019-05-28T20:21:52Z |
CI: unary operator expected error in log files | diff --git a/ci/setup_env.sh b/ci/setup_env.sh
index e2667558a63d7..8f73bb228e2bd 100755
--- a/ci/setup_env.sh
+++ b/ci/setup_env.sh
@@ -118,12 +118,12 @@ echo "conda list"
conda list
# Install DB for Linux
-if [ ${TRAVIS_OS_NAME} == "linux" ]; then
+if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
echo "installing d... | fix error in azure log
```
ci/setup_env.sh: line 121: [: ==: unary operator expected
```
| https://api.github.com/repos/pandas-dev/pandas/pulls/26547 | 2019-05-28T13:57:11Z | 2019-05-29T10:17:25Z | 2019-05-29T10:17:25Z | 2019-05-29T10:18:52Z |
Fixturize Test Excel | diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py
index 100de227aa97c..6db3d1d4ab34d 100644
--- a/pandas/tests/io/test_excel.py
+++ b/pandas/tests/io/test_excel.py
@@ -22,7 +22,7 @@
from pandas.io.common import URLError
from pandas.io.excel import (
ExcelFile, ExcelWriter, _OpenpyxlWrite... | Continued simplification of this module by moving towards pytest idiom. Here I have eliminated any test instance methods and replaced with fixtures
| https://api.github.com/repos/pandas-dev/pandas/pulls/26543 | 2019-05-28T06:55:14Z | 2019-05-30T01:02:01Z | 2019-05-30T01:02:01Z | 2019-05-30T01:48:43Z |
CLN: pd.options.html.border | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 32faf7115f0fd..276812a564e03 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -315,6 +315,7 @@ Removal of prior version deprecations/changes
- Removed the previously deprecated ``sheetname`` keywor... | - [x] xref #6581
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26540 | 2019-05-27T18:01:47Z | 2019-05-27T18:44:00Z | 2019-05-27T18:44:00Z | 2019-05-27T18:44:03Z |
Add reader for SPSS (.sav) files | diff --git a/LICENSES/HAVEN_LICENSE b/LICENSES/HAVEN_LICENSE
new file mode 100644
index 0000000000000..2f444cb44d505
--- /dev/null
+++ b/LICENSES/HAVEN_LICENSE
@@ -0,0 +1,2 @@
+YEAR: 2013-2016
+COPYRIGHT HOLDER: Hadley Wickham; RStudio; and Evan Miller
diff --git a/LICENSES/HAVEN_MIT b/LICENSES/HAVEN_MIT
new file mode ... | - [x] closes #5768 (at least the reading part, this PR does not cover writing SPSS files)
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
I haven't added a test yet because I wanted to ask which test .sav file I should use (and where to put it).... | https://api.github.com/repos/pandas-dev/pandas/pulls/26537 | 2019-05-27T11:49:42Z | 2019-06-16T14:30:39Z | 2019-06-16T14:30:39Z | 2019-07-19T13:19:30Z |
Add typing annotation to assert_index_equal | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 92d450140a891..107c17c5253fb 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -12,6 +12,7 @@
import string
import tempfile
import traceback
+from typing import Union, cast
import warnings
import zipfile
@@ -515,9 +516,14 @@ def... | - xref #26302
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26535 | 2019-05-27T07:39:24Z | 2019-06-08T21:45:50Z | 2019-06-08T21:45:50Z | 2019-06-08T21:45:55Z |
DOC: fix broken link for .iloc | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index 3c7a286c8a4f8..93e56834b62f6 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -1940,7 +1940,7 @@ class _iLocIndexer(_LocationIndexer):
out-of-bounds, except *slice* indexers which allow out-of-bounds
indexing (this confo... | https://api.github.com/repos/pandas-dev/pandas/pulls/26533 | 2019-05-26T18:13:38Z | 2019-05-27T15:04:17Z | 2019-05-27T15:04:17Z | 2019-05-27T15:09:36Z | |
Docstring GL01 GL02 fixes | diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py
index 4353e0b3edd08..b092541da93e6 100644
--- a/pandas/core/accessor.py
+++ b/pandas/core/accessor.py
@@ -196,7 +196,7 @@ def decorator(accessor):
return decorator
-_doc = """\
+_doc = """
Register a custom accessor on %(klass)s objects.
Parame... | - [X] closes #24071 and also includes requested fixes from #25324
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26526 | 2019-05-26T11:04:55Z | 2019-06-21T02:10:49Z | 2019-06-21T02:10:49Z | 2019-06-21T02:10:54Z |
CLN: remove StringMixin from code base, except in core.computation | diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py
index 0f7f6fe399256..11f705e88179d 100644
--- a/pandas/io/pytables.py
+++ b/pandas/io/pytables.py
@@ -32,7 +32,6 @@
to_datetime)
from pandas.core.arrays.categorical import Categorical
from pandas.core.arrays.sparse import BlockIndex, IntIndex
-from panda... | - [x] xref #25725 & #26495
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Removes use of ``StringMixin`` from pandas.io StringMixin is now only used in pandas.core.computation.
I haven't been able to remove this class from core.computation. If I do, I get an erro... | https://api.github.com/repos/pandas-dev/pandas/pulls/26523 | 2019-05-25T16:58:59Z | 2019-05-26T14:31:44Z | 2019-05-26T14:31:44Z | 2019-05-26T15:30:36Z |
CLN: Remove deprecated parse_cols from read_excel | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c51441f701a45..32faf7115f0fd 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -313,8 +313,8 @@ Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Removed... | - [x] xref #6581
- [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/26522 | 2019-05-25T16:37:42Z | 2019-05-25T18:40:15Z | 2019-05-25T18:40:15Z | 2019-05-26T02:50:12Z |
Issue/26506 Provides correct desciption in docstring that get_indexer methods are not yet supported | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index eff7ff2c9f347..caf881ef069e6 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -52,6 +52,7 @@
_index_doc_kwargs = dict(klass='Index', inplace='',
target_klass='Index',
+ ... | - [x] fixes docstring for #26506 until implementation is ready
- [x] 46585 tests passed - none added as documentation change only
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
```
$ git diff upstream/master -u -- "*.py" | flake8 --diff && echo yes
yes
```
- [x] whatsnew entry
Provides cor... | https://api.github.com/repos/pandas-dev/pandas/pulls/26519 | 2019-05-25T01:58:28Z | 2019-05-30T01:27:47Z | 2019-05-30T01:27:47Z | 2019-05-30T01:28:19Z |
Fix type annotations in pandas.core.indexes.period | diff --git a/mypy.ini b/mypy.ini
index 3df8fd13a2a75..eea6a3b551677 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -7,6 +7,3 @@ ignore_errors=True
[mypy-pandas.core.indexes.datetimelike]
ignore_errors=True
-
-[mypy-pandas.core.indexes.period]
-ignore_errors=True
diff --git a/pandas/core/indexes/period.py b/pandas/core/ind... | - [x] closes #26517
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/26518 | 2019-05-25T00:10:42Z | 2019-05-29T12:40:41Z | 2019-05-29T12:40:40Z | 2019-05-29T16:44:54Z |
MAINT: port numpy#13188 for np_datetime simplification | diff --git a/pandas/_libs/tslibs/src/datetime/np_datetime.c b/pandas/_libs/tslibs/src/datetime/np_datetime.c
index 87866d804503e..a8a47e2e90f93 100644
--- a/pandas/_libs/tslibs/src/datetime/np_datetime.c
+++ b/pandas/_libs/tslibs/src/datetime/np_datetime.c
@@ -498,6 +498,27 @@ npy_datetime npy_datetimestruct_to_datetim... | Bring numpy changes about emulating the behavior of python's divmod to
pandas.
- [x] closes #26500
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26516 | 2019-05-24T21:43:24Z | 2019-05-26T17:57:48Z | 2019-05-26T17:57:48Z | 2019-05-26T17:57:59Z |
BUG: fix categorical comparison with missing values (#26504 ) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 89a9da4a73b35..6604199930bc5 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -414,7 +414,7 @@ Categorical
^^^^^^^^^^^
- Bug in :func:`DataFrame.at` and :func:`Series.at` that would raise except... | - [x] closes #26504
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR fixes issues comparison of ordered categorical with missing values evaluates to True(#26504 ). Now making comparison with missing values always gives False. The missing... | https://api.github.com/repos/pandas-dev/pandas/pulls/26514 | 2019-05-24T19:31:13Z | 2019-06-01T14:51:27Z | 2019-06-01T14:51:27Z | 2019-06-01T14:51:33Z |
CLN: Remove StringMixin from PandasObject | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1fff30525853d..483091c939d0c 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -213,6 +213,20 @@ are returned. (:issue:`21521`)
df.groupby("a").ffill()
+``__str__`` methods now call ``__repr... | - [x] closes #26495
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Addresses #26495. In addition to the use of StringMixin in PandasObject, StringMixin is also used in core.computation and the io.pytables. I'd like to tackle those in a differen... | https://api.github.com/repos/pandas-dev/pandas/pulls/26505 | 2019-05-23T16:36:03Z | 2019-05-24T15:29:33Z | 2019-05-24T15:29:33Z | 2019-05-25T07:32:31Z |
DOC: fix SyntaxError in doc build on Windows | diff --git a/doc/source/conf.py b/doc/source/conf.py
index e7d358c7961ab..971aa04ba866a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -319,7 +319,7 @@
pd.options.display.max_rows = 15
import os
- os.chdir('{}')
+ os.chdir(r'{}')
""".format(os.path.dirname(os.path.dirname(__file__)))
| i'm getting this error for most files during doc build on Windows...
```
>>>-------------------------------------------------------------------------
Exception in C:\Users\simon\OneDrive\code\pandas-simonjayhawkins\doc\source\development\contributing.rst at block ending on line None
Specify :okexcept: as an optio... | https://api.github.com/repos/pandas-dev/pandas/pulls/26499 | 2019-05-22T22:46:53Z | 2019-05-23T13:04:57Z | 2019-05-23T13:04:57Z | 2019-05-24T06:32:59Z |
DOC: Fixed redirects in various parts of the documentation | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index d25ccd1b158be..230602612ac66 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -272,7 +272,8 @@ class Categorical(ExtensionArray, PandasObject):
Notes
-----
See the `user guide... | Links in the docs to part way down a page were being sent to the top of the page due to a generic redirect from pandas.pydata.org/pandas-doc/stable/... -> pandas.pydata.org/pandas-doc/stable/user_guide/... . These links have been change to go straight to the .../user_guide/... version of the page to ensure the link goe... | https://api.github.com/repos/pandas-dev/pandas/pulls/26497 | 2019-05-22T21:00:45Z | 2019-05-31T12:41:11Z | 2019-05-31T12:41:11Z | 2019-06-03T19:32:49Z |
DOC: Highlighted role of index alignment in DataFrame.dot(other) (#26… | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 6bfa63012689d..7d501e8095921 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -944,7 +944,9 @@ def dot(self, other):
Notes
-----
The dimensions of DataFrame and other must be compatible in order to
- compute ... | …480)
- [X] closes #26480
- [X] tests passed
Added note highlighting that column names of DataFrame and index of other need to same.
Added example showing that reshuffling of objects does not change which elements are multiplied with which. | https://api.github.com/repos/pandas-dev/pandas/pulls/26496 | 2019-05-22T20:45:53Z | 2019-05-23T16:46:21Z | 2019-05-23T16:46:20Z | 2019-05-25T12:56:50Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.