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: Multiindex slicing with NaNs, unexpected results for #25154 | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index 6c0d1c285acf3..d0ef95d2fa56c 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -229,6 +229,85 @@ def test_frame_getitem_nan_multiin... | - [x] closes #25154
- [x] 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
Added test case for Multiindex slicing with NaNs.
Executed linting test based on the ins... | https://api.github.com/repos/pandas-dev/pandas/pulls/39356 | 2021-01-23T21:41:51Z | 2021-02-05T15:41:15Z | 2021-02-05T15:41:15Z | 2022-08-17T16:08:34Z |
BUG: read_excel failing to check older xlrd versions properly | diff --git a/doc/source/whatsnew/v1.2.2.rst b/doc/source/whatsnew/v1.2.2.rst
index c5825d0881515..51535501f5c1b 100644
--- a/doc/source/whatsnew/v1.2.2.rst
+++ b/doc/source/whatsnew/v1.2.2.rst
@@ -14,6 +14,8 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
+
+- Fixed regression in :func:`r... | - [ ] closes #38955
- [ ] 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
Probably should be in 1.2.1 given that this occurred after the deprecation of the xlrd eng... | https://api.github.com/repos/pandas-dev/pandas/pulls/39355 | 2021-01-23T20:43:59Z | 2021-02-01T13:45:49Z | 2021-02-01T13:45:48Z | 2023-12-31T14:12:31Z |
TST: remove incorrect xfails | diff --git a/pandas/tests/extension/test_numpy.py b/pandas/tests/extension/test_numpy.py
index 1f0181eec8830..5c8752eb86b93 100644
--- a/pandas/tests/extension/test_numpy.py
+++ b/pandas/tests/extension/test_numpy.py
@@ -364,18 +364,6 @@ class TestReshaping(BaseNumPyTests, base.BaseReshapingTests):
def test_concat... | - [ ] 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/39354 | 2021-01-23T19:44:23Z | 2021-01-24T21:13:03Z | 2021-01-24T21:13:03Z | 2021-01-24T21:22:28Z |
ENH: making mode stable/keeping original ordering | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index e3ab8b243e25a..3214b21133b72 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -284,16 +284,29 @@ def time_clip(self, n):
class ValueCounts:
- params = ["int", "ui... | - [x] closes #39007
- [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 is follow up of #39009 but for `mode`: now keys returned by `mode` are in the origina... | https://api.github.com/repos/pandas-dev/pandas/pulls/39353 | 2021-01-23T19:09:47Z | 2021-01-27T14:03:52Z | 2021-01-27T14:03:52Z | 2021-01-27T19:04:33Z |
STYLE: Fix incorrect path to ujson directory | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index d2f20a91cc654..597aced96eb18 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -64,7 +64,7 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
# this particular codebase (e.g. src/headers, src/klib). However,
# we can lint all header files since... | - [x] closes #39347
I fixed the path to `ujson` directory so `cpplint` will run on `pandas/_libs/src/ujson/` instead of `pandas/_libs/ujson`, which doesn't exist.
But the title of the issue says `cpplint (unintentionally?) skips pandas/_libs/src/ujson/`, so I understand there's a chance the `pandas/_libs/src/ujs... | https://api.github.com/repos/pandas-dev/pandas/pulls/39352 | 2021-01-23T19:04:06Z | 2021-01-26T22:37:11Z | 2021-01-26T22:37:11Z | 2021-01-27T16:44:13Z |
BUG: read_hdf bad filtering in case of categorical string columns | diff --git a/.github/ISSUE_TEMPLATE/documentation_improvement.md b/.github/ISSUE_TEMPLATE/documentation_improvement.md
index 32d5612767a8c..3351ff9581121 100644
--- a/.github/ISSUE_TEMPLATE/documentation_improvement.md
+++ b/.github/ISSUE_TEMPLATE/documentation_improvement.md
@@ -9,7 +9,7 @@ labels: "Docs, Needs Triage... | - [x] closes #39189
- [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 bug happens when filtering on categorical string columns and choose a value which ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39351 | 2021-01-23T17:37:25Z | 2021-01-26T20:57:29Z | null | 2021-01-26T20:58:57Z |
TST: fix xfailed tests for IntegerArray, FloatingArray | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index a28b119854bb7..0b2be53131af6 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -88,6 +88,7 @@
assert_timedelta_array_equal,
raise_assert_detail,
)
+from pandas._testing.compat import get_dtype # noqa:F40... | https://api.github.com/repos/pandas-dev/pandas/pulls/39350 | 2021-01-23T17:14:52Z | 2021-01-24T21:41:33Z | 2021-01-24T21:41:33Z | 2021-01-24T21:44:43Z | |
small typing fixes | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 9b957ab4d0686..f03b3c9eaf65a 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -91,7 +91,7 @@
Suffixes = Tuple[str, str]
Ordered = Optional[bool]
JSONSerializable = Optional[Union[PythonScalar, List, Dict]]
-Axes = Collection
+Axes = Collection[Any]
... | Some very small fixes to typing declarations to fix some errors found by `pyright`
Should not affect running code at all. mypy tests passed locally.
| https://api.github.com/repos/pandas-dev/pandas/pulls/39348 | 2021-01-23T16:35:46Z | 2021-01-30T20:44:05Z | 2021-01-30T20:44:05Z | 2023-02-13T20:50:52Z |
TST: fix incorrect extension test | diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py
index cb9a19b438feb..9ec842d801919 100644
--- a/pandas/tests/extension/base/setitem.py
+++ b/pandas/tests/extension/base/setitem.py
@@ -280,12 +280,11 @@ def test_setitem_frame_invalid_length(self, data):
with pytest.r... | https://api.github.com/repos/pandas-dev/pandas/pulls/39344 | 2021-01-23T03:32:16Z | 2021-01-24T21:31:11Z | 2021-01-24T21:31:11Z | 2021-01-24T23:31:00Z | |
REF: standardize get_indexer/get_indexer_non_unique | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index e91a25a9e23e8..bb5f05147aefb 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -3289,11 +3289,10 @@ def get_indexer(
if not self._index_as_unique:
raise InvalidIndexError(self._requires_unique_... | - [ ] 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/39343 | 2021-01-22T22:42:24Z | 2021-01-23T01:33:47Z | 2021-01-23T01:33:47Z | 2021-11-20T23:22:52Z |
TYP: Fix mypy ignores in parsers | diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py
index 0d23addbb5f21..8961fd0a7af06 100644
--- a/pandas/io/parsers/base_parser.py
+++ b/pandas/io/parsers/base_parser.py
@@ -2,7 +2,19 @@
import csv
import datetime
import itertools
-from typing import Any, Dict, Iterable, List, Optional... | - [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
Tried fixing the Mypy Errors in parsers
| https://api.github.com/repos/pandas-dev/pandas/pulls/39342 | 2021-01-22T22:39:38Z | 2021-02-04T15:55:17Z | 2021-02-04T15:55:17Z | 2021-02-04T17:57:23Z |
BUG: DataFrame.__setitem__ not raising ValueError when rhs is df and has wrong number of columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ff11ebc022ffb..2960199f2884d 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -286,6 +286,7 @@ Indexing
- Bug in :meth:`DataFrame.__setitem__` raising ``ValueError`` with empty :class:`DataFrame` and s... | - [x] closes #38604
- [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
Have to check how many columns key references before raising (duplicates or MultiIndex may... | https://api.github.com/repos/pandas-dev/pandas/pulls/39341 | 2021-01-22T20:29:19Z | 2021-01-24T22:01:02Z | 2021-01-24T22:01:02Z | 2021-01-25T19:01:19Z |
TYP: @final for more Index methods | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index f38b49a15c120..6ca613624d07c 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -822,6 +822,7 @@ def take(self, indices, axis=0, allow_fill=True, fill_value=None, **kwargs):
)
return self._shallow_c... | - [ ] 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/39333 | 2021-01-22T05:38:55Z | 2021-01-22T14:04:12Z | 2021-01-22T14:04:12Z | 2021-01-22T15:15:43Z |
PERF: DatetimeIndex.get_indexer with mismatched tz | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index e95e5bec5849c..86790063c5056 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -243,6 +243,20 @@ def time_loc_list(self, monotonic):
monotonic.loc[80000:]
+class DatetimeIndexIndexin... | Avoid casting to object dtype.
```
In [2]: dti = pd.date_range("2016-01-01", periods=10000, tz="US/Pacific")
In [3]: dti2 = dti.tz_convert("UTC")
In [4]: %timeit dti.get_indexer(dti2)
127 ms ± 4.69 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <-- master
352 µs ± 10.2 µs per loop (mean ± std. dev... | https://api.github.com/repos/pandas-dev/pandas/pulls/39332 | 2021-01-22T05:08:55Z | 2021-01-25T16:35:04Z | 2021-01-25T16:35:03Z | 2021-01-25T16:50:03Z |
REF: Fix PeriodIndex._outer_indexer -> share remaining set methods | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index e91a25a9e23e8..0dd452c53e3a4 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -115,6 +115,7 @@
if TYPE_CHECKING:
from pandas import MultiIndex, RangeIndex, Series
+ from pandas.core.indexes.datetimelike ... | - [ ] 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/39331 | 2021-01-22T02:30:01Z | 2021-01-22T23:28:07Z | 2021-01-22T23:28:07Z | 2021-01-22T23:35:53Z |
REF: de-duplicate algos.try_sort calls | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index aa1a05aac9ad1..c79328ff23785 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2882,15 +2882,7 @@ def _union(self, other, sort):
else:
result = lvals
- if sort is None:
- ... | - [ ] 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/39330 | 2021-01-22T02:28:12Z | 2021-01-22T13:57:13Z | 2021-01-22T13:57:13Z | 2021-01-22T15:17:23Z |
BUG: SeriesGroupBy.value_counts() raising error on an empty Series | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 19244ba858a4d..381a05a18b278 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -345,6 +345,7 @@ Groupby/resample/rolling
^^^^^^^^^^^^^^^^^^^^^^^^
- Bug in :meth:`SeriesGroupBy.value_counts` where uno... | - [x] closes #39172
- [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/39326 | 2021-01-21T19:09:19Z | 2021-01-22T23:26:52Z | 2021-01-22T23:26:51Z | 2021-01-22T23:26:57Z |
add test for fillna with column | diff --git a/pandas/tests/series/methods/test_fillna.py b/pandas/tests/series/methods/test_fillna.py
index 0bcb37d4880a6..11f2c2ea9a9d1 100644
--- a/pandas/tests/series/methods/test_fillna.py
+++ b/pandas/tests/series/methods/test_fillna.py
@@ -20,6 +20,16 @@
class TestSeriesFillNA:
+ def test_fillna_column(sel... | - [X] tests added / passed
I noticed there was no test for pd.Series.fillna using a column, so I added one. | https://api.github.com/repos/pandas-dev/pandas/pulls/39323 | 2021-01-21T18:07:40Z | 2021-02-11T00:27:01Z | null | 2021-02-11T00:27:01Z |
Backport PR #39314 on branch 1.2.x (DOC: clarify in which version the excel engine default changed) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index a78af82ba4db8..b6d686ee2551f 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2834,7 +2834,7 @@ See the :ref:`cookbook<cookbook.excel>` for some advanced strategies.
The `xlrd <https://xlrd.readthedocs.io/... | Backport PR #39314: DOC: clarify in which version the excel engine default changed | https://api.github.com/repos/pandas-dev/pandas/pulls/39322 | 2021-01-21T17:59:53Z | 2021-01-21T23:50:43Z | 2021-01-21T23:50:43Z | 2021-01-21T23:50:43Z |
Backport PR #39316 on branch 1.2.x ([DOC] Update PR link in 1.2.0 release notes) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index dfd23309faaef..395f353b561eb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -746,7 +746,7 @@ I/O
- Parse missing values using :func:`read_json` with ``dtype=False`` to ``NaN`` instead of ``None`` (:i... | Backport PR #39316: [DOC] Update PR link in 1.2.0 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/39319 | 2021-01-21T15:45:36Z | 2021-01-21T17:35:29Z | 2021-01-21T17:35:29Z | 2021-01-21T17:35:29Z |
TST: Benchmarks for CSV writing for various index variations | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 24d21ad6a633d..9f5827eabee52 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -76,6 +76,54 @@ def time_frame(self, obs):
self.data.to_csv(self.fname)
+class ToCSVIndexes(BaseIO):
+
+ fna... | Benchmarks derived from GH37484 (https://github.com/pandas-dev/pandas/issues/37484). This captures a peculiar difference in timings between a DataFrame originating from `df.set_index(...).head(...)` and one from `df.head(...).set_index(...)`.
- [x] tests added / passed
- [x] Ensure all linting tests pass, see [here... | https://api.github.com/repos/pandas-dev/pandas/pulls/39318 | 2021-01-21T15:08:00Z | 2021-01-21T23:58:16Z | 2021-01-21T23:58:16Z | 2021-01-21T23:58:19Z |
BUG+DOC: Recent Styler Enhancements | diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb
index 24f344488d1ca..114b4688fffaf 100644
--- a/doc/source/user_guide/style.ipynb
+++ b/doc/source/user_guide/style.ipynb
@@ -15,30 +15,19 @@
"\n",
"The styling is accomplished using CSS.\n",
"You write \"style functions\"... | **DOC**: this edits the `style.ipynb` file to include examples of the 3 recent enhancements to `Styler`:
- Tooltips
- External CSS classes to datacells
- Row and Column styling via table styles
It also addresses 3 minor bugs that I detected when wirting the documentation:
**BUG1** (lines 696-703): `set_td... | https://api.github.com/repos/pandas-dev/pandas/pulls/39317 | 2021-01-21T12:26:29Z | 2021-01-24T21:46:22Z | 2021-01-24T21:46:21Z | 2021-01-25T06:34:17Z |
[DOC] Update PR link in 1.2.0 release notes | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index dfd23309faaef..395f353b561eb 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -746,7 +746,7 @@ I/O
- Parse missing values using :func:`read_json` with ``dtype=False`` to ``NaN`` instead of ``None`` (:i... | - [x] closes #39291
- [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/39316 | 2021-01-21T12:09:49Z | 2021-01-21T15:44:04Z | 2021-01-21T15:44:04Z | 2021-01-22T00:04:13Z |
DOC: clarify in which version the excel engine default changed | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 8c7e01dd999d3..d6934a3ca2a6c 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -2853,7 +2853,7 @@ See the :ref:`cookbook<cookbook.excel>` for some advanced strategies.
The `xlrd <https://xlrd.readthedocs.io/... | Small clarification, because "previously" only made sense in the actual v1.2.0 release notes, and not in the main docs | https://api.github.com/repos/pandas-dev/pandas/pulls/39314 | 2021-01-21T10:31:33Z | 2021-01-21T17:59:40Z | 2021-01-21T17:59:40Z | 2021-01-21T18:00:02Z |
REF/TST: Move Series/DataFrame apply tests to tests.apply | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 45d545a522fc7..0b1c09b56a985 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -711,6 +711,24 @@ def float_frame():
return DataFrame(tm.getSeriesData())
+@pytest.fixture
+def mixed_type_frame():
+ """
+ Fixture for DataFrame of float/in... | - [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
Ref: https://github.com/pandas-dev/pandas/pull/39212#issuecomment-763112628
Just a move. Will be following up with combining Series/DataFrame tests where appr... | https://api.github.com/repos/pandas-dev/pandas/pulls/39312 | 2021-01-21T03:46:29Z | 2021-01-21T16:33:32Z | 2021-01-21T16:33:32Z | 2021-02-06T13:56:43Z |
REF: Move part of groupby.agg to apply | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cff9c16f5d17a..4a7d6af2fb472 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -135,7 +135,7 @@ repos:
files: ^pandas/tests/
- id: FrameOrSeriesUnion
name: Check for use of Union[Series, DataFrame] instead ... | - [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
pre-commit adjusted to account for the false positive on `Union[SeriesGroupBy, DataFrameGroupBy]`.
Moves part of groupby.agg imple... | https://api.github.com/repos/pandas-dev/pandas/pulls/39311 | 2021-01-21T03:22:50Z | 2021-01-22T14:00:16Z | 2021-01-22T14:00:16Z | 2021-01-28T23:00:37Z |
CI: fix flaky tests | diff --git a/pandas/tests/io/pytables/test_select.py b/pandas/tests/io/pytables/test_select.py
index 87d0728e2418e..a8f63bdc5fb2f 100644
--- a/pandas/tests/io/pytables/test_select.py
+++ b/pandas/tests/io/pytables/test_select.py
@@ -840,7 +840,8 @@ def test_select_as_multiple(setup_path):
)
expected =... | - [ ] 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/39310 | 2021-01-21T02:52:50Z | 2021-01-21T15:13:00Z | 2021-01-21T15:13:00Z | 2021-01-21T15:21:43Z |
BUG: date_range hitting iNaT | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b061c4040096e..eed712ae7de0f 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -233,6 +233,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.intersection`, :meth:`DatetimeIndex.symmetric_difference`, :met... | - [x] closes #24124
- [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/39308 | 2021-01-20T23:21:12Z | 2021-01-21T00:50:18Z | 2021-01-21T00:50:17Z | 2021-01-21T01:56:01Z |
ENH: PeriodIndex setops with incompatible freq cast instead of raise | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ce75eda458577..5351fe2bdfffa 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -271,6 +271,7 @@ Interval
- Bug in :meth:`IntervalIndex.intersection` and :meth:`IntervalIndex.symmetric_difference` always... | - [ ] 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
Did the same thing for IntervalIndex earlier in #39267 | https://api.github.com/repos/pandas-dev/pandas/pulls/39306 | 2021-01-20T22:23:46Z | 2021-01-21T15:16:16Z | 2021-01-21T15:16:16Z | 2021-01-21T15:24:33Z |
CLN: consistently put '|' at start of line in pygrep hooks #39301 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 88d18e3e230c6..cff9c16f5d17a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -60,11 +60,11 @@ repos:
entry: |
(?x)
# Check for imports from pandas.core.common instead of `import pandas.core.comm... | - [x] closes #39301
- [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
I moved the `|` symbols from the end of the line to the beginning of the line in pygrep hooks.
I also added the `|` symbol in the `non-... | https://api.github.com/repos/pandas-dev/pandas/pulls/39304 | 2021-01-20T20:20:43Z | 2021-01-20T22:15:15Z | 2021-01-20T22:15:15Z | 2021-01-20T22:15:36Z |
[DOC/WEB]: Resolving 'Getting started' URL ambiguity in pandas.io(Issue #32307) | diff --git a/doc/redirects.csv b/doc/redirects.csv
index de69d0168835d..475e5bbdae9be 100644
--- a/doc/redirects.csv
+++ b/doc/redirects.csv
@@ -5,6 +5,9 @@
whatsnew,whatsnew/index
release,whatsnew/index
+# web
+getting_started,docs/getting_started/index
+
# getting started
install,getting_started/install
compar... | The Following goals are being accomplished in this PR:
- [x] Having the navigation bar's 'Getting Started' link point to `/docs/getting_started/index.html` from `/getting_started.html`
- [x] Removing the redundant markup `pandas/web/pandas/getting_started.md`.
<!--- [x] Adding above redirecting information in `panda... | https://api.github.com/repos/pandas-dev/pandas/pulls/39303 | 2021-01-20T19:29:57Z | 2021-07-11T23:40:17Z | null | 2021-07-11T23:40:17Z |
WIP/REF: BlockManager.setitem_blockwise | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index ef93e80d83d04..fa8bc5ce42685 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -60,6 +60,7 @@
pandas_dtype,
)
from pandas.core.dtypes.missing import is_valid_nat_for_dtype, isna
+f... | Posting largely for discussion with @phofl.
Motivations:
1) Try to end up with fewer code paths for setitem so that we can ensure consistent inplace/view/copy behavior (xref #38896)
2) Simplify (ATM this does not simplify things)
3) Perf: iterating over blocks instead of columns may save some copies (though doi... | https://api.github.com/repos/pandas-dev/pandas/pulls/39302 | 2021-01-20T17:35:48Z | 2021-01-28T21:25:54Z | null | 2021-11-08T16:37:01Z |
CLN, TYP Remove string type hints | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cff9c16f5d17a..e30cf3acd776d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -150,7 +150,6 @@ repos:
(?x)
\#\ type:\ (?!ignore)
|\#\ type:\s?ignore(?!\[)
- |\)\ ->\ \"
la... | - [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
For some background: there was some consensus on doing this [here](https://github.com/pandas-dev/pandas/pull/36034#issuecomment-685186742)
Then [here](https:/... | https://api.github.com/repos/pandas-dev/pandas/pulls/39299 | 2021-01-20T16:02:21Z | 2021-01-21T11:21:08Z | 2021-01-21T11:21:08Z | 2021-01-21T12:15:35Z |
REF: add skeleton for strategy pattern in describe | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
index 3eafdafa99518..0494e54733dc1 100644
--- a/pandas/core/describe.py
+++ b/pandas/core/describe.py
@@ -6,7 +6,7 @@
from __future__ import annotations
from abc import ABC, abstractmethod
-from typing import TYPE_CHECKING, Callable, List, Optional, Seq... | - [ ] xref #36833
- [ ] 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
Added a skeleton for the strategy pattern in ``pandas/core/describe.py``.
Currently the met... | https://api.github.com/repos/pandas-dev/pandas/pulls/39298 | 2021-01-20T15:58:06Z | 2021-01-28T15:30:09Z | null | 2021-01-28T15:30:09Z |
BUG: of apply function of DataFrame reported in issues #39166 | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 0246971bfa2b4..3544f165e1d68 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -530,7 +530,8 @@ def series_generator(self):
ser._mgr = mgr
blk.values = arr
ser.name = name
- yie... | - [x] closes #39166
- [ ] 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/39296 | 2021-01-20T14:31:57Z | 2021-01-25T16:27:28Z | null | 2021-01-25T16:27:28Z |
Backport PR #39234 on branch 1.2.x (DOC: Start v1.2.2 release notes) | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index 55e3971502c0a..c37255c765171 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -16,6 +16,7 @@ Version 1.2
.. toctree::
:maxdepth: 2
+ v1.2.2
v1.2.1
v1.2.0
diff --git a/doc/source/whatsnew/... | Backport PR #39234: DOC: Start v1.2.2 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/39294 | 2021-01-20T13:24:12Z | 2021-01-20T14:40:23Z | 2021-01-20T14:40:23Z | 2021-01-20T14:40:23Z |
STYLE: dont use pd api types in tests | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cff9c16f5d17a..03c837d2e3162 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -169,6 +169,12 @@ repos:
pandas/tests/io/excel/test_writers\.py
|pandas/tests/io/pytables/common\.py
|pandas/test... | - [x] closes #39203
- [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
I didn't add a whatsnew entry since it's only style fixes.
I'll open a new issue regardin... | https://api.github.com/repos/pandas-dev/pandas/pulls/39293 | 2021-01-20T13:23:01Z | 2021-01-21T15:04:53Z | 2021-01-21T15:04:52Z | 2021-01-21T17:30:12Z |
Default behaviour for return_type = None corrected. | - [x] closes #35518
- [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/39292 | 2021-01-20T13:18:48Z | 2021-01-24T12:32:53Z | null | 2021-01-24T12:32:53Z | |
'lower' method causing problems when individual values are being read as 'int' | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 88ce5865ee8c2..0b594d513978b 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -890,6 +890,7 @@ def _assemble_from_unit_mappings(arg, errors, tz):
# replace passed unit with _unit_map
def f(v... | - couldn't run tests as using company locked system
| https://api.github.com/repos/pandas-dev/pandas/pulls/39289 | 2021-01-20T09:26:53Z | 2021-02-11T00:35:01Z | null | 2021-02-11T00:35:01Z |
Backport PR #39239 on branch 1.2.x (DEPR: raise deprecation warning in numpy ufuncs on DataFrames if not aligned + fallback to <1.2.0 behaviour) | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 95757448a7978..dfd23309faaef 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -286,6 +286,8 @@ Other enhancements
- Added methods :meth:`IntegerArray.prod`, :meth:`IntegerArray.min`, and :meth:`Integer... | Backport PR #39239: DEPR: raise deprecation warning in numpy ufuncs on DataFrames if not aligned + fallback to <1.2.0 behaviour | https://api.github.com/repos/pandas-dev/pandas/pulls/39288 | 2021-01-20T07:28:05Z | 2021-01-20T08:15:48Z | 2021-01-20T08:15:48Z | 2021-01-20T08:15:48Z |
REF: split describe categorical function | diff --git a/pandas/core/describe.py b/pandas/core/describe.py
index 09862b72c4a4f..3eafdafa99518 100644
--- a/pandas/core/describe.py
+++ b/pandas/core/describe.py
@@ -6,7 +6,7 @@
from __future__ import annotations
from abc import ABC, abstractmethod
-from typing import TYPE_CHECKING, List, Optional, Sequence, Uni... | - [ ] xref #36833
- [ ] 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
Moved handing timestamp data from ``describe_categorical_1d`` into ``describe_timestamp_as_c... | https://api.github.com/repos/pandas-dev/pandas/pulls/39287 | 2021-01-20T07:14:41Z | 2021-01-20T14:52:46Z | 2021-01-20T14:52:46Z | 2021-01-20T15:17:03Z |
Series with dtype=object does unexpected type conversion | diff --git a/pandas/tests/series/indexing/test_setitem.py b/pandas/tests/series/indexing/test_setitem.py
index 7f469f361fec7..2dff35cdcd300 100644
--- a/pandas/tests/series/indexing/test_setitem.py
+++ b/pandas/tests/series/indexing/test_setitem.py
@@ -367,6 +367,18 @@ def test_setitem_empty_series_datetimeindex_preser... | - [ ] closes #21881
- [ ] 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/39285 | 2021-01-20T02:17:21Z | 2021-01-28T14:59:30Z | 2021-01-28T14:59:30Z | 2021-01-28T14:59:33Z |
Replaced empty series check with Series with columns | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 9c223d66b727b..d3bf81c6c9b1e 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -198,7 +198,7 @@ def apply_empty_result(self):
if not should_reduce:
try:
- r = self.f(Series([], dtype=np.float64))
+ ... | - [x] closes #39111
- [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/39282 | 2021-01-19T22:24:24Z | 2021-04-30T00:50:10Z | null | 2021-04-30T00:50:10Z |
BUG: DataFrame.__setitem__ raising ValueError when setting multiple values to dup columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 5422134f220d7..776f3c184b88b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -275,6 +275,7 @@ Indexing
^^^^^^^^
- Bug in :meth:`CategoricalIndex.get_indexer` failing to raise ``InvalidIndexError`` wh... | - [x] closes #15695
- [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
Setting with a scalar key which is duplicated in columns should be the same as using a lis... | https://api.github.com/repos/pandas-dev/pandas/pulls/39280 | 2021-01-19T21:21:25Z | 2021-01-21T15:54:42Z | 2021-01-21T15:54:42Z | 2021-01-21T16:12:55Z |
REF: share start_time/end_time between Period/PeriodArray | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 8a62ad4e3d033..e276515ca1ae9 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1489,6 +1489,60 @@ cdef class PeriodMixin:
return FR_SEC
return base
+ @property
+ def start_... | - [ ] 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
One thing that might make this undesirable is that the annotations on this are accurate for... | https://api.github.com/repos/pandas-dev/pandas/pulls/39279 | 2021-01-19T21:15:22Z | 2021-01-21T15:19:46Z | 2021-01-21T15:19:46Z | 2021-01-21T15:25:28Z |
BUG: loc.setitem raising ValueError when df has duplicate columns | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ab00b749d5725..c419884ee6ce1 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -276,6 +276,7 @@ Indexing
- Bug in :meth:`DataFrame.loc`, :meth:`Series.loc`, :meth:`DataFrame.__getitem__` and :meth:`Seri... | - [x] closes #38521
- [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/39278 | 2021-01-19T20:36:45Z | 2021-01-21T15:53:36Z | 2021-01-21T15:53:35Z | 2021-01-21T17:28:21Z |
REF: share PeriodArray.asfreq with Period.asfreq | diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx
index 5d3ad559ea718..6cd24dac33f71 100644
--- a/pandas/_libs/tslibs/period.pyx
+++ b/pandas/_libs/tslibs/period.pyx
@@ -1,11 +1,12 @@
import warnings
+cimport numpy as cnp
from cpython.object cimport Py_EQ, Py_NE, PyObject_RichCompareBool
... | Slightly faster for PeriodArray, no change for Period.
```
In [3]: pi = pd.period_range("2016-01-01", periods=100, freq="D")
In [4]: %timeit pi.asfreq("W")
43.5 µs ± 696 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <-- master
36.3 µs ± 1.06 µs per loop (mean ± std. dev. of 7 runs, 10000 loops ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39277 | 2021-01-19T20:13:25Z | 2021-01-20T19:21:59Z | 2021-01-20T19:21:59Z | 2021-01-20T19:24:12Z |
BUG: is_utc(dateutil_utc) | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index b061c4040096e..183f50b961d62 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -243,7 +243,7 @@ Timedelta
Timezones
^^^^^^^^^
- Bug in different ``tzinfo`` objects representing UTC not being treated a... | - [ ] 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/39276 | 2021-01-19T19:35:55Z | 2021-01-21T23:40:06Z | 2021-01-21T23:40:05Z | 2021-01-21T23:48:17Z |
ENH: Period comparisons with mismatched freq use py3 behavior | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index cc1b1df3c3252..e2d84ed3056ae 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -321,7 +321,7 @@ I/O
Period
^^^^^^
-
+- Comparisons of :class:`Period` objects or :class:`Index`, :class:`Series`, or :c... | - [ ] 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/39274 | 2021-01-19T16:45:56Z | 2021-01-20T19:23:56Z | 2021-01-20T19:23:55Z | 2021-01-20T20:25:02Z |
Backport PR #39260 on branch 1.2.x (REGR: fix numpy accumulate ufuncs for DataFrame) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 4e583ce4d3af9..4d41a2998bbb5 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -32,6 +32,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.replace` raising ``ValueError`` when :class:`DataFr... | Backport PR #39260: REGR: fix numpy accumulate ufuncs for DataFrame | https://api.github.com/repos/pandas-dev/pandas/pulls/39273 | 2021-01-19T16:19:59Z | 2021-01-19T17:38:33Z | 2021-01-19T17:38:33Z | 2021-01-19T17:38:33Z |
BUG: 2D ndarray of dtype 'object' is always copied upon construction | diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst
index d114f26788f00..43f517fe5a02f 100644
--- a/doc/source/whatsnew/v1.4.0.rst
+++ b/doc/source/whatsnew/v1.4.0.rst
@@ -178,6 +178,7 @@ Categorical
Datetimelike
^^^^^^^^^^^^
- Bug in :func:`to_datetime` returning pd.NaT for inputs that prod... | This change is aesthetically unpleasing, it indents too far. #26825 already suggested to separate this part into a function. Please let me know what exactly I should abstract into a function, and where to put it. Alternatively, amend this PR yourself.
Thanks for pandas. :)
- [X] closes #39263
- [X] tests added /... | https://api.github.com/repos/pandas-dev/pandas/pulls/39272 | 2021-01-19T15:40:46Z | 2021-07-15T04:22:00Z | 2021-07-15T04:22:00Z | 2021-07-15T04:22:10Z |
Backport PR #39253 on branch 1.2.x (REGR: codecs.open() is always opened in text mode) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 24ba9be4383eb..4e583ce4d3af9 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`~Data... | Backport PR #39253: REGR: codecs.open() is always opened in text mode | https://api.github.com/repos/pandas-dev/pandas/pulls/39271 | 2021-01-19T14:00:24Z | 2021-01-19T15:00:02Z | 2021-01-19T15:00:02Z | 2021-01-19T15:00:02Z |
CLN, TYP use string types in generics | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 88d18e3e230c6..08a5b34167552 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -150,9 +150,15 @@ repos:
(?x)
\#\ type:\ (?!ignore)|
\#\ type:\s?ignore(?!\[)|
- \)\ ->\ \"
+
+ ... | - [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/39270 | 2021-01-19T11:55:12Z | 2021-01-19T18:23:45Z | null | 2021-03-09T14:41:50Z |
Backport PR #39256 on branch 1.2.x (DOC: keep color for note admonitions in sphinx theme) | diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css
index 43cd631890330..403d182e3d3e5 100644
--- a/doc/source/_static/css/pandas.css
+++ b/doc/source/_static/css/pandas.css
@@ -1,3 +1,10 @@
+/* Override some aspects of the pydata-sphinx-theme */
+
+:root {
+ /* Use softer blue from boot... | Backport PR #39256: DOC: keep color for note admonitions in sphinx theme | https://api.github.com/repos/pandas-dev/pandas/pulls/39269 | 2021-01-19T08:34:41Z | 2021-01-19T09:50:08Z | 2021-01-19T09:50:08Z | 2021-01-19T09:50:09Z |
CLN: remove pd import in pandas/core/computation | diff --git a/pandas/core/computation/expr.py b/pandas/core/computation/expr.py
index 88a25ad9996a0..babf8116a5588 100644
--- a/pandas/core/computation/expr.py
+++ b/pandas/core/computation/expr.py
@@ -558,11 +558,11 @@ def visit_Index(self, node, **kwargs):
return self.visit(node.value)
def visit_Subscr... | - [ ] 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
Remove ``import pandas as pd`` in ``pandas/core/computation``. | https://api.github.com/repos/pandas-dev/pandas/pulls/39268 | 2021-01-19T06:27:46Z | 2021-01-19T17:33:37Z | 2021-01-19T17:33:37Z | 2021-01-20T03:31:15Z |
ENH: cast instead of raise for IntervalIndex setops with differnet closed | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6a85bfd852e19..95f5a2789102b 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -268,7 +268,7 @@ Interval
^^^^^^^^
- Bug in :meth:`IntervalIndex.intersection` and :meth:`IntervalIndex.symmetric_differen... | - [ ] 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/39267 | 2021-01-19T05:49:05Z | 2021-01-20T13:53:56Z | 2021-01-20T13:53:55Z | 2021-01-20T15:54:31Z |
BUG: setting dt64 values into Series[int] incorrectly casting dt64->int | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index d24c595cacab5..5ab183ed81740 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -335,6 +335,7 @@ Indexing
- Bug in :meth:`DataFrame.__getitem__` and :meth:`Series.__getitem__` always raising ``KeyError``... | - [ ] 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/39266 | 2021-01-19T05:04:54Z | 2021-01-28T15:05:39Z | 2021-01-28T15:05:39Z | 2021-01-28T15:33:32Z |
CI/STYLE Fix misspellings exposed by codespell | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 339e0b5c39a86..4654c6be921b4 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -189,7 +189,8 @@ repos:
hooks:
- id: codespell
types_or: [python, rst, markdown]
- files: ^pandas/core/
+ files: ^pan... | - [ ] partial fix for #38802
- [ ] 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/39264 | 2021-01-19T02:08:34Z | 2021-01-21T23:59:14Z | 2021-01-21T23:59:14Z | 2021-01-21T23:59:18Z |
CI: skip checking freq on flaky pytables test | diff --git a/pandas/tests/io/pytables/test_store.py b/pandas/tests/io/pytables/test_store.py
index 819f8ed9bc07f..cb281e7cafd1f 100644
--- a/pandas/tests/io/pytables/test_store.py
+++ b/pandas/tests/io/pytables/test_store.py
@@ -650,7 +650,9 @@ def test_coordinates(setup_path):
expected = concat([df1, df2], ... | - [ ] 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/39262 | 2021-01-18T23:27:56Z | 2021-01-19T16:21:05Z | 2021-01-19T16:21:05Z | 2021-01-19T16:23:39Z |
REGR: fix numpy accumulate ufuncs for DataFrame | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 4e583ce4d3af9..4d41a2998bbb5 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -32,6 +32,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.replace` raising ``ValueError`` when :class:`DataFr... | Closes #39259
So we shouldn't call non-`__call__` ufuncs block-by-block, since they can work along a certain axis, like `accumulate`. In this case there were 2 problems: 1) we were applying the ufunc on the Block values, which is 2D but transposed compared to the DataFrame (so the accumulation was done in the wrong ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39260 | 2021-01-18T21:33:49Z | 2021-01-19T16:19:24Z | 2021-01-19T16:19:24Z | 2021-01-19T18:00:19Z |
DEPR: astype dt64<->dt64tz | diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst
index 8909f5b33066b..01ff62d984544 100644
--- a/doc/source/user_guide/timeseries.rst
+++ b/doc/source/user_guide/timeseries.rst
@@ -2605,17 +2605,10 @@ For example, to localize and convert a naive stamp to time zone aware.
s_na... | - [x] closes #38622
- [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/39258 | 2021-01-18T17:49:00Z | 2021-01-21T15:15:19Z | 2021-01-21T15:15:19Z | 2021-01-21T15:23:36Z |
CLN refactor maybe-castable | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index 640c8d66807ad..8aa3d7900e8e9 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -588,9 +588,13 @@ def _try_cast(arr, dtype: Optional[DtypeObj], copy: bool, raise_cast_failure: bo
Otherwise an object array is... | - [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
extracted from #37586 | https://api.github.com/repos/pandas-dev/pandas/pulls/39257 | 2021-01-18T16:58:22Z | 2021-02-07T16:36:59Z | 2021-02-07T16:36:59Z | 2021-02-11T11:53:37Z |
DOC: keep color for note admonitions in sphinx theme | diff --git a/doc/source/_static/css/pandas.css b/doc/source/_static/css/pandas.css
index 43cd631890330..403d182e3d3e5 100644
--- a/doc/source/_static/css/pandas.css
+++ b/doc/source/_static/css/pandas.css
@@ -1,3 +1,10 @@
+/* Override some aspects of the pydata-sphinx-theme */
+
+:root {
+ /* Use softer blue from boot... | This doesn't change anything about the appearance in the docs, but is meant to keep the current look anticipating a change in the default color in the theme upstream (https://github.com/pandas-dev/pydata-sphinx-theme/pull/281) | https://api.github.com/repos/pandas-dev/pandas/pulls/39256 | 2021-01-18T16:54:05Z | 2021-01-19T08:33:15Z | 2021-01-19T08:33:15Z | 2021-01-19T08:33:20Z |
Backport PR #39202 on branch 1.2.x | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 2d9290dda060a..1a243c846d01c 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`~DataFrame.to_csv` that created corrupted zip files when ther... | https://api.github.com/repos/pandas-dev/pandas/pulls/39255 | 2021-01-18T16:05:47Z | 2021-01-18T19:03:52Z | 2021-01-18T19:03:52Z | 2021-01-18T21:07:13Z | |
Backport PR #39202: REGR: to_stata tried to remove file before closing it | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 2d9290dda060a..1a243c846d01c 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -17,6 +17,7 @@ Fixed regressions
- Fixed regression in :meth:`~DataFrame.to_csv` that created corrupted zip files when ther... | Backport PR #39202 | https://api.github.com/repos/pandas-dev/pandas/pulls/39254 | 2021-01-18T16:04:43Z | 2021-01-18T16:19:28Z | null | 2021-01-21T12:06:05Z |
REGR: codecs.open() is always opened in text mode | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 24ba9be4383eb..4e583ce4d3af9 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`~Data... | - [x] closes #39247
- [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/39253 | 2021-01-18T15:38:54Z | 2021-01-19T13:58:32Z | 2021-01-19T13:58:31Z | 2021-01-19T21:50:22Z |
Backport PR #39235 on branch 1.2.x (Revert "Inconsistent indexes for tick label plotting (#28733)") | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 8e9361125513b..95757448a7978 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -751,7 +751,7 @@ Plotting
- Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-... | Backport PR #39235: Revert "Inconsistent indexes for tick label plotting (#28733)" | https://api.github.com/repos/pandas-dev/pandas/pulls/39252 | 2021-01-18T15:20:00Z | 2021-01-18T16:10:44Z | 2021-01-18T16:10:44Z | 2021-01-18T16:10:44Z |
Backport PR #39246 on branch 1.2.x (DOC: clean-up of v1.2.1 whatsnew) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 411eeed1714f1..2d9290dda060a 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -14,26 +14,25 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Fixed regression in :meth:`t... | Backport PR #39246: DOC: clean-up of v1.2.1 whatsnew | https://api.github.com/repos/pandas-dev/pandas/pulls/39248 | 2021-01-18T10:55:54Z | 2021-01-18T11:48:13Z | 2021-01-18T11:48:13Z | 2021-01-18T11:48:13Z |
DOC: clean-up of v1.2.1 whatsnew | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 411eeed1714f1..2d9290dda060a 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -14,26 +14,25 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Fixed regression in :meth:`t... | First commit is fixing links to the reference docs (many were not actually working links), the second commit is just a reorder to group related ones together (but together it makes the diff a bit difficult to interpret)
cc @simonjayhawkins | https://api.github.com/repos/pandas-dev/pandas/pulls/39246 | 2021-01-18T09:16:39Z | 2021-01-18T10:55:38Z | 2021-01-18T10:55:38Z | 2021-01-18T10:56:28Z |
ENH: Make Timestamp implementation bounds match DTA/DTI/Series | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index b1b38505b9476..9578fed2d1fd9 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -447,10 +447,10 @@ cpdef array_to_datetime(
raise ValueError('Tz-aware datetime.datetime '
... | - [x] xref #24124
- [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/39245 | 2021-01-17T23:01:12Z | 2021-01-20T22:08:09Z | 2021-01-20T22:08:09Z | 2022-02-25T21:57:14Z |
BUG: Timestamp.round floating point error | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index eed712ae7de0f..b902aceff62a7 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -233,6 +233,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.intersection`, :meth:`DatetimeIndex.symmetric_difference`, :met... | - [ ] 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
- [ ] whatsnew entry
xref #38964 analogous bug in Timedelta (separate PR upcoming)
```
ts = pd.Timestamp.max... | https://api.github.com/repos/pandas-dev/pandas/pulls/39244 | 2021-01-17T22:46:46Z | 2021-01-21T17:36:50Z | 2021-01-21T17:36:50Z | 2021-01-21T18:22:40Z |
Updated Comparison to Excel documentation with code example of read_excel and to_excel for #38990 | diff --git a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst b/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst
index 13029173b2e65..55f999c099e23 100644
--- a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst
+++ b/doc/source/getting_started/comparison/... | - This is my first time contributing - please let me know if any other detail is needed! Essentially I just swapped the order of the "Excel" and "CSV" paragraphs in the data importing section, so that the examples given for to_excel and read_excel would flow from the CSV example without needing repeated code/codeblocks... | https://api.github.com/repos/pandas-dev/pandas/pulls/39242 | 2021-01-17T22:02:49Z | 2021-01-21T23:41:08Z | 2021-01-21T23:41:08Z | 2021-01-21T23:41:12Z |
Included reading from Excel example as suggested via #38990 | diff --git a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst b/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst
index 13029173b2e65..aecd90a071129 100644
--- a/doc/source/getting_started/comparison/comparison_with_spreadsheets.rst
+++ b/doc/source/getting_started/comparison/... | - In the "Comparison to" documentation for Excel, added in example of writing to and reading from an Excel file as suggested in #38990, which is based on #38554. | https://api.github.com/repos/pandas-dev/pandas/pulls/39241 | 2021-01-17T21:38:17Z | 2021-01-17T21:59:45Z | null | 2021-01-21T00:45:52Z |
DEPR: raise deprecation warning in numpy ufuncs on DataFrames if not aligned + fallback to <1.2.0 behaviour | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 95757448a7978..dfd23309faaef 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -286,6 +286,8 @@ Other enhancements
- Added methods :meth:`IntegerArray.prod`, :meth:`IntegerArray.min`, and :meth:`Integer... | Closes #39184
This is obviously a last-minute change, but if people agree on the deprecation, I think we should try to include it in v1.2.1. I *think* my patch is relatively safe, since converting the input to numpy arrays (what I am doing now manually as fallback) is what happened before adding `DataFrame.__array_u... | https://api.github.com/repos/pandas-dev/pandas/pulls/39239 | 2021-01-17T20:15:01Z | 2021-01-20T07:22:57Z | 2021-01-20T07:22:57Z | 2021-01-20T09:42:33Z |
CLN: remove unused axis kwarg from Block.putmask | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 6a80fa3e93362..857b97f58d8a0 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8935,9 +8935,7 @@ def _where(
# reconstruct the block manager
self._check_inplace_setting(other)
- new_data = self._... | - [ ] 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/39238 | 2021-01-17T19:11:11Z | 2021-01-19T18:11:37Z | 2021-01-19T18:11:37Z | 2021-01-19T18:15:08Z |
Backport PR #39233 on branch 1.2.x (DOC: 1.2.1 release date) | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index fa5347aa7a507..411eeed1714f1 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -1,6 +1,6 @@
.. _whatsnew_121:
-What's new in 1.2.1 (January ??, 2021)
+What's new in 1.2.1 (January 18, 2021)
---------... | Backport PR #39233: DOC: 1.2.1 release date | https://api.github.com/repos/pandas-dev/pandas/pulls/39237 | 2021-01-17T19:10:46Z | 2021-01-17T20:50:36Z | 2021-01-17T20:50:36Z | 2021-01-17T20:50:36Z |
REF: roll IntBlock, BoolBlock, ComplexBlock into NumericBlock | diff --git a/pandas/core/internals/__init__.py b/pandas/core/internals/__init__.py
index e71143224556b..ff4e186e147d7 100644
--- a/pandas/core/internals/__init__.py
+++ b/pandas/core/internals/__init__.py
@@ -2,14 +2,12 @@
from pandas.core.internals.base import DataManager
from pandas.core.internals.blocks import ( ... | https://api.github.com/repos/pandas-dev/pandas/pulls/39236 | 2021-01-17T19:05:02Z | 2021-01-19T18:10:37Z | 2021-01-19T18:10:37Z | 2021-01-19T18:15:29Z | |
Revert "Inconsistent indexes for tick label plotting (#28733)" | diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst
index 8e9361125513b..95757448a7978 100644
--- a/doc/source/whatsnew/v1.2.0.rst
+++ b/doc/source/whatsnew/v1.2.0.rst
@@ -751,7 +751,7 @@ Plotting
- Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-... | This reverts commit fb379d8266492f917ed880f7619f3d0d9bc7c8db.
reverts #28733
cc @nrebena @jreback @WillAyd @charlesdong1991
just the complete revert for now for ci testing, will add commits for release notes. will NOT add regression tests see https://github.com/pandas-dev/pandas/issues/38721#issuecomment-76184... | https://api.github.com/repos/pandas-dev/pandas/pulls/39235 | 2021-01-17T18:42:05Z | 2021-01-18T15:19:20Z | 2021-01-18T15:19:20Z | 2021-01-18T15:36:57Z |
DOC: Start v1.2.2 release notes | diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst
index e07abffd95545..e71b600412b03 100644
--- a/doc/source/whatsnew/index.rst
+++ b/doc/source/whatsnew/index.rst
@@ -24,6 +24,7 @@ Version 1.2
.. toctree::
:maxdepth: 2
+ v1.2.2
v1.2.1
v1.2.0
diff --git a/doc/source/whatsnew/... | https://api.github.com/repos/pandas-dev/pandas/pulls/39234 | 2021-01-17T17:44:59Z | 2021-01-20T13:23:48Z | 2021-01-20T13:23:48Z | 2021-01-20T13:23:52Z | |
DOC: 1.2.1 release date | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index fa5347aa7a507..411eeed1714f1 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -1,6 +1,6 @@
.. _whatsnew_121:
-What's new in 1.2.1 (January ??, 2021)
+What's new in 1.2.1 (January 18, 2021)
---------... | https://api.github.com/repos/pandas-dev/pandas/pulls/39233 | 2021-01-17T17:38:51Z | 2021-01-17T19:08:25Z | 2021-01-17T19:08:25Z | 2021-01-18T09:19:55Z | |
CI: pre-commit fixup | diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py
index 5a6425ef4ec8c..782562f455607 100644
--- a/pandas/io/formats/style.py
+++ b/pandas/io/formats/style.py
@@ -222,7 +222,7 @@ def _init_tooltips(self):
if self.tooltips is None:
self.tooltips = _Tooltips()
- def set_toolti... | https://api.github.com/repos/pandas-dev/pandas/pulls/39232 | 2021-01-17T16:17:35Z | 2021-01-17T17:37:21Z | 2021-01-17T17:37:21Z | 2021-01-17T17:47:55Z | |
Backport PR #39139 on branch 1.2.x (BUG: Placeholders not being filled on docstrings) | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 2f7e78d696d7c..8da3bae190f82 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -10889,8 +10889,10 @@ def all(self, axis=0, bool_only=None, skipna=True, level=None, **kwargs):
# [assignment]
cls.all = all # type: igno... | Backport PR #39139: BUG: Placeholders not being filled on docstrings | https://api.github.com/repos/pandas-dev/pandas/pulls/39231 | 2021-01-17T15:59:53Z | 2021-01-17T17:24:05Z | 2021-01-17T17:24:05Z | 2021-01-17T17:24:05Z |
Backport PR #39064 on branch 1.2.x (Added docs for the change of behavior of isin) | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 1449b78ee91d8..b4e8696ad9e13 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -4622,6 +4622,15 @@ def isin(self, values) -> "Series":
4 True
5 False
Name: animal, dtype: bool
+
+ Strings and intege... | Backport PR #39064: Added docs for the change of behavior of isin | https://api.github.com/repos/pandas-dev/pandas/pulls/39230 | 2021-01-17T15:37:17Z | 2021-01-17T16:35:58Z | 2021-01-17T16:35:58Z | 2021-01-17T16:35:58Z |
BUG: Series.resample fails on NaT index | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index dca31641a4634..ef904c1d7021a 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -354,6 +354,7 @@ Groupby/resample/rolling
- Fixed bug in :meth:`DataFrameGroupBy.cumsum`, :meth:`SeriesGroupBy.cumsum`, :me... | - [x] closes #39227
- [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 will also resolve the core issue of https://github.com/pandas-dev/pandas/pull/34998#d... | https://api.github.com/repos/pandas-dev/pandas/pulls/39229 | 2021-01-17T14:37:26Z | 2021-01-26T00:01:50Z | 2021-01-26T00:01:49Z | 2021-01-26T15:00:28Z |
DOC: Added notes section in dropna method | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ffc84ad94459a..5dfd659c69ea0 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -5155,6 +5155,10 @@ def dropna(
Series.dropna : Drop missing values.
Index.dropna : Drop missing indices.
+ Notes
+ -----
+ ... | In case of specifying both the optional parameters how and thresh then thresh takes the precedence
- [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
![Screens... | https://api.github.com/repos/pandas-dev/pandas/pulls/39228 | 2021-01-17T14:01:10Z | 2021-01-17T14:17:10Z | null | 2021-01-17T14:17:10Z |
ENH: add str.removeprefix | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 799bc88ffff4e..3349fb6864de4 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -59,6 +59,7 @@ Other enhancements
- :meth:`Series.loc.__getitem__` and :meth:`Series.loc.__setitem__` with :class:`MultiInd... | - [x] closes #36944
- [ ] 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/39226 | 2021-01-17T12:52:51Z | 2021-06-08T18:17:29Z | null | 2021-06-08T18:17:29Z |
Revert "CI: Skip numpy dev failing tests (#39090)" | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index ab62abe3bfeff..2ac9b9e2c875c 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -12,7 +12,6 @@
import warnings
from pandas._typing import F
-from pandas.compat.numpy import is_numpy_dev
PY38 = sys.version_info >= (3, ... | This reverts commit 3bd3d1ec
- [x] xref #39205 can close this now probably
- [x] closes #39089
- [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/39225 | 2021-01-17T12:16:27Z | 2021-01-17T14:17:38Z | 2021-01-17T14:17:38Z | 2021-01-17T14:18:41Z |
BUG: Timestamp comparison with barely-out-of-bounds datetime64 | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ff11ebc022ffb..3885d3ab6e794 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -234,6 +234,7 @@ Datetimelike
- Bug in :meth:`DatetimeIndex.intersection`, :meth:`DatetimeIndex.symmetric_difference`, :met... | - [ ] 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/39221 | 2021-01-17T03:35:59Z | 2021-01-21T23:39:41Z | 2021-01-21T23:39:41Z | 2021-01-22T00:08:11Z |
DEPR: EWM.vol | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6a85bfd852e19..5422134f220d7 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -192,6 +192,7 @@ Deprecations
- Deprecated comparison of :class:`Timestamp` object with ``datetime.date`` objects. Instead... | - [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
`vol` is undocumented and was just `std` which is more standard in our API | https://api.github.com/repos/pandas-dev/pandas/pulls/39220 | 2021-01-17T01:50:39Z | 2021-01-19T15:53:55Z | 2021-01-19T15:53:55Z | 2021-01-19T16:16:31Z |
DOC/REF: Rolling/Expanding/EWM docstrings | diff --git a/pandas/core/window/common.py b/pandas/core/window/common.py
index 6ebf610587d30..8e935b7c05300 100644
--- a/pandas/core/window/common.py
+++ b/pandas/core/window/common.py
@@ -8,22 +8,6 @@
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
from pandas.core.indexes.api import MultiIndex
-fro... | - [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
- Create a new `window/doc.py` file for common template
- Using `@doc` decorator instead of `@Appender`
- Standardize descriptions and sections
<img width... | https://api.github.com/repos/pandas-dev/pandas/pulls/39219 | 2021-01-17T01:10:52Z | 2021-02-04T00:04:26Z | 2021-02-04T00:04:26Z | 2021-02-04T00:04:29Z |
REF: implement ensure_iterable_indexer | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ffc84ad94459a..fe8db0a642958 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -3209,6 +3209,7 @@ def _setitem_slice(self, key: slice, value):
def _setitem_array(self, key, value):
# also raises Exception if object array with NA ... | Split off from a bigger branch | https://api.github.com/repos/pandas-dev/pandas/pulls/39218 | 2021-01-17T01:06:09Z | 2021-01-19T02:25:56Z | null | 2021-01-19T02:26:06Z |
REF: Split up parsers into smaller files | diff --git a/pandas/io/json/_json.py b/pandas/io/json/_json.py
index e53c828fe30cb..497cf261fcece 100644
--- a/pandas/io/json/_json.py
+++ b/pandas/io/json/_json.py
@@ -38,7 +38,7 @@
)
from pandas.io.json._normalize import convert_to_line_delimits
from pandas.io.json._table_schema import build_table_schema, parse_ta... | - [x] closes #38930
- [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
Refactored them into 4 files, similar to described in the issue. If this is accepted I will try to clean this up a bit more through unifyi... | https://api.github.com/repos/pandas-dev/pandas/pulls/39217 | 2021-01-17T00:38:48Z | 2021-01-21T23:48:43Z | 2021-01-21T23:48:43Z | 2021-01-22T18:44:52Z |
API/BUG: treat different UTC tzinfos as equal | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index 6a85bfd852e19..bd20144268436 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -240,7 +240,7 @@ Timedelta
Timezones
^^^^^^^^^
-
+- Bug in different ``tzinfo`` objects representing UTC not being treat... | - [x] closes #23959
- [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/39216 | 2021-01-16T23:09:44Z | 2021-01-19T22:43:13Z | 2021-01-19T22:43:13Z | 2021-01-19T23:31:14Z |
TST GH26807 Break up test_strings | diff --git a/pandas/tests/strings/__init__.py b/pandas/tests/strings/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/strings/conftest.py b/pandas/tests/strings/conftest.py
new file mode 100644
index 0000000000000..4fedbee91f649
--- /dev/null
+++ b/pandas/tests/strings/conft... | This PR partially addresses xref #26807 in the case of pandas/tests/test_strings.py. It deletes that file and makes a new subpackage pandas/tests/strings/ with 8 new test modules plus a conftest file.
I have only moved tests and flattened the structure by moving the tests from being methods to functions - I haven'... | https://api.github.com/repos/pandas-dev/pandas/pulls/39215 | 2021-01-16T22:42:10Z | 2021-01-19T20:44:08Z | 2021-01-19T20:44:07Z | 2021-01-19T20:44:11Z |
CLN: use getvalue() instead of seek(0)+read() | diff --git a/pandas/io/stata.py b/pandas/io/stata.py
index c9cd94b7cc711..d60a7537dd850 100644
--- a/pandas/io/stata.py
+++ b/pandas/io/stata.py
@@ -714,8 +714,7 @@ def generate_value_label(self, byteorder: str) -> bytes:
for text in self.txt:
bio.write(text + null_byte)
- bio.seek(0)
- ... | `BytesIO`'s `getvalue()` is the same as `seek(0)` followed by `read()` if the buffer is not used in any other place (`getvalue` doesn't change the position within the buffer). getvalue is slightly faster then seek+read. | https://api.github.com/repos/pandas-dev/pandas/pulls/39213 | 2021-01-16T21:04:45Z | 2021-01-19T20:20:38Z | 2021-01-19T20:20:38Z | 2021-01-19T21:19:24Z |
BUG: DataFrame.apply axis=1 for str ops with no axis argument | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index ab00b749d5725..c601c6f496682 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -346,6 +346,7 @@ Reshaping
- Bug in :func:`join` over :class:`MultiIndex` returned wrong result, when one of both indexes h... | - [x] closes #39211
- [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/39212 | 2021-01-16T20:31:42Z | 2021-01-19T20:29:25Z | 2021-01-19T20:29:25Z | 2021-01-21T02:11:51Z |
TYP: misc annotations | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index f3bf45f681b1f..5371b2464b4a6 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -597,14 +597,14 @@ cdef bint _validate_ops_compat(other):
return False
-def _op_unary_method(func, ... | - [ ] 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/39210 | 2021-01-16T19:21:00Z | 2021-01-16T21:28:55Z | null | 2021-01-16T21:29:03Z |
Backport PR #39204: BUG: assert_frame_equal raising TypeError with check_like and mixed dtype in Index or columns | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 448260148c83d..fa5347aa7a507 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -29,6 +29,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrameGroupBy.diff` raising for ``int8`` and ``int16`` col... |
Backport PR #39204 | https://api.github.com/repos/pandas-dev/pandas/pulls/39208 | 2021-01-16T14:47:42Z | 2021-01-16T15:43:09Z | 2021-01-16T15:43:09Z | 2021-01-16T15:48:54Z |
DOC: add new page 'how to read these doc' in get started section | diff --git a/doc/source/getting_started/how_to_read_these_docs.rst b/doc/source/getting_started/how_to_read_these_docs.rst
new file mode 100644
index 0000000000000..912dd488ca686
--- /dev/null
+++ b/doc/source/getting_started/how_to_read_these_docs.rst
@@ -0,0 +1,40 @@
+.. _howtoread:
+
+{{ header }}
+
+***************... | This page explains the code block are run in notebook
- [x] closes #39130
- [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/39207 | 2021-01-16T13:29:07Z | 2021-04-11T01:19:05Z | null | 2022-02-22T20:19:55Z |
Backport PR #39194: REGR: fillna on datetime64[ns, UTC] column hits RecursionError | diff --git a/doc/source/whatsnew/v1.2.1.rst b/doc/source/whatsnew/v1.2.1.rst
index 918e85ffa4af1..448260148c83d 100644
--- a/doc/source/whatsnew/v1.2.1.rst
+++ b/doc/source/whatsnew/v1.2.1.rst
@@ -27,6 +27,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.apply` with ``axis=1`` using str accessor in apply ... | Backport PR #39194 | https://api.github.com/repos/pandas-dev/pandas/pulls/39206 | 2021-01-16T11:50:02Z | 2021-01-16T12:55:08Z | 2021-01-16T12:55:08Z | 2021-01-16T12:55:13Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.