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: flesh out EA setitem tests | diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py
index f1fa74192d4df..cb9a19b438feb 100644
--- a/pandas/tests/extension/base/setitem.py
+++ b/pandas/tests/extension/base/setitem.py
@@ -8,6 +8,35 @@
class BaseSetitemTests(BaseExtensionTests):
+ @pytest.fixture(
+ ... | Preliminary to fixing some behavior that these hit | https://api.github.com/repos/pandas-dev/pandas/pulls/39034 | 2021-01-08T04:44:42Z | 2021-01-08T14:12:27Z | 2021-01-08T14:12:27Z | 2021-01-08T15:51:42Z |
Backport PR #39023 on branch 1.2.x (Fix regression in setitem when expanding DataFrame with specific column name format) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index baeca87b8c4f8..4b7a4180ee9f9 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in repr of float-like strings of an ``object`` dtype having trailing 0'... | Backport PR #39023: Fix regression in setitem when expanding DataFrame with specific column name format | https://api.github.com/repos/pandas-dev/pandas/pulls/39032 | 2021-01-08T00:20:10Z | 2021-01-08T01:14:21Z | 2021-01-08T01:14:21Z | 2021-01-08T01:14:21Z |
CLN: add typing to dtype arg in core/internals, core/reshape and core (GH38808) | diff --git a/pandas/core/base.py b/pandas/core/base.py
index afc22a8446dce..b603ba31f51dd 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -19,7 +19,7 @@
import numpy as np
import pandas._libs.lib as lib
-from pandas._typing import DtypeObj, IndexLabel
+from pandas._typing import Dtype, DtypeObj, Index... | incremental PR for issue #38808
- [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39030 | 2021-01-07T23:30:44Z | 2021-01-08T23:09:18Z | 2021-01-08T23:09:18Z | 2021-01-08T23:09:19Z |
BUG: read_csv does not close file during an error in _make_reader | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 849b599141c2b..1c8db4dd32393 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -40,7 +40,7 @@ Bug fixes
~~~~~~~~~
- Bug in :meth:`read_csv` with ``float_precision="high"`` caused segfault or wrong pa... | - [x] closes #39024
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
I don't understand why `td.check_file_leaks` doesn't complain about the left opened file (... | https://api.github.com/repos/pandas-dev/pandas/pulls/39029 | 2021-01-07T22:14:19Z | 2021-01-13T18:03:45Z | 2021-01-13T18:03:45Z | 2021-01-14T11:05:23Z |
BUG: Resample.aggregate raising TypeError instead of SpecificationError with missing keys dtypes | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 886469837d184..61e747e1d5a53 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -306,6 +306,7 @@ Groupby/resample/rolling
- Bug in :meth:`.GroupBy.indices` would contain non-existent indices when null va... | - [x] closes #39025
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39028 | 2021-01-07T21:58:05Z | 2021-01-08T23:17:59Z | 2021-01-08T23:17:59Z | 2021-01-08T23:18:38Z |
REF: make FreqGroup an Enum | diff --git a/pandas/_libs/tslibs/dtypes.pyx b/pandas/_libs/tslibs/dtypes.pyx
index 70acb42712201..415bdf74db80a 100644
--- a/pandas/_libs/tslibs/dtypes.pyx
+++ b/pandas/_libs/tslibs/dtypes.pyx
@@ -23,7 +23,7 @@ cdef class PeriodDtypeBase:
return self._dtype_code == other._dtype_code
@property
- def f... | https://api.github.com/repos/pandas-dev/pandas/pulls/39027 | 2021-01-07T21:44:54Z | 2021-01-08T14:11:22Z | 2021-01-08T14:11:22Z | 2021-01-08T15:53:46Z | |
TYP/CLN: Use futures annotations in apply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index edb6b97a73e7f..ac98f3736be6d 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import abc
import inspect
from typing import TYPE_CHECKING, Any, Dict, Iterator, List, Optional, Tuple, Type, ... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39026 | 2021-01-07T21:39:52Z | 2021-01-08T13:09:00Z | 2021-01-08T13:09:00Z | 2021-01-09T01:57:48Z |
Fix regression in setitem when expanding DataFrame with specific column name format | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 5695c817b5a3a..39e5b67fbbc37 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -20,6 +20,7 @@ Fixed regressions
- Fixed regression in repr of float-like strings of an ``object`` dtype having trailing 0'... | - [x] closes #39010
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
We obviously want cast to object if value is string. | https://api.github.com/repos/pandas-dev/pandas/pulls/39023 | 2021-01-07T19:30:03Z | 2021-01-08T00:19:44Z | 2021-01-08T00:19:44Z | 2021-01-08T08:41:05Z |
Deprecate DataFrame indexer for iloc setitem and getitem | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 41db72612a66b..c5ff5265f6798 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -128,6 +128,7 @@ Other enhancements
- :meth:`.Rolling.sum`, :meth:`.Expanding.sum`, :meth:`.Rolling.mean`, :meth:`.Expandin... | - [x] closes #39004
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39022 | 2021-01-07T19:05:34Z | 2021-03-02T23:22:00Z | 2021-03-02T23:21:59Z | 2021-03-04T21:59:03Z |
Backport PR #38997 on branch 1.2.x (REGR: errors='replace' when encoding/errors are not specified) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 5695c817b5a3a..baeca87b8c4f8 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -24,6 +24,7 @@ Fixed regressions
- Fixed regression in :func:`read_excel` with non-rawbyte file handles (:issue:`38788`)
-... | Backport PR #38997: REGR: errors='replace' when encoding/errors are not specified | https://api.github.com/repos/pandas-dev/pandas/pulls/39021 | 2021-01-07T18:49:07Z | 2021-01-07T21:23:20Z | 2021-01-07T21:23:20Z | 2021-01-07T21:23:21Z |
Backport PR #39019 on branch 1.2.x (DOC: np.bool -> np.bool_) | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 717334bfe1299..90d65327ea980 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -144,6 +144,11 @@ repos:
\#\ type:\s?ignore(?!\[)
language: pygrep
types: [python]
+ - id: np-bool
+ name: Ch... | Backport PR #39019: DOC: np.bool -> np.bool_ | https://api.github.com/repos/pandas-dev/pandas/pulls/39020 | 2021-01-07T18:48:43Z | 2021-01-07T21:23:37Z | 2021-01-07T21:23:37Z | 2021-01-07T21:23:37Z |
DOC: np.bool -> np.bool_ | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 52f923c41cbd4..9601be40fdebb 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -152,6 +152,11 @@ repos:
\#\ type:\s?ignore(?!\[)
language: pygrep
types: [python]
+ - id: np-bool
+ name: Ch... | xref #34848, #34835
a couple missed that are causing doc build failures with numpy-1.20.0rc2, https://github.com/pandas-dev/pandas/pull/36092/checks?check_run_id=1662818738
probably want to backport this to prevent possible future ci failures | https://api.github.com/repos/pandas-dev/pandas/pulls/39019 | 2021-01-07T15:52:25Z | 2021-01-07T18:47:08Z | 2021-01-07T18:47:08Z | 2021-01-07T18:59:32Z |
CLN: add typing to dtype arg in core/common.py (GH38808) | diff --git a/pandas/core/common.py b/pandas/core/common.py
index 622d903b03579..a6514b5167460 100644
--- a/pandas/core/common.py
+++ b/pandas/core/common.py
@@ -8,13 +8,13 @@
import contextlib
from functools import partial
import inspect
-from typing import Any, Collection, Iterable, Iterator, List, Union, cast
+fro... | Follow the issue - https://github.com/pandas-dev/pandas/issues/38808
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39018 | 2021-01-07T12:33:52Z | 2021-01-07T14:07:40Z | 2021-01-07T14:07:40Z | 2021-01-07T14:07:44Z |
DOC: Add whatsnew | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 9e557a0020f1e..3efb620f6ca65 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -201,7 +201,7 @@ Datetimelike
- Bug in constructing a :class:`Series` or :class:`DataFrame` with a ``datetime`` object out ... | - [x] closes #38878
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/39014 | 2021-01-07T08:58:40Z | 2021-01-08T14:17:28Z | 2021-01-08T14:17:27Z | 2021-01-10T11:00:28Z |
BUG: read_csv raising ValueError for tru_values/false_values and boolean dtype | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 886469837d184..6f6b6743d8289 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -284,6 +284,7 @@ I/O
- Bug in :func:`json_normalize` resulting in the first element of a generator object not being include... | - [x] closes #34655
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
I am not really experienced with cython, so I would appreciate feedback on the switiching ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39012 | 2021-01-07T00:06:13Z | 2021-01-09T22:18:23Z | 2021-01-09T22:18:22Z | 2021-01-09T22:22:25Z |
ENH: making value_counts stable/keeping original ordering | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ff11ebc022ffb..2234b870ac9c0 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -356,6 +356,7 @@ Reshaping
- Bug in :func:`join` over :class:`MultiIndex` returned wrong result, when one of both indexes h... | closes #12679
closes #11227
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
The order of the returned keys for `value_counts` aren't arbitrary (i.e. dependin... | https://api.github.com/repos/pandas-dev/pandas/pulls/39009 | 2021-01-06T21:07:00Z | 2021-01-22T21:42:34Z | 2021-01-22T21:42:34Z | 2021-01-27T19:05:04Z |
CLN: inspect_excel_format | diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py
index b0ec8a1082a0e..8911696230c03 100644
--- a/pandas/io/excel/_base.py
+++ b/pandas/io/excel/_base.py
@@ -2,10 +2,10 @@
import datetime
from distutils.version import LooseVersion
import inspect
-from io import BufferedIOBase, BytesIO, RawIOBase
+from... | - [x] closes #38823
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
cc @rhshadrach | https://api.github.com/repos/pandas-dev/pandas/pulls/39008 | 2021-01-06T21:05:55Z | 2021-01-08T21:39:23Z | 2021-01-08T21:39:23Z | 2021-01-08T22:11:48Z |
DOC: Clarify index_col behavior for read_csv | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 0c09ea3e0e2fc..8c7e01dd999d3 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -112,8 +112,9 @@ index_col : int, str, sequence of int / str, or False, default ``None``
The default value of ``None`` instruct... | - [x] closes #38830
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
| https://api.github.com/repos/pandas-dev/pandas/pulls/39006 | 2021-01-06T19:53:22Z | 2021-01-06T22:56:26Z | 2021-01-06T22:56:26Z | 2021-01-06T23:01:11Z |
TST: add note about scope of base extension tests to all files | diff --git a/pandas/tests/extension/test_datetime.py b/pandas/tests/extension/test_datetime.py
index 0fde1e8a2fdb8..281bbc21e3106 100644
--- a/pandas/tests/extension/test_datetime.py
+++ b/pandas/tests/extension/test_datetime.py
@@ -1,3 +1,18 @@
+"""
+This file contains a minimal set of tests for compliance with the ex... | We already had this note in about half of the files in this directory, copied it to include in the other files as well. | https://api.github.com/repos/pandas-dev/pandas/pulls/39003 | 2021-01-06T15:47:35Z | 2021-01-06T18:34:18Z | 2021-01-06T18:34:18Z | 2021-01-12T08:05:04Z |
Remove Scatter and Hexbin from Series plot documentation | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index e891017b37bc1..795239ab78c6e 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -630,8 +630,8 @@ class PlotAccessor(PandasObject):
- 'density' : same as 'kde'
- 'area' : area plot
- 'pie' : pie plot
- ... | - [x] closes #38976
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] Remove scatter and hexbin entry from https://github.com/pandas-dev/pandas/blob/v1.2.0/pandas/plotting/_core.... | https://api.github.com/repos/pandas-dev/pandas/pulls/39000 | 2021-01-06T11:56:45Z | 2021-01-06T18:36:17Z | 2021-01-06T18:36:16Z | 2021-01-06T18:36:21Z |
DOC: Update contributing.rst | diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst
index b810c71e3daa6..90ecee8cf9312 100644
--- a/doc/source/development/contributing.rst
+++ b/doc/source/development/contributing.rst
@@ -698,6 +698,12 @@ to run its checks with::
without needing to have done ``pre-commit ... | - [x] closes #38938
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38998 | 2021-01-06T10:52:38Z | 2021-01-06T15:02:41Z | 2021-01-06T15:02:41Z | 2021-01-10T11:03:10Z |
REGR: errors='replace' when encoding/errors are not specified | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 5695c817b5a3a..baeca87b8c4f8 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -24,6 +24,7 @@ Fixed regressions
- Fixed regression in :func:`read_excel` with non-rawbyte file handles (:issue:`38788`)
-... | - [x] closes #38989
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Should 1.3 use `errors='replace'` when no `encoding/errors` are specified or use `errors=N... | https://api.github.com/repos/pandas-dev/pandas/pulls/38997 | 2021-01-06T06:02:23Z | 2021-01-07T18:48:20Z | 2021-01-07T18:48:20Z | 2021-01-07T19:07:02Z |
ENH: Add table-wise numba rolling to other agg funcions | diff --git a/ci/deps/azure-37-slow.yaml b/ci/deps/azure-37-slow.yaml
index 05b33fa351ac9..5d097e397992c 100644
--- a/ci/deps/azure-37-slow.yaml
+++ b/ci/deps/azure-37-slow.yaml
@@ -36,3 +36,4 @@ dependencies:
- xlwt
- moto
- flask
+ - numba
diff --git a/ci/deps/azure-38-slow.yaml b/ci/deps/azure-38-slow.yaml
... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
Timings for a wide table
```
import pandas as pd
import numpy as np
df = pd.DataFrame(np.random.rand(10, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38995 | 2021-01-06T05:44:52Z | 2021-01-07T21:24:06Z | 2021-01-07T21:24:06Z | 2021-05-26T15:54:22Z |
DOC: elaborate on copies vs in place operations in comparison docs | diff --git a/doc/source/getting_started/comparison/comparison_with_sas.rst b/doc/source/getting_started/comparison/comparison_with_sas.rst
index 2b316cccb7fc9..54b45dc20db20 100644
--- a/doc/source/getting_started/comparison/comparison_with_sas.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sas.rst
@@ ... | <img width="782" alt="Screen Shot 2021-01-06 at 12 15 05 AM" src="https://user-images.githubusercontent.com/86842/103731907-437e7280-4fb4-11eb-9e6d-e702f117656c.png">
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/developm... | https://api.github.com/repos/pandas-dev/pandas/pulls/38994 | 2021-01-06T05:20:24Z | 2021-01-08T14:14:30Z | 2021-01-08T14:14:29Z | 2021-01-10T01:13:26Z |
DOC: add more sections to spreadsheet comparison | diff --git a/doc/source/_static/spreadsheets/conditional.png b/doc/source/_static/spreadsheets/conditional.png
new file mode 100644
index 0000000000000..d518ff19dc760
Binary files /dev/null and b/doc/source/_static/spreadsheets/conditional.png differ
diff --git a/doc/source/_static/spreadsheets/filter.png b/doc/source/... | [Preview (link to PDF on Google Drive)](https://drive.google.com/file/d/1uUyTQyEAX3F6h4EJqKz7Mz4KehGBnAig/view?usp=sharing)
This pull request gets closer to full parity with [SAS](https://pandas.pydata.org/pandas-docs/stable/getting_started/comparison/comparison_with_sas.html)/[STATA](https://pandas.pydata.org/panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/38993 | 2021-01-06T03:27:45Z | 2021-01-06T14:53:11Z | 2021-01-06T14:53:10Z | 2021-01-06T14:53:19Z |
ENH: 2D support for MaskedArray | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index 82f9280870d59..bf78a3cdefbdd 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -637,7 +637,7 @@ def pad_inplace(numeric_object_t[:] values, uint8_t[:] mask, limit=None):
@cython.boundscheck(False)
@cython.wraparound(False)
-def pad... | This doesn't in any way _use_ the 2D support, but opens up the option of incrementally fleshing out the tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/38992 | 2021-01-06T02:55:49Z | 2021-10-16T17:58:42Z | 2021-10-16T17:58:42Z | 2022-04-15T20:39:23Z |
Backport PR #38987 on branch 1.2.x (Fix bug on master) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index eba097cd8c345..a78af82ba4db8 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2430,16 +2430,14 @@ Read a URL with no options:
.. ipython:: python
- url = "https://www.fdic.gov/bank/individual/failed/ban... | Backport PR #38987: Fix bug on master | https://api.github.com/repos/pandas-dev/pandas/pulls/38991 | 2021-01-06T02:53:25Z | 2021-01-06T12:53:02Z | 2021-01-06T12:53:02Z | 2021-01-06T12:53:03Z |
Fix bug on master | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 9c9ad9538f488..01235958c5b22 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2444,16 +2444,14 @@ Read a URL with no options:
.. ipython:: python
- url = "https://www.fdic.gov/bank/individual/failed/ban... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
The banklist file was removed and replaced with banklist.csv. This causes failures on master.
This is just a temporary fix for the user guide.
cc @jreback
... | https://api.github.com/repos/pandas-dev/pandas/pulls/38987 | 2021-01-06T02:02:54Z | 2021-01-06T02:52:33Z | 2021-01-06T02:52:33Z | 2021-01-06T02:53:30Z |
BUG: Datetimelike equality comparisons with Categorical | diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py
index 7c093ebe00959..81bcff410a4d3 100644
--- a/pandas/tests/arrays/test_datetimelike.py
+++ b/pandas/tests/arrays/test_datetimelike.py
@@ -85,6 +85,20 @@ def test_compare_len1_raises(self):
with pytest.raises(Valu... | - [ ] closes #30699
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38986 | 2021-01-06T01:37:23Z | 2021-01-08T14:10:03Z | 2021-01-08T14:10:02Z | 2021-01-08T14:10:07Z |
REF: de-duplication in libperiod | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index f0d21a3a7a957..5d3ad559ea718 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -357,18 +357,15 @@ cdef int64_t asfreq_QtoDT(int64_t ordinal, asfreq_info *af_info) nogil:
return upsample_daytime(unix... | https://api.github.com/repos/pandas-dev/pandas/pulls/38985 | 2021-01-06T01:01:31Z | 2021-01-06T18:34:47Z | 2021-01-06T18:34:47Z | 2021-01-06T18:44:48Z | |
BUG: MultiIndex.intersection duplicating nans in result | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 38b7a1d13c253..cbf0d4a4d708b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -260,6 +260,7 @@ MultiIndex
^^^^^^^^^^
- Bug in :meth:`DataFrame.drop` raising ``TypeError`` when :class:`MultiIndex` is... | - [x] xref #38623
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This also aligns the multiindex implementation with the base implementation a bit more. | https://api.github.com/repos/pandas-dev/pandas/pulls/38984 | 2021-01-06T00:34:12Z | 2021-01-06T14:44:46Z | 2021-01-06T14:44:46Z | 2021-01-06T15:24:33Z |
REGR: Bug fix for ExtensionArray groupby aggregation on non-numeric types | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 36b4b4fa77c4a..849b599141c2b 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -28,6 +28,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.replace` raising ``ValueError`` when :class:`DataFr... | - [X] closes #38980
- [x] tests added / passed
- [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38982 | 2021-01-05T23:02:23Z | 2021-01-13T13:18:40Z | 2021-01-13T13:18:40Z | 2021-01-14T19:08:56Z |
CLN: Multiindex tests | diff --git a/pandas/tests/indexes/multi/test_constructors.py b/pandas/tests/indexes/multi/test_constructors.py
index 7666e9670e6a6..11687b535d2b7 100644
--- a/pandas/tests/indexes/multi/test_constructors.py
+++ b/pandas/tests/indexes/multi/test_constructors.py
@@ -189,37 +189,24 @@ def test_from_arrays_tuples(idx):
... | - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Found a few wrong tests and parametrized the similar ones
| https://api.github.com/repos/pandas-dev/pandas/pulls/38978 | 2021-01-05T19:59:44Z | 2021-01-06T14:43:23Z | 2021-01-06T14:43:23Z | 2021-01-06T15:24:58Z |
BUG: MultiIndex.union dropping duplicates from result | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index a72f78f3ca30d..badbc88302d6b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -843,7 +843,7 @@ Interval
Indexing
^^^^^^^^
-- Bug in :meth:`Index.union` dropping duplicate ``Index`` values when ``Ind... | - [x] xref #38745
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This more or less sits on top of #36299. The current base-_union implementation works only f... | https://api.github.com/repos/pandas-dev/pandas/pulls/38977 | 2021-01-05T19:42:42Z | 2021-05-26T02:02:27Z | 2021-05-26T02:02:27Z | 2021-05-27T10:26:30Z |
DOC: remove is_lexsorted from MultiIndex docstring | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index 1da355c31987e..61b6b7ff19edc 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -216,7 +216,6 @@ class MultiIndex(Index):
set_codes
to_frame
to_flat_index
- is_lexsorted
sortlevel
drop... | `is_lexsorted` has been deprecated (https://github.com/pandas-dev/pandas/pull/38701)
- [x] closes https://github.com/pandas-dev/pandas/issues/38953
- [ ] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38975 | 2021-01-05T17:31:37Z | 2021-01-06T00:15:27Z | 2021-01-06T00:15:27Z | 2021-01-06T00:15:31Z |
TST: update pre-commit config to only exclude extension from bare pytest.raises check | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f5d8503041ccd..52f923c41cbd4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -126,7 +126,7 @@ repos:
entry: python scripts/validate_unwanted_patterns.py --validation-type="bare_pytest_raises"
types: [python]
... | With #38920 I eliminated all instances of `pytest.raise` without `match=msg` in pandas/tests/computation and pandas/tests/io. #38799 was happening around the same time and missed that they were fixed. So this closes the loop and now only pandas/tests/extension needs to be excluded from the linting check.
I don't thi... | https://api.github.com/repos/pandas-dev/pandas/pulls/38973 | 2021-01-05T16:56:16Z | 2021-01-05T18:47:08Z | 2021-01-05T18:47:07Z | 2021-01-05T19:10:57Z |
Backport PR #38803 on branch 1.2.x (BUG: avoid attribute error with pyarrow >=0.16.0 and <1.0.0) | diff --git a/ci/deps/actions-37-locale.yaml b/ci/deps/actions-37-locale.yaml
index 4f9918ca2f0c0..b18ce37d05ca0 100644
--- a/ci/deps/actions-37-locale.yaml
+++ b/ci/deps/actions-37-locale.yaml
@@ -30,7 +30,7 @@ dependencies:
- openpyxl
- pandas-gbq
- google-cloud-bigquery>=1.27.2 # GH 36436
- - pyarrow>=0.17
... | Backport PR #38803: BUG: avoid attribute error with pyarrow >=0.16.0 and <1.0.0 | https://api.github.com/repos/pandas-dev/pandas/pulls/38971 | 2021-01-05T13:05:41Z | 2021-01-05T14:12:45Z | 2021-01-05T14:12:45Z | 2021-01-05T14:12:45Z |
Backport PR #38841 on branch 1.2.x (Update conf.py to execute imports during pdf building) | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 951a6d4043786..8ab1c8c2f3428 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -427,7 +427,7 @@
ipython_warning_is_error = False
-ipython_exec_lines = [
+ipython_execlines = [
"import numpy as np",
"import pandas as pd",
# This ens... | Backport PR #38841: Update conf.py to execute imports during pdf building | https://api.github.com/repos/pandas-dev/pandas/pulls/38970 | 2021-01-05T12:58:45Z | 2021-01-05T14:12:29Z | 2021-01-05T14:12:29Z | 2021-01-05T14:12:30Z |
ENH: Add typing for pandas.core.frame.dropna | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 23c61773daf5a..84ab4fd5c60a1 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5537,14 +5537,38 @@ def notna(self) -> DataFrame:
def notnull(self) -> DataFrame:
return ~self.isna()
+ @overload
+ # https://github.com/pyth... | This PR adds type hinting for pandas.core.frame.dropna. Additionally, an explicit `return None` was added to the if/else block for in-place changes to meet mypy standards and make the types explicit.
I haven't yet run the tests, because I didn't modify any source code. Once/if the CI builds pass, I'll check it off t... | https://api.github.com/repos/pandas-dev/pandas/pulls/38968 | 2021-01-05T10:02:32Z | 2021-04-24T13:31:51Z | null | 2021-04-24T13:31:51Z |
TST: add missing iloc label indexing tests | diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py
index bfc6b820c0fc0..24721a370241f 100644
--- a/pandas/tests/indexing/test_iloc.py
+++ b/pandas/tests/indexing/test_iloc.py
@@ -61,8 +61,8 @@ def test_iloc_getitem_list_int(self):
# the correct type
-class TestiLoc2:
- ... | - [x] closes #38967
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38967 | 2021-01-05T09:00:38Z | 2021-01-05T14:12:11Z | 2021-01-05T14:12:10Z | 2021-01-10T11:05:52Z |
BUG: Timedelta(td64_out_of_bounds) silently overflowing | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 974de36cc736d..886469837d184 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -198,14 +198,14 @@ Datetimelike
- Bug in :class:`DataFrame` and :class:`Series` constructors sometimes dropping nanoseconds... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38965 | 2021-01-05T05:58:46Z | 2021-01-06T18:35:30Z | 2021-01-06T18:35:30Z | 2021-01-06T18:42:34Z |
DEPR: Rolling.win_type returning freq & is_datetimelike | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 38b7a1d13c253..d35965ead1a1c 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -161,6 +161,8 @@ Deprecations
- Deprecated :meth:`MultiIndex.is_lexsorted` and :meth:`MultiIndex.lexsort_depth` as a public... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
xref: https://github.com/pandas-dev/pandas/pull/38641#issuecomment-754118989
xref: https://github.com/pandas-d... | https://api.github.com/repos/pandas-dev/pandas/pulls/38963 | 2021-01-05T05:17:07Z | 2021-01-06T14:27:58Z | 2021-01-06T14:27:58Z | 2021-01-08T17:26:42Z |
REF: move functions out of _testing/__init__ | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 0591fc6afd633..c51ceb750c338 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -1,27 +1,12 @@
-import bz2
from collections import Counter
-from contextlib import contextmanager
from datetime import datetime
from ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38961 | 2021-01-04T23:52:11Z | 2021-01-05T02:18:14Z | 2021-01-05T02:18:14Z | 2021-01-05T02:26:32Z | |
TST: strict xfail | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 2862f7c957abc..bf5e632374b59 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -473,7 +473,7 @@ def index_with_missing(request):
Fixture for indices with missing values
"""
if request.param in ["int", "uint", "range", "empty", "repeats"... | - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Part of #38902. | https://api.github.com/repos/pandas-dev/pandas/pulls/38960 | 2021-01-04T23:37:53Z | 2021-01-09T21:46:29Z | 2021-01-09T21:46:29Z | 2021-02-03T02:48:45Z |
TYP/CLN: assorted cleanups | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 1339dee954603..4dc14397a30f4 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -3565,7 +3565,7 @@ cpdef to_offset(freq):
f"to_offset does not support tuples {freq}, pass as a string inst... | https://api.github.com/repos/pandas-dev/pandas/pulls/38959 | 2021-01-04T22:45:54Z | 2021-01-05T00:14:05Z | 2021-01-05T00:14:05Z | 2021-01-05T01:18:03Z | |
Backport PR #38957 on branch 1.2.x (DOC: move API breaking "check_freq" section from v1.2.1rst to v1.1.0.rst) | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index e054ac830ce41..64552b104c053 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -716,6 +716,19 @@ apply and applymap on ``DataFrame`` evaluates first row/column only once
df.apply(func, axis=1)
+... | Backport PR #38957: DOC: move API breaking "check_freq" section from v1.2.1rst to v1.1.0.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/38958 | 2021-01-04T22:45:26Z | 2021-01-05T00:11:03Z | 2021-01-05T00:11:03Z | 2021-01-05T00:11:03Z |
DOC: move API breaking "check_freq" section from v1.2.1rst to v1.1.0.rst | diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst
index e054ac830ce41..64552b104c053 100644
--- a/doc/source/whatsnew/v1.1.0.rst
+++ b/doc/source/whatsnew/v1.1.0.rst
@@ -716,6 +716,19 @@ apply and applymap on ``DataFrame`` evaluates first row/column only once
df.apply(func, axis=1)
+... | and add reference to 1.1.0 whats new update in v1.2.1.rst
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
This moves the doc notes for `... | https://api.github.com/repos/pandas-dev/pandas/pulls/38957 | 2021-01-04T20:42:11Z | 2021-01-04T22:45:12Z | 2021-01-04T22:45:11Z | 2021-01-05T15:37:43Z |
CLN: Unify number recognition tests for all parsers | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index 3058d1eed22b9..6e9cc18358153 100644
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -2349,12 +2349,12 @@ def __init__(self, f: Union[FilePathOrBuffer, List], **kwds):
decimal = re.escape(self.decimal)
if self.thousands is None:
... | - [x] closes #38926
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
Minor regex improvements.
Is a fixture the right thing to do here?
| https://api.github.com/repos/pandas-dev/pandas/pulls/38954 | 2021-01-04T19:03:38Z | 2021-01-04T23:15:17Z | 2021-01-04T23:15:17Z | 2021-01-04T23:23:01Z |
DOC: clarify and spellcheck indexing documentation | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index 0a11344d575f1..dc66303a44f53 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -429,7 +429,7 @@ For the rationale behind this behavior, see
s = pd.Series(list('abcdef'), index=[0, 3, ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38951 | 2021-01-04T18:42:54Z | 2021-01-04T22:34:53Z | 2021-01-04T22:34:53Z | 2021-01-05T17:09:34Z | |
REF: de-duplicate tslibs.fields | diff --git a/pandas/_libs/tslibs/fields.pyx b/pandas/_libs/tslibs/fields.pyx
index 16fa05c3801c6..57404b99c7628 100644
--- a/pandas/_libs/tslibs/fields.pyx
+++ b/pandas/_libs/tslibs/fields.pyx
@@ -174,6 +174,18 @@ def get_date_name_field(const int64_t[:] dtindex, str field, object locale=None)
return out
+cdef... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38950 | 2021-01-04T18:19:52Z | 2021-01-04T19:20:16Z | 2021-01-04T19:20:16Z | 2021-01-04T19:30:14Z |
Backport PR #38909 on branch 1.2.x (BUG: Fixed regression in rolling.skew and rolling.kurt modifying object) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 4102bdd07aa8f..37298d12a12c4 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -37,7 +37,7 @@ Fixed regressions
- Fixed regression in :meth:`.GroupBy.sem` where the presence of non-numeric columns would... | Backport PR #38909: BUG: Fixed regression in rolling.skew and rolling.kurt modifying object | https://api.github.com/repos/pandas-dev/pandas/pulls/38945 | 2021-01-04T13:39:05Z | 2021-01-04T15:23:01Z | 2021-01-04T15:23:01Z | 2021-01-04T15:23:01Z |
Backport PR #38893: doc fix for testing.assert_series_equal check_freq arg | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index b1f8389420cd9..4102bdd07aa8f 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -15,12 +15,12 @@ including other versions of pandas.
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | Backport PR #38893 | https://api.github.com/repos/pandas-dev/pandas/pulls/38942 | 2021-01-04T11:47:48Z | 2021-01-04T13:19:25Z | 2021-01-04T13:19:25Z | 2021-01-04T13:47:10Z |
DOC: minor tweaks to formatting on SQL comparison page | diff --git a/doc/source/getting_started/comparison/comparison_with_sql.rst b/doc/source/getting_started/comparison/comparison_with_sql.rst
index 52799442d6118..75d26354ddfa5 100644
--- a/doc/source/getting_started/comparison/comparison_with_sql.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sql.rst
@@ ... | Adding code formatting, missing punctuation, etc. No changes of substance.
- [ ] ~~closes #xxxx~~
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] ~~whatsnew entry~~ | https://api.github.com/repos/pandas-dev/pandas/pulls/38941 | 2021-01-04T08:41:33Z | 2021-01-04T13:33:13Z | 2021-01-04T13:33:13Z | 2021-01-04T13:33:16Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2dade8afbf91f..f5d8503041ccd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -20,11 +20,9 @@ repos:
types: [text]
args: [--append-config=flake8/cython-template.cfg]
- repo: https://github.com/PyCQA/isort
- ... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/master)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/nod... | https://api.github.com/repos/pandas-dev/pandas/pulls/38940 | 2021-01-04T07:40:09Z | 2021-01-05T09:41:28Z | 2021-01-05T09:41:28Z | 2021-01-05T09:41:33Z |
API: honor copy=True when passing dict to DataFrame | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 1e723493a4cc8..63902b53ea36d 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -110,6 +110,30 @@ both XPath 1.0 and XSLT 1.0 is available. (:issue:`27554`)
For more, see :ref:`io.xml` in the user guid... | - [x] closes #32960
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
xref #34872 cc @TomAugspurger used the test_dict_nocopy you wrote but it ended up pretty m... | https://api.github.com/repos/pandas-dev/pandas/pulls/38939 | 2021-01-04T06:26:44Z | 2021-03-31T01:03:22Z | 2021-03-31T01:03:21Z | 2021-03-31T01:05:17Z |
DOC: remove use of head() in the comparison docs | diff --git a/doc/source/getting_started/comparison/comparison_with_sas.rst b/doc/source/getting_started/comparison/comparison_with_sas.rst
index b97efe31b8b29..2b316cccb7fc9 100644
--- a/doc/source/getting_started/comparison/comparison_with_sas.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sas.rst
@@ ... | This helps to clarify the examples by removing code that isn't relevant. Added a dedicated section to the SAS, SQL, and Stata pages.
This builds on https://github.com/pandas-dev/pandas/pull/38933; ~~will rebase and mark as ready for review once that's merged. In the meantime, the last commit is the one that can be r... | https://api.github.com/repos/pandas-dev/pandas/pulls/38935 | 2021-01-04T03:43:50Z | 2021-01-04T13:21:16Z | 2021-01-04T13:21:16Z | 2021-01-04T13:21:20Z |
ENH: Improve numerical stability for groupby.mean and groupby.cumsum | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index af11b6543a74b..b4b98ec0403a8 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -294,6 +294,7 @@ Groupby/resample/rolling
- Bug in :meth:`SeriesGroupBy.value_counts` where unobserved categories in a grou... | - [x] tests added / passed
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38934 | 2021-01-04T03:34:55Z | 2021-01-04T13:25:06Z | 2021-01-04T13:25:06Z | 2021-01-04T13:26:44Z |
DOC: improve shared content between comparison pages | diff --git a/doc/source/getting_started/comparison/comparison_with_sas.rst b/doc/source/getting_started/comparison/comparison_with_sas.rst
index eb11b75027909..b97efe31b8b29 100644
--- a/doc/source/getting_started/comparison/comparison_with_sas.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sas.rst
@@ ... | This pull request does a few things between the SAS and Stata pages, in separate commits:
- Makes the headings match, where it makes sense for them to
- Create more shared includes, as a follow-up to https://github.com/pandas-dev/pandas/pull/38887
- Improves some wording and ensures more methods are linked in the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38933 | 2021-01-03T23:31:09Z | 2021-01-04T03:55:07Z | 2021-01-04T03:55:07Z | 2021-01-04T04:53:19Z |
BUG: rank_2d raising with mixed dtypes | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index af11b6543a74b..0884065247fbc 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -217,6 +217,8 @@ Numeric
- Bug in :meth:`DataFrame.select_dtypes` with ``include=np.number`` now retains numeric ``Extensio... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38932 | 2021-01-03T22:21:58Z | 2021-01-05T00:45:16Z | 2021-01-05T00:45:16Z | 2021-01-05T01:30:14Z |
BUG: DataFrame.__setitem__ raising ValueError with string indexer and empty df and df to set | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ac3b5dcaf53ae..e46c729348d33 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -244,6 +244,7 @@ Indexing
- Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidIndexError`` when non-uni... | - [x] closes #38831
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Dont have to convert df to series, df has an index.
cc @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/38931 | 2021-01-03T22:14:19Z | 2021-01-06T00:35:39Z | 2021-01-06T00:35:38Z | 2021-01-06T01:13:51Z |
TST: Replace pytest.xfail | diff --git a/pandas/tests/indexes/test_common.py b/pandas/tests/indexes/test_common.py
index bc1295cc0a0ce..2548fc18e4032 100644
--- a/pandas/tests/indexes/test_common.py
+++ b/pandas/tests/indexes/test_common.py
@@ -386,9 +386,13 @@ def test_asi8_deprecation(self, index):
@pytest.mark.parametrize("na_position", [... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Part of #38902. | https://api.github.com/repos/pandas-dev/pandas/pulls/38929 | 2021-01-03T21:10:21Z | 2021-01-04T01:26:12Z | 2021-01-04T01:26:12Z | 2021-01-04T21:05:18Z |
TST: stricten xfails | diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py
index e6d1cd5f47d8d..22eb642ed8512 100644
--- a/pandas/tests/frame/test_arithmetic.py
+++ b/pandas/tests/frame/test_arithmetic.py
@@ -821,7 +821,6 @@ def test_frame_with_frame_reindex(self):
(np.datetime64(20, "ns"),... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38927 | 2021-01-03T18:51:51Z | 2021-01-04T13:36:07Z | 2021-01-04T13:36:07Z | 2021-01-04T16:22:59Z |
ENH: Add support to import optional submodule and specify different min_version than default | diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py
index 3775a47d44521..def881b8fd863 100644
--- a/pandas/compat/_optional.py
+++ b/pandas/compat/_optional.py
@@ -1,6 +1,8 @@
import distutils.version
import importlib
+import sys
import types
+from typing import Optional
import warnings
# Update... | - [ ] closes #38888
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
cc @jreback, @arw2019 | https://api.github.com/repos/pandas-dev/pandas/pulls/38925 | 2021-01-03T18:23:27Z | 2021-01-04T00:14:16Z | 2021-01-04T00:14:16Z | 2021-01-04T03:38:53Z |
TST: 26807 split pandas/tests/tseries/offsets/test_offsets.py into multiple smaller test modules | diff --git a/pandas/tests/tseries/offsets/common.py b/pandas/tests/tseries/offsets/common.py
index 25837c0b6aee2..b2ac28e1865d6 100644
--- a/pandas/tests/tseries/offsets/common.py
+++ b/pandas/tests/tseries/offsets/common.py
@@ -1,6 +1,24 @@
"""
-Assertion helpers for offsets tests
+Assertion helpers and base class fo... | This is to address xref #26807 specifically for pandas/tests/tseries/offsets/test_offsets.py . I tried to get all the new modules below about 1000 lines and break it up in logical ways.
Other than moving code, I have changed some list construction for pytest parameterizing to be a tiny bit more compact by changing a... | https://api.github.com/repos/pandas-dev/pandas/pulls/38924 | 2021-01-03T17:59:12Z | 2021-01-03T23:22:06Z | 2021-01-03T23:22:06Z | 2021-01-05T17:03:38Z |
TST: GH30999 Add placeholder messages to pandas/tests/io/test_sql.py and remove test for numexpr < 2.6.8 | diff --git a/pandas/tests/computation/test_compat.py b/pandas/tests/computation/test_compat.py
index 9fc3ed4800d09..8fa11ab75dd67 100644
--- a/pandas/tests/computation/test_compat.py
+++ b/pandas/tests/computation/test_compat.py
@@ -36,14 +36,10 @@ def testit():
if engine == "numexpr":
try:
- ... | This is my attempt to finally finish off #30999
In pandas/tests/io/test_sql.py, there is a whole test class skipped. It looks like xref #20536 is supposed to address that, but no one has commented there since March 2018, so I don't think that's going to be fixed any time soon. I noticed that there were other tests i... | https://api.github.com/repos/pandas-dev/pandas/pulls/38920 | 2021-01-03T12:22:31Z | 2021-01-03T17:24:50Z | 2021-01-03T17:24:50Z | 2021-01-05T17:01:47Z |
BUG: fix the bad error raised by HDFStore.put() | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 45f8344a1ebe0..5b58ba14a1eff 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -273,6 +273,7 @@ I/O
- Allow custom error values for parse_dates argument of :func:`read_sql`, :func:`read_sql_query` and :... | - [x] closes #34274
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
*P.S. something was wrong with `git diff upstream/master` so I directly ran `flake8 ./pandas/io/pytables.py` as it's the only file changed*
------
... | https://api.github.com/repos/pandas-dev/pandas/pulls/38919 | 2021-01-03T12:00:19Z | 2021-01-05T02:22:33Z | 2021-01-05T02:22:33Z | 2021-01-05T02:22:38Z |
Remove Python2 numeric relics | diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py
index 5a3febdcf75e7..7478efbf22609 100644
--- a/asv_bench/benchmarks/arithmetic.py
+++ b/asv_bench/benchmarks/arithmetic.py
@@ -122,8 +122,8 @@ def setup(self, op):
n_rows = 500
# construct dataframe with 2 blocks
-... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Modernize the code to Python 3 by removing Python 2 numeric hacks, such as:
- `a / b` of two integers now always returns a float, so no need to co... | https://api.github.com/repos/pandas-dev/pandas/pulls/38916 | 2021-01-03T05:52:11Z | 2021-01-03T17:09:49Z | 2021-01-03T17:09:49Z | 2021-01-05T07:10:41Z |
REF: de-duplicate code in libparsing/libperiod | diff --git a/pandas/_libs/tslibs/parsing.pxd b/pandas/_libs/tslibs/parsing.pxd
index 9c9262beaafad..25667f00e42b5 100644
--- a/pandas/_libs/tslibs/parsing.pxd
+++ b/pandas/_libs/tslibs/parsing.pxd
@@ -1,2 +1,3 @@
cpdef str get_rule_month(str source)
+cpdef quarter_to_myear(int year, int quarter, str freq)
diff --git... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38915 | 2021-01-03T05:19:22Z | 2021-01-04T00:10:20Z | 2021-01-04T00:10:20Z | 2021-01-04T01:18:49Z |
CLN: re-use sanitize_index | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 7f2039c998f53..f1217e97aef5d 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -97,6 +97,7 @@
from pandas.core.indexes.timedeltas import TimedeltaIndex
from pandas.core.indexing import check_bool_indexer
from pandas.core.internals impor... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38912 | 2021-01-03T01:02:09Z | 2021-01-03T17:11:39Z | 2021-01-03T17:11:39Z | 2021-01-03T18:05:17Z |
DOC: how to revert MultiIndex.to_flat_index | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index c80dadcc42022..ad10b41093f27 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1787,6 +1787,10 @@ def to_flat_index(self):
pd.Index
Index with the MultiIndex data represented in Tuples.
... | Took me way too long to figure this out. Hopefully this benefits someone else! | https://api.github.com/repos/pandas-dev/pandas/pulls/38911 | 2021-01-02T23:28:30Z | 2021-01-04T01:12:07Z | 2021-01-04T01:12:07Z | 2021-01-04T01:12:59Z |
REF: simplify Index.__new__ | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index b0c89000a53a9..2db803e5c1b19 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -6,6 +6,7 @@
TYPE_CHECKING,
Any,
Callable,
+ Dict,
FrozenSet,
Hashable,
List,
@@ -131,6 +132,11 @@
_Id... | Avoid recursing where possible. | https://api.github.com/repos/pandas-dev/pandas/pulls/38910 | 2021-01-02T23:10:19Z | 2021-01-03T17:03:03Z | 2021-01-03T17:03:03Z | 2021-01-03T18:04:46Z |
BUG: Fixed regression in rolling.skew and rolling.kurt modifying object | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index b1f8389420cd9..c07d82432f45e 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -37,7 +37,7 @@ Fixed regressions
- Fixed regression in :meth:`.GroupBy.sem` where the presence of non-numeric columns would... | - [x] closes #38908
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Alternative would be np.copy before releasing gil. In this case we would have to touch values_copy twice in case of ``min_val - mean_val > -1e5`` | https://api.github.com/repos/pandas-dev/pandas/pulls/38909 | 2021-01-02T23:07:19Z | 2021-01-04T13:37:14Z | 2021-01-04T13:37:14Z | 2021-01-04T14:04:50Z |
BUG: casting on concat with empties | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5e84947cd42f1..b4a31635687e1 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -294,7 +294,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
- Bug in :meth:`DataFrame.unstack` with missing levels led ... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Covers the case missed by #38843 | https://api.github.com/repos/pandas-dev/pandas/pulls/38907 | 2021-01-02T19:38:03Z | 2021-01-03T16:58:04Z | 2021-01-03T16:58:04Z | 2021-01-03T18:08:41Z |
CI: enable parallel testing on arm64 build #36719 | diff --git a/.travis.yml b/.travis.yml
index 8ede978074a9c..e97994262e825 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -31,20 +31,13 @@ env:
git:
depth: false
-matrix:
+jobs:
fast_finish: true
include:
- arch: arm64
env:
- - JOB="3.7, arm64" PYTEST_WORKERS=1 ENV_FILE="ci/deps/travis-37... | - [x] closes #36719
| https://api.github.com/repos/pandas-dev/pandas/pulls/38905 | 2021-01-02T18:02:06Z | 2021-01-24T21:47:46Z | null | 2021-03-18T16:42:06Z |
ENH: Use Kahan summation to calculate groupby.sum() | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 9d1b3eaebdf8b..94a12fec6adcb 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -289,7 +289,7 @@ Groupby/resample/rolling
- Bug in :meth:`SeriesGroupBy.value_counts` where unobserved categories in a gr... | - [x] closes #38778
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This simplifies the op example.
I think
```
series = Series([1e16, 99, -5e15, -5e15])
series.sum()
```
is dispatched to numpy? The result ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38903 | 2021-01-02T15:58:45Z | 2021-01-03T23:25:09Z | 2021-01-03T23:25:09Z | 2021-01-03T23:29:09Z |
TST: strictly xfail | diff --git a/pandas/tests/extension/test_categorical.py b/pandas/tests/extension/test_categorical.py
index 493cb979494c8..e38de67071f15 100644
--- a/pandas/tests/extension/test_categorical.py
+++ b/pandas/tests/extension/test_categorical.py
@@ -117,8 +117,9 @@ class TestConstructors(base.BaseConstructorsTests):
cl... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Continuation of #38881. This handles cases where replacing pytest.xfail is clear, opened #38902 for the handful of remaining cases.
In the case wh... | https://api.github.com/repos/pandas-dev/pandas/pulls/38901 | 2021-01-02T15:40:36Z | 2021-01-03T19:43:59Z | 2021-01-03T19:43:59Z | 2021-01-03T20:35:30Z |
Validate axis args | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 7f2039c998f53..274801431661f 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -2076,7 +2076,7 @@ def idxmin(self, axis=0, skipna=True, *args, **kwargs):
>>> s.idxmin(skipna=False)
nan
"""
- i = self.argmi... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a follow up PR on #37924 @jreback cheers | https://api.github.com/repos/pandas-dev/pandas/pulls/38899 | 2021-01-02T13:21:07Z | 2021-01-03T17:14:40Z | 2021-01-03T17:14:40Z | 2021-01-03T17:14:44Z |
TST/REF: split io/parsers/test_common into multiple files | diff --git a/pandas/tests/io/parser/common/test_chunksize.py b/pandas/tests/io/parser/common/test_chunksize.py
new file mode 100644
index 0000000000000..8c1475025b442
--- /dev/null
+++ b/pandas/tests/io/parser/common/test_chunksize.py
@@ -0,0 +1,221 @@
+"""
+Tests that work on both the Python and C engines but do not h... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Another precursor to #38370 | https://api.github.com/repos/pandas-dev/pandas/pulls/38897 | 2021-01-02T08:35:39Z | 2021-01-04T00:50:12Z | 2021-01-04T00:50:12Z | 2021-01-04T00:50:18Z |
ENH: Add numba engine to several rolling aggregations | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index 306083e9c22b2..5f8cdb2a0bdac 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -50,20 +50,24 @@ class Engine:
["int", "float"],
[np.sum, lambda x: np.sum(x) + 5],
["cython"... | - [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adds `engine ` and `engine_kwargs` argument to `mean`, `median`, `sum`, `min`, `max`
| https://api.github.com/repos/pandas-dev/pandas/pulls/38895 | 2021-01-02T02:06:51Z | 2021-01-04T21:10:56Z | 2021-01-04T21:10:56Z | 2021-06-14T20:11:38Z |
TST/CLN: deduplicate troublesome rank values | diff --git a/pandas/tests/frame/methods/test_rank.py b/pandas/tests/frame/methods/test_rank.py
index 991a91275ae1d..6ad1b475e28a2 100644
--- a/pandas/tests/frame/methods/test_rank.py
+++ b/pandas/tests/frame/methods/test_rank.py
@@ -392,7 +392,7 @@ def test_pct_max_many_rows(self):
([NegInfinity(), "1", "A... | xref https://github.com/pandas-dev/pandas/pull/38681#discussion_r548554225
| https://api.github.com/repos/pandas-dev/pandas/pulls/38894 | 2021-01-02T01:11:31Z | 2021-01-04T03:35:48Z | 2021-01-04T03:35:48Z | 2021-01-04T03:55:08Z |
doc fix for testing.assert_series_equal check_freq arg | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index b1f8389420cd9..4102bdd07aa8f 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -15,12 +15,12 @@ including other versions of pandas.
Backwards incompatible API changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | This fixes `check_freq` arg docs for `assert_series_equal` like #38471 did for `assert_frame_equal`.
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38893 | 2021-01-02T00:46:40Z | 2021-01-03T17:01:53Z | 2021-01-03T17:01:53Z | 2021-01-04T16:50:08Z |
ASV: Add asv for groupby.indices | diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py
index bf210352bcb5d..b4d9db95af163 100644
--- a/asv_bench/benchmarks/groupby.py
+++ b/asv_bench/benchmarks/groupby.py
@@ -126,6 +126,9 @@ def setup(self, data, key):
def time_series_groups(self, data, key):
self.ser.groupby(sel... | - [x] closes #38495
Asv for the indices performance regression
| https://api.github.com/repos/pandas-dev/pandas/pulls/38892 | 2021-01-01T23:56:57Z | 2021-01-03T18:44:22Z | 2021-01-03T18:44:22Z | 2021-01-03T18:44:59Z |
Backport PR #38471 on branch 1.2.x (DOC: fixes for assert_frame_equal check_freq argument) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index a1612117072a5..b1f8389420cd9 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -10,6 +10,20 @@ including other versions of pandas.
.. ------------------------------------------------------------------... | Backport PR #38471
| https://api.github.com/repos/pandas-dev/pandas/pulls/38891 | 2021-01-01T23:29:45Z | 2021-01-02T11:11:58Z | 2021-01-02T11:11:58Z | 2021-01-04T16:49:22Z |
CLN: add typing for dtype arg in directories core/indexes and core/strings (GH38808) | diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py
index 9062667298d7c..24920e9b5faa7 100644
--- a/pandas/core/indexes/category.py
+++ b/pandas/core/indexes/category.py
@@ -7,7 +7,7 @@
from pandas._libs import index as libindex
from pandas._libs.lib import no_default
-from pandas._typing... | Follow on PR for #38808
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38890 | 2021-01-01T23:22:05Z | 2021-01-04T01:11:37Z | 2021-01-04T01:11:37Z | 2021-01-04T01:11:41Z |
DOC: create shared includes for comparison docs, take III | diff --git a/doc/source/getting_started/comparison/comparison_with_sas.rst b/doc/source/getting_started/comparison/comparison_with_sas.rst
index c6f508aae0e21..eb11b75027909 100644
--- a/doc/source/getting_started/comparison/comparison_with_sas.rst
+++ b/doc/source/getting_started/comparison/comparison_with_sas.rst
@@ ... | From original pull request (https://github.com/pandas-dev/pandas/pull/38771):
> This will help ensure consistency between the examples.
- [ ] ~~closes #xxxx~~
- [x] tests added / passed
- [ ] ~~passes `black pandas`~~
- [ ] ~~passes `git diff upstream/master -u -- "*.py" | flake8 --diff`~~
- [ ] ~~whatsnew en... | https://api.github.com/repos/pandas-dev/pandas/pulls/38887 | 2021-01-01T22:35:15Z | 2021-01-03T17:26:02Z | 2021-01-03T17:26:02Z | 2021-01-04T08:43:07Z |
CLN: add typing for dtype arg in core/arrays (GH38808) | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 3391e2760187c..872f17b7f0770 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1,7 +1,7 @@
import operator
from operator import le, lt
import textwrap
-from typing import Sequence, Type, TypeVar
+fro... | Follow on PR for #38808
- [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38886 | 2021-01-01T22:25:32Z | 2021-01-05T02:02:08Z | 2021-01-05T02:02:08Z | 2021-01-05T02:02:14Z |
TST: Add test_groupby_std_on_nullable_column. | diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py
index 8d7fcbfcfe694..77f0ab1092b4b 100644
--- a/pandas/tests/groupby/test_function.py
+++ b/pandas/tests/groupby/test_function.py
@@ -1121,3 +1121,18 @@ def test_groupby_sum_below_mincount_nullable_integer():
result = groupe... | - [x] closes #35516
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38883 | 2021-01-01T20:59:20Z | 2021-01-03T17:12:36Z | null | 2023-05-11T01:20:39Z |
CLN: Use signed integers in khash maps for signed integer keys | diff --git a/pandas/_libs/khash.pxd b/pandas/_libs/khash.pxd
index 0d0c5ae058b21..e9f5766f78435 100644
--- a/pandas/_libs/khash.pxd
+++ b/pandas/_libs/khash.pxd
@@ -16,11 +16,11 @@ from numpy cimport (
cdef extern from "khash_python.h":
const int KHASH_TRACE_DOMAIN
- ctypedef uint32_t khint_t
- ctypedef k... |
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The goal of this PR is to make this comment obsolete: https://github.com/pandas-dev/pandas/blob/1fc5efd76ea1f85979fa2364a292d85482e338aa/pandas/_libs/src/klib/khash.h#L619-L624
see also ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38882 | 2021-01-01T20:56:10Z | 2021-01-03T16:56:24Z | 2021-01-03T16:56:24Z | 2021-01-03T16:56:28Z |
TST: strictly xfail mid-test | diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py
index 72637400ff023..b66e1137830d8 100644
--- a/pandas/tests/groupby/transform/test_transform.py
+++ b/pandas/tests/groupby/transform/test_transform.py
@@ -158,10 +158,12 @@ def test_transform_broadcast(tsfr... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Using `pytest.xfail` when a test is running will immediately stop the test and will not xpass if test would otherwise succeed. It doesn't seem to be ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38881 | 2021-01-01T19:07:34Z | 2021-01-02T15:41:46Z | null | 2021-01-02T15:41:53Z |
TST: add missing loc label indexing test | diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py
index 89315b16937b1..6c5cd0f335faa 100644
--- a/pandas/tests/indexing/test_loc.py
+++ b/pandas/tests/indexing/test_loc.py
@@ -56,9 +56,13 @@ def test_loc_getitem_label_out_of_range(self):
self.check_result("loc", 20, typs=["floa... | - [x] xref #38824
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38880 | 2021-01-01T19:06:49Z | 2021-01-03T17:17:59Z | 2021-01-03T17:17:59Z | 2023-09-21T16:53:33Z |
BUG: silently ignoring dtype kwarg in Index.__new__ | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 560f4fccd44fc..2b80fcdcdd0be 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -313,7 +313,7 @@ ExtensionArray
Other
^^^^^
-
+- Bug in :class:`Index` constructor sometimes silently ignorning a a spec... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
ATM we handle object but not others, xref #21311 | https://api.github.com/repos/pandas-dev/pandas/pulls/38879 | 2021-01-01T18:37:36Z | 2021-01-01T23:02:18Z | 2021-01-01T23:02:18Z | 2021-01-02T01:37:47Z |
TST: GH30999 TESTING PR do not merge or review | diff --git a/pandas/tests/computation/test_compat.py b/pandas/tests/computation/test_compat.py
index 9fc3ed4800d09..f5103564bb7eb 100644
--- a/pandas/tests/computation/test_compat.py
+++ b/pandas/tests/computation/test_compat.py
@@ -41,8 +41,9 @@ def testit():
pytest.skip("no numexpr")
else:
... | There are 3 tests that don't run on my dev machine even with tweaks. They should fail in the CI and I can get the messages from there. So for now this is just a PR designed to run (and fail) the CI pipelines.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream... | https://api.github.com/repos/pandas-dev/pandas/pulls/38876 | 2021-01-01T09:47:17Z | 2021-01-03T10:31:13Z | null | 2021-01-03T10:31:13Z |
TST: Series.update with categorical | diff --git a/pandas/tests/dtypes/test_dtypes.py b/pandas/tests/dtypes/test_dtypes.py
index 8ba8562affb67..410731820dc73 100644
--- a/pandas/tests/dtypes/test_dtypes.py
+++ b/pandas/tests/dtypes/test_dtypes.py
@@ -218,6 +218,12 @@ def test_repr_range_categories(self):
expected = "CategoricalDtype(categories=ran... | - [ ] closes #25744, closes #27338
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38873 | 2021-01-01T08:35:16Z | 2021-01-03T17:10:42Z | 2021-01-03T17:10:41Z | 2021-01-03T17:10:45Z |
TST: move generic/methods/ files to frame/methods/ | diff --git a/doc/source/development/test_writing.rst b/doc/source/development/test_writing.rst
index d9e24bb76eed8..76eae505471b7 100644
--- a/doc/source/development/test_writing.rst
+++ b/doc/source/development/test_writing.rst
@@ -149,13 +149,6 @@ be located.
``frame_or_series`` fixture, by convention it... | https://api.github.com/repos/pandas-dev/pandas/pulls/38871 | 2021-01-01T03:04:28Z | 2021-01-01T20:38:59Z | 2021-01-01T20:38:59Z | 2021-01-01T21:11:38Z | |
TST/REF: implement tests.frame.constructors | diff --git a/pandas/tests/frame/constructors/__init__.py b/pandas/tests/frame/constructors/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/frame/constructors/test_from_dict.py b/pandas/tests/frame/constructors/test_from_dict.py
new file mode 100644
index 0000000000000..6c9e... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/38869 | 2020-12-31T23:07:40Z | 2020-12-31T23:52:13Z | 2020-12-31T23:52:13Z | 2021-01-01T02:02:11Z |
REF: Move aggregation into apply | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index c0c6c9084b560..edb6b97a73e7f 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1,12 +1,18 @@
import abc
import inspect
-from typing import TYPE_CHECKING, Any, Dict, Iterator, Optional, Tuple, Type
+from typing import TYPE_CHECKING, Any, Dic... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a step toward #35725. We can't simply ban agg from not aggregating because it's used by apply for series, dataframe, groupby, resampler, and ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38867 | 2020-12-31T21:51:41Z | 2021-01-03T16:56:06Z | 2021-01-03T16:56:06Z | 2021-01-28T23:02:00Z |
ENH: implement FloatingArray.round() | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index d6fd017ff0897..ffacd82b35056 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -54,6 +54,7 @@ Other enhancements
- Add support for dict-like names in :class:`MultiIndex.set_names` and :class:`MultiIndex... | - [x] closes #38844
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry | https://api.github.com/repos/pandas-dev/pandas/pulls/38866 | 2020-12-31T21:43:06Z | 2021-02-11T01:30:19Z | null | 2021-02-11T01:30:19Z |
TST: GH30999 add match=msg to 2 pytest.raises in pandas/tests/io/json/test_normalize.py | diff --git a/pandas/tests/io/json/test_normalize.py b/pandas/tests/io/json/test_normalize.py
index 46f6367a7227f..b232c827f5ece 100644
--- a/pandas/tests/io/json/test_normalize.py
+++ b/pandas/tests/io/json/test_normalize.py
@@ -1,4 +1,3 @@
-from contextlib import nullcontext as does_not_raise
import json
import nu... | xref #30999 for pandas/tests/io/json/test_normalize.py
And with this my work on #30999 is done. Will head over to the issue to explain why I am not fixing the remaining 15 instances of `pytest.raise`
- [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/maste... | https://api.github.com/repos/pandas-dev/pandas/pulls/38864 | 2020-12-31T20:06:22Z | 2021-01-01T20:43:19Z | 2021-01-01T20:43:19Z | 2021-01-01T20:43:23Z |
BUG: additional keys in groupby indices when NAs are present | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index f66098633b45e..5e6d5c8c7466d 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -285,6 +285,7 @@ Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`SeriesGroupBy.value_counts` where uno... | - [x] closes #9304
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
`lib.indices_fast` included logic to skip over null values (-1's), but did not include the case where the first index is null. Currently this functio... | https://api.github.com/repos/pandas-dev/pandas/pulls/38861 | 2020-12-31T18:06:26Z | 2021-01-01T20:41:44Z | 2021-01-01T20:41:44Z | 2021-01-02T20:52:46Z |
DOC/CI: Fix building docs with --no-api | diff --git a/doc/make.py b/doc/make.py
index 40ce9ea3bbcd2..d90cd2428360d 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -46,6 +46,7 @@ def __init__(
warnings_are_errors=False,
):
self.num_jobs = num_jobs
+ self.include_api = include_api
self.verbosity = verbosity
self.war... | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fixes running docs via
python make.py --no-api
A few notes:
- The removed check `if os.path.exists(path):`; will incorrectly raise if ... | https://api.github.com/repos/pandas-dev/pandas/pulls/38858 | 2020-12-31T17:28:16Z | 2021-01-13T14:30:21Z | 2021-01-13T14:30:21Z | 2021-01-13T15:03:03Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.