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 |
|---|---|---|---|---|---|---|---|
PERF: faster corrwith method for pearson and spearman correlation when other is a Series and axis = 0 (column-wise) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 851cf201cae6a..6265c36205bbc 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -288,6 +288,7 @@ Other Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
+- Performance improvement in :met... | ## Description of Changes
This PR modifies the `corrwith()` method defined in pandas/core/frame.py to be faster when all of the following (common) conditions are met.
- the `axis` argument is set to 0
- the `other` argument is a Pandas Series object
- the `method` argument is equal to "pearson" OR "spearman"
... | https://api.github.com/repos/pandas-dev/pandas/pulls/46174 | 2022-02-28T00:33:26Z | 2022-03-03T19:36:07Z | 2022-03-03T19:36:07Z | 2022-03-03T19:36:11Z |
REF: implement _reconstruct_ea_result, _ea_to_cython_values | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index e9d6b6813c6fd..79457bcd6506f 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1350,6 +1350,10 @@ cdef group_min_max(iu_64_floating_t[:, ::1] out,
else:
if uses_mask:
... | The idea being to eventually refactor those into EA/EADtype methods, xref #43682
| https://api.github.com/repos/pandas-dev/pandas/pulls/46172 | 2022-02-27T22:35:48Z | 2022-02-28T21:44:26Z | 2022-02-28T21:44:26Z | 2022-02-28T22:17:13Z |
TYP: remove NaTType as possible result of Timestamp and Timedelta constructor | diff --git a/pandas/_libs/tslibs/nattype.pyi b/pandas/_libs/tslibs/nattype.pyi
index 8b409935b8fb8..efadd8f0220b3 100644
--- a/pandas/_libs/tslibs/nattype.pyi
+++ b/pandas/_libs/tslibs/nattype.pyi
@@ -3,7 +3,10 @@ from datetime import (
timedelta,
tzinfo as _tzinfo,
)
-from typing import Any
+from typing imp... | While working on the Microsoft type stubs, I discovered this. With the current code, if you run `pyright` on the following with default settings for basic type checking (not using what we have in `pyproject.toml`):
```python
import pandas as pd
print("version ", pd.__version__)
ts:pd.Timestamp = pd.Timestamp("202... | https://api.github.com/repos/pandas-dev/pandas/pulls/46171 | 2022-02-27T21:00:33Z | 2022-03-08T00:23:09Z | 2022-03-08T00:23:09Z | 2023-02-13T20:56:57Z |
DOC: Remove computation.rst in favor of better docstrings | diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst
deleted file mode 100644
index 6007129e96ba0..0000000000000
--- a/doc/source/user_guide/computation.rst
+++ /dev/null
@@ -1,212 +0,0 @@
-.. _computation:
-
-{{ header }}
-
-Computational tools
-===================
-
-
-Statistica... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
This page seemed unmaintained and stale relative to the 4 functions this page goes over.
Instead of trying to maintain documentation of these functions in 2 places, just improves the docstr... | https://api.github.com/repos/pandas-dev/pandas/pulls/46170 | 2022-02-27T18:42:52Z | 2022-02-28T22:27:00Z | 2022-02-28T22:27:00Z | 2022-02-28T22:27:04Z |
Backport PR #46055 on branch 1.4.x (DOC: Add "build C extensions" note) | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index 5f36a2a609c9f..e2c1463b7dfba 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -26,14 +26,28 @@ with a full pandas deve... | Backport PR #46055: DOC: Add "build C extensions" note | https://api.github.com/repos/pandas-dev/pandas/pulls/46168 | 2022-02-27T15:58:25Z | 2022-02-27T18:10:20Z | 2022-02-27T18:10:20Z | 2022-02-27T18:10:20Z |
Bug fix - rename dataframe reset index | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 8c02785647861..6cbee83247692 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -46,7 +46,7 @@ Other enhancements
- Improved error message in :class:`~pandas.core.window.Rolling` when ``window`` is a fre... | - [x] closes #6878
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46167 | 2022-02-27T13:06:18Z | 2022-03-29T23:09:54Z | 2022-03-29T23:09:54Z | 2022-03-30T00:28:35Z |
Enable server side cursors | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7e470a51858ce..d340e82776274 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -259,7 +259,7 @@ Performance improvements
- Performance improvement in :func:`merge` when left and/or right are empty (:iss... | The old PR went stale and I ended up busy for a year so had to re-open in a new branch. Hoping to finally push this through
This pull request attempts to fix #35689. I read an article by @itamarst and decided to look further into the codebase. After noticing that the fix semed to be simple I decided file a PR. The ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46166 | 2022-02-27T06:48:36Z | 2022-04-24T02:56:52Z | null | 2023-08-03T17:11:08Z |
Manual Backport PR #46143 on branch 1.4.x (CI: Merge datamanager job into posix) | diff --git a/.github/workflows/datamanger.yml b/.github/workflows/datamanger.yml
deleted file mode 100644
index 63b7a88aa12c4..0000000000000
--- a/.github/workflows/datamanger.yml
+++ /dev/null
@@ -1,52 +0,0 @@
-name: Data Manager
-
-on:
- push:
- branches:
- - main
- - 1.4.x
- pull_request:
- branche... | Backport PR #46143 | https://api.github.com/repos/pandas-dev/pandas/pulls/46165 | 2022-02-27T03:23:25Z | 2022-02-27T20:05:54Z | 2022-02-27T20:05:54Z | 2022-03-02T10:58:59Z |
PERF: support mask in libgroupby.group_nth | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index 8eccd0eec8a1c..8048f40ecf330 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -111,6 +111,8 @@ def group_nth(
counts: np.ndarray, # int64_t[::1]
values: np.ndarray, # ndarray[rank_t, ndim=2]
labels: np.ndarray... | Confirmed that we do have tests for the affected cases.
xref #37493 | https://api.github.com/repos/pandas-dev/pandas/pulls/46163 | 2022-02-26T22:33:08Z | 2022-02-27T15:24:34Z | 2022-02-27T15:24:34Z | 2022-02-27T16:59:52Z |
Bug fix - GroupBy.describe produces inconsistent results for empty datasets | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 581473d3c4798..3fbe854a3afad 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -786,6 +786,8 @@ Groupby/resample/rolling
- Bug in :meth:`.Rolling.var` would segfault calculating weighted variance when w... | - [x] closes #41575
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46162 | 2022-02-26T15:55:58Z | 2022-05-21T19:58:36Z | 2022-05-21T19:58:35Z | 2022-05-31T16:12:44Z |
Update test_fillna.py | diff --git a/pandas/tests/series/methods/test_fillna.py b/pandas/tests/series/methods/test_fillna.py
index 71a1b01eb9157..a30fb13dbb966 100644
--- a/pandas/tests/series/methods/test_fillna.py
+++ b/pandas/tests/series/methods/test_fillna.py
@@ -851,6 +851,24 @@ def test_fillna_pos_args_deprecation(self):
expec... | - [x] closes #32414
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46161 | 2022-02-26T05:48:05Z | 2022-02-27T18:37:59Z | 2022-02-27T18:37:59Z | 2022-02-27T18:38:20Z |
Backport PR #46124 on branch 1.4.x (DOC: Improve options.rst) | diff --git a/doc/source/_static/option_unicode01.png b/doc/source/_static/option_unicode01.png
deleted file mode 100644
index d7168de126c5b..0000000000000
Binary files a/doc/source/_static/option_unicode01.png and /dev/null differ
diff --git a/doc/source/_static/option_unicode02.png b/doc/source/_static/option_unicode0... | Backport PR #46124: DOC: Improve options.rst | https://api.github.com/repos/pandas-dev/pandas/pulls/46160 | 2022-02-26T01:10:48Z | 2022-02-26T18:31:06Z | 2022-02-26T18:31:05Z | 2022-02-26T18:31:06Z |
Backport PR #45902 on branch 1.4.x (Use Mamba in Azure CI) | diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml
index 6d33cd7e5f5d9..b599cfa40e89d 100644
--- a/ci/azure/posix.yml
+++ b/ci/azure/posix.yml
@@ -25,15 +25,20 @@ jobs:
- script: echo '##vso[task.prependpath]$(HOME)/miniconda3/bin'
displayName: 'Set conda path'
+ - script: rm /usr/local/miniconda/pkg... | Backport PR #45902: Use Mamba in Azure CI | https://api.github.com/repos/pandas-dev/pandas/pulls/46159 | 2022-02-26T00:56:22Z | 2022-02-26T18:31:31Z | 2022-02-26T18:31:31Z | 2022-02-26T18:31:31Z |
Backport PR #46118 on branch 1.4.x (CI: Align MacOS dependencies with other builds) | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 2a911fd5b5a0c..a37ea3eb89167 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -22,7 +22,6 @@ variables:
PANDAS_CI: 1
jobs:
-# Mac and Linux use the same template
- template: ci/azure/posix.yml
parameters:
name: macOS
diff --git a/c... | Backport PR #46118: CI: Align MacOS dependencies with other builds | https://api.github.com/repos/pandas-dev/pandas/pulls/46158 | 2022-02-26T00:51:56Z | 2022-02-26T18:31:45Z | 2022-02-26T18:31:45Z | 2022-02-26T18:31:45Z |
Backport PR #46057 on branch 1.4.x (bug: styler latex longtable column count) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 68999b9bba50f..05bc7ff8c96d2 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed "longtable" formatting in :meth:`.Styler.to_latex` when... | Backport PR #46057: bug: styler latex longtable column count | https://api.github.com/repos/pandas-dev/pandas/pulls/46157 | 2022-02-26T00:51:24Z | 2022-02-26T02:39:09Z | 2022-02-26T02:39:09Z | 2022-03-04T13:16:04Z |
BUG: MultiIndex slicing with negative step | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index dfa87e3cd4574..2e0c942806f72 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -408,6 +408,9 @@ Missing
MultiIndex
^^^^^^^^^^
+- Bug in :meth:`DataFrame.loc` returning empty result when slicing a :cl... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46156 | 2022-02-25T22:06:34Z | 2022-03-11T23:57:11Z | 2022-03-11T23:57:11Z | 2022-03-20T23:18:56Z |
Adding tests for IntervalArray.unique() for DateTimeArrays with time zones | diff --git a/pandas/tests/series/methods/test_unique.py b/pandas/tests/series/methods/test_unique.py
index 856fe6e7c4f04..58a640837b10b 100644
--- a/pandas/tests/series/methods/test_unique.py
+++ b/pandas/tests/series/methods/test_unique.py
@@ -2,7 +2,9 @@
from pandas import (
Categorical,
+ IntervalIndex,
... | Ref suggestion here; https://github.com/pandas-dev/pandas/pull/46128/#issuecomment-1051138512
| https://api.github.com/repos/pandas-dev/pandas/pulls/46153 | 2022-02-25T20:25:29Z | 2022-02-26T20:49:06Z | 2022-02-26T20:49:06Z | 2023-02-13T20:56:22Z |
CLN/TYP: remove unused | diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi
index df8ac3f3b0696..2447d456b7478 100644
--- a/pandas/_libs/algos.pyi
+++ b/pandas/_libs/algos.pyi
@@ -61,52 +61,39 @@ def nancorr_spearman(
# ----------------------------------------------------------------------
-# ctypedef fused algos_t:
-# float6... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46151 | 2022-02-25T18:22:38Z | 2022-02-26T00:50:06Z | 2022-02-26T00:50:06Z | 2022-02-26T00:53:22Z |
CI/TST: Fix xfail(strict=False) condition | diff --git a/pandas/tests/indexes/test_setops.py b/pandas/tests/indexes/test_setops.py
index 8502c43feeab5..f38a6c89e1bcb 100644
--- a/pandas/tests/indexes/test_setops.py
+++ b/pandas/tests/indexes/test_setops.py
@@ -50,16 +50,20 @@ def test_union_different_types(index_flat, index_flat2, request):
if (
no... | - xref #46144
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
cc @jbroc... | https://api.github.com/repos/pandas-dev/pandas/pulls/46150 | 2022-02-25T18:06:00Z | 2022-02-25T21:38:28Z | 2022-02-25T21:38:27Z | 2022-02-25T21:38:30Z |
CI: Merge datamanager job into posix | diff --git a/.github/workflows/datamanger.yml b/.github/workflows/datamanger.yml
deleted file mode 100644
index d355bdec82443..0000000000000
--- a/.github/workflows/datamanger.yml
+++ /dev/null
@@ -1,54 +0,0 @@
-name: Data Manager
-
-on:
- push:
- branches:
- - main
- - 1.4.x
- pull_request:
- branche... | - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
Avoids an essentially duplicate config
| https://api.github.com/repos/pandas-dev/pandas/pulls/46143 | 2022-02-25T03:59:03Z | 2022-02-26T00:52:23Z | 2022-02-26T00:52:23Z | 2022-03-02T12:07:29Z |
REF: combine masked_cummin_max, cummin_max | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index c0d1405e92518..445352730bb3d 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -1418,6 +1418,13 @@ cdef group_cummin_max(iu_64_floating_t[:, ::1] out,
"""
cdef:
iu_64_floating_t[:, ::1] accum
+ Py_ssiz... | more closely match pattern we use for other mask-supporting functions in this file | https://api.github.com/repos/pandas-dev/pandas/pulls/46142 | 2022-02-24T23:25:42Z | 2022-02-27T20:07:14Z | 2022-02-27T20:07:14Z | 2022-02-27T20:36:29Z |
ENH: Implement DataFrame interchange protocol | diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst
index 9a1ebc8d670dc..ea27d1efbb235 100644
--- a/doc/source/reference/frame.rst
+++ b/doc/source/reference/frame.rst
@@ -391,3 +391,4 @@ Serialization / IO / conversion
DataFrame.to_clipboard
DataFrame.to_markdown
DataFrame.style
+ ... | Do note that this PR is currently work-in-progress, mostly to facilitate the discussion on how the implementation should be going.
It also vendors the [exchange spec](https://github.com/data-apis/dataframe-api/pull/74) and [exchange tests](https://github.com/data-apis/dataframe-api/pull/75), which aren't yet merged ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46141 | 2022-02-24T18:01:38Z | 2022-04-27T12:48:13Z | 2022-04-27T12:48:13Z | 2022-04-27T12:48:14Z |
Bug fix - extension array with 2d datetime64 | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index ea938c924ae0c..2cf4930ebc801 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -1621,18 +1621,23 @@ def __init__(
def _format_strings(self) -> list[str]:
"""we by definition have DO NOT have a TZ"""
... | - [x] closes #38390
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46140 | 2022-02-24T13:57:11Z | 2022-04-09T18:09:58Z | null | 2022-04-09T18:09:58Z |
Inconsistent handling of duplicate axes + mixed dtypes in DataFrame.where #25399 | diff --git a/pandas/tests/frame/indexing/test_where.py b/pandas/tests/frame/indexing/test_where.py
index ca050a7d7db4a..51013adc0b907 100644
--- a/pandas/tests/frame/indexing/test_where.py
+++ b/pandas/tests/frame/indexing/test_where.py
@@ -12,6 +12,7 @@
from pandas import (
DataFrame,
DatetimeIndex,
+ In... | - [x] closes #25399
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46139 | 2022-02-24T12:59:36Z | 2022-02-26T00:57:56Z | 2022-02-26T00:57:55Z | 2022-02-26T00:57:59Z |
CLN: Remove Categorical.itemsize | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 1e147e6e14b61..bea99a741fd6f 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -43,7 +43,6 @@
)
from pandas.compat.numpy import function as nv
from pandas.util._decorators import (
- ca... | The method doesn't even work in main, it is useless and removal keeps the same error code as before, so I think it's OK to just remove and not do a deprecation cycle here:
```python
>>> cat = pd.Categorical([9, 6])
>>> cat.itemsize
AttributeError: 'Int64Index' object has no attribute 'itemsize' # main
Attribute... | https://api.github.com/repos/pandas-dev/pandas/pulls/46137 | 2022-02-23T23:59:54Z | 2022-02-27T17:57:48Z | 2022-02-27T17:57:48Z | 2022-02-27T18:23:24Z |
TST: misplaced array tests | diff --git a/pandas/tests/arrays/numpy_/__init__.py b/pandas/tests/arrays/numpy_/__init__.py
new file mode 100644
index 0000000000000..e69de29bb2d1d
diff --git a/pandas/tests/arrays/numpy_/test_indexing.py b/pandas/tests/arrays/numpy_/test_indexing.py
new file mode 100644
index 0000000000000..f92411efe774c
--- /dev/nul... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46136 | 2022-02-23T23:46:27Z | 2022-02-24T03:07:28Z | 2022-02-24T03:07:28Z | 2022-02-24T03:57:38Z |
DEPR: non-keyword args in EA.argsort | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 199a52f9d770f..ade1fbcba0c26 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -243,7 +243,8 @@ Other Deprecations
- Deprecated treating float-dtype data as wall-times when passed with a timezone to :cl... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46134 | 2022-02-23T22:17:26Z | 2022-02-26T19:04:47Z | 2022-02-26T19:04:47Z | 2022-02-26T20:17:07Z |
TYP: groupby, sorting | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index e71e56574d766..3bffe59905a69 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -459,7 +459,7 @@ class Grouping:
* groups : dict of {group -> label_list}
"""
- _codes: np.ndarray | None =... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46133 | 2022-02-23T22:08:31Z | 2022-02-27T20:07:39Z | 2022-02-27T20:07:39Z | 2022-02-27T20:35:04Z |
REF: remove no-longer-needed _validate_numeric_casting | diff --git a/pandas/core/array_algos/putmask.py b/pandas/core/array_algos/putmask.py
index d0779b48ae094..d2e6b6e935ed5 100644
--- a/pandas/core/array_algos/putmask.py
+++ b/pandas/core/array_algos/putmask.py
@@ -14,10 +14,7 @@
)
from pandas.compat import np_version_under1p20
-from pandas.core.dtypes.cast import (
... | Most of its usages have been replaced with can_hold_element. | https://api.github.com/repos/pandas-dev/pandas/pulls/46131 | 2022-02-23T20:20:22Z | 2022-02-26T19:06:01Z | 2022-02-26T19:06:01Z | 2022-02-26T20:17:31Z |
DOC: Fixed issue 46125 | diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst
index e41f938170417..a94681924d211 100644
--- a/doc/source/user_guide/indexing.rst
+++ b/doc/source/user_guide/indexing.rst
@@ -89,7 +89,7 @@ Getting values from an object with multi-axes selection uses the following
notation (using `... | https://github.com/pandas-dev/pandas/issues/46125
- [x] closes 46125 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](http... | https://api.github.com/repos/pandas-dev/pandas/pulls/46130 | 2022-02-23T16:47:53Z | 2022-02-23T18:03:26Z | 2022-02-23T18:03:26Z | 2022-02-23T19:16:14Z |
Remove some dead code in core/arrays/interval.py | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index d23910c37b52b..d809ad90ad1b5 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -1664,12 +1664,8 @@ def _from_combined(self, combined: np.ndarray) -> IntervalArray:
nc = combined.view("i8").resha... | The typing work both @twoertwein and I did in #46080 and #44922 found some code that I conjecture is dead code as it doesn't make sense from a typing perspective.
So this PR removes the dead code, which will then allow either of those PR's to get rid of some `#type : ignore` lines.
Not clear to me how to add test... | https://api.github.com/repos/pandas-dev/pandas/pulls/46128 | 2022-02-23T12:28:48Z | 2022-02-25T18:27:41Z | null | 2022-02-25T19:36:32Z |
DOC: Improve options.rst | diff --git a/doc/source/_static/option_unicode01.png b/doc/source/_static/option_unicode01.png
deleted file mode 100644
index d7168de126c5b..0000000000000
Binary files a/doc/source/_static/option_unicode01.png and /dev/null differ
diff --git a/doc/source/_static/option_unicode02.png b/doc/source/_static/option_unicode0... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
* Removed some images that now render in ipython in sphinx
* Referenced user guide section in option function docstrings
* Added more sphinx links to pandas functions and objects
* Clarifie... | https://api.github.com/repos/pandas-dev/pandas/pulls/46124 | 2022-02-23T05:53:53Z | 2022-02-26T01:10:40Z | 2022-02-26T01:10:40Z | 2022-02-26T03:29:37Z |
TYP: assorted | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8c10b62d83f9e..f6bda51298622 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -534,7 +534,7 @@ def factorize_array(
na_sentinel: int = -1,
size_hint: int | None = None,
na_value=None,
- mask: np.ndarray |... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46121 | 2022-02-22T21:47:38Z | 2022-02-26T19:28:19Z | 2022-02-26T19:28:19Z | 2022-02-26T20:16:30Z |
DOC: added "How to read these guides" section to User Guide page (#39130) | diff --git a/doc/source/user_guide/index.rst b/doc/source/user_guide/index.rst
index 6b6e212cde635..59c9a9afb7f95 100644
--- a/doc/source/user_guide/index.rst
+++ b/doc/source/user_guide/index.rst
@@ -17,6 +17,43 @@ For a high level summary of the pandas fundamentals, see :ref:`dsintro` and :ref
Further information on... | Based on changes by rhuille <raphael.huille@gmail.com> (#39207)
- [ ] closes #39130
- [x] ~[Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature~
- [x] ~All [code checks passed](https://pandas.pydata.org/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/46120 | 2022-02-22T20:54:41Z | 2022-02-23T23:21:47Z | 2022-02-23T23:21:47Z | 2022-02-23T23:21:56Z |
REF: isinstance(x, int) -> is_integer(x) | diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py
index 2e90074a6bbd3..8a0b7f21ce023 100644
--- a/pandas/io/formats/style_render.py
+++ b/pandas/io/formats/style_render.py
@@ -25,6 +25,11 @@
from pandas._typing import Level
from pandas.compat._optional import import_optional_dependenc... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/46119 | 2022-02-22T20:21:40Z | 2022-02-26T01:09:49Z | 2022-02-26T01:09:49Z | 2022-03-25T11:40:33Z |
CI: Align MacOS dependencies with other builds | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 747be0654ac70..dc0714871503c 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -22,7 +22,6 @@ variables:
PANDAS_CI: 1
jobs:
-# Mac and Linux use the same template
- template: ci/azure/posix.yml
parameters:
name: macOS
diff --git a/c... | - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
xref https://github.com/pandas-dev/pandas/issues/29685
MacOS/Windows/Linux will use the same dependency file after this change
| https://api.github.com/repos/pandas-dev/pandas/pulls/46118 | 2022-02-22T19:17:36Z | 2022-02-26T00:51:48Z | 2022-02-26T00:51:48Z | 2022-02-26T03:28:50Z |
[WIP] perf improvements for strftime | diff --git a/pandas/_libs/tslib.pyi b/pandas/_libs/tslib.pyi
index 4b02235ac9925..97d6311c62d5b 100644
--- a/pandas/_libs/tslib.pyi
+++ b/pandas/_libs/tslib.pyi
@@ -9,6 +9,7 @@ def format_array_from_datetime(
tz: tzinfo | None = ...,
format: str | None = ...,
na_rep: object = ...,
+ fast_strftime: boo... | Changelog
- Added the default format "%Y-%m-%d %H:%M:%S" as basic format (same as format=None), as suggested by @auderson.
- [ ] closes #44764 , closes #46252, closes #46319
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a... | https://api.github.com/repos/pandas-dev/pandas/pulls/46116 | 2022-02-22T17:12:49Z | 2022-12-06T17:54:43Z | null | 2022-12-12T13:56:51Z |
DOC: Add note for tail/head when n is larger then length of DataFrame | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 9f9dffaaa399f..1101938ace109 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5162,6 +5162,9 @@ def head(self: NDFrameT, n: int = 5) -> NDFrameT:
For negative values of `n`, this function returns all rows except
the... | - [ ] closes #46079
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46114 | 2022-02-22T14:10:00Z | 2022-03-30T01:00:32Z | null | 2022-03-30T01:00:32Z |
Update generic.py | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 9f9dffaaa399f..a18494bb38853 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -5161,11 +5161,13 @@ def head(self: NDFrameT, n: int = 5) -> NDFrameT:
For negative values of `n`, this function returns all rows except
... | Added documentation on head and tail methods. Parameter n can be larger than the object size.
- [x] closes #46073
| https://api.github.com/repos/pandas-dev/pandas/pulls/46113 | 2022-02-22T13:55:36Z | 2022-02-22T14:01:33Z | null | 2022-02-22T14:01:33Z |
BUG: PandasArray._quantile when empty | diff --git a/pandas/core/array_algos/quantile.py b/pandas/core/array_algos/quantile.py
index 64cd43a3e77cb..6bfc2b63448ae 100644
--- a/pandas/core/array_algos/quantile.py
+++ b/pandas/core/array_algos/quantile.py
@@ -2,7 +2,6 @@
import numpy as np
-from pandas._libs import lib
from pandas._typing import (
Ar... | Not user-facing, but still good to have fixed.
Gets rid of our last non-idiomatic usage of _from_factorized, xref #33276 | https://api.github.com/repos/pandas-dev/pandas/pulls/46110 | 2022-02-22T04:28:26Z | 2022-02-26T00:59:34Z | 2022-02-26T00:59:33Z | 2022-02-26T02:01:12Z |
PERF: avoid unnecessary copies factorize | diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py
index 8c10b62d83f9e..b5abc5bed88bd 100644
--- a/pandas/core/algorithms.py
+++ b/pandas/core/algorithms.py
@@ -294,25 +294,6 @@ def _get_hashtable_algo(values: np.ndarray):
return htable, values
-def _get_values_for_rank(values: ArrayLike) -> np... | Reached via yak-shaving on #33276.
The core.algorithms change should only affect non-64bit cases. The Categorical change could help across the board.
```
import numpy as np
import pandas as pd
arr = np.arange(10**5, dtype="uint32")
%timeit pd.factorize(arr)
2.27 ms ± 67.8 µs per loop (mean ± std. dev. o... | https://api.github.com/repos/pandas-dev/pandas/pulls/46109 | 2022-02-22T04:12:29Z | 2022-02-26T19:38:05Z | 2022-02-26T19:38:05Z | 2022-02-26T20:19:46Z |
TST: Parameterize tests | diff --git a/pandas/tests/frame/methods/test_replace.py b/pandas/tests/frame/methods/test_replace.py
index f92c779c85f03..6b53ef400e53d 100644
--- a/pandas/tests/frame/methods/test_replace.py
+++ b/pandas/tests/frame/methods/test_replace.py
@@ -891,6 +891,7 @@ def test_replace_input_formats_scalar(self):
tm.as... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/46108 | 2022-02-22T00:04:28Z | 2022-02-22T16:06:50Z | 2022-02-22T16:06:50Z | 2022-02-22T17:39:07Z |
PERF: support mask in group_last | diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx
index c0d1405e92518..db890763a9d4f 100644
--- a/pandas/_libs/groupby.pyx
+++ b/pandas/_libs/groupby.pyx
@@ -960,6 +960,8 @@ def group_last(iu_64_floating_obj_t[:, ::1] out,
int64_t[::1] counts,
ndarray[iu_64_floating_obj_t,... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46107 | 2022-02-21T21:35:50Z | 2022-02-26T19:38:36Z | 2022-02-26T19:38:35Z | 2022-02-26T21:52:01Z |
REF/TST: misplaced hashtable tests, rename HashTable.map map_keys_to_values | diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi
index f4b90648a8dc8..481ff0d36c460 100644
--- a/pandas/_libs/hashtable.pyi
+++ b/pandas/_libs/hashtable.pyi
@@ -120,12 +120,6 @@ class HashTable:
# TODO: `item` type is subclass-specific
def get_item(self, item): ... # TODO: return type?
... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46106 | 2022-02-21T21:29:07Z | 2022-02-26T19:42:39Z | 2022-02-26T19:42:39Z | 2022-02-27T20:31:01Z |
ENH: allow concat of Styler objects | diff --git a/doc/source/_static/style/footer_extended.png b/doc/source/_static/style/footer_extended.png
new file mode 100644
index 0000000000000..3699d61ad4346
Binary files /dev/null and b/doc/source/_static/style/footer_extended.png differ
diff --git a/doc/source/_static/style/footer_simple.png b/doc/source/_static/s... | - [x] closes #43875
- [x] closes #43894


- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/46104 | 2022-02-21T20:35:38Z | 2022-02-27T20:01:15Z | 2022-02-27T20:01:14Z | 2022-02-27T20:50:00Z |
DOC: Remove old note about default unit | diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py
index 33ed64c7ae364..cdb2ea37d948c 100644
--- a/pandas/core/tools/datetimes.py
+++ b/pandas/core/tools/datetimes.py
@@ -765,8 +765,8 @@ def to_datetime(
unit : str, default 'ns'
The unit of the arg (D,s,ms,us,ns) denote the unit,... | `to_datetime` docstring indicates that the default unit is 'ms', but it is 'ns'. This PR simply removes that comment so that there is no need to keep it in sync with the implementation.
- [ ] ~closes #xxxx (Replace xxxx with the Github issue number)~ NA
- [ ] ~[Tests added and passed](https://pandas.pydata.org/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/46103 | 2022-02-21T20:00:38Z | 2022-02-26T01:02:44Z | 2022-02-26T01:02:44Z | 2022-02-26T01:02:47Z |
REF: implement ArrowExtensionArray base class | diff --git a/pandas/core/arrays/_arrow_utils.py b/pandas/core/arrays/_arrow_utils.py
index 6214693f22975..3c0614a9f69d6 100644
--- a/pandas/core/arrays/_arrow_utils.py
+++ b/pandas/core/arrays/_arrow_utils.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import json
import numpy as np
diff --git a/pandas/co... | xref #46008 | https://api.github.com/repos/pandas-dev/pandas/pulls/46102 | 2022-02-21T19:22:46Z | 2022-02-26T21:55:21Z | 2022-02-26T21:55:21Z | 2022-07-14T16:26:47Z |
Add missing __finalize__ calls in indexers/iterators | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e4879a6c41515..23d88b2626ad7 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -542,6 +542,7 @@ Indexing
- Bug in :meth:`CategoricalIndex.get_indexer` when index contains ``NaN`` values, resulting in el... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46101 | 2022-02-21T18:47:50Z | 2022-04-26T22:10:05Z | 2022-04-26T22:10:05Z | 2022-04-26T22:10:15Z |
Typeinterval part2 | diff --git a/pandas/_libs/interval.pyi b/pandas/_libs/interval.pyi
new file mode 100644
index 0000000000000..67cb604083c6b
--- /dev/null
+++ b/pandas/_libs/interval.pyi
@@ -0,0 +1,174 @@
+from __future__ import annotations
+
+from typing import (
+ Any,
+ Generic,
+ TypeVar,
+ Union,
+ overload,
+)
+
+im... | Is on top of https://github.com/pandas-dev/pandas/pull/46080
I believe the typing for `Interval` here is correct as it passes the tests created here:
https://github.com/microsoft/python-type-stubs/pull/167/
Leaving this as draft status as it requires #46080 to be approved.
Or a decision to go with #44922, in ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46098 | 2022-02-21T17:39:36Z | 2022-02-27T20:08:14Z | 2022-02-27T20:08:13Z | 2023-02-13T20:56:24Z |
Manual Backport PR #46059 on branch 1.4.x (CI: Test various Pyarrow version on Linux) | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 35196ad2840c6..565c1008d42b3 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -26,6 +26,9 @@ jobs:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml]
pattern: ["not sing... | Backport PR #46059 | https://api.github.com/repos/pandas-dev/pandas/pulls/46097 | 2022-02-21T17:23:01Z | 2022-02-23T13:13:58Z | 2022-02-23T13:13:58Z | 2022-02-23T16:29:48Z |
BUG: Change numeric_only default to True | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 584375512e76c..6a8fa0e6963a4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -297,6 +297,7 @@ Other Deprecations
- Deprecated the ``warn`` parameter in :func:`infer_freq` (:issue:`45947`)
- Deprecate... | I know I have to correct the other tests that fail due to this change. But I want confirmation that this PR is headed in the right direction before doing so.
- [X] closes #7308
- [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46096 | 2022-02-21T16:28:03Z | 2022-03-18T00:49:04Z | 2022-03-18T00:49:03Z | 2022-03-18T00:49:07Z |
Bug/45740 stack_multi_columns extension array downcast | diff --git a/pandas/core/reshape/reshape.py b/pandas/core/reshape/reshape.py
index da3a717cda55d..30c0f2bb4d632 100644
--- a/pandas/core/reshape/reshape.py
+++ b/pandas/core/reshape/reshape.py
@@ -722,6 +722,7 @@ def _convert_level_number(level_num: int, columns):
level_vals_used = np.take(level_vals_nan, level_co... | - [x] closes #45740
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46095 | 2022-02-21T15:02:05Z | 2022-04-24T02:58:02Z | null | 2022-04-24T02:58:02Z |
TST: Split & parameterize | diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py
index 3e9860d157e5f..9ab14e2a55662 100644
--- a/pandas/tests/frame/test_arithmetic.py
+++ b/pandas/tests/frame/test_arithmetic.py
@@ -181,7 +181,18 @@ def test_comparison_invalid(self, arg, arg2):
with pytest.raises(Type... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/46091 | 2022-02-21T04:42:32Z | 2022-02-27T15:21:47Z | 2022-02-27T15:21:47Z | 2022-02-27T18:00:58Z |
REF: share hashtable_func_helper code | diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in
index e5e64f8dc7b5f..be57d2cd5f844 100644
--- a/pandas/_libs/hashtable_func_helper.pxi.in
+++ b/pandas/_libs/hashtable_func_helper.pxi.in
@@ -17,7 +17,7 @@ dtypes = [('Complex128', 'complex128', 'complex128',
(... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46090 | 2022-02-21T03:34:53Z | 2022-02-24T23:18:09Z | 2022-02-24T23:18:09Z | 2022-02-24T23:19:14Z |
REF: use fused types for mode | diff --git a/pandas/_libs/hashtable_func_helper.pxi.in b/pandas/_libs/hashtable_func_helper.pxi.in
index e5e64f8dc7b5f..d9abed75184f6 100644
--- a/pandas/_libs/hashtable_func_helper.pxi.in
+++ b/pandas/_libs/hashtable_func_helper.pxi.in
@@ -247,63 +247,6 @@ cdef ismember_{{dtype}}(const {{dtype}}_t[:] arr, const {{dtyp... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46089 | 2022-02-21T02:27:29Z | 2022-02-26T19:37:41Z | 2022-02-26T19:37:41Z | 2022-02-26T20:17:58Z |
ENH: Improve error message when rolling over NaT value | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 527c4215d22ca..8e7b26c9a6c03 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -40,6 +40,7 @@ Other enhancements
- :meth:`.GroupBy.min` and :meth:`.GroupBy.max` now supports `Numba <https://numba.pydata... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46087 | 2022-02-20T20:09:44Z | 2022-02-28T00:39:54Z | 2022-02-28T00:39:54Z | 2022-04-01T20:03:47Z |
BUG/REF: Use lru_cache instead of NUMBA_FUNC_CACHE | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7e470a51858ce..10633f350dfc7 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -382,6 +382,8 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.resample` ignoring ``closed="right"`` on :class:`Timede... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46086 | 2022-02-20T19:23:09Z | 2022-02-27T20:09:22Z | 2022-02-27T20:09:22Z | 2022-02-28T00:12:58Z |
Typeinterval part1 | diff --git a/pandas/_typing.py b/pandas/_typing.py
index c0383fe50a7e7..b897a4e8fe199 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -83,7 +83,7 @@
PythonScalar = Union[str, int, float, bool]
DatetimeLikeScalar = Union["Period", "Timestamp", "Timedelta"]
PandasScalar = Union["Period", "Timestamp", "Timede... | I would like to add `pandas/_libs/interval.pyi`, and I have a tentative file for that, but when I started to do that, it uncovered issues in our existing typing, because currently, `mypy` sees `Interval` as `Unknown`, which allows a bunch of things to pass.
So this PR addresses that issue. The way to see the probl... | https://api.github.com/repos/pandas-dev/pandas/pulls/46080 | 2022-02-20T02:42:44Z | 2022-02-26T19:26:16Z | 2022-02-26T19:26:16Z | 2023-02-13T20:56:21Z |
Revert "BUG: groupby().rolling(freq) with monotonic dates within groups (#46065)" | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 59f6319de127d..68999b9bba50f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
-- Bug in :meth:`Groupby.rolling` with a frequency window would rai... | This reverts commit ad0f1bf44ed7a974ce8d009e28aebde01bc7c42c. #46065
| https://api.github.com/repos/pandas-dev/pandas/pulls/46078 | 2022-02-19T23:17:10Z | 2022-02-20T09:49:26Z | 2022-02-20T09:49:26Z | 2022-02-20T18:49:33Z |
Backport PR #46065 on branch 1.4.x (BUG: groupby().rolling(freq) with monotonic dates within groups) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 68999b9bba50f..59f6319de127d 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Bug in :meth:`Groupby.rolling` with a frequency window would ... | Backport PR #46065: BUG: groupby().rolling(freq) with monotonic dates within groups | https://api.github.com/repos/pandas-dev/pandas/pulls/46076 | 2022-02-19T20:53:39Z | 2022-02-19T23:17:29Z | null | 2022-02-19T23:17:30Z |
ENH: Updated read_html to add option | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 05d7c2998ef27..3e1e374390d1a 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -180,6 +180,10 @@ class _HtmlFrameParser:
displayed_only : bool
Whether or not items with "display:none" should be ignored
+ remove_whitespace : bool
+ ... | - [x] closes #24766
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46075 | 2022-02-19T20:26:33Z | 2022-04-24T02:58:22Z | null | 2022-04-24T02:58:22Z |
BUG: .transform(...) with "first" and "last" fail when axis=1 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e3f772ac026ab..039642dc390e7 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -379,6 +379,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.resample` ignoring ``closed="right"`` on :class:`Timede... | Part of #45986 (first/last)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commi... | https://api.github.com/repos/pandas-dev/pandas/pulls/46074 | 2022-02-19T18:43:50Z | 2022-02-26T21:58:57Z | 2022-02-26T21:58:57Z | 2022-02-27T15:30:33Z |
Backport PR #46069 on branch 1.4.x (DOC: fix ref in 1.4.2 release notes) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index fdac1c385499a..68999b9bba50f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Fixed regression in :meth:`Dat... | Backport PR #46069: DOC: fix ref in 1.4.2 release notes | https://api.github.com/repos/pandas-dev/pandas/pulls/46073 | 2022-02-19T18:23:57Z | 2022-02-19T20:25:57Z | 2022-02-19T20:25:57Z | 2022-02-19T20:25:57Z |
DOC: fix ref in 1.4.2 release notes | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index fdac1c385499a..68999b9bba50f 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
-- Fixed regression in :meth:`Dat... | follow-up to #45983 | https://api.github.com/repos/pandas-dev/pandas/pulls/46069 | 2022-02-19T13:31:08Z | 2022-02-19T18:23:03Z | 2022-02-19T18:23:03Z | 2022-02-19T18:35:35Z |
Construction of series with na and datetime dtype | diff --git a/pandas/core/construction.py b/pandas/core/construction.py
index 17cdf6665aa99..a3f71cc18454e 100644
--- a/pandas/core/construction.py
+++ b/pandas/core/construction.py
@@ -52,6 +52,7 @@
)
from pandas.core.dtypes.dtypes import (
DatetimeTZDtype,
+ IntervalDtype,
PandasDtype,
)
from pandas.c... | - [ ] closes #41805
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46068 | 2022-02-19T11:02:17Z | 2022-03-14T16:28:31Z | null | 2022-05-31T16:11:10Z |
BUG: groupby().rolling(freq) with monotonic dates within groups | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index fdac1c385499a..243fffcc7cce8 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Bug in :meth:`Groupby.rolling` with a frequency window would ... | - [x] closes #46061
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46065 | 2022-02-18T23:56:21Z | 2022-02-19T20:53:29Z | 2022-02-19T20:53:29Z | 2022-03-30T02:28:06Z |
DOC: added examples for index assignment using Series | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index ddae58fd46bb0..750bcac738842 100644
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -449,6 +449,38 @@ def loc(self) -> _LocIndexer:
8 4 5
9 7 8
+ **Set values with a Series**
+
+ ... | - [x] closes #39845
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46064 | 2022-02-18T22:44:22Z | 2022-05-24T20:59:52Z | null | 2022-05-24T20:59:52Z |
BUG: BooleanArray match non-masked behavior div/pow/mod | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 5d656cde08610..e5d76e34e58e0 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -294,6 +294,7 @@ Time Zones
Numeric
^^^^^^^
- Bug in operations with array-likes with ``dtype="boolean"`` and :attr:`NA` ... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46063 | 2022-02-18T21:28:21Z | 2022-02-27T20:52:33Z | 2022-02-27T20:52:33Z | 2022-02-27T20:55:21Z |
Backport PR #46054 on branch 1.4.x (CI: pin markupsafe to avoid import error) | diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml
index 467402bb6ef7f..2e782817f3f14 100644
--- a/ci/deps/actions-38-minimum_versions.yaml
+++ b/ci/deps/actions-38-minimum_versions.yaml
@@ -19,7 +19,7 @@ dependencies:
- numpy=1.18.5
- pytz=2020.1
- # optional depe... | Backport PR #46054: CI: pin markupsafe to avoid import error | https://api.github.com/repos/pandas-dev/pandas/pulls/46062 | 2022-02-18T21:00:55Z | 2022-02-19T02:03:39Z | 2022-02-19T02:03:38Z | 2022-02-19T02:03:39Z |
DOC: Add details to DataFrame.combine_first docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 082a5814c2fc7..b5ce0490ff432 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -7448,7 +7448,11 @@ def combine_first(self, other: DataFrame) -> DataFrame:
Combine two DataFrame objects by filling null values in one DataFrame
... | - [x] closes #41704
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ]... | https://api.github.com/repos/pandas-dev/pandas/pulls/46060 | 2022-02-18T19:29:12Z | 2022-02-22T04:11:21Z | 2022-02-22T04:11:20Z | 2022-02-22T13:36:37Z |
CI: Test various Pyarrow version on Linux | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 118a37e191673..97683e56915c6 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -26,6 +26,9 @@ jobs:
matrix:
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml]
pattern: ["not sing... | - [x] closes #45705 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
As discovered in https://github.com/pandas-dev/pandas/pull/46014, pyarrow v2 seems to... | https://api.github.com/repos/pandas-dev/pandas/pulls/46059 | 2022-02-18T19:09:47Z | 2022-02-21T17:18:08Z | 2022-02-21T17:18:08Z | 2022-02-21T20:10:11Z |
BUG: Fix aligning a DataFrame with a Series with MultiIndex #46001 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 18fd1057c9b65..5e7c75282bf84 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -440,6 +440,7 @@ Reshaping
^^^^^^^^^
- Bug in :func:`concat` between a :class:`Series` with integer dtype and another with... | When aligning a DataFrame to a Series we are using Series.reindex() to
broadcast the Series data to the new index. That introduces NaNs when the new
index rows are not identical to the existing ones, which is not the case when
we introduce a new MultiIndex level.
In this patch we use the same approach as for ali... | https://api.github.com/repos/pandas-dev/pandas/pulls/46058 | 2022-02-18T17:56:51Z | 2022-03-07T23:52:24Z | 2022-03-07T23:52:23Z | 2022-03-08T00:38:52Z |
bug: styler latex longtable column count | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 68999b9bba50f..05bc7ff8c96d2 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,7 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
--
+- Fixed "longtable" formatting in :meth:`.Styler.to_latex` when... | - [x] closes #46037
- [x] tests
- [x] whats new
| https://api.github.com/repos/pandas-dev/pandas/pulls/46057 | 2022-02-18T17:43:23Z | 2022-02-26T00:50:55Z | 2022-02-26T00:50:55Z | 2022-03-06T07:28:50Z |
DOC: Add "build C extensions" note | diff --git a/doc/source/development/contributing_environment.rst b/doc/source/development/contributing_environment.rst
index b28f7c833d7ad..fb27d07cfb18f 100644
--- a/doc/source/development/contributing_environment.rst
+++ b/doc/source/development/contributing_environment.rst
@@ -26,14 +26,28 @@ with a full pandas deve... | - [x] closes #45914
This PR adds the missing information that the C extensions must be built when a local pandas repo was bind for the first time.
I also adjusted the docker commands to:
- show how you can use your forked repo (`--build-arg gh_username=yourname` was missing)
- specify the workdir `-w /home/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/46055 | 2022-02-18T17:14:16Z | 2022-02-27T15:57:59Z | 2022-02-27T15:57:58Z | 2022-03-02T20:23:10Z |
CI: pin markupsafe to avoid import error | diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml
index 467402bb6ef7f..2e782817f3f14 100644
--- a/ci/deps/actions-38-minimum_versions.yaml
+++ b/ci/deps/actions-38-minimum_versions.yaml
@@ -19,7 +19,7 @@ dependencies:
- numpy=1.18.5
- pytz=2020.1
- # optional depe... | Lets see if this fixes the ci
| https://api.github.com/repos/pandas-dev/pandas/pulls/46054 | 2022-02-18T17:08:15Z | 2022-02-18T21:00:14Z | 2022-02-18T21:00:14Z | 2022-02-18T21:01:01Z |
BUG: read_csv not respecting converter in all cases for index col | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 199a52f9d770f..bdb276fd17e04 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -359,6 +359,7 @@ I/O
- Bug in :meth:`DataFrame.info` where a new line at the end of the output is omitted when called on an... | - [x] closes #40589 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/46053 | 2022-02-18T16:52:15Z | 2022-02-26T19:24:42Z | 2022-02-26T19:24:41Z | 2022-06-06T20:52:32Z |
ENH: Add defaultdict support for dtype in read_csv | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index a9219cd811b6f..3a8583d395cc4 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -186,6 +186,11 @@ dtype : Type name or dict of column -> type, default ``None``
(unsupported with ``engine='python'``). Use ``str... | - [x] closes #41574 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/46051 | 2022-02-18T15:42:49Z | 2022-03-22T23:26:05Z | 2022-03-22T23:26:05Z | 2022-06-06T20:52:47Z |
BUG: error in read_excel with some ods files #45598 | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 3bc9a1ef1ca48..f2390f2305d72 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -406,6 +406,7 @@ I/O
- Bug in :func:`read_parquet` when ``engine="pyarrow"`` which caused partial write to disk when column... | - [x] closes #45598
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x... | https://api.github.com/repos/pandas-dev/pandas/pulls/46050 | 2022-02-18T13:27:02Z | 2022-03-03T17:37:21Z | 2022-03-03T17:37:20Z | 2022-03-03T17:37:35Z |
BUG: Multiindex.equals not commutative for ea dtype | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 199a52f9d770f..40e4ad2a436c1 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -349,7 +349,7 @@ Missing
MultiIndex
^^^^^^^^^^
--
+- Bug in :class:`MultiIndex.equals` not commutative when only one sid... | - [x] closes #46026 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/46047 | 2022-02-18T09:36:03Z | 2022-02-26T19:28:49Z | 2022-02-26T19:28:48Z | 2022-06-06T20:53:05Z |
FIX: clarify warning in read_sql_query() | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index ba18412856d6c..e004e9c1ecbcc 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -748,9 +748,9 @@ def pandasSQL_builder(con, schema: str | None = None):
return SQLDatabase(con, schema=schema)
warnings.warn(
- "pandas only support SQLAlche... | - [x] closes #xxxx (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46045 | 2022-02-18T04:12:48Z | 2022-02-22T04:53:44Z | 2022-02-22T04:53:44Z | 2022-02-22T04:59:48Z |
DOC: added note on str cons for read_sql | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index ba18412856d6c..1c7b779077c9e 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -452,7 +452,7 @@ def read_sql(
Using SQLAlchemy makes it possible to use any DB supported by that
library. If a DBAPI2 object, only sqlite3 is supported. The user... | - [x] closes #46023
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [... | https://api.github.com/repos/pandas-dev/pandas/pulls/46042 | 2022-02-17T21:27:00Z | 2022-02-17T23:53:04Z | null | 2022-02-17T23:53:04Z |
PERF: MultiIndex slicing | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index 1135e1ada1b78..40eaab524a399 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -13,7 +13,6 @@
CategoricalIndex,
DataFrame,
Float64Index,
- IndexSlice,
Int64Index,
Inte... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46040 | 2022-02-17T16:55:30Z | 2022-02-27T00:11:13Z | 2022-02-27T00:11:13Z | 2022-03-02T01:13:42Z |
ENH: Added support for the pd.read_sql to return a dictionary of all tables | diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst
index d357e4a633347..0e2dcc4105cdc 100644
--- a/doc/source/whatsnew/v1.3.0.rst
+++ b/doc/source/whatsnew/v1.3.0.rst
@@ -230,6 +230,7 @@ Other enhancements
- Add keyword ``sort`` to :func:`pivot_table` to allow non-sorting of the result (:issu... | - [x] closes #45979 (Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/46035 | 2022-02-17T14:16:06Z | 2022-02-22T05:01:58Z | null | 2022-02-22T22:22:51Z |
BUG: fix parquet roundtrip for Interval dtype with datetime64[ns] subtype | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e73a4348eece1..0d3b972f09862 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -357,6 +357,7 @@ I/O
- Bug in :meth:`DataFrame.to_csv` not respecting ``float_format`` for ``Float64`` dtype (:issue:`45991... | Closes #45881 | https://api.github.com/repos/pandas-dev/pandas/pulls/46034 | 2022-02-17T13:27:51Z | 2022-02-27T20:10:27Z | 2022-02-27T20:10:26Z | 2022-08-01T12:05:18Z |
FIX # 45957 issue read_csv with empty list | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index c5b84dd18ec13..41da8b2fbb736 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -1189,7 +1189,7 @@ def __next__(self):
def _make_engine(
self,
- f: FilePath | ReadCsvBuffer[bytes] | ReadCsv... | - [ ] closes #45957 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/co... | https://api.github.com/repos/pandas-dev/pandas/pulls/46033 | 2022-02-17T12:43:15Z | 2022-03-12T15:47:16Z | null | 2022-03-12T15:47:16Z |
CI: Test on Cython 3.0 on numpydev | diff --git a/ci/deps/actions-310-numpydev.yaml b/ci/deps/actions-310-numpydev.yaml
index 401be14aaca02..c2cdd38e8599f 100644
--- a/ci/deps/actions-310-numpydev.yaml
+++ b/ci/deps/actions-310-numpydev.yaml
@@ -16,7 +16,8 @@ dependencies:
- pytz
- pip
- pip:
- - cython==0.29.24 # GH#34014
+ #- cython # TOD... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46029 | 2022-02-17T02:02:31Z | 2022-03-28T23:12:23Z | 2022-03-28T23:12:23Z | 2022-03-29T00:19:23Z |
DOC: Fixed broken link to the build from source docs in the README. | diff --git a/README.md b/README.md
index 26aed081de4af..2216f59965354 100644
--- a/README.md
+++ b/README.md
@@ -136,7 +136,7 @@ or alternatively
python setup.py develop
```
-See the full instructions for [installing from source](https://pandas.pydata.org/pandas-docs/stable/install.html#installing-from-source).
+Se... | I just noticed a broken link in the README. Submitting a quick PR to fix it. | https://api.github.com/repos/pandas-dev/pandas/pulls/46028 | 2022-02-17T01:26:02Z | 2022-02-17T16:01:17Z | 2022-02-17T16:01:17Z | 2022-02-17T16:14:25Z |
DOC: Minor addition to str.split | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index b7ccc087ff1f1..f9dd17df6a47b 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -1880,6 +1880,7 @@ def encode(self, encoding, errors="strict"):
Strip whitespaces (including newlines) or a set o... | - [x] Closes #44867
- [ ] Added an entry in whatsnew
| https://api.github.com/repos/pandas-dev/pandas/pulls/46027 | 2022-02-16T20:42:17Z | 2022-02-22T05:03:15Z | 2022-02-22T05:03:14Z | 2022-02-22T05:03:25Z |
CI: Fix line sep issue in to_csv test | diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py
index bee17e4e8e162..70fa071fe8fb6 100644
--- a/pandas/tests/io/formats/test_to_csv.py
+++ b/pandas/tests/io/formats/test_to_csv.py
@@ -320,12 +320,9 @@ def test_to_csv_float_ea_float_format(self):
df = DataFrame({"a":... | Should fix ci | https://api.github.com/repos/pandas-dev/pandas/pulls/46024 | 2022-02-16T18:45:55Z | 2022-02-16T20:04:25Z | 2022-02-16T20:04:25Z | 2022-02-16T20:04:29Z |
DOC: add note for ExtensionArray authors on relation between argmax/min and _values_for_argsort | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index 834c2db9ecb21..7c0daeecafaf7 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -180,7 +180,7 @@ class ExtensionArray:
* dropna
* unique
* factorize / _values_for_factorize
- * argsort / _values_for_arg... | See discussion / conclusion in https://github.com/pandas-dev/pandas/issues/33276#issuecomment-1027853573 | https://api.github.com/repos/pandas-dev/pandas/pulls/46022 | 2022-02-16T15:08:03Z | 2022-02-16T18:43:42Z | 2022-02-16T18:43:42Z | 2022-02-16T21:06:19Z |
Bug fix - Integer overflow in Series.astype('datetime64[D]') | diff --git a/pandas/core/dtypes/astype.py b/pandas/core/dtypes/astype.py
index daae491b09c8a..729891eb024e8 100644
--- a/pandas/core/dtypes/astype.py
+++ b/pandas/core/dtypes/astype.py
@@ -143,8 +143,13 @@ def astype_nansafe(
# then coerce to a proper dtype and recall astype_nansafe
if is_datetime64... | - [x] closes #28045
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ... | https://api.github.com/repos/pandas-dev/pandas/pulls/46021 | 2022-02-16T14:41:17Z | 2022-04-09T18:10:43Z | null | 2022-04-09T18:10:43Z |
Backport PR #45983 on branch 1.4.x (REGR: drop raising with ea index and duplicates) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 9ba7461b830da..fdac1c385499a 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -14,7 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
--
+- Fixed regression in :meth:`... | Backport PR #45983: REGR: drop raising with ea index and duplicates | https://api.github.com/repos/pandas-dev/pandas/pulls/46020 | 2022-02-16T13:07:07Z | 2022-02-16T18:48:03Z | 2022-02-16T18:48:03Z | 2022-02-16T18:48:03Z |
BUG: pd.concat produces frames with inconsistent order when concating the ones with categorical indices | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 50a5bf383de77..17070b06a47d0 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -535,6 +535,7 @@ Reshaping
- Bug in :func:`get_dummies` that selected object and categorical dtypes but not string (:issue:... | - [ ] closes #44099
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x... | https://api.github.com/repos/pandas-dev/pandas/pulls/46019 | 2022-02-16T11:21:56Z | 2022-05-24T20:56:47Z | null | 2022-05-24T20:56:48Z |
BUG: remove usage of _constructor._get_axis_number (fix when _constructor properties return callables) | diff --git a/doc/source/whatsnew/v1.4.2.rst b/doc/source/whatsnew/v1.4.2.rst
index 05bc7ff8c96d2..43b911cd24e1d 100644
--- a/doc/source/whatsnew/v1.4.2.rst
+++ b/doc/source/whatsnew/v1.4.2.rst
@@ -23,6 +23,7 @@ Fixed regressions
Bug fixes
~~~~~~~~~
+- Fix some cases for subclasses that define their ``_constructor``... | See report at https://github.com/pandas-dev/pandas/issues/32860#issuecomment-697993089 (and we also run into this one case in geopandas). Also related to https://github.com/pandas-dev/pandas/issues/32638
As far as I know this is the only remaining case where we rely on `_constructor`/`_constructor_sliced`/`_construc... | https://api.github.com/repos/pandas-dev/pandas/pulls/46018 | 2022-02-16T09:50:22Z | 2022-02-26T19:46:10Z | 2022-02-26T19:46:10Z | 2022-07-17T09:09:23Z |
CI: Unpin Cython on PyPy testing | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml
index 35196ad2840c6..118a37e191673 100644
--- a/.github/workflows/posix.yml
+++ b/.github/workflows/posix.yml
@@ -143,8 +143,7 @@ jobs:
shell: bash
run: |
# TODO: re-enable cov, its slowing the tests down though
- # TOD... | - [ ] closes #xxxx (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/46016 | 2022-02-16T04:08:50Z | 2022-02-16T13:13:33Z | 2022-02-16T13:13:33Z | 2022-03-30T10:49:57Z |
PERF: join empty frame | diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py
index 6e27d9355997f..e3c6bf9bd4e07 100644
--- a/asv_bench/benchmarks/join_merge.py
+++ b/asv_bench/benchmarks/join_merge.py
@@ -158,6 +158,19 @@ def time_left_outer_join_index(self):
self.left.join(self.right, on="jim")
+c... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in th... | https://api.github.com/repos/pandas-dev/pandas/pulls/46015 | 2022-02-16T03:39:47Z | 2022-02-22T17:40:00Z | 2022-02-22T17:40:00Z | 2022-03-02T01:13:19Z |
CI: Don't run xdist if pytest.mark.single_cpu | diff --git a/.circleci/config.yml b/.circleci/config.yml
index dc357101e79fd..0ff8aea3b545a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -7,7 +7,7 @@ jobs:
resource_class: arm.medium
environment:
ENV_FILE: ci/deps/circle-38-arm64.yaml
- PYTEST_WORKERS: auto
+ TEST_ARGS:... | - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Appears some of the sing... | https://api.github.com/repos/pandas-dev/pandas/pulls/46014 | 2022-02-16T03:19:51Z | 2022-02-19T04:28:43Z | null | 2022-03-07T01:37:40Z |
Remove hack and change a benchmark to fail | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index 8a74ae14404b3..af6dba20e4a65 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -144,10 +144,7 @@ jobs:
git remote add upstream https://github.com/pandas-dev/pandas.git
git f... | We are improving the use of asv for Pandas benchmarks. On this PR, I'm removing a hack on the .github/workflows/code-checks.yml file and creating an error on the `attrs_caching.py` file to make the benchmark fail and check the CI output.
cc @datapythonista | https://api.github.com/repos/pandas-dev/pandas/pulls/46013 | 2022-02-16T00:13:04Z | 2022-02-16T08:57:40Z | null | 2022-02-16T08:57:40Z |
TST: parameterize tests/dtypes | diff --git a/pandas/tests/dtypes/test_inference.py b/pandas/tests/dtypes/test_inference.py
index 87dfdfec1162f..99037226782db 100644
--- a/pandas/tests/dtypes/test_inference.py
+++ b/pandas/tests/dtypes/test_inference.py
@@ -1826,12 +1826,13 @@ def test_is_datetime_dtypes(self):
assert not is_datetime64tz_dtyp... | - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
| https://api.github.com/repos/pandas-dev/pandas/pulls/46012 | 2022-02-15T23:01:15Z | 2022-02-16T13:14:54Z | 2022-02-16T13:14:54Z | 2022-02-16T16:24:32Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.