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: GH39984 Addition to tests | diff --git a/pandas/tests/indexes/multi/test_constructors.py b/pandas/tests/indexes/multi/test_constructors.py
index 7fad59fc6654c..8ef3057c40e90 100644
--- a/pandas/tests/indexes/multi/test_constructors.py
+++ b/pandas/tests/indexes/multi/test_constructors.py
@@ -5,8 +5,11 @@
import itertools
import numpy as np
+i... | - [x] closes #39984 (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/47981 | 2022-08-05T13:55:10Z | 2022-08-15T17:13:41Z | null | 2022-08-15T17:13:41Z |
Doc/categorical okexcept | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index 0105cf99193dd..be26427d11d81 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -439,15 +439,17 @@ Sorting and order
.. _categorical.sort:
If categorical data is ordered (`... | This is a variant of #47846 using the `:okexcept:` directive instead of `try/except` [as requested by mroeschke](https://github.com/pandas-dev/pandas/pull/47846#discussion_r929310988). | https://api.github.com/repos/pandas-dev/pandas/pulls/47980 | 2022-08-05T13:17:12Z | 2022-08-05T14:10:45Z | null | 2022-08-05T14:11:25Z |
DEPS: Update cython | diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json
index 46640505a4c84..b1ea2682b7ea7 100644
--- a/asv_bench/asv.conf.json
+++ b/asv_bench/asv.conf.json
@@ -42,7 +42,7 @@
// followed by the pip installed packages).
"matrix": {
"numpy": [],
- "Cython": ["0.29.30"],
+ "Cython"... | - [x] xref #47978
- [x] xref #46848 | https://api.github.com/repos/pandas-dev/pandas/pulls/47979 | 2022-08-05T13:10:09Z | 2022-08-08T19:00:00Z | 2022-08-08T19:00:00Z | 2022-08-08T21:29:07Z |
REF: Move Series logic from Index._get_values_for_loc | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 6620cc1786340..4b47d71c453c8 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -140,6 +140,7 @@
ensure_index,
)
import pandas.core.indexes.base as ibase
+from pandas.core.indexes.multi import maybe_droplevels
from pandas.core.index... | Cleaner abstraction. | https://api.github.com/repos/pandas-dev/pandas/pulls/47975 | 2022-08-04T23:01:27Z | 2022-10-24T21:30:49Z | 2022-10-24T21:30:49Z | 2022-10-24T21:34:23Z |
TST/CLN: Consolidate creation of groupby method args | diff --git a/pandas/tests/groupby/__init__.py b/pandas/tests/groupby/__init__.py
index e69de29bb2d1d..c63aa568a15dc 100644
--- a/pandas/tests/groupby/__init__.py
+++ b/pandas/tests/groupby/__init__.py
@@ -0,0 +1,27 @@
+def get_groupby_method_args(name, obj):
+ """
+ Get required arguments for a groupby method.
+
... | - [ ] 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/47973 | 2022-08-04T21:23:17Z | 2022-08-08T21:57:19Z | 2022-08-08T21:57:19Z | 2022-08-09T21:12:27Z |
BUG: pivot_table raising TypeError with ea dtype and dropna True | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index bdf811f6a8f6a..c54730a78ad36 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1027,6 +1027,7 @@ Reshaping
- Bug in :func:`concat` losing dtype of columns when ``join="outer"`` and ``sort=True`` (:issu... | - [x] closes #47477 (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/47972 | 2022-08-04T21:21:29Z | 2022-08-08T22:12:22Z | 2022-08-08T22:12:22Z | 2022-08-09T06:38:56Z |
REF: Use `Styler` implementation for `DataFrame.to_latex` | diff --git a/doc/source/whatsnew/v2.0.0.rst b/doc/source/whatsnew/v2.0.0.rst
index cb51365fa27cd..e3a4c2bc0daef 100644
--- a/doc/source/whatsnew/v2.0.0.rst
+++ b/doc/source/whatsnew/v2.0.0.rst
@@ -452,6 +452,37 @@ Now, the axes return an empty :class:`RangeIndex`.
pd.Series().index
pd.DataFrame().axes
+.. _wh... | After a year of patching up things in #41649, and @jreback merge of #47864 I can finally propose this for review.
# Objective
- Maintain `DataFrame.to_latex` with its existing arguments, adding no arguments
- Process the rendering via `Styler.to_latex`
- Eliminate the need for `LatexFormatter` (code removal no... | https://api.github.com/repos/pandas-dev/pandas/pulls/47970 | 2022-08-04T20:38:08Z | 2023-01-19T20:01:01Z | 2023-01-19T20:01:01Z | 2023-01-19T21:49:50Z |
TYP: move imports inside TYPE_CHECKING | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 12352c4490f29..cd88eb1e49be8 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -77,7 +77,6 @@
import pandas.core.algorithms as algos
from pandas.core.arrays import datetimelike as dtl
-from pandas.core.array... | These are found by flake8-type-checking. There are more cases (all of the _typing imports).
If flake8-type-checking should be run on the CI, it would be good to move all the _typing imports inside TYPE_CHECKING (not sure whether we want to do that). | https://api.github.com/repos/pandas-dev/pandas/pulls/47968 | 2022-08-04T16:45:56Z | 2022-08-04T18:53:02Z | 2022-08-04T18:53:02Z | 2022-09-10T01:38:48Z |
CI: fix mypy typing errors (pin numpy) on branch 1.4.x | diff --git a/environment.yml b/environment.yml
index 83b00c0dd6421..a20ccc797eb79 100644
--- a/environment.yml
+++ b/environment.yml
@@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
# required
- - numpy>=1.18.5
+ - numpy>=1.18.5, <=1.22.4 # GH#47569
- python=3.8
- python-dateutil>=2.8.1
- pytz
d... | - [ ] closes #47569 (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/47967 | 2022-08-04T16:33:11Z | 2022-08-04T18:10:14Z | 2022-08-04T18:10:14Z | 2022-08-04T18:46:31Z |
fix : removed extra blank line between sections | diff --git a/.gitignore b/.gitignore
index 07b1f056d511b..dad516db3e107 100644
--- a/.gitignore
+++ b/.gitignore
@@ -73,7 +73,6 @@ __pycache__
# pytest-monkeytype
monkeytype.sqlite3
-
# OS generated files #
######################
.directory
| - [ ] 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/47965 | 2022-08-04T14:34:19Z | 2022-08-04T14:57:26Z | null | 2022-08-04T14:57:26Z |
BUG: read_csv with engine pyarrow doesn't handle missing values | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index bdf811f6a8f6a..9258cacf32f38 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -966,6 +966,7 @@ I/O
- Bug in :func:`read_sas` with RLE-compressed SAS7BDAT files that contain 0x00 control bytes (:issue:`... | - [x] closes #47950 (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/47962 | 2022-08-04T11:39:47Z | 2022-08-09T19:23:27Z | null | 2022-08-09T19:23:27Z |
ENH: Add `dtype` param for `pandas.Series.str.get_dummies` | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index d50daad9a22b1..cb388b8b362d4 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -2136,7 +2136,7 @@ def wrap(self, width, **kwargs):
return self._wrap_result(result)
@forbid_nonstring_t... | - [ ] closes #47872
- [ ] [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/47958 | 2022-08-04T07:06:59Z | 2022-09-12T18:55:05Z | null | 2022-09-12T18:55:05Z |
Backport PR #47951 on branch 1.4.x (DOC: Fix missing s3 file in read xml doc example) | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 705861a3aa568..862441e9b4cad 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3032,15 +3032,15 @@ Read in the content of the "books.xml" as instance of ``StringIO`` or
df = pd.read_xml(bio)
df
-Even ... | Backport PR #47951: DOC: Fix missing s3 file in read xml doc example | https://api.github.com/repos/pandas-dev/pandas/pulls/47957 | 2022-08-04T06:25:49Z | 2022-08-04T09:45:49Z | 2022-08-04T09:45:49Z | 2022-08-04T09:45:49Z |
Issue46882 | diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst
index bbca5773afdfe..7dfc3e4cbb4f3 100644
--- a/doc/source/user_guide/merging.rst
+++ b/doc/source/user_guide/merging.rst
@@ -462,6 +462,7 @@ all standard database join operations between ``DataFrame`` or named ``Series``
copy=T... | - [ ] closes #46882
- [ ] [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/47956 | 2022-08-04T03:03:40Z | 2022-08-08T22:23:21Z | null | 2022-08-08T22:23:21Z |
Backport PR #47949 on branch 1.4.x (TST: Add test for loc not updating cache correctly) (#47949) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 2b3223e0ff768..dce8fb60ecdd6 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`conca... | Backport PR #47949 | https://api.github.com/repos/pandas-dev/pandas/pulls/47954 | 2022-08-03T23:17:35Z | 2022-08-04T09:11:53Z | 2022-08-04T09:11:53Z | 2022-08-04T13:52:57Z |
DEBUG: Debug failing macpython wheels | diff --git a/ci/deps/actions-39.yaml b/ci/deps/actions-39.yaml
index 8605a9f4520d7..d7288249fc766 100644
--- a/ci/deps/actions-39.yaml
+++ b/ci/deps/actions-39.yaml
@@ -26,7 +26,6 @@ dependencies:
- fastparquet
- fsspec
- html5lib
- - hypothesis
- gcsfs
- jinja2
- lxml
@@ -52,3 +51,5 @@ dependencies:... | might be because of a change in hypothesis
| https://api.github.com/repos/pandas-dev/pandas/pulls/47952 | 2022-08-03T21:39:41Z | 2022-09-20T16:56:51Z | null | 2022-10-31T09:48:01Z |
DOC: Fix missing s3 file in read xml doc example | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 25625dba1080f..0f6d67a4f6f63 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -3054,15 +3054,15 @@ Read in the content of the "books.xml" as instance of ``StringIO`` or
df = pd.read_xml(bio)
df
-Even ... | - [x] closes #47945 (Replace xxxx with the Github issue number)
This returns now
```
journal-id journal-title issn publisher
0 Cardiovasc Ultrasound Cardiovascular Ultrasound 1476-7120 NaN
```
Fixes ci for now, happy to open another issue, if someone thinks we cou... | https://api.github.com/repos/pandas-dev/pandas/pulls/47951 | 2022-08-03T21:13:15Z | 2022-08-04T06:25:09Z | 2022-08-04T06:25:09Z | 2022-08-04T13:52:43Z |
TST: Add test for loc not updating cache correctly | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 89487bfde94a5..a8d47067a9a86 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -15,6 +15,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :func:`conca... | - [x] closes #47867 (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/47949 | 2022-08-03T19:49:15Z | 2022-08-03T22:55:49Z | 2022-08-03T22:55:49Z | 2022-08-04T09:08:04Z |
DOC: Plotting / Visualization without Jupyter | diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst
index d6426fe8bed2d..5ce2f7ca599a7 100644
--- a/doc/source/user_guide/visualization.rst
+++ b/doc/source/user_guide/visualization.rst
@@ -6,6 +6,11 @@
Chart visualization
*******************
+
+.. note::
+
+ The example... | Added a note at the top of the page clarifying that the examples assume you're working jupyter. @MarcoGorelli asked to be tagged to this PR. Hopefully I did everything correctly as this is my first PR.
- [x] closes #47861 (Replace xxxx with the Github issue number)
- [ ] [Tests added and passed](https://pandas.pyd... | https://api.github.com/repos/pandas-dev/pandas/pulls/47948 | 2022-08-03T18:56:06Z | 2022-08-09T19:12:30Z | 2022-08-09T19:12:30Z | 2023-01-18T15:21:27Z |
BUG: Propagating precision to interval dtype #43913 | diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py
index 1035fd08a1a36..c5aae73373a3d 100644
--- a/pandas/_testing/__init__.py
+++ b/pandas/_testing/__init__.py
@@ -80,6 +80,7 @@
assert_frame_equal,
assert_index_equal,
assert_indexing_slices_equivalent,
+ assert_interval_array_almo... | - [x] closes #43913
- [x] [test_frame_equal_tolerance() test added and passed]
- [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/47947 | 2022-08-03T18:06:33Z | 2022-11-17T01:32:35Z | null | 2022-11-17T01:32:35Z |
REGR: fix error caused by deprecation warning in pd.merge when joining two Series | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 1e7ed256c05ef..49e82f3abe71d 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.loc` not updating the cache correctly after values ... | - [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).
There is a small bug/typ... | https://api.github.com/repos/pandas-dev/pandas/pulls/47946 | 2022-08-03T18:02:05Z | 2022-08-19T12:57:10Z | 2022-08-19T12:57:09Z | 2022-08-22T11:46:07Z |
DOC: more exchange -> interchange renames | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 6e38024e02f36..3225195513fe5 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -14,23 +14,23 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
-.. _whatsnew_150.enhancements.dataframe_... | A few more renames as follow-up on https://github.com/pandas-dev/pandas/pull/47888 | https://api.github.com/repos/pandas-dev/pandas/pulls/47940 | 2022-08-03T06:56:47Z | 2022-08-03T14:13:11Z | 2022-08-03T14:13:11Z | 2022-08-10T17:42:48Z |
BUG: avoid relying on external packaging package in interchange protocol | diff --git a/pandas/core/interchange/buffer.py b/pandas/core/interchange/buffer.py
index 1d24efc263ca0..0f62dd00a0f41 100644
--- a/pandas/core/interchange/buffer.py
+++ b/pandas/core/interchange/buffer.py
@@ -1,14 +1,14 @@
from __future__ import annotations
import numpy as np
-from packaging import version
from ... | I noticed this by accident, and we have a vendored version of `packaging` that we otherwise use internally.
(this might be a good case to add a code check for? cc @MarcoGorelli) | https://api.github.com/repos/pandas-dev/pandas/pulls/47939 | 2022-08-03T06:51:03Z | 2022-08-03T14:20:03Z | 2022-08-03T14:20:03Z | 2022-08-26T07:18:01Z |
WEB: Accept PDEP-1 | diff --git a/web/pandas/pdeps/0001-purpose-and-guidelines.md b/web/pandas/pdeps/0001-purpose-and-guidelines.md
index 085f675974b2e..e09c5bd01204f 100644
--- a/web/pandas/pdeps/0001-purpose-and-guidelines.md
+++ b/web/pandas/pdeps/0001-purpose-and-guidelines.md
@@ -1,7 +1,7 @@
# PDEP-1: Purpose and guidelines
- Crea... | I forgot to accept PDEP-1 before merging #47444 | https://api.github.com/repos/pandas-dev/pandas/pulls/47938 | 2022-08-03T06:50:35Z | 2022-08-03T14:12:28Z | 2022-08-03T14:12:28Z | 2022-08-06T13:40:27Z |
WARN : extended stack level check to include all classes of warnings | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index 1a8fe71ae3728..ee68050dea467 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -17,7 +17,7 @@
@contextmanager
def assert_produces_warning(
- expected_warning: type[Warning] | bool | None = Warning,
+ e... | - [x] closes #47919
- [ ] 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/47937 | 2022-08-03T06:22:13Z | 2022-08-07T09:52:07Z | null | 2022-08-07T09:52:07Z |
CLN: remove deprecated DEF | diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx
index 4a12659aa1f57..9ea0fa73cbc9f 100644
--- a/pandas/_libs/hashing.pyx
+++ b/pandas/_libs/hashing.pyx
@@ -21,9 +21,6 @@ import_array()
from pandas._libs.util cimport is_nan
-DEF cROUNDS = 2
-DEF dROUNDS = 4
-
@cython.boundscheck(False)
def hash... | xref https://github.com/cython/cython/issues/4310
discovered in #47442 | https://api.github.com/repos/pandas-dev/pandas/pulls/47936 | 2022-08-03T06:07:03Z | 2022-08-08T22:36:23Z | 2022-08-08T22:36:23Z | 2022-11-18T02:18:38Z |
Fix out-of-bounds heap access in internals.pyx. | diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx
index be71fe53d35db..159fdbc080fb4 100644
--- a/pandas/_libs/internals.pyx
+++ b/pandas/_libs/internals.pyx
@@ -469,12 +469,14 @@ def get_blkno_indexers(
n = blknos.shape[0]
result = list()
+
+ if n == 0:
+ return result
+
s... | If blknos is empty, we unconditionally access blknos[start] where start
is 0. This is an out-of-bounds heap access that can be caught by
AddressSanitizer, but it's easy to avoid since
we are going to ignore the result anyway.
No new tests, because this does not change any observable behaviors. | https://api.github.com/repos/pandas-dev/pandas/pulls/47935 | 2022-08-03T01:05:02Z | 2022-08-08T22:39:27Z | 2022-08-08T22:39:27Z | 2022-08-08T22:40:00Z |
ENH: copy kwd for add_suffix/add_prefix | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 6e38024e02f36..cd93329a75c8a 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -279,6 +279,7 @@ Other enhancements
- :class:`Series` reducers (e.g. ``min``, ``max``, ``sum``, ``mean``) will now successf... | - [ ] 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/47934 | 2022-08-02T23:12:16Z | 2022-08-10T00:13:33Z | 2022-08-10T00:13:33Z | 2022-08-10T01:23:54Z |
ENH: copy keyword to set_axis | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 02db4cbe0e8a5..1913e3857f2d3 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -294,6 +294,7 @@ Other enhancements
- :meth:`RangeIndex.union` now can return a :class:`RangeIndex` instead of a :class:`In... | This also opens the option of deprecating `inplace` here.
- [ ] 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 pass... | https://api.github.com/repos/pandas-dev/pandas/pulls/47932 | 2022-08-02T17:37:08Z | 2022-08-17T00:56:12Z | 2022-08-17T00:56:12Z | 2022-08-17T00:58:22Z |
Update config.yml to add Donate page to the nav bar | diff --git a/web/pandas/config.yml b/web/pandas/config.yml
index 1330addf9a229..dd1572e83cbaf 100644
--- a/web/pandas/config.yml
+++ b/web/pandas/config.yml
@@ -51,6 +51,8 @@ navbar:
target: /community/ecosystem.html
- name: "Contribute"
target: /contribute.html
+ - name: "Donate"
+ taget: /donate.ht... | It would also be really great to enable GitHub sponsors specifically for the Pandas Org since people might want to sponsor the org directly on GitHub (dev's / org's want to highlight their sponsorship publicly so GitHub sponsors is a great way to do so).
| https://api.github.com/repos/pandas-dev/pandas/pulls/47931 | 2022-08-02T15:51:30Z | 2022-08-08T13:32:23Z | null | 2022-08-08T13:32:23Z |
TST: Allow “no setter” messages from Python 3.11 | diff --git a/pandas/tests/arrays/categorical/test_api.py b/pandas/tests/arrays/categorical/test_api.py
index 87b1bb88aeac3..391a5e7e69ffe 100644
--- a/pandas/tests/arrays/categorical/test_api.py
+++ b/pandas/tests/arrays/categorical/test_api.py
@@ -53,7 +53,7 @@ def test_set_ordered(self):
assert not cat2.orde... | Loosen “`can't set attribute`” expected messages to also allow messages of the form “`property … of … object has no setter`”, fixing several assertion failures in the tests on Python 3.11.
- [ ] closes #xxxx (Replace xxxx with the Github issue number) **This is a partial fix for https://github.com/pandas-dev/pandas/... | https://api.github.com/repos/pandas-dev/pandas/pulls/47929 | 2022-08-02T05:52:01Z | 2022-08-02T21:36:23Z | null | 2022-08-02T21:36:23Z |
ENH: Support For Interval __contains__ Other Interval (#46613) | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index b71d294b97f9a..e54819e31c90f 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -292,6 +292,7 @@ Other enhancements
- :class:`Series` reducers (e.g. ``min``, ``max``, ``sum``, ``mean``) will now successf... | - [x] closes #46613
- [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/47927 | 2022-08-02T05:10:12Z | 2022-08-15T16:19:39Z | 2022-08-15T16:19:39Z | 2022-08-15T16:19:52Z |
TYP: pandas.core.series annotations from pandas-stubs | diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py
index 369e4b3454b65..5e0af3c0bc07d 100644
--- a/pandas/_testing/asserters.py
+++ b/pandas/_testing/asserters.py
@@ -866,7 +866,7 @@ def assert_series_equal(
left,
right,
check_dtype: bool | Literal["equiv"] = True,
- check_index_... | contains also changes in generic/frame.py but only to keep them consistent with series.py
edit: and added annotations for frame.py | https://api.github.com/repos/pandas-dev/pandas/pulls/47926 | 2022-08-02T03:56:15Z | 2022-08-15T23:22:45Z | 2022-08-15T23:22:45Z | 2022-09-10T01:38:38Z |
Backport PR #47905: BUG: Fix read_xml raising syntax error when reading XML with Chinese tags | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 6bd7378e05404..89487bfde94a5 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -26,6 +26,7 @@ Bug fixes
~~~~~~~~~
- The :class:`errors.FutureWarning` raised when passing arguments (other than ``filepat... | Manual Backport #47905
- [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/47925 | 2022-08-02T01:53:04Z | 2022-08-08T09:46:26Z | null | 2022-08-08T09:53:32Z |
DOC: Move whatsnew for indexing regression | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 89487bfde94a5..4fa64a67b61d1 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -27,6 +27,7 @@ Bug fixes
- The :class:`errors.FutureWarning` raised when passing arguments (other than ``filepath_or_buffer... | xref #47921, https://github.com/pandas-dev/pandas/issues/47867#issuecomment-1198412271
Moves the whatsnew
| https://api.github.com/repos/pandas-dev/pandas/pulls/47924 | 2022-08-01T22:22:18Z | 2022-08-03T21:06:45Z | 2022-08-03T21:06:45Z | 2022-08-03T21:40:48Z |
Manual Backport PR #47905 on branch 1.4.x (BUG: Fix read_xml raising syntax error when reading XML with Chinese tags) | diff --git a/.circleci/config.yml b/.circleci/config.yml
index dc357101e79fd..9d1a11026b35d 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -8,7 +8,7 @@ jobs:
environment:
ENV_FILE: ci/deps/circle-38-arm64.yaml
PYTEST_WORKERS: auto
- PATTERN: "not slow and not network and not ... | Manual Backport PR #47905
- [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/47923 | 2022-08-01T22:11:26Z | 2022-08-02T00:29:09Z | null | 2022-08-02T01:24:00Z |
DOC: Add pandas-stubs and potential 2.0 API breaks to 1.5 whatsnew | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 502e37705abfb..2576545e538c4 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -14,6 +14,16 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
+.. _whatsnew_150.enhancements.pandas-stub... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added an entry in the latest `doc/source/whatsnew/v1.5.0.rst` file if fixing a bug or adding a new feature.
* Added note about `pandas-stubs` library
* Added note about potential 2.0 A... | https://api.github.com/repos/pandas-dev/pandas/pulls/47922 | 2022-08-01T22:06:46Z | 2022-08-09T16:34:02Z | 2022-08-09T16:34:02Z | 2022-08-09T16:34:06Z |
Backport PR #45287 on branch 1.4.x (BUG: frame[x].loc[y] inconsistent with frame.at[x, y]) (#45287) | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 6bd7378e05404..2b3223e0ff768 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -26,6 +26,7 @@ Bug fixes
~~~~~~~~~
- The :class:`errors.FutureWarning` raised when passing arguments (other than ``filepat... | Backport PR #45287, see https://github.com/pandas-dev/pandas/issues/47867#issuecomment-1198412271
Lets see if this works | https://api.github.com/repos/pandas-dev/pandas/pulls/47921 | 2022-08-01T21:33:37Z | 2022-08-03T19:16:18Z | 2022-08-03T19:16:18Z | 2022-08-03T19:29:13Z |
DOC/TST: Clarify Series.str.get supports passing hashable label | diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py
index d50daad9a22b1..e7a564c8f3f90 100644
--- a/pandas/core/strings/accessor.py
+++ b/pandas/core/strings/accessor.py
@@ -996,15 +996,15 @@ def rpartition(self, sep=" ", expand=True):
def get(self, i):
"""
- Extract el... | - [ ] closes #47911 (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/47918 | 2022-08-01T20:28:00Z | 2022-08-15T17:08:20Z | 2022-08-15T17:08:20Z | 2022-08-15T17:58:00Z |
PERF: MultiIndex unpickle | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 26b833f78bec6..bdf32c5296cc6 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -259,6 +259,10 @@ def _new_Index(cls, d):
# GH#23752 "labels" kwarg has been replaced with "codes"
d["codes"] ... | - [ ] 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/47916 | 2022-08-01T19:05:55Z | 2022-08-01T21:24:19Z | 2022-08-01T21:24:19Z | 2022-08-01T21:27:28Z |
⬆️ UPGRADE: Autoupdate pre-commit config | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index dbddba57ef21c..2ca5b5c9b896b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -11,7 +11,7 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/jendrikseipp/vulture
- rev: 'v2.4'
+ re... | <!-- START pr-commits -->
<!-- END pr-commits -->
## Base PullRequest
default branch (https://github.com/pandas-dev/pandas/tree/main)
## Command results
<details>
<summary>Details: </summary>
<details>
<summary><em>add path</em></summary>
```Shell
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_... | https://api.github.com/repos/pandas-dev/pandas/pulls/47913 | 2022-08-01T07:06:23Z | 2022-08-14T14:41:24Z | null | 2022-08-17T21:29:02Z |
TYP: pandas.core.generic from pandas-stubs | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index d138ebb9c02a3..3f2d37e6b52a9 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -774,6 +774,7 @@ Other Deprecations
- Deprecated :meth:`Series.rank` returning an empty result when the dtype is non-numeri... | Some annotations from pandas-stubs and some from the underlying io functions. | https://api.github.com/repos/pandas-dev/pandas/pulls/47912 | 2022-08-01T01:40:28Z | 2022-08-01T18:22:20Z | 2022-08-01T18:22:20Z | 2022-09-10T01:38:51Z |
REF move find_stack_level to _libs | diff --git a/pandas/_libs/exceptions.pyx b/pandas/_libs/exceptions.pyx
new file mode 100644
index 0000000000000..03d2c85785c65
--- /dev/null
+++ b/pandas/_libs/exceptions.pyx
@@ -0,0 +1,27 @@
+import inspect
+import os
+
+
+cpdef int find_stack_level():
+ """
+ Find the first place in the stack that is not inside... | Precursor to #47908 , moving `find_stack_level` to `_libs` | https://api.github.com/repos/pandas-dev/pandas/pulls/47909 | 2022-07-31T14:03:12Z | 2022-08-02T15:38:40Z | null | 2022-08-02T15:38:40Z |
Fix stacklevel dayfirst warning | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 97a8f81094a8f..f215595c32c09 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -63,6 +63,7 @@ from pandas._libs.tslibs.util cimport (
get_c_string_buf_and_size,
is_array,
)
+from pandas.ut... | - [ ] closes #47907 (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/47908 | 2022-07-31T12:28:42Z | 2022-08-07T09:54:07Z | null | 2022-08-07T09:54:08Z |
BUG: Fix read_xml raising syntax error when reading XML with Chinese tags | diff --git a/doc/source/whatsnew/v1.4.4.rst b/doc/source/whatsnew/v1.4.4.rst
index 6bd7378e05404..89487bfde94a5 100644
--- a/doc/source/whatsnew/v1.4.4.rst
+++ b/doc/source/whatsnew/v1.4.4.rst
@@ -26,6 +26,7 @@ Bug fixes
~~~~~~~~~
- The :class:`errors.FutureWarning` raised when passing arguments (other than ``filepat... | - [X] closes #47902 (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/47905 | 2022-07-31T00:33:01Z | 2022-08-01T18:28:14Z | 2022-08-01T18:28:14Z | 2022-08-08T09:52:36Z |
ENH: Move warnings to error/__init__.py per GH27656 | diff --git a/doc/source/reference/testing.rst b/doc/source/reference/testing.rst
index 338dd87aa8c62..1144c767942d4 100644
--- a/doc/source/reference/testing.rst
+++ b/doc/source/reference/testing.rst
@@ -27,6 +27,7 @@ Exceptions and warnings
errors.AbstractMethodError
errors.AccessorRegistrationWarning
err... | - [x] xref #27656. this GitHub issue is being done in multiple parts
- [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/developme... | https://api.github.com/repos/pandas-dev/pandas/pulls/47901 | 2022-07-29T20:46:17Z | 2022-08-08T18:49:40Z | 2022-08-08T18:49:40Z | 2022-08-08T18:49:51Z |
BUG: preserve _id in MultiIndex.copy(deep=False) | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index fd6b6ba63d7e0..b4b576df9918e 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -1190,6 +1190,7 @@ def copy(
This could be potentially expensive on large MultiIndex objects.
"""
names =... | - [x] closes #47878 (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/47900 | 2022-07-29T20:33:56Z | 2022-07-29T23:42:28Z | 2022-07-29T23:42:28Z | 2022-07-30T00:49:14Z |
Revert "CI: Pin cython on 32bit build" | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index 8c74a53feed9b..e091160c952f8 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -38,7 +38,7 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
... | Reverts pandas-dev/pandas#47889
Let's see if cython 0.29.32 fixes this | https://api.github.com/repos/pandas-dev/pandas/pulls/47898 | 2022-07-29T14:54:51Z | 2022-08-01T23:09:11Z | 2022-08-01T23:09:11Z | 2022-08-02T08:42:58Z |
ENH: parse 8 or 9 digit delimited dates | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index d138ebb9c02a3..256f22cc41a5e 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -770,6 +770,7 @@ Other Deprecations
- Deprecated the argument ``na_sentinel`` in :func:`factorize`, :meth:`Index.factorize`... | - [x] closes #47880 (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/47894 | 2022-07-29T11:23:56Z | 2022-08-01T18:30:56Z | 2022-08-01T18:30:56Z | 2022-08-01T18:31:02Z |
CLN: Rename "add" to "sum" in groupby | diff --git a/pandas/_libs/groupby.pyi b/pandas/_libs/groupby.pyi
index c7cb9705d7cb9..dfae1bff91ac8 100644
--- a/pandas/_libs/groupby.pyi
+++ b/pandas/_libs/groupby.pyi
@@ -50,7 +50,7 @@ def group_any_all(
val_test: Literal["any", "all"],
skipna: bool,
) -> None: ...
-def group_add(
+def group_sum(
out:... | - [ ] 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/47892 | 2022-07-29T01:23:26Z | 2022-07-29T20:56:43Z | 2022-07-29T20:56:43Z | 2022-07-29T20:57:40Z |
Backport PR #47889 on branch 1.4.x (CI: Pin cython on 32bit build) | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index be894e6a5a63e..483c3b30a03de 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -35,7 +35,7 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
... | Backport PR #47889: CI: Pin cython on 32bit build | https://api.github.com/repos/pandas-dev/pandas/pulls/47891 | 2022-07-28T23:37:55Z | 2022-07-29T18:04:43Z | null | 2022-07-29T18:04:43Z |
CI: Add CodeQL Github Action | diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
new file mode 100644
index 0000000000000..457aa69fb924f
--- /dev/null
+++ b/.github/workflows/codeql.yml
@@ -0,0 +1,31 @@
+name: CodeQL
+on:
+ schedule:
+ # every day at midnight
+ - cron: "0 0 * * *"
+
+concurrency:
+ group: ${{ github.re... | Similar to Ibis' configuration: https://github.com/ibis-project/ibis/blob/master/.github/workflows/codeql-analysis.yml
| https://api.github.com/repos/pandas-dev/pandas/pulls/47890 | 2022-07-28T23:33:39Z | 2022-07-30T00:46:00Z | 2022-07-30T00:46:00Z | 2022-07-30T17:17:29Z |
CI: Pin cython on 32bit build | diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml
index e091160c952f8..8c74a53feed9b 100644
--- a/.github/workflows/32-bit-linux.yml
+++ b/.github/workflows/32-bit-linux.yml
@@ -38,7 +38,7 @@ jobs:
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
... | - [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/47889 | 2022-07-28T22:38:00Z | 2022-07-28T23:37:27Z | 2022-07-28T23:37:27Z | 2022-07-29T00:57:16Z |
REF: Rename exchange -> interchange | diff --git a/doc/source/reference/general_functions.rst b/doc/source/reference/general_functions.rst
index f82d9c9a6482c..474e37a85d857 100644
--- a/doc/source/reference/general_functions.rst
+++ b/doc/source/reference/general_functions.rst
@@ -85,4 +85,4 @@ Importing from other DataFrame libraries
.. autosummary::
... | Recommended by @vnlitvinov
| https://api.github.com/repos/pandas-dev/pandas/pulls/47888 | 2022-07-28T20:54:04Z | 2022-07-30T00:45:46Z | 2022-07-30T00:45:45Z | 2022-07-30T17:17:42Z |
REF: Change _NULL_DESCRIPTION[datetime] to use NaT sentinel | diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py
index 9ef73aa1f40e0..9ba237a94b8fe 100644
--- a/pandas/core/interchange/column.py
+++ b/pandas/core/interchange/column.py
@@ -5,6 +5,7 @@
import numpy as np
from pandas._libs.lib import infer_dtype
+from pandas._libs.tslibs import iN... | - [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).
xref https://github.com/... | https://api.github.com/repos/pandas-dev/pandas/pulls/47887 | 2022-07-28T20:44:22Z | 2022-08-10T18:33:38Z | 2022-08-10T18:33:38Z | 2022-08-10T18:33:42Z |
REF: PandasColumn.describe_categorical returns categores instead of mapping | diff --git a/pandas/core/interchange/column.py b/pandas/core/interchange/column.py
index 9ef73aa1f40e0..2d0aaa6b7c616 100644
--- a/pandas/core/interchange/column.py
+++ b/pandas/core/interchange/column.py
@@ -145,15 +145,18 @@ def describe_categorical(self):
"""
If the dtype is categorical, there are ... | - [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).
xref: https://github.com... | https://api.github.com/repos/pandas-dev/pandas/pulls/47886 | 2022-07-28T20:24:59Z | 2022-08-12T00:04:55Z | 2022-08-12T00:04:55Z | 2022-08-12T00:15:45Z |
DOC: Add numpydoc SS06 validation | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index b42ffc66f7714..113186c746157 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -78,8 +78,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (EX04, GL01, GL02, GL03, GL04, GL05, GL06, GL07, G... | - [x] closes #29254 (Replace xxxx with the Github issue number)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Also removed some functions that were modifying jinija2 docstrings to pass the validation (which we probably shouldn't be doing... | https://api.github.com/repos/pandas-dev/pandas/pulls/47885 | 2022-07-28T16:38:15Z | 2022-07-30T00:44:45Z | 2022-07-30T00:44:45Z | 2022-07-30T17:17:36Z |
BUG: fix Dataframe.join with categorical index leads to unexpected reordering | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index e57166f7a4861..786bdd502fb1b 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1024,6 +1024,7 @@ Reshaping
- Bug in :meth:`DataFrame.pivot_table` with ``sort=False`` results in sorted index (:issue:`17... | - [ ] closes #47812(Replace xxxx with the Github issue number)
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con... | https://api.github.com/repos/pandas-dev/pandas/pulls/47881 | 2022-07-28T01:47:53Z | 2022-07-28T23:05:57Z | 2022-07-28T23:05:57Z | 2022-07-29T00:42:45Z |
DOC: Additions/updates to documentation-GH46359 | diff --git a/pandas/core/ops/docstrings.py b/pandas/core/ops/docstrings.py
index aa469c2e07726..9c3158b3465b7 100644
--- a/pandas/core/ops/docstrings.py
+++ b/pandas/core/ops/docstrings.py
@@ -461,7 +461,7 @@ def make_flex_doc(op_name: str, typ: str) -> str:
Parameters
----------
-other : scalar, sequence, Series, ... | Added examples of DataFrame.mul with dicts.
- [x] closes #46359
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/47877 | 2022-07-27T17:13:43Z | 2022-07-28T17:12:13Z | 2022-07-28T17:12:13Z | 2022-07-28T19:56:30Z |
DOC: fix broken link in getting started tutorials | diff --git a/doc/source/getting_started/intro_tutorials/10_text_data.rst b/doc/source/getting_started/intro_tutorials/10_text_data.rst
index 63db920164ac3..148ac246d7bf8 100644
--- a/doc/source/getting_started/intro_tutorials/10_text_data.rst
+++ b/doc/source/getting_started/intro_tutorials/10_text_data.rst
@@ -179,7 +... | - [ ] 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/47876 | 2022-07-27T13:39:40Z | 2022-07-27T16:52:06Z | 2022-07-27T16:52:06Z | 2022-07-27T16:52:13Z |
DOC: Minor fixes in the IO user guide | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index 7d1aa76613d33..25625dba1080f 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -107,9 +107,10 @@ index_col : int, str, sequence of int / str, or False, optional, default ``None`
string name or column index. I... | - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Removes a comment on unsupported ``engine='python'`` (added in #14295) in the io user guide (text now in sync with API reference); Additional minor formatting fixes | https://api.github.com/repos/pandas-dev/pandas/pulls/47875 | 2022-07-27T12:16:54Z | 2022-07-27T16:50:50Z | 2022-07-27T16:50:50Z | 2022-07-27T16:51:00Z |
DOC: Add sphinx-toggleprompt and sphinx-copybutton | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 2a6ec8947c8d7..ad83e11171599 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -50,23 +50,25 @@
# sphinxext.
extensions = [
- "sphinx.ext.autodoc",
- "sphinx.ext.autosummary",
- "sphinx.ext.doctest",
- "sphinx.ext.extlinks",
- "sphi... | - [x] closes #47785 (Replace xxxx with the Github issue number)
- [x] closes #26790 (Replace xxxx with the Github issue number)
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
Also sorts the sphinx extensions alphabetically.
<img wid... | https://api.github.com/repos/pandas-dev/pandas/pulls/47870 | 2022-07-27T00:26:49Z | 2022-07-28T18:12:57Z | 2022-07-28T18:12:57Z | 2022-07-28T18:23:44Z |
DOC: Update link from VirtusLab to pandas-dev repo | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index a847624c55eba..166162a4763bf 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -591,12 +591,12 @@ Library Accessor Classes Description
Development tools
-----------------
-`pandas... | - [ ] 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/47869 | 2022-07-27T00:02:52Z | 2022-07-27T16:53:23Z | 2022-07-27T16:53:23Z | 2022-07-27T16:53:29Z |
ENH: Allow read_csv(engine=pyarrow) to return ArrowExtensionArray-backed columns | diff --git a/pandas/io/parsers/arrow_parser_wrapper.py b/pandas/io/parsers/arrow_parser_wrapper.py
index 21e8bb5f9e89f..1b886f9ff5e79 100644
--- a/pandas/io/parsers/arrow_parser_wrapper.py
+++ b/pandas/io/parsers/arrow_parser_wrapper.py
@@ -5,6 +5,7 @@
from pandas.core.dtypes.inference import is_integer
+from pand... | - [ ] [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/47866 | 2022-07-26T22:31:46Z | 2022-07-29T00:56:17Z | null | 2022-07-29T00:56:20Z |
DOC: Adds Hamilton as a development tool | diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md
index 1d77c596c1eb0..89d243555a358 100644
--- a/web/pandas/community/ecosystem.md
+++ b/web/pandas/community/ecosystem.md
@@ -400,3 +400,20 @@ Learn more by reading through these issues [14468](https://github.com/pandas-dev
[26766](http... | Hamilton is a paradigm that helps one manage a pandas code base in an opinionated manner.
We have had great success with it at Stitch Fix, and it's got a growing open source
following. I think it helps one to write pandas in a way that gives
confidence if you want to run Pandas in production jobs.
- [x] N/A: cl... | https://api.github.com/repos/pandas-dev/pandas/pulls/47865 | 2022-07-26T18:42:05Z | 2022-07-27T16:55:39Z | 2022-07-27T16:55:39Z | 2022-07-29T20:24:39Z |
ENH: `Styler.relabel_index` for directly specifying display of index labels | diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst
index 77e1b0abae0c4..5144f12fa373a 100644
--- a/doc/source/reference/style.rst
+++ b/doc/source/reference/style.rst
@@ -41,6 +41,7 @@ Style application
Styler.applymap_index
Styler.format
Styler.format_index
+ Styler.relabel_inde... |
<img width="645" alt="Screenshot 2022-07-26 at 18 10 00" src="https://user-images.githubusercontent.com/24256554/181057085-676c1987-25f7-44b4-9f63-5f7479354e5e.png">
<img width="627" alt="Screenshot 2022-07-26 at 18 10 13" src="https://user-images.githubusercontent.com/24256554/181057115-a143111d-b51d-472b-93f7-5113... | https://api.github.com/repos/pandas-dev/pandas/pulls/47864 | 2022-07-26T16:13:38Z | 2022-08-02T20:39:25Z | 2022-08-02T20:39:24Z | 2022-08-02T20:45:49Z |
Added improvements in to_datetime Error reporting message - incorrect field today/now shown in error | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index b3e51191e8efa..fe4078f611f7e 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -799,6 +799,7 @@ cdef _array_to_datetime_object(
# We return an object array and only attempt to parse:
# 1) NaT or NaT-like values
# 2) date... | - closes #47495
Splitting changes from #47597, This PR aims to close the bug #47495
- Changes description
- For issue #47495- made change in `pandas/_libs/tslib.pyx` to accept "now" and "today" values. These values are accepted in other areas of parsing (` _parse_today_now` in `pandas/_libs/tslib.pyx` )
... | https://api.github.com/repos/pandas-dev/pandas/pulls/47860 | 2022-07-26T09:59:40Z | 2022-08-15T17:07:10Z | 2022-08-15T17:07:10Z | 2022-08-15T17:24:50Z |
DOC: correct links of Plotly | diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst
index 256c3ee36e80c..a847624c55eba 100644
--- a/doc/source/ecosystem.rst
+++ b/doc/source/ecosystem.rst
@@ -161,10 +161,10 @@ A good implementation for Python users is `has2k1/plotnine <https://github.com/h
`IPython Vega <https://github.com/vega/ipyvega>... | https://poltly.com/ -> https://plotly.com/
- [x] closes #47857
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/47858 | 2022-07-26T07:41:16Z | 2022-07-26T18:06:07Z | 2022-07-26T18:06:07Z | 2022-07-27T01:11:57Z |
DOC/ENH: Add documentation and whatsnew entry for ArrowDtype and ArrowExtensionArray | diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst
index 1b8e0fdb856b5..6d09e10f284af 100644
--- a/doc/source/reference/arrays.rst
+++ b/doc/source/reference/arrays.rst
@@ -19,19 +19,20 @@ objects contained with a :class:`Index`, :class:`Series`, or
For some data types, pandas extends NumPy... | - [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/47854 | 2022-07-26T01:16:18Z | 2022-08-18T20:13:58Z | 2022-08-18T20:13:58Z | 2022-09-08T18:41:46Z |
CLN/DOC: Remove sphinx referencing the wiki | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 2a6ec8947c8d7..81ff14d33758a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -453,7 +453,6 @@
# extlinks alias
extlinks = {
"issue": ("https://github.com/pandas-dev/pandas/issues/%s", "GH"),
- "wiki": ("https://github.com/pandas-dev/pandas... | - [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).
Since the wiki is disabl... | https://api.github.com/repos/pandas-dev/pandas/pulls/47853 | 2022-07-25T21:56:05Z | 2022-07-28T17:33:54Z | 2022-07-28T17:33:54Z | 2022-07-28T17:47:48Z |
DEPR: args and kwargs in rolling, expanding, and ewm ops | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7f07187e34c78..8ba17097adbbd 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -773,6 +773,7 @@ Other Deprecations
- Deprecated :class:`Series` and :class:`Resampler` reducers (e.g. ``min``, ``max``, ``... | - [x] closes #47836 (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/47851 | 2022-07-25T21:06:17Z | 2022-07-29T01:33:20Z | 2022-07-29T01:33:20Z | 2022-07-29T02:53:54Z |
TYP/CLN: small cleanups from flake-pyi | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f8cb869e6ed89..f65c42dab1852 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -230,7 +230,7 @@ repos:
language: python
additional_dependencies:
- flake8==4.0.1
- - flake8-pyi==22.5.1
+ - fl... | Most of these changes are:
> Y041 Use "float" instead of "int | float" (see "The numeric tower" in PEP 484)
flake8-pyi would probably find similar issues in the in-line annotations but flake8-pyi does at the moment only support pyi files. | https://api.github.com/repos/pandas-dev/pandas/pulls/47850 | 2022-07-25T20:42:55Z | 2022-07-26T22:34:01Z | 2022-07-26T22:34:01Z | 2022-09-28T20:57:30Z |
Added improvements in to_datetime Error reporting message - Outofbounds error message | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 9c7f35d240f96..b3e51191e8efa 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -652,7 +652,8 @@ cpdef array_to_datetime(
else:
raise TypeError(f"{type(val)} is not convertible to datetime")... | Splitting changes from #47597, This PR aims to close the bug #46509
- Changes description
- For issue #46509 - added more details in OutOfBoundsDatetime exception about field and its position causing the issue in `pandas/_libs/tslib.pyx` in `array_to_datetime`
- Updated relevant testcases
- Example of... | https://api.github.com/repos/pandas-dev/pandas/pulls/47849 | 2022-07-25T19:22:07Z | 2022-08-01T18:50:15Z | 2022-08-01T18:50:15Z | 2022-08-31T18:22:07Z |
Fix styling of `DataFrame` for columns with boolean label | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7f07187e34c78..cc44f43ba8acf 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1042,6 +1042,7 @@ Styler
- Bug in :meth:`Styler.set_sticky` leading to white text on white background in dark mode (:issue... | - [x] closes #47838
- [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/47848 | 2022-07-25T15:50:08Z | 2022-08-01T18:51:06Z | 2022-08-01T18:51:06Z | 2022-08-01T19:18:19Z |
DOC: Add spaces before `:` to cancel bold | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index d82cc37b90ad4..1892069f78edd 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -206,12 +206,11 @@ def eval(
The engine used to evaluate the expression. Supported engines are
- - N... | - [x] closes #47735
- [ ] [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/47847 | 2022-07-25T12:40:47Z | 2022-07-25T16:35:29Z | 2022-07-25T16:35:29Z | 2022-07-26T03:00:01Z |
DOC: Clarify sorting and order of categoricals and fix typo | diff --git a/doc/source/user_guide/categorical.rst b/doc/source/user_guide/categorical.rst
index b5cb1d83a9f52..bea3cd48098bd 100644
--- a/doc/source/user_guide/categorical.rst
+++ b/doc/source/user_guide/categorical.rst
@@ -437,15 +437,19 @@ Sorting and order
.. _categorical.sort:
If categorical data is ordered (`... | Without the addition in the text it‘s unclear, what `s.sort_values(inplace=True)`
should demonstrate. Show some meaningful output now. Also, when using `astype` to
contrast ordered/unordered behavior, I think it‘s clearer to use the existing,
unordered Series than to create a new one.
Fix minor typo in categorica... | https://api.github.com/repos/pandas-dev/pandas/pulls/47846 | 2022-07-25T10:28:54Z | 2023-02-22T13:44:51Z | null | 2023-02-22T13:44:52Z |
Faster method of normalising dictionary, allows user to select columns to ignore | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7f07187e34c78..d7d9d68774746 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -14,6 +14,95 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
+.. _whatsnew_150.enhancements.ignore_cols... | - [ ] Adds new feature and functionality to _normalize() function; ignores user specifed columns and returns the ignored columns in multiple forms (dictionary, tuple, list)
- [ ] closes https://github.com/pandas-dev/pandas/issues/47852
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/developme... | https://api.github.com/repos/pandas-dev/pandas/pulls/47843 | 2022-07-24T22:57:59Z | 2022-08-08T23:44:22Z | null | 2022-08-08T23:44:23Z |
Adding documentation of main function to docs file | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 7f07187e34c78..1ae519c397f49 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -13,9 +13,103 @@ including other versions of pandas.
Enhancements
~~~~~~~~~~~~
+.. _whatsnew_150.enhancements.ignore_col... | - [ ] 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/47842 | 2022-07-24T22:57:24Z | 2022-07-25T16:40:08Z | null | 2022-07-25T16:40:09Z |
BUG: fix bug where appending unordered ``CategoricalIndex`` variables overrides index | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index a1a2149da7cf6..5a95883e12fd1 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -407,7 +407,6 @@ upon serialization. (Related issue :issue:`12997`)
# Roundtripping now works
pd.read_json(a.to_js... | - [x] closes #24845
- [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/47841 | 2022-07-24T22:42:35Z | 2022-08-16T18:38:20Z | 2022-08-16T18:38:20Z | 2022-08-16T18:38:55Z |
BUG Fixing columns dropped from multi index in group by transform GH4… | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index d138ebb9c02a3..7fc8b16bbed9a 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1010,6 +1010,7 @@ Groupby/resample/rolling
- Bug in :meth:`DataFrame.resample` reduction methods when used with ``on`` wou... | …7787
- [x] closes #47787
- [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-comm... | https://api.github.com/repos/pandas-dev/pandas/pulls/47840 | 2022-07-24T21:00:05Z | 2022-08-17T01:38:30Z | 2022-08-17T01:38:30Z | 2022-08-17T20:12:21Z |
Added a resource | diff --git a/README.md b/README.md
index aaf63ead9c416..42604fd6602dc 100644
--- a/README.md
+++ b/README.md
@@ -151,6 +151,7 @@ has been under active development since then.
For usage questions, the best place to go to is [StackOverflow](https://stackoverflow.com/questions/tagged/pandas).
Further, general question... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/47839 | 2022-07-24T18:23:42Z | 2022-07-24T18:59:06Z | null | 2022-07-24T18:59:07Z |
DEPR: inplace keyword for Categorical.set_ordered, setting .categories directly | diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst
index 0adb937de2b8b..c767fb1ebef7f 100644
--- a/doc/source/user_guide/10min.rst
+++ b/doc/source/user_guide/10min.rst
@@ -680,12 +680,12 @@ Converting the raw grades to a categorical data type:
df["grade"] = df["raw_grade"].astype("cate... | - [ ] 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/47834 | 2022-07-23T23:34:41Z | 2022-08-08T23:45:31Z | 2022-08-08T23:45:31Z | 2022-08-09T02:02:53Z |
DOC: added type annotations and tests to check for multiple warning match | diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py
index 1a8fe71ae3728..e9df85eae550a 100644
--- a/pandas/_testing/_warnings.py
+++ b/pandas/_testing/_warnings.py
@@ -17,7 +17,7 @@
@contextmanager
def assert_produces_warning(
- expected_warning: type[Warning] | bool | None = Warning,
+ e... | - [x] closes #47829
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
| https://api.github.com/repos/pandas-dev/pandas/pulls/47833 | 2022-07-23T21:16:32Z | 2022-08-03T20:30:00Z | 2022-08-03T20:30:00Z | 2022-08-03T20:30:01Z |
TYP: pandas/io annotations from pandas-stubs | diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py
index 08ee5650e97a6..e3f7e9d454383 100644
--- a/pandas/errors/__init__.py
+++ b/pandas/errors/__init__.py
@@ -189,7 +189,7 @@ class AbstractMethodError(NotImplementedError):
while keeping compatibility with Python 2 and Python 3.
"""
- de... | Copied annotations from pandas-stubs when pandas has no annotations | https://api.github.com/repos/pandas-dev/pandas/pulls/47831 | 2022-07-23T20:46:32Z | 2022-07-25T16:43:49Z | 2022-07-25T16:43:49Z | 2022-09-10T01:38:57Z |
WIP warn if parsing with du_parse | diff --git a/doc/source/user_guide/timedeltas.rst b/doc/source/user_guide/timedeltas.rst
index 180de1df53f9e..b0e0d72d05f88 100644
--- a/doc/source/user_guide/timedeltas.rst
+++ b/doc/source/user_guide/timedeltas.rst
@@ -424,6 +424,7 @@ Similarly to other of the datetime-like indices, ``DatetimeIndex`` and ``PeriodI
S... | - [ ] closes #12585 (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/47828 | 2022-07-23T08:31:16Z | 2022-09-16T13:12:37Z | null | 2022-09-18T13:54:12Z |
TYP: pandas/plotting annotations from pandas-stubs | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 92f3b3ce83297..f8cb869e6ed89 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -93,7 +93,7 @@ repos:
types: [python]
stages: [manual]
additional_dependencies: &pyright_dependencies
- - pyright@1.1.... | Copied annotations from pandas-stubs when pandas has no annotations | https://api.github.com/repos/pandas-dev/pandas/pulls/47827 | 2022-07-23T01:16:08Z | 2022-07-25T16:45:09Z | 2022-07-25T16:45:09Z | 2022-09-10T01:38:55Z |
REF: de-duplicate PeriodArray arithmetic code | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 2d676f94c6a64..12352c4490f29 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -14,7 +14,10 @@
import numpy as np
-from pandas._libs import algos as libalgos
+from pandas._libs import (
+ algos as libalg... | and improved exception message
- [ ] 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.o... | https://api.github.com/repos/pandas-dev/pandas/pulls/47826 | 2022-07-22T23:31:55Z | 2022-07-25T16:49:16Z | 2022-07-25T16:49:16Z | 2022-07-25T17:34:42Z |
Specify that both ``by`` and ``level`` should not be specified in ``groupby`` - GH40378 | diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst
index 34244a8edcbfa..5d8ef7ce02097 100644
--- a/doc/source/user_guide/groupby.rst
+++ b/doc/source/user_guide/groupby.rst
@@ -345,17 +345,6 @@ Index level names may be supplied as keys.
More on the ``sum`` function and aggregation lat... | - [x] closes #40378
- [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/47825 | 2022-07-22T19:53:23Z | 2022-08-08T18:52:13Z | 2022-08-08T18:52:13Z | 2022-08-08T18:52:19Z |
Manual Backport PR #47803 on branch 1.4.x (TST/CI: xfail test_round_sanity for 32 bit) | diff --git a/pandas/tests/scalar/timedelta/test_timedelta.py b/pandas/tests/scalar/timedelta/test_timedelta.py
index 7a32c932aee77..bedc09959520a 100644
--- a/pandas/tests/scalar/timedelta/test_timedelta.py
+++ b/pandas/tests/scalar/timedelta/test_timedelta.py
@@ -13,6 +13,7 @@
NaT,
iNaT,
)
+from pandas.comp... | Manual Backport PR #47803
- [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/47824 | 2022-07-22T19:43:21Z | 2022-07-23T11:07:06Z | 2022-07-23T11:07:06Z | 2022-07-23T18:13:06Z |
Fixed metadata propagation in Dataframe.idxmax and Dataframe.idxmin #… | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index e62f9fa8076d8..47203fbf315e5 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -11010,7 +11010,8 @@ def idxmin(
index = data._get_axis(axis)
result = [index[i] if i >= 0 else np.nan for i in indices]
- return data._c... | …28283
- [x] contributes to #28283 calling .__finalize__ on Dataframe.idxmax, idxmin
| https://api.github.com/repos/pandas-dev/pandas/pulls/47821 | 2022-07-22T15:56:37Z | 2022-07-25T16:50:52Z | 2022-07-25T16:50:52Z | 2022-07-25T16:50:59Z |
ENH: Add ArrowDype and .array.ArrowExtensionArray to top level | diff --git a/pandas/__init__.py b/pandas/__init__.py
index eb5ce71141f46..5016bde000c3b 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -47,6 +47,7 @@
from pandas.core.api import (
# dtype
+ ArrowDtype,
Int8Dtype,
Int16Dtype,
Int32Dtype,
@@ -308,6 +309,7 @@ def __getattr__(name):
... | - [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).
Moved `ArrowIntervalType... | https://api.github.com/repos/pandas-dev/pandas/pulls/47818 | 2022-07-22T03:57:29Z | 2022-08-16T18:28:04Z | 2022-08-16T18:28:04Z | 2022-08-16T18:28:08Z |
CI/TYP: run stubtest | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index f65c42dab1852..e4ab74091d6b6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -85,9 +85,9 @@ repos:
- repo: local
hooks:
- id: pyright
+ # note: assumes python env is setup and activated
name: pyrigh... | Stubtest enforces that pyi files do not get out of sync with the implementation.
stubtest and mypy seems to have a slight discrepancy (had to change annotations so that they both error in the same cases).
stubtest needs pandas dev to be installed. This might not be something people want to do locally: if pandas d... | https://api.github.com/repos/pandas-dev/pandas/pulls/47817 | 2022-07-21T14:49:37Z | 2022-08-01T17:11:29Z | 2022-08-01T17:11:29Z | 2022-09-10T01:38:53Z |
TST: Addition test for get_indexer for interval index | diff --git a/pandas/tests/indexes/interval/test_indexing.py b/pandas/tests/indexes/interval/test_indexing.py
index e05cb73cfe446..74d17b31aff27 100644
--- a/pandas/tests/indexes/interval/test_indexing.py
+++ b/pandas/tests/indexes/interval/test_indexing.py
@@ -15,7 +15,11 @@
NaT,
Series,
Timedelta,
+ ... | - [x] closes #30178
- [x] [Tests added and passed]
- [x] All [code checks passed]
| https://api.github.com/repos/pandas-dev/pandas/pulls/47816 | 2022-07-21T14:14:21Z | 2022-07-26T16:38:56Z | 2022-07-26T16:38:56Z | 2022-07-26T16:39:11Z |
ENH/TST: Add argsort/min/max for ArrowExtensionArray | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index a882d3a955469..841275e54e3d6 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -22,8 +22,12 @@
pa_version_under4p0,
pa_version_under5p0,
pa_version_under6p0,
+ pa_version_un... | - [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/47811 | 2022-07-21T01:08:35Z | 2022-07-28T17:37:37Z | 2022-07-28T17:37:37Z | 2022-07-28T17:57:45Z |
BUG: fix SparseArray.unique IndexError and _first_fill_value_loc algo | diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst
index 090fea57872c5..acd7cec480c39 100644
--- a/doc/source/whatsnew/v1.5.0.rst
+++ b/doc/source/whatsnew/v1.5.0.rst
@@ -1026,6 +1026,7 @@ Reshaping
Sparse
^^^^^^
- Bug in :meth:`Series.where` and :meth:`DataFrame.where` with ``SparseDtype``... | - [x] closes #47809
- [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).
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/47810 | 2022-07-21T00:50:35Z | 2022-07-22T17:32:20Z | 2022-07-22T17:32:20Z | 2022-07-25T04:06:55Z |
DOC: add pivot_table note to dropna doc | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index ead4ea744c647..39bbfc75b0376 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -8564,7 +8564,9 @@ def pivot(self, index=None, columns=None, values=None) -> DataFrame:
margins : bool, default False
Add all row / columns (e... | - [ ] closes #47447
- [ ] [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/47808 | 2022-07-21T00:04:01Z | 2022-08-01T19:24:30Z | 2022-08-01T19:24:30Z | 2022-08-01T19:24:37Z |
REF: re-use convert_reso | diff --git a/pandas/_libs/tslibs/np_datetime.pxd b/pandas/_libs/tslibs/np_datetime.pxd
index bfccedba9431e..c1936e34cf8d0 100644
--- a/pandas/_libs/tslibs/np_datetime.pxd
+++ b/pandas/_libs/tslibs/np_datetime.pxd
@@ -109,3 +109,10 @@ cdef bint cmp_dtstructs(npy_datetimestruct* left, npy_datetimestruct* right, int
cdef... | - [ ] 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/47807 | 2022-07-20T21:58:23Z | 2022-07-21T17:05:38Z | 2022-07-21T17:05:38Z | 2022-07-21T17:21:15Z |
CI/TYP: bump mypy and pyright | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e4ab74091d6b6..dbddba57ef21c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -93,7 +93,7 @@ repos:
types: [python]
stages: [manual]
additional_dependencies: &pyright_dependencies
- - pyright@1.1.... | No type changes this time (but there will be a few when numba allows us to use numpy 1.23). | https://api.github.com/repos/pandas-dev/pandas/pulls/47806 | 2022-07-20T21:33:36Z | 2022-08-01T19:27:16Z | 2022-08-01T19:27:16Z | 2022-09-10T01:38:50Z |
ENH/TST: Add isin, _hasna for ArrowExtensionArray | diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py
index 8957ea493e9ad..ee8192cfca1ec 100644
--- a/pandas/core/arrays/arrow/array.py
+++ b/pandas/core/arrays/arrow/array.py
@@ -18,6 +18,7 @@
from pandas.compat import (
pa_version_under1p01,
pa_version_under2p0,
+ pa_version... | - [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/47805 | 2022-07-20T20:33:48Z | 2022-07-22T01:26:18Z | 2022-07-22T01:26:18Z | 2022-07-22T01:40:20Z |
TYP: Column.null_count is a Python int | diff --git a/pandas/core/exchange/column.py b/pandas/core/exchange/column.py
index 538c1d061ef22..c2a1cfe766b22 100644
--- a/pandas/core/exchange/column.py
+++ b/pandas/core/exchange/column.py
@@ -96,7 +96,7 @@ def offset(self) -> int:
return 0
@cache_readonly
- def dtype(self):
+ def dtype(self) ... | - [x] closes #47789 (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/47804 | 2022-07-20T17:12:56Z | 2022-07-21T17:07:43Z | 2022-07-21T17:07:43Z | 2022-07-21T17:07:46Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.