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 |
|---|---|---|---|---|---|---|---|
DOC: Update read_csv docs to reflect behaviour with `parse_dates` | diff --git a/pandas/io/parsers/readers.py b/pandas/io/parsers/readers.py
index e826aad478059..acf35ebd6afe5 100644
--- a/pandas/io/parsers/readers.py
+++ b/pandas/io/parsers/readers.py
@@ -238,7 +238,8 @@
default False
The behavior is as follows:
- * ``bool``. If ``True`` -> try parsing the index.
+ * ``b... | - [x] closes #55158
- [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/55176 | 2023-09-17T04:10:53Z | 2023-09-18T16:24:43Z | 2023-09-18T16:24:43Z | 2023-09-18T16:25:29Z |
DEPS: Bump to 1.26 proper for Python 3.12 | diff --git a/pyproject.toml b/pyproject.toml
index 7807a6cc6368d..4e1c77413efda 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -10,8 +10,7 @@ requires = [
# we don't want to force users to compile with 1.25 though
# (Ideally, in the future, though, oldest-supported-numpy can be dropped when our min numpy... | - [ ] 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/55175 | 2023-09-16T20:50:00Z | 2023-09-19T15:33:35Z | 2023-09-19T15:33:35Z | 2023-09-19T18:26:40Z |
BUG: .rolling() returns incorrect values when ts index is not nano seconds | diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst
index 145c364728b40..418f3abe30647 100644
--- a/doc/source/whatsnew/v2.1.2.rst
+++ b/doc/source/whatsnew/v2.1.2.rst
@@ -14,6 +14,7 @@ including other versions of pandas.
Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed regression in :meth:`DataF... | - [X] closes #55106
- [X] closes #55026
- [X] [Tests added and passed]
The bug is referred to and fixed inside the code. It needs to be generalised. @jorisvandenbossche we need to have the first feedback if we can generalise the data type with some utils or more generally. Done during the in-person sprint check. | https://api.github.com/repos/pandas-dev/pandas/pulls/55173 | 2023-09-16T16:33:12Z | 2023-10-26T02:14:58Z | 2023-10-26T02:14:58Z | 2023-10-26T02:15:15Z |
DOC: complete parameter descriptions for DataFrame.insert's docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8fcb91c846826..ce07210e735a4 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4915,7 +4915,9 @@ def insert(
column : str, number, or hashable object
Label of the inserted column.
value : Scalar, Series, or arra... | issue: https://github.com/jorisvandenbossche/pydata-amsterdam-pandas-sprint/issues/1
- bullet point item #5: "complete the parameter descriptions"
- [x] closes https://github.com/jorisvandenbossche/pydata-amsterdam-pandas-sprint/issues/1, bullet point 5
- [x] All [code checks passed](https://pandas.pydata.org/pand... | https://api.github.com/repos/pandas-dev/pandas/pulls/55172 | 2023-09-16T16:07:39Z | 2023-09-18T16:26:39Z | 2023-09-18T16:26:39Z | 2023-09-18T16:26:46Z |
ENH: set __module__ for objects in pandas pd.DataFrame API | diff --git a/doc/source/development/contributing_docstring.rst b/doc/source/development/contributing_docstring.rst
index e2881c1087e60..0b8c1e16dce0e 100644
--- a/doc/source/development/contributing_docstring.rst
+++ b/doc/source/development/contributing_docstring.rst
@@ -940,7 +940,7 @@ Finally, docstrings can also be... | - [x] part of #55178
- [ ] [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/55171 | 2023-09-16T15:46:31Z | 2024-03-23T12:25:15Z | 2024-03-23T12:25:15Z | 2024-03-23T12:25:15Z |
DOC: add alternative to docstring of deprecated Series.bool() method | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index bbaa6d3faeb05..b0063ca659a38 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -1526,7 +1526,8 @@ def bool(self) -> bool_t:
.. deprecated:: 2.1.0
- bool is deprecated and will be removed in future version of pand... | Fixed! Docs adapted.
https://pandas.pydata.org/docs/dev/reference/api/pandas.Series.bool.html is deprecated; it would be nice to explain a potential alternative.
| https://api.github.com/repos/pandas-dev/pandas/pulls/55168 | 2023-09-16T15:12:48Z | 2023-09-19T15:50:04Z | 2023-09-19T15:50:04Z | 2023-09-19T15:50:12Z |
DOC: remove duplicated sentence in return secion of pandas.DataFrame.agg /asof docstrings | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 5c303e2a73bd7..bbaa6d3faeb05 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8323,8 +8323,6 @@ def asof(self, where, subset=None):
* DataFrame : when `self` is a DataFrame and `where` is an
array-like
-... | - [ ] 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/55165 | 2023-09-16T14:12:31Z | 2023-09-17T12:48:09Z | 2023-09-17T12:48:09Z | 2023-09-17T12:48:09Z |
DOC: fix see also links in pandas.DataFrame.agg docstring | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 8fcb91c846826..124c21839afe7 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -9829,11 +9829,11 @@ def _gotitem(
--------
DataFrame.apply : Perform any type of operations.
DataFrame.transform : Perform transformation type opera... | - [ ] 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/55162 | 2023-09-16T13:50:36Z | 2023-09-17T12:45:26Z | 2023-09-17T12:45:26Z | 2023-09-17T12:45:26Z |
Backport PR #55159 on branch 2.1.x (DOCS: temporary pin pydata-sphinx-theme to 0.13) | diff --git a/environment.yml b/environment.yml
index d194b11df7195..447abd22e29b4 100644
--- a/environment.yml
+++ b/environment.yml
@@ -84,7 +84,7 @@ dependencies:
- google-auth
- natsort # DataFrame.sort_values doctest
- numpydoc
- - pydata-sphinx-theme
+ - pydata-sphinx-theme=0.13
- pytest-cython # d... | Backport PR #55159: DOCS: temporary pin pydata-sphinx-theme to 0.13 | https://api.github.com/repos/pandas-dev/pandas/pulls/55161 | 2023-09-16T13:47:39Z | 2023-09-16T16:47:14Z | 2023-09-16T16:47:14Z | 2023-09-16T16:47:15Z |
DOCS: temporary pin pydata-sphinx-theme to 0.13 | diff --git a/environment.yml b/environment.yml
index 8103ee29c84a7..5caa57ef37ee8 100644
--- a/environment.yml
+++ b/environment.yml
@@ -85,7 +85,7 @@ dependencies:
- google-auth
- natsort # DataFrame.sort_values doctest
- numpydoc
- - pydata-sphinx-theme
+ - pydata-sphinx-theme=0.13
- pytest-cython # d... |
The pydata-sphinx-theme has a new release, and that causes some issues with the top bar:

So we can maybe temporarily pin the theme until that is fixed | https://api.github.com/repos/pandas-dev/pandas/pulls/55159 | 2023-09-16T09:26:33Z | 2023-09-16T13:46:33Z | 2023-09-16T13:46:33Z | 2023-09-16T20:34:45Z |
CLN: de-duplicate code in _matplotlib.converter | diff --git a/pandas/_libs/tslibs/dtypes.pyx b/pandas/_libs/tslibs/dtypes.pyx
index bafde9f3b237b..f0f73d242cdf0 100644
--- a/pandas/_libs/tslibs/dtypes.pyx
+++ b/pandas/_libs/tslibs/dtypes.pyx
@@ -460,7 +460,6 @@ cdef NPY_DATETIMEUNIT freq_group_code_to_npy_unit(int freq) noexcept nogil:
return NPY_DATETIMEUNI... | - [ ] 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/55155 | 2023-09-16T02:30:56Z | 2023-09-18T16:32:27Z | 2023-09-18T16:32:27Z | 2023-09-18T20:41:46Z |
Backport PR #54784 on branch 2.1.x (CI: Unpin Cython) | diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml
index 6410f2edd6175..1445e5e822017 100644
--- a/.github/workflows/unit-tests.yml
+++ b/.github/workflows/unit-tests.yml
@@ -233,8 +233,8 @@ jobs:
run: |
/opt/python/cp311-cp311/bin/python -m venv ~/virtualenvs/pandas-de... | Backport PR #54784: CI: Unpin Cython | https://api.github.com/repos/pandas-dev/pandas/pulls/55154 | 2023-09-16T02:04:25Z | 2023-09-16T13:46:48Z | 2023-09-16T13:46:48Z | 2023-09-16T13:46:49Z |
Remove undefined behavior from npy_datetimestruct_to_datetime | diff --git a/asv_bench/benchmarks/tslibs/period.py b/asv_bench/benchmarks/tslibs/period.py
index 67f3b7736018d..af3bfac6d3d01 100644
--- a/asv_bench/benchmarks/tslibs/period.py
+++ b/asv_bench/benchmarks/tslibs/period.py
@@ -151,7 +151,11 @@ def setup(self, size, freq, tz):
# tzlocal is cumbersomely slow, ... | This helps the readability of things as is, but also helps us better implement bounds checking in a later PR to avoid overflow | https://api.github.com/repos/pandas-dev/pandas/pulls/55151 | 2023-09-15T20:33:33Z | 2023-11-15T18:20:46Z | 2023-11-15T18:20:46Z | 2023-11-15T23:02:22Z |
Replace cpplint with clang-format | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c911edfa03670..a9a9baac6069a 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -70,19 +70,6 @@ repos:
- id: fix-encoding-pragma
args: [--remove]
- id: trailing-whitespace
-- repo: https://github.com/cpplint... | cpplint isn't seemingly well maintained and focuses on C++, which we aren't using. I think clang-format is a much better tool for our formatting | https://api.github.com/repos/pandas-dev/pandas/pulls/55150 | 2023-09-15T19:15:24Z | 2023-10-22T19:35:23Z | 2023-10-22T19:35:23Z | 2023-10-22T19:35:31Z |
docs: add explanation about `freq` units in `Timedelta.round()` | diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx
index 2d9fe93c397cb..2178e972b4d08 100644
--- a/pandas/_libs/tslibs/timedeltas.pyx
+++ b/pandas/_libs/tslibs/timedeltas.pyx
@@ -1942,6 +1942,7 @@ class Timedelta(_Timedelta):
----------
freq : str
Frequen... | - ~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/contr... | https://api.github.com/repos/pandas-dev/pandas/pulls/55149 | 2023-09-15T18:30:09Z | 2023-09-18T16:37:34Z | 2023-09-18T16:37:34Z | 2023-09-18T17:15:05Z |
DEPR: deprecate exposing blocks in core.internals | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 579d3a20506f3..6ce33fd1f572c 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -270,6 +270,7 @@ Other Deprecations
- Deprecated :func:`read_gbq` and :meth:`DataFrame.to_gbq`. Use ``pandas_gbq.read_gbq``... | Motivation: tried to clean up the blocks code bc DatetimeTZBlock and DatetimeLikeBlock are no longer really needed. Found that we can't do that bc DatetimeTZBlock is exposed in the pseudo-public API. That got me looking at `internals.__init__`, where comments suggest that we are importing the block subclasses for io.... | https://api.github.com/repos/pandas-dev/pandas/pulls/55139 | 2023-09-14T22:53:54Z | 2023-11-20T21:15:40Z | 2023-11-20T21:15:40Z | 2023-11-20T21:48:49Z |
BUG: Silence `Period[B]` warnings in plotting code | diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst
index 1a25b848e0f84..9119a0bc90949 100644
--- a/doc/source/whatsnew/v2.1.2.rst
+++ b/doc/source/whatsnew/v2.1.2.rst
@@ -24,6 +24,7 @@ Bug fixes
~~~~~~~~~
- Fixed bug in :meth:`DataFrame.resample` not respecting ``closed`` and ``label`` argum... | - [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 [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/55138 | 2023-09-14T15:52:50Z | 2023-10-03T15:46:01Z | 2023-10-03T15:46:01Z | 2023-10-04T16:34:54Z |
PERF: groupby aggregations on pyarrow timestamp and duration types | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 54e855f61905a..03b69b53836ad 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -177,6 +177,7 @@ Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
- Performance improvement in :func:`concat` with ``axis... | - [x] closes #55031
- [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/55131 | 2023-09-13T22:04:06Z | 2023-09-15T20:06:25Z | 2023-09-15T20:06:24Z | 2023-11-16T12:56:53Z |
TYP: Correct type annotation for to_dict. | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 0e2a0881f0122..f18c67fcb0c90 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -4,6 +4,7 @@
Hashable,
Iterator,
Mapping,
+ MutableMapping,
Sequence,
)
from datetime import (
@@ -103,6 +104,7 @@
TypeGuard: Any = None
Hashab... | The `into` argument of DataFrame.to_dict and Series.to_dict can be either a class or instance of a class of dict; this is covariant - subclasses of dict can also be used. The argument was annotated as `type[dict]` though, so type checkers marked passing initialized objects (required for collections.defaultdict) as an i... | https://api.github.com/repos/pandas-dev/pandas/pulls/55130 | 2023-09-13T21:25:06Z | 2023-10-02T16:31:17Z | 2023-10-02T16:31:17Z | 2023-10-02T16:31:24Z |
Use pandasSQL transactions in sql test suite to avoid engine deadlocks | diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py
index bbdb22955297e..1abe0ad55a864 100644
--- a/pandas/tests/io/test_sql.py
+++ b/pandas/tests/io/test_sql.py
@@ -1141,18 +1141,21 @@ def load_types_data(self, types_data):
def _read_sql_iris_parameter(self, sql_strings):
query = sql_s... | When trying to integrate the engine fixtures into these tests I have been running into a lot of deadlocking issues. From some [research](https://github.com/sqlalchemy/sqlalchemy/issues/5405#issuecomment-646607306) it looks like SQLAlchemy strongly discourages running doing [Connectionless Execution](https://docs.sqlalc... | https://api.github.com/repos/pandas-dev/pandas/pulls/55129 | 2023-09-13T21:23:21Z | 2023-09-13T23:36:05Z | 2023-09-13T23:36:05Z | 2023-09-13T23:45:40Z |
Backport PR #55072 on branch 2.1.x (BUG: dt.tz with ArrowDtype returned string) | diff --git a/doc/source/whatsnew/v2.1.1.rst b/doc/source/whatsnew/v2.1.1.rst
index 42af61be26355..6d5da7cdff3b3 100644
--- a/doc/source/whatsnew/v2.1.1.rst
+++ b/doc/source/whatsnew/v2.1.1.rst
@@ -35,6 +35,7 @@ Bug fixes
~~~~~~~~~
- Fixed bug for :class:`ArrowDtype` raising ``NotImplementedError`` for fixed-size list... | Backport PR #55072: BUG: dt.tz with ArrowDtype returned string | https://api.github.com/repos/pandas-dev/pandas/pulls/55124 | 2023-09-13T17:11:13Z | 2023-09-13T18:59:11Z | 2023-09-13T18:59:11Z | 2023-09-13T18:59:12Z |
BUG: add pyarrow autogenerated prefix | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 0760840f9950a..445b93705cde5 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -314,6 +314,7 @@ MultiIndex
I/O
^^^
- Bug in :func:`read_csv` where ``on_bad_lines="warn"`` would write to ``stderr`` ins... | - [x] closes #54459
- [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/55115 | 2023-09-13T03:56:26Z | 2023-09-27T16:50:46Z | 2023-09-27T16:50:46Z | 2023-09-27T16:50:54Z |
BUG: Index.difference not always returning a unique set of values | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 54e855f61905a..034d67b43087d 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -233,7 +233,7 @@ Interval
Indexing
^^^^^^^^
--
+- Bug in :meth:`Index.difference` not returning a unique set of values w... | - [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 [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/55113 | 2023-09-12T22:02:27Z | 2023-09-18T16:39:40Z | 2023-09-18T16:39:40Z | 2023-11-16T12:56:54Z |
Assorted UBSAN cleanups | diff --git a/pandas/_libs/src/vendored/ujson/lib/ultrajsonenc.c b/pandas/_libs/src/vendored/ujson/lib/ultrajsonenc.c
index e3e710ce1b876..942bd0b518144 100644
--- a/pandas/_libs/src/vendored/ujson/lib/ultrajsonenc.c
+++ b/pandas/_libs/src/vendored/ujson/lib/ultrajsonenc.c
@@ -44,6 +44,7 @@ Numeric decoder derived from ... | Found the first few from running the io test suite. Will be stuck at https://github.com/pandas-dev/pandas/issues/55111 which requires closer attention than I wanted to tackle here | https://api.github.com/repos/pandas-dev/pandas/pulls/55112 | 2023-09-12T20:42:21Z | 2023-09-13T23:39:08Z | 2023-09-13T23:39:08Z | 2023-09-13T23:55:55Z |
PERF: Index.difference | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 249f08c7e387b..1b8864809975f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -178,6 +178,7 @@ Performance improvements
- Performance improvement in :func:`concat` with ``axis=1`` and objects with unal... | - [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 [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/55108 | 2023-09-12T11:18:38Z | 2023-09-13T17:00:54Z | 2023-09-13T17:00:54Z | 2023-11-16T12:57:18Z |
ENH: Add numba engine to df.apply | diff --git a/pandas/core/_numba/extensions.py b/pandas/core/_numba/extensions.py
new file mode 100644
index 0000000000000..ebe2a752a12f7
--- /dev/null
+++ b/pandas/core/_numba/extensions.py
@@ -0,0 +1,575 @@
+# Disable type checking for this module since numba's internals
+# are not typed, and we use numba's internals ... | - [ ] 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/55104 | 2023-09-12T01:24:35Z | 2023-10-22T19:52:19Z | 2023-10-22T19:52:19Z | 2023-10-22T21:42:51Z |
enable ASAN/UBSAN in pandas CI | diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml
index 460ae2f8594c0..63f687324b0ae 100644
--- a/.github/actions/build_pandas/action.yml
+++ b/.github/actions/build_pandas/action.yml
@@ -4,6 +4,12 @@ inputs:
editable:
description: Whether to build pandas in editable... | @lithomas1 @rgommers
closes https://github.com/pandas-dev/pandas/issues/52990 | https://api.github.com/repos/pandas-dev/pandas/pulls/55102 | 2023-09-11T21:11:41Z | 2023-12-21T18:36:12Z | 2023-12-21T18:36:12Z | 2024-01-02T19:50:15Z |
DEPS: remove duplicated dependency in requirement-dev.txt | diff --git a/environment.yml b/environment.yml
index 1eb0b4cc2c7a6..8deae839f5408 100644
--- a/environment.yml
+++ b/environment.yml
@@ -106,7 +106,7 @@ dependencies:
- ipykernel
# web
- - jinja2 # in optional dependencies, but documented here as needed
+ # - jinja2 # already listed in optional dependencies... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/55101 | 2023-09-11T20:39:37Z | 2023-09-13T23:37:46Z | 2023-09-13T23:37:46Z | 2023-09-13T23:37:59Z |
Backport PR #55094 on branch 2.1.x (TST: Make test_hash_equality_invariance xfail more generic) | diff --git a/pandas/tests/scalar/timedelta/test_timedelta.py b/pandas/tests/scalar/timedelta/test_timedelta.py
index 701cfdf157d26..884c3a648f395 100644
--- a/pandas/tests/scalar/timedelta/test_timedelta.py
+++ b/pandas/tests/scalar/timedelta/test_timedelta.py
@@ -921,7 +921,6 @@ def test_timedelta_hash_equality(self):... | Backport PR #55094: TST: Make test_hash_equality_invariance xfail more generic | https://api.github.com/repos/pandas-dev/pandas/pulls/55100 | 2023-09-11T20:21:17Z | 2023-09-11T22:39:36Z | 2023-09-11T22:39:36Z | 2023-09-11T22:39:36Z |
Backport PR #55082 on branch 2.1.x (Updated future warning msg in transform() for Series.groupby) | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 712294a0a4c96..ad9933aff9eca 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1830,12 +1830,12 @@ def warn_alias_replacement(
full_alias = alias
else:
full_alias = f"{type(obj).__name__}.{alias}"
- alias = f"'{a... | Backport PR #55082: Updated future warning msg in transform() for Series.groupby | https://api.github.com/repos/pandas-dev/pandas/pulls/55097 | 2023-09-11T19:17:04Z | 2023-09-11T22:39:25Z | 2023-09-11T22:39:24Z | 2023-09-11T22:39:25Z |
TST: Make test_hash_equality_invariance xfail more generic | diff --git a/pandas/tests/scalar/timedelta/test_timedelta.py b/pandas/tests/scalar/timedelta/test_timedelta.py
index f1d8acf47b29a..cb797a4168088 100644
--- a/pandas/tests/scalar/timedelta/test_timedelta.py
+++ b/pandas/tests/scalar/timedelta/test_timedelta.py
@@ -927,7 +927,6 @@ def test_timedelta_hash_equality(self):... | The `raises` isn't too novel compared to raising a more specific behavior exception like a `ValueError`
Additionally, seems like hypothesis raises an ExceptionGroup here now which is PY311 specific (or using a backport package). | https://api.github.com/repos/pandas-dev/pandas/pulls/55094 | 2023-09-11T18:07:55Z | 2023-09-11T20:21:09Z | 2023-09-11T20:21:09Z | 2023-09-11T20:21:11Z |
DOC: Remove deprecated attributes in DatetimeIndex | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index dcb5f8caccd3e..400747cbf6b8d 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -198,8 +198,6 @@ class DatetimeIndex(DatetimeTimedeltaMixin):
timetz
dayofyear
day_of_year
- weeko... | xref https://github.com/pandas-dev/pandas/issues/55092#issuecomment-1714250732 | https://api.github.com/repos/pandas-dev/pandas/pulls/55093 | 2023-09-11T17:51:06Z | 2023-09-13T17:03:48Z | 2023-09-13T17:03:48Z | 2023-09-13T17:03:53Z |
BUG: This fixes #55009 (`raw=True` caused `apply` method of `DataFrame` to ignore passed arguments) | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 07be496a95adc..e640a091e09fb 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -171,6 +171,7 @@ Bug fixes
~~~~~~~~~
- Bug in :class:`AbstractHolidayCalendar` where timezone data was not propagated when... | This should fix #55009. I documented the fix and also added some code to the tests that should pick it up next time.
Unfortunately, I was not able to run the tests manually yet with this error:
```
ImportError while loading conftest.
__init__.py:46: in <module>
from pandas.core.api import (
core/api.py:1:... | https://api.github.com/repos/pandas-dev/pandas/pulls/55089 | 2023-09-11T10:30:05Z | 2023-09-13T17:14:59Z | 2023-09-13T17:14:59Z | 2023-09-25T09:02:51Z |
Bump actions/checkout from 3 to 4 | diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml
index f87aef5385898..3bd68c07dcbc3 100644
--- a/.github/workflows/code-checks.yml
+++ b/.github/workflows/code-checks.yml
@@ -33,7 +33,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v3
+ uses: actions/c... | Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/actions/checkout/releases">actions/checkout's releases</a>.</em></p>
<blockquote>
<h2>v4.0.0</h2>
<h2>What's Changed</h2>
<ul>
<li>Update default runtime ... | https://api.github.com/repos/pandas-dev/pandas/pulls/55086 | 2023-09-11T08:17:40Z | 2023-09-11T15:23:09Z | 2023-09-11T15:23:09Z | 2023-09-11T15:23:12Z |
BUG: concat(axis=1) ignoring sort parameter for DatetimeIndex | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index a795514aa31f8..609f99e26cf3b 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -247,8 +247,8 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
+- Bug in :func:`concat` ignoring ``sort`` parameter when ... | - [x] closes #54769
- [x] closes #51210
- [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.htm... | https://api.github.com/repos/pandas-dev/pandas/pulls/55085 | 2023-09-11T01:58:57Z | 2023-09-11T15:29:43Z | 2023-09-11T15:29:43Z | 2023-09-12T11:19:46Z |
PERF: concat(axis=1) with unaligned indexes | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index a795514aa31f8..75598df52f934 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -158,9 +158,11 @@ Deprecations
Performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~
+- Performance improvement in :func:`co... | - [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 [type annotati... | https://api.github.com/repos/pandas-dev/pandas/pulls/55084 | 2023-09-11T01:26:52Z | 2023-09-11T15:55:22Z | 2023-09-11T15:55:22Z | 2023-09-12T11:19:48Z |
Updated future warning msg in transform() for Series.groupby | diff --git a/pandas/core/apply.py b/pandas/core/apply.py
index 78d52ed262c7a..cc594bc8efb34 100644
--- a/pandas/core/apply.py
+++ b/pandas/core/apply.py
@@ -1863,12 +1863,12 @@ def warn_alias_replacement(
full_alias = alias
else:
full_alias = f"{type(obj).__name__}.{alias}"
- alias = f"'{a... | - [ ] closes #55066
- [ ] [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/55082 | 2023-09-10T07:20:33Z | 2023-09-11T19:16:01Z | 2023-09-11T19:16:01Z | 2023-09-12T06:58:41Z |
ENH: make guess_datetime_format public | diff --git a/doc/source/reference/general_functions.rst b/doc/source/reference/general_functions.rst
index 02b0bf5d13dde..e93514de5f762 100644
--- a/doc/source/reference/general_functions.rst
+++ b/doc/source/reference/general_functions.rst
@@ -73,6 +73,13 @@ Top-level evaluation
eval
+Datetime formats
+~~~~~~~... | - [X] closes #54727 (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/55079 | 2023-09-09T15:38:17Z | 2023-10-27T02:19:23Z | 2023-10-27T02:19:23Z | 2023-10-30T22:53:33Z |
TYP: Misc type corrections | diff --git a/pandas/_libs/tslibs/period.pyi b/pandas/_libs/tslibs/period.pyi
index 8826757e31c32..c85865fea8fd0 100644
--- a/pandas/_libs/tslibs/period.pyi
+++ b/pandas/_libs/tslibs/period.pyi
@@ -89,7 +89,7 @@ class Period(PeriodMixin):
@classmethod
def _from_ordinal(cls, ordinal: int, freq) -> Period: ...
... | Found by validating the pandas annotations on the pandas-stub tests using pyright (there are over 2000 errors left). | https://api.github.com/repos/pandas-dev/pandas/pulls/55078 | 2023-09-09T13:10:03Z | 2023-09-11T16:13:43Z | 2023-09-11T16:13:43Z | 2023-09-19T15:24:48Z |
Revert "BUG: Timestamp origin takes no effect in resample for 'MS' frequency (#53938)" | diff --git a/doc/source/whatsnew/v2.1.2.rst b/doc/source/whatsnew/v2.1.2.rst
index ddd1f95c56aea..569864ba71122 100644
--- a/doc/source/whatsnew/v2.1.2.rst
+++ b/doc/source/whatsnew/v2.1.2.rst
@@ -15,6 +15,7 @@ Fixed regressions
~~~~~~~~~~~~~~~~~
- Fixed bug where PDEP-6 warning about setting an item of an incompatib... | closes #55064
This reverts commit dfc4c3900a181e8a9dff724217d5a14e59ca2e4f.
- [ ] 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
- [ ] ... | https://api.github.com/repos/pandas-dev/pandas/pulls/55077 | 2023-09-09T08:44:00Z | 2023-10-09T18:33:13Z | 2023-10-09T18:33:13Z | 2023-10-09T18:33:21Z |
TYP/DOC: fix flavor param with incorrect type hint in read_html | diff --git a/pandas/io/html.py b/pandas/io/html.py
index 10701be4f7e0b..68d30fe5ba681 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -1033,7 +1033,7 @@ def read_html(
io: FilePath | ReadBuffer[str],
*,
match: str | Pattern = ".+",
- flavor: str | None = None,
+ flavor: str | Sequence[str... | resolve #55059
| https://api.github.com/repos/pandas-dev/pandas/pulls/55076 | 2023-09-09T05:07:04Z | 2023-09-09T20:44:39Z | 2023-09-09T20:44:39Z | 2023-09-10T11:48:34Z |
Replace classes with pytest in test_sql | diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py
index 1abe0ad55a864..f015c9efe7122 100644
--- a/pandas/tests/io/test_sql.py
+++ b/pandas/tests/io/test_sql.py
@@ -397,6 +397,54 @@ def test_frame3():
return DataFrame(data, columns=columns)
+def get_all_views(conn):
+ if isinstance(conn,... | A lot of this is very intertwined so hard to break up into small diffs. | https://api.github.com/repos/pandas-dev/pandas/pulls/55074 | 2023-09-08T21:17:25Z | 2023-09-18T23:47:10Z | 2023-09-18T23:47:10Z | 2023-09-18T23:47:29Z |
Backport PR #55048 on branch 2.1.x (COMPAT: bump pyarrow min version for div on duration) | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index be0a762642e46..684e9dccdc0f9 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -30,6 +30,7 @@
pa_version_under9p0,
pa_version_under11p0,
pa_version_under13p0,
+ pa_version_under14p0,
)
if TYPE_CHECKING... | Backport PR #55048: COMPAT: bump pyarrow min version for div on duration | https://api.github.com/repos/pandas-dev/pandas/pulls/55073 | 2023-09-08T20:33:55Z | 2023-09-08T23:53:33Z | 2023-09-08T23:53:33Z | 2023-09-08T23:53:33Z |
BUG: dt.tz with ArrowDtype returned string | diff --git a/doc/source/whatsnew/v2.1.1.rst b/doc/source/whatsnew/v2.1.1.rst
index 42af61be26355..6d5da7cdff3b3 100644
--- a/doc/source/whatsnew/v2.1.1.rst
+++ b/doc/source/whatsnew/v2.1.1.rst
@@ -35,6 +35,7 @@ Bug fixes
~~~~~~~~~
- Fixed bug for :class:`ArrowDtype` raising ``NotImplementedError`` for fixed-size list... | - [x] closes #55003 (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/55072 | 2023-09-08T19:03:19Z | 2023-09-13T17:10:10Z | 2023-09-13T17:10:10Z | 2023-09-13T17:10:16Z |
BUG: read_csv(on_bad_lines='warn') did not raise a Python warning | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 7bb4aaec0dd7c..a795514aa31f8 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -227,6 +227,7 @@ MultiIndex
I/O
^^^
+- Bug in :func:`read_csv` where ``on_bad_lines="warn"`` would write to ``stderr`` i... | - [x] closes #54296 (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/55071 | 2023-09-08T17:57:03Z | 2023-09-08T20:32:21Z | 2023-09-08T20:32:21Z | 2023-09-08T20:32:24Z |
Backport PR #54949 on branch 2.1.x (BLD: improvements to meson.build files) | diff --git a/generate_version.py b/generate_version.py
index 46e9f52bfc5de..06e38ce0fd978 100644
--- a/generate_version.py
+++ b/generate_version.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
# Note: This file has to live next to setup.py or versioneer will not work
import argparse
import os
diff --git a/meson.build ... | Backport PR #54949: BLD: improvements to meson.build files | https://api.github.com/repos/pandas-dev/pandas/pulls/55065 | 2023-09-08T14:32:16Z | 2023-09-08T17:01:50Z | 2023-09-08T17:01:50Z | 2023-09-08T17:01:50Z |
Convert to compatible NumPy dtype for MaskedArray to_numpy | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 8cb4b3f24d435..3b363d38e18cb 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -105,6 +105,37 @@ For a full list of ADBC drivers and their development status, see the `ADBC Driv
Implementation Status <h... | - [ ] closes #48891 (Replace xxxx with the GitHub issue number)
- [ ] closes #40630
- [ ] closes #37460
- [ ] [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... | https://api.github.com/repos/pandas-dev/pandas/pulls/55058 | 2023-09-07T20:53:31Z | 2023-12-01T19:34:48Z | 2023-12-01T19:34:48Z | 2023-12-01T19:36:29Z |
DOC: fix an example which raises an Error in whatsnew/v0.10.0.rst | diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst
index 3425986a37743..422efc1b36946 100644
--- a/doc/source/whatsnew/v0.10.0.rst
+++ b/doc/source/whatsnew/v0.10.0.rst
@@ -180,19 +180,36 @@ labeled the aggregated group with the end of the interval: the next day).
DataFrame constructor wi... | Fix an example in doc/source/whatsnew/v0.10.0.rst, which raises an IndentationError (see
https://pandas.pydata.org/docs/dev/whatsnew/v0.10.0.html) | https://api.github.com/repos/pandas-dev/pandas/pulls/55057 | 2023-09-07T19:40:51Z | 2023-09-11T16:14:59Z | 2023-09-11T16:14:59Z | 2023-09-11T16:15:06Z |
Backport PR #55042 on branch 2.1.x (REGR: DataFrameGroupBy.agg with duplicate column names and a dict) | diff --git a/doc/source/whatsnew/v2.1.1.rst b/doc/source/whatsnew/v2.1.1.rst
index fe511b5cdec67..42af61be26355 100644
--- a/doc/source/whatsnew/v2.1.1.rst
+++ b/doc/source/whatsnew/v2.1.1.rst
@@ -21,6 +21,7 @@ Fixed regressions
- Fixed regression in :meth:`DataFrame.__setitem__` raising ``AssertionError`` when settin... | Backport PR #55042: REGR: DataFrameGroupBy.agg with duplicate column names and a dict | https://api.github.com/repos/pandas-dev/pandas/pulls/55056 | 2023-09-07T16:33:02Z | 2023-09-07T18:28:37Z | 2023-09-07T18:28:37Z | 2023-09-07T18:28:37Z |
Backport PR #55010 on branch 2.1.x (BLD: Build wheels for Python 3.12) | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 50f6a116a6630..ba124533e953a 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -48,7 +48,7 @@ jobs:
name: Build aarch64 wheels
no_output_timeout: 30m # Sometimes the tests won't generate any output, make sure the job doe... | Backport PR #55010: BLD: Build wheels for Python 3.12 | https://api.github.com/repos/pandas-dev/pandas/pulls/55055 | 2023-09-07T16:28:54Z | 2023-09-07T20:23:21Z | 2023-09-07T20:23:21Z | 2023-09-07T20:23:21Z |
Backport PR #55051 on branch 2.1.x (Fix pickle roundtrip for new arrow string dtype) | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index cae975c96d61f..0b8d3d6b13f60 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -466,7 +466,10 @@ def _result_converter(cls, values, na=None):
def __getattribute__(self, item):
... | Backport PR #55051: Fix pickle roundtrip for new arrow string dtype | https://api.github.com/repos/pandas-dev/pandas/pulls/55054 | 2023-09-07T16:05:17Z | 2023-09-07T18:13:00Z | 2023-09-07T18:13:00Z | 2023-09-07T18:13:01Z |
Backport PR #55052 on branch 2.1.x (Improve error message for StringDtype with invalid storage) | diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py
index 84a85b9e56aff..58c638e7f59b5 100644
--- a/pandas/core/arrays/string_.py
+++ b/pandas/core/arrays/string_.py
@@ -119,7 +119,8 @@ def __init__(self, storage=None) -> None:
storage = get_option("mode.string_storage")
... | Backport PR #55052: Improve error message for StringDtype with invalid storage | https://api.github.com/repos/pandas-dev/pandas/pulls/55053 | 2023-09-07T16:02:03Z | 2023-09-07T18:12:46Z | 2023-09-07T18:12:46Z | 2023-09-07T18:12:46Z |
Improve error message for StringDtype with invalid storage | diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py
index c90127c0e9812..693ebad0ca16f 100644
--- a/pandas/core/arrays/string_.py
+++ b/pandas/core/arrays/string_.py
@@ -123,7 +123,8 @@ def __init__(self, storage=None) -> None:
storage = get_option("mode.string_storage")
... | - [ ] 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/55052 | 2023-09-07T13:58:35Z | 2023-09-07T16:00:41Z | 2023-09-07T16:00:41Z | 2023-09-07T16:05:43Z |
Fix pickle roundtrip for new arrow string dtype | diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py
index a6838fbc73be9..6262055827428 100644
--- a/pandas/core/arrays/string_arrow.py
+++ b/pandas/core/arrays/string_arrow.py
@@ -523,7 +523,10 @@ def _result_converter(cls, values, na=None):
def __getattribute__(self, item):
... | - [ ] 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/55051 | 2023-09-07T13:58:15Z | 2023-09-07T16:05:09Z | 2023-09-07T16:05:09Z | 2023-09-07T16:05:39Z |
Fix docstring of Index.join in base.py | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 6a397862712de..cd55997ad5f69 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -4557,7 +4557,7 @@ def join(
-------
join_index, (left_indexer, right_indexer)
- Examples
+ Examples
... | - [ ] 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/55050 | 2023-09-07T13:43:26Z | 2023-09-07T16:07:11Z | 2023-09-07T16:07:11Z | 2023-09-20T11:00:16Z |
COMPAT: bump pyarrow min version for div on duration | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index be0a762642e46..684e9dccdc0f9 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -30,6 +30,7 @@
pa_version_under9p0,
pa_version_under11p0,
pa_version_under13p0,
+ pa_version_under14p0,
)
if TYPE_CHECKING... | - [x] closes #55020
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.
| https://api.github.com/repos/pandas-dev/pandas/pulls/55048 | 2023-09-07T12:58:48Z | 2023-09-08T20:33:47Z | 2023-09-08T20:33:47Z | 2023-09-08T20:33:54Z |
DEPR: ArrayManager | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 55a3419e95703..4b3ed10f22a22 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -198,6 +198,7 @@ Deprecations
- Deprecated strings ``T``, ``S``, ``L``, ``U``, and ``N`` denoting frequencies in :class:`Mi... | - [x] closes #55043 (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/55044 | 2023-09-07T02:49:01Z | 2023-09-20T01:53:51Z | 2023-09-20T01:53:51Z | 2023-09-20T02:21:32Z |
REGR: DataFrameGroupBy.agg with duplicate column names and a dict | diff --git a/doc/source/whatsnew/v2.1.1.rst b/doc/source/whatsnew/v2.1.1.rst
index 11b19b1508a71..3262f576b4e6b 100644
--- a/doc/source/whatsnew/v2.1.1.rst
+++ b/doc/source/whatsnew/v2.1.1.rst
@@ -19,6 +19,7 @@ Fixed regressions
- Fixed regression in :meth:`.GroupBy.get_group` raising for ``axis=1`` (:issue:`54858`)
... | - [x] closes #55006 (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/55042 | 2023-09-07T00:37:26Z | 2023-09-07T16:32:53Z | 2023-09-07T16:32:53Z | 2023-09-07T20:22:42Z |
Backport PR #54983 on branch 2.1.x (BUG: pct_change showing unnecessary FutureWarning) | diff --git a/doc/source/whatsnew/v2.1.1.rst b/doc/source/whatsnew/v2.1.1.rst
index b9bdb36fe0ed3..fe511b5cdec67 100644
--- a/doc/source/whatsnew/v2.1.1.rst
+++ b/doc/source/whatsnew/v2.1.1.rst
@@ -34,6 +34,7 @@ Bug fixes
~~~~~~~~~
- Fixed bug for :class:`ArrowDtype` raising ``NotImplementedError`` for fixed-size list... | Backport PR #54983: BUG: pct_change showing unnecessary FutureWarning | https://api.github.com/repos/pandas-dev/pandas/pulls/55040 | 2023-09-06T22:41:28Z | 2023-09-07T00:20:29Z | 2023-09-07T00:20:29Z | 2023-09-07T00:20:29Z |
Add TODO note to BlockManager.fast_xs for EA dtypes | diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py
index 4cb7b610074ba..b1db2d2e708e8 100644
--- a/pandas/core/internals/managers.py
+++ b/pandas/core/internals/managers.py
@@ -969,6 +969,10 @@ def fast_xs(self, loc: int) -> SingleBlockManager:
n = len(self)
if isinst... | cc @jbrockmendel
re: https://github.com/pandas-dev/pandas/pull/54508#issuecomment-1708623215
| https://api.github.com/repos/pandas-dev/pandas/pulls/55039 | 2023-09-06T21:44:30Z | 2023-09-08T16:41:42Z | 2023-09-08T16:41:42Z | 2023-09-11T01:29:45Z |
BUG: Interval with Timestamp with tz shows tz | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index 4f38d420a53b4..bfdfaf12a764f 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -207,7 +207,7 @@ Strings
Interval
^^^^^^^^
--
+- Bug in :class:`Interval` ``__repr__`` not displaying UTC offsets for :c... | - [x] closes #55015 (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/55035 | 2023-09-06T18:12:17Z | 2023-09-18T16:54:13Z | 2023-09-18T16:54:13Z | 2023-09-18T16:54:16Z |
DOC: Add missing word to `IndexOpsMixin.array` docstring | diff --git a/pandas/core/base.py b/pandas/core/base.py
index d973f8f5fe35a..3026189e747bb 100644
--- a/pandas/core/base.py
+++ b/pandas/core/base.py
@@ -485,8 +485,8 @@ def array(self) -> ExtensionArray:
types, this is the actual array. For NumPy native types, this
is a thin (no copy) wrapper ... | null | https://api.github.com/repos/pandas-dev/pandas/pulls/55034 | 2023-09-06T17:58:20Z | 2023-09-06T20:06:14Z | 2023-09-06T20:06:14Z | 2023-09-06T22:55:08Z |
TST: Use more explicit object names | diff --git a/pandas/tests/frame/methods/test_reindex.py b/pandas/tests/frame/methods/test_reindex.py
index 0858e33a989b7..56bdd2fc664cc 100644
--- a/pandas/tests/frame/methods/test_reindex.py
+++ b/pandas/tests/frame/methods/test_reindex.py
@@ -26,7 +26,7 @@
isna,
)
import pandas._testing as tm
-from pandas.api.... | When going over some tests, the `import obj as o` patterns have not been the most clear so making some of these usages more explicit | https://api.github.com/repos/pandas-dev/pandas/pulls/55033 | 2023-09-06T17:39:13Z | 2023-09-06T20:07:07Z | 2023-09-06T20:07:07Z | 2023-09-06T20:12:43Z |
BUG: merge with left and/or right empty returning mis-ordered columns | diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst
index bd15d5fa085e9..4f38d420a53b4 100644
--- a/doc/source/whatsnew/v2.2.0.rst
+++ b/doc/source/whatsnew/v2.2.0.rst
@@ -246,7 +246,7 @@ Groupby/resample/rolling
Reshaping
^^^^^^^^^
--
+- Bug in :func:`merge` returning columns in incorrect ... | - [x] closes #51929
- [x] closes #43087
- [x] closes #9937
- [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/contr... | https://api.github.com/repos/pandas-dev/pandas/pulls/55028 | 2023-09-06T11:11:07Z | 2023-09-06T17:12:29Z | 2023-09-06T17:12:29Z | 2023-09-11T01:29:49Z |
Backport PR #54982 on branch 2.1.x (REG: filter not respecting the order of labels) | diff --git a/doc/source/whatsnew/v2.1.1.rst b/doc/source/whatsnew/v2.1.1.rst
index 11b19b1508a71..4f1ecf3a6e666 100644
--- a/doc/source/whatsnew/v2.1.1.rst
+++ b/doc/source/whatsnew/v2.1.1.rst
@@ -18,6 +18,7 @@ Fixed regressions
- Fixed regression in :func:`read_csv` when ``delim_whitespace`` is True (:issue:`54918`, ... | Backport PR #54982: REG: filter not respecting the order of labels | https://api.github.com/repos/pandas-dev/pandas/pulls/55022 | 2023-09-05T22:42:00Z | 2023-09-06T01:01:49Z | 2023-09-06T01:01:49Z | 2023-09-06T01:01:49Z |
ENH: IO header formatting | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 725dc7fc52ed0..e45484ed17251 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -228,6 +228,7 @@ Other enhancements
- ``pd.TimedeltaIndex`` now has a custom datetick formatter specifically designed f... | - [x] closes #15536
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
In this branch I changed ``pd.formats.format.DataFrameFormatter._to_str_columns`` which
is used by ``to_latex`` and ``to_string`` to format output nicely.
They support now optional ... | https://api.github.com/repos/pandas-dev/pandas/pulls/15548 | 2017-03-02T13:51:56Z | 2017-03-09T10:58:49Z | 2017-03-09T10:58:49Z | 2017-03-09T10:59:12Z |
TST: split tests/format/test_format.py | diff --git a/pandas/tests/formats/test_eng_formatting.py b/pandas/tests/formats/test_eng_formatting.py
new file mode 100644
index 0000000000000..d2badd4fc160a
--- /dev/null
+++ b/pandas/tests/formats/test_eng_formatting.py
@@ -0,0 +1,195 @@
+import numpy as np
+import pandas as pd
+from pandas import DataFrame
+from pa... | closes #15531 | https://api.github.com/repos/pandas-dev/pandas/pulls/15546 | 2017-03-02T02:03:46Z | 2017-03-02T08:39:35Z | 2017-03-02T08:39:35Z | 2017-03-02T08:39:35Z |
DEPR: deprecate some top-level non-used functions | diff --git a/doc/source/comparison_with_r.rst b/doc/source/comparison_with_r.rst
index aa0cbab4df10b..194e022e34c7c 100644
--- a/doc/source/comparison_with_r.rst
+++ b/doc/source/comparison_with_r.rst
@@ -206,14 +206,6 @@ of its first argument in its second:
s <- 0:4
match(s, c(2,4))
-The :meth:`~pandas.core.... | closes #13790
```
pd.pnow()
pd.groupby()
pd.match()
pd.Term
pd.Expr
```
remove info.py
| https://api.github.com/repos/pandas-dev/pandas/pulls/15538 | 2017-03-01T16:26:41Z | 2017-03-03T10:12:22Z | 2017-03-03T10:12:21Z | 2017-03-03T10:12:22Z |
BUG: handle empty lists in json_normalize | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 54df7514a882d..42116e5562e1e 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -190,6 +190,7 @@ Other enhancements
- HTML table output skips ``colspan`` or ``rowspan`` attribute if equal to 1. (:iss... | - [x] closes #15534
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15535 | 2017-03-01T00:31:51Z | 2017-03-04T11:09:46Z | 2017-03-04T11:09:46Z | 2017-03-04T16:02:42Z |
DOC: Update contributing for test_fast, fix doc Windows build | diff --git a/doc/make.py b/doc/make.py
index d46be2611ce3d..8a6d4e5df24f0 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -202,8 +202,8 @@ def html():
raise SystemExit("Building HTML failed.")
try:
# remove stale file
- os.system('rm source/html-styling.html')
- os.system('cd build; r... | - Add `test_fast.bat` for Windows developers.
- Update `contributing.rst` to refer to `pytest-xdist` and reference fast testing scripts
- Update `contributing.rst` to delete references to `pep8radius`
- Fix `doc\make.py` to not spit out error message about `rm` on Windows by using `os.remove()`
No code changes!
| https://api.github.com/repos/pandas-dev/pandas/pulls/15523 | 2017-02-27T21:08:29Z | 2017-02-27T21:43:02Z | 2017-02-27T21:43:02Z | 2017-02-28T15:43:49Z |
TST: DataFrame.hist() does not get along with matplotlib.pyplot.tight_layout() | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index c94429b469641..f601e0558740f 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -626,7 +626,7 @@ Bug Fixes
-
+- Bug in ``DataFrame.hist`` where ``plt.tight_layout`` caused an ``AttributeError`` ... | - [ ] closes #9351
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15515 | 2017-02-27T00:30:03Z | 2017-02-27T20:26:01Z | 2017-02-27T20:26:01Z | 2017-02-27T20:43:53Z |
DOC: Fix versionadded for cond in .where | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index 85c7130ca2827..cdc37e00f70e0 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -4910,6 +4910,7 @@ def _where(self, cond, other=np.nan, inplace=False, axis=None, level=None,
not change input %(klass)s (though pandas doesn't... | Per discussion in <a href="https://github.com/pandas-dev/pandas/pull/15414#discussion_r103089692">#15414 (comment) </a>.
@jorisvandenbossche | https://api.github.com/repos/pandas-dev/pandas/pulls/15509 | 2017-02-25T22:20:06Z | 2017-02-25T22:26:07Z | 2017-02-25T22:26:07Z | 2017-02-25T22:26:47Z |
DOC: fix doc build warnings | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index b6f015c15606d..f380070ddac79 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -965,6 +965,7 @@ The different indexing operation can potentially change the dtype of a ``Series`
res
.. ipython:: python
+
series2 = pd.Seri... | Bunch of small fixes that caused warnings/errors | https://api.github.com/repos/pandas-dev/pandas/pulls/15505 | 2017-02-25T20:35:27Z | 2017-02-25T21:38:57Z | 2017-02-25T21:38:57Z | 2017-02-25T21:38:57Z |
DEPR: rename to _consolidate and create deprecation warning | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index fa24c973a7549..a0f26d20a186e 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -484,6 +484,7 @@ Deprecations
- ``DataFrame.astype()`` has deprecated the ``raise_on_error`` parameter in favor of ``er... | - [x] closes #15483
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Test output:
```
running: pytest --skip-slow --skip-network pandas
============================= test session starts ==============================
platform linux2 -- Python 2.7.1... | https://api.github.com/repos/pandas-dev/pandas/pulls/15501 | 2017-02-25T04:51:58Z | 2017-02-28T10:43:23Z | 2017-02-28T10:43:23Z | 2017-03-05T08:04:55Z |
DOC: Fix to docstrings of is_type_factory and is_instance_factory | diff --git a/pandas/core/config.py b/pandas/core/config.py
index 1c0eb60b8ec2f..39ed2f9545266 100644
--- a/pandas/core/config.py
+++ b/pandas/core/config.py
@@ -747,8 +747,8 @@ def is_type_factory(_type):
Returns
-------
- validator - a function of a single argument x , which returns the
- ... |
- [X] closes #15485
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15499 | 2017-02-24T15:07:46Z | 2017-02-24T19:53:44Z | 2017-02-24T19:53:43Z | 2017-02-25T04:40:24Z |
TST: remove 4 builds from travis that are on circleci | diff --git a/.travis.yml b/.travis.yml
index bb96ab210c088..97bf881f3b6fc 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -91,21 +91,6 @@ matrix:
packages:
- libatlas-base-dev
- gfortran
-# In allow_failures
- - python: 2.7
- env:
- - PYTHON_VERSION=2.7
- - JOB_NA... | https://api.github.com/repos/pandas-dev/pandas/pulls/15465 | 2017-02-21T02:54:08Z | 2017-02-22T15:01:49Z | 2017-02-22T15:01:49Z | 2017-02-22T22:14:41Z | |
ENH: str.replace accepts a compiled expression | diff --git a/doc/source/text.rst b/doc/source/text.rst
index 52e05c5d511bc..2b2520cb6100f 100644
--- a/doc/source/text.rst
+++ b/doc/source/text.rst
@@ -164,6 +164,27 @@ positional argument (a regex object) and return a string.
repl = lambda m: m.group('two').swapcase()
pd.Series(['Foo Bar Baz', np.nan]).str.re... | .str.replace now accepts a compiled regular expression.
See #15446
- [x] closes #15446
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15456 | 2017-02-19T22:20:09Z | 2017-03-05T11:23:58Z | 2017-03-05T11:23:57Z | 2017-03-05T22:44:45Z |
DOC: Link CONTRIBUTING.md to contributing.rst | diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md
index 7898822e0e11d..95729f845ff5c 100644
--- a/.github/CONTRIBUTING.md
+++ b/.github/CONTRIBUTING.md
@@ -1,515 +1,24 @@
Contributing to pandas
======================
-Where to start?
----------------
-
-All contributions, bug reports, bug fixes, docume... | Cuts down `CONTRIBUTING.md` to summarize `contributing.rst` and links to relevant sections.
Closes #15349. | https://api.github.com/repos/pandas-dev/pandas/pulls/15451 | 2017-02-18T04:00:31Z | 2017-02-21T22:26:04Z | 2017-02-21T22:26:04Z | 2017-02-21T22:26:13Z |
DOC: correct rpy2 examples (GH15142) | diff --git a/doc/source/r_interface.rst b/doc/source/r_interface.rst
index b5d699cad69d5..88634d7f75c63 100644
--- a/doc/source/r_interface.rst
+++ b/doc/source/r_interface.rst
@@ -41,15 +41,17 @@ In the remainder of this page, a few examples of explicit conversion is given. T
Transferring R data sets into Python
---... | To fix the current doc build errors (https://github.com/pandas-dev/pandas/pull/15142#issuecomment-274346255) | https://api.github.com/repos/pandas-dev/pandas/pulls/15450 | 2017-02-17T22:51:06Z | 2017-02-18T10:52:02Z | 2017-02-18T10:52:02Z | 2018-04-10T11:35:37Z |
BUG: rolling not accepting Timedelta-like window args (#15440) | diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt
index 8e48dbbb083e8..ae4a3d3c3d97f 100644
--- a/doc/source/whatsnew/v0.20.0.txt
+++ b/doc/source/whatsnew/v0.20.0.txt
@@ -551,6 +551,7 @@ Bug Fixes
- Bug in ``.to_json()`` causing single byte ascii characters to be expanded to four byte uni... | - [x] closes #15440
- [x] tests added / passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
Allow `rolling()` to accept `pd.Timedelta` or `datetime.timedelta` as a `window` argument. | https://api.github.com/repos/pandas-dev/pandas/pulls/15443 | 2017-02-17T20:05:22Z | 2017-02-18T12:08:54Z | 2017-02-18T12:08:54Z | 2017-12-20T02:04:10Z |
Documents touch-up for DataFrame.to_excel() freeze_panes option | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 2d6ddf98437e5..55ef2c09d43e4 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -2832,8 +2832,8 @@ Style and Formatting
The look and feel of Excel worksheets created from pandas can be modified using the following parameters on the ``DataFrame``'s ``to_ex... | Follow-up to @jorisvandenbossche 's comments on pull request #15291.
Only doc strings and external documentation modified. | https://api.github.com/repos/pandas-dev/pandas/pulls/15436 | 2017-02-17T02:54:35Z | 2017-02-17T08:17:39Z | 2017-02-17T08:17:39Z | 2017-02-17T08:17:39Z |
TST: remove yielding tests from test_msgpacks.py | diff --git a/pandas/tests/io/test_packers.py b/pandas/tests/io/test_packers.py
index 911cd8164571d..097c03937ca68 100644
--- a/pandas/tests/io/test_packers.py
+++ b/pandas/tests/io/test_packers.py
@@ -41,6 +41,22 @@
_ZLIB_INSTALLED = True
+@pytest.fixture(scope='module')
+def current_packers_data():
+ # our... | xref #15341 | https://api.github.com/repos/pandas-dev/pandas/pulls/15427 | 2017-02-16T19:17:40Z | 2017-02-17T14:51:47Z | 2017-02-17T14:51:47Z | 2017-02-17T14:51:47Z |
BUG: to_sql convert index name to string (#15404) | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 55e145b493dd9..bace43e785dff 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -750,7 +750,8 @@ def _get_column_names_and_types(self, dtype_mapper):
for i, idx_label in enumerate(self.index):
idx_type = dtype_mapper(
... | …rs with numeric index name - needs conversion to string
- [x] closes #15404
- [x] tests passed
- [x] passes ``git diff upstream/master | flake8 --diff``
- [x] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15423 | 2017-02-16T14:58:28Z | 2017-02-17T13:09:21Z | 2017-02-17T13:09:21Z | 2017-02-17T13:16:17Z |
STYLE: flake8 upgraded to 3.3 on conda | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index bfd770d7af2c6..4a9a2647ece0f 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -67,6 +67,7 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
return np.array(arr, *args, **kwargs)
+
_... | fixes for E305, 2 blank lines after a class definition
| https://api.github.com/repos/pandas-dev/pandas/pulls/15412 | 2017-02-15T17:39:59Z | 2017-02-15T17:59:12Z | 2017-02-15T17:59:12Z | 2017-02-15T17:59:12Z |
DOC: use shared_docs for Index.get_indexer, get_indexer_non_unique | diff --git a/pandas/compat/numpy/__init__.py b/pandas/compat/numpy/__init__.py
index bfd770d7af2c6..4a9a2647ece0f 100644
--- a/pandas/compat/numpy/__init__.py
+++ b/pandas/compat/numpy/__init__.py
@@ -67,6 +67,7 @@ def np_array_datetime64_compat(arr, *args, **kwargs):
return np.array(arr, *args, **kwargs)
+
_... | https://api.github.com/repos/pandas-dev/pandas/pulls/15411 | 2017-02-15T16:52:48Z | 2017-02-15T18:00:37Z | 2017-02-15T18:00:37Z | 2017-02-15T18:00:37Z | |
Typo | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 8833d73cb0a84..b6f015c15606d 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -59,7 +59,7 @@ Creating a MultiIndex (hierarchical index) object
The ``MultiIndex`` object is the hierarchical analogue of the standard
``Index`` ob... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes ``git diff upstream/master | flake8 --diff``
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/15377 | 2017-02-12T17:12:38Z | 2017-02-12T17:37:14Z | 2017-02-12T17:37:14Z | 2017-02-12T17:37:16Z |
CLN: remove pandas/io/auth.py, from ga.py (now removed) | diff --git a/pandas/io/auth.py b/pandas/io/auth.py
deleted file mode 100644
index e42df6a7309b7..0000000000000
--- a/pandas/io/auth.py
+++ /dev/null
@@ -1,126 +0,0 @@
-from __future__ import print_function
-# see LICENSES directory for copyright and license
-import os
-import sys
-import logging
-
-import httplib2
-
-i... | https://api.github.com/repos/pandas-dev/pandas/pulls/15374 | 2017-02-12T01:25:15Z | 2017-02-12T02:53:45Z | 2017-02-12T02:53:45Z | 2017-02-12T02:53:45Z | |
BUG: Avoid trying to graft missing examples directory | diff --git a/MANIFEST.in b/MANIFEST.in
index 2d26fbfd6adaf..b7a7e6039ac9a 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -7,7 +7,6 @@ include setup.py
graft doc
prune doc/build
-graft examples
graft pandas
global-exclude *.so
| The examples directory was removed by #9391. Remove it from the MANIFEST too. | https://api.github.com/repos/pandas-dev/pandas/pulls/15373 | 2017-02-12T00:51:00Z | 2017-02-12T02:21:57Z | 2017-02-12T02:21:57Z | 2017-02-14T13:04:51Z |
Small documentation fix for MultiIndex.sortlevel | diff --git a/pandas/indexes/multi.py b/pandas/indexes/multi.py
index d2469cf1a3eed..9ab07d87fd13b 100644
--- a/pandas/indexes/multi.py
+++ b/pandas/indexes/multi.py
@@ -1399,7 +1399,11 @@ def sortlevel(self, level=0, ascending=True, sort_remaining=True):
Returns
-------
- sorted_index : Multi... | MultiIndex.sortlevel returns two values (MultiIndex and indices that sort the MultiIndex). Only the MultiIndex was described in the documentation.
| https://api.github.com/repos/pandas-dev/pandas/pulls/15345 | 2017-02-08T10:35:47Z | 2017-02-08T14:58:25Z | 2017-02-08T14:58:25Z | 2017-02-08T14:58:33Z |
TST/CLN: reorg groupby tests | diff --git a/pandas/tests/groupby/common.py b/pandas/tests/groupby/common.py
new file mode 100644
index 0000000000000..8a70777d08682
--- /dev/null
+++ b/pandas/tests/groupby/common.py
@@ -0,0 +1,52 @@
+""" Base setup """
+
+import numpy as np
+from pandas.util import testing as tm
+from pandas import DataFrame, MultiIn... | https://api.github.com/repos/pandas-dev/pandas/pulls/15336 | 2017-02-07T21:42:18Z | 2017-02-08T01:24:10Z | 2017-02-08T01:24:10Z | 2017-02-08T01:24:10Z | |
BUG: Fixed getattr for frame with column sparse | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index a9a0d89ed01aa..5b4761c3bc6c5 100755
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -1004,7 +1004,7 @@ Reshaping
Sparse
^^^^^^
- Bug in :class:`SparseDataFrame` arithmetic operations incorrectly casting in... | Closes https://github.com/pandas-dev/pandas/issues/30758 | https://api.github.com/repos/pandas-dev/pandas/pulls/30759 | 2020-01-06T21:44:39Z | 2020-01-06T23:52:02Z | 2020-01-06T23:52:02Z | 2020-01-06T23:52:05Z |
BUG: TDI.insert with empty TDI raising IndexError | diff --git a/pandas/tests/indexes/timedeltas/test_indexing.py b/pandas/tests/indexes/timedeltas/test_indexing.py
index 36105477ba9ee..e8665ee1a3555 100644
--- a/pandas/tests/indexes/timedeltas/test_indexing.py
+++ b/pandas/tests/indexes/timedeltas/test_indexing.py
@@ -173,6 +173,15 @@ def test_take_fill_value(self):
... | This started out as a cosmetic-only branch and ended up finding a broken corner case. The relevant change is in timedeltas L416 where `if self.freq is not None:` is now `if self.size and self.freq is not None:`
Using _check_compatible_with causes us to raise TypeError instead of ValueError in a couple of the Dateti... | https://api.github.com/repos/pandas-dev/pandas/pulls/30757 | 2020-01-06T21:26:35Z | 2020-01-09T13:18:27Z | 2020-01-09T13:18:27Z | 2020-01-09T16:26:05Z |
TST: Use datapath fixture | diff --git a/pandas/tests/io/test_pickle.py b/pandas/tests/io/test_pickle.py
index 42f904b47a6ee..ccd77f47b5e5e 100644
--- a/pandas/tests/io/test_pickle.py
+++ b/pandas/tests/io/test_pickle.py
@@ -381,10 +381,10 @@ def test_read(self, protocol, get_random_path):
tm.assert_frame_equal(df, df2)
-def test... | This was failing the wheel build.
https://travis-ci.org/MacPython/pandas-wheels/jobs/633451994.
I tried briefly to write a code check for this, but didn't succeed. | https://api.github.com/repos/pandas-dev/pandas/pulls/30756 | 2020-01-06T21:21:37Z | 2020-01-06T22:26:25Z | 2020-01-06T22:26:25Z | 2020-01-06T22:26:26Z |
CI: Unify code_checks whitespace checking | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index e6a761b91f353..7b223a553e114 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -102,9 +102,17 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
MSG='Check for use of not concatenated strings' ; echo $MSG
if [[ "$GITHUB_ACTIONS" == "true" ]];... | - [ ] closes #xxxx
- [x] tests added / passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Unify test cases of #30467 #30708 #30737 | https://api.github.com/repos/pandas-dev/pandas/pulls/30755 | 2020-01-06T21:20:51Z | 2020-03-23T10:31:11Z | 2020-03-23T10:31:10Z | 2020-03-23T12:06:19Z |
BUG: DTI/TDI .insert accepting incorrectly-dtyped NaT | diff --git a/pandas/core/indexes/datetimes.py b/pandas/core/indexes/datetimes.py
index 40d3823c9700b..c2edfd53e1207 100644
--- a/pandas/core/indexes/datetimes.py
+++ b/pandas/core/indexes/datetimes.py
@@ -11,7 +11,7 @@
from pandas.core.dtypes.common import _NS_DTYPE, is_float, is_integer, is_scalar
from pandas.core... | Also TDI.insert trying to parse strings to Timedelta, which neither DTI nor PI do. | https://api.github.com/repos/pandas-dev/pandas/pulls/30754 | 2020-01-06T21:19:39Z | 2020-01-06T23:58:36Z | 2020-01-06T23:58:36Z | 2020-01-07T01:41:30Z |
REF: share _validate_fill_value | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index b9a6daf7c630a..b0985332092ae 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -591,7 +591,17 @@ def _validate_fill_value(self, fill_value):
------
ValueError
"... | Made feasible by #30721. | https://api.github.com/repos/pandas-dev/pandas/pulls/30752 | 2020-01-06T19:09:07Z | 2020-01-06T19:49:35Z | 2020-01-06T19:49:35Z | 2020-01-06T19:51:00Z |
REF: share comparison methods for DTA/TDA/PA | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index b0985332092ae..0fadf3a05a1d3 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -11,6 +11,7 @@
from pandas._libs.tslibs.timedeltas import Timedelta, delta_to_nanoseconds
from pandas._lib... | https://api.github.com/repos/pandas-dev/pandas/pulls/30751 | 2020-01-06T18:55:08Z | 2020-01-06T23:53:41Z | 2020-01-06T23:53:41Z | 2020-01-07T01:56:31Z | |
Fix PR08 errors | diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py
index d9e68b64f526d..1415d1e0a1226 100644
--- a/pandas/core/indexes/multi.py
+++ b/pandas/core/indexes/multi.py
@@ -2673,7 +2673,7 @@ def get_loc_level(self, key, level=0, drop_level: bool = True):
key : label or sequence of labels
... | Fixes PR08 errors. When I ran the script, a lot of them seem to be false positives, these are the ones I'm pretty sure should be fixed:
```
pandas.infer_freq: Parameter "index" description should start with a capital letter
pandas.MultiIndex.get_loc_level: Parameter "drop_level" description should start with a capit... | https://api.github.com/repos/pandas-dev/pandas/pulls/30749 | 2020-01-06T18:22:38Z | 2020-01-06T18:59:43Z | 2020-01-06T18:59:43Z | 2020-01-06T18:59:49Z |
PERF: Categorical getitem perf | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 7386c9d0ef1de..524e3fcf309cb 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -39,7 +39,7 @@
)
from pandas.core.dtypes.dtypes import CategoricalDtype
from pandas.core.dtypes.generic impor... | Convert to an array earlier on.
Closes https://github.com/pandas-dev/pandas/issues/30744 | https://api.github.com/repos/pandas-dev/pandas/pulls/30747 | 2020-01-06T17:42:48Z | 2020-01-06T19:28:11Z | 2020-01-06T19:28:11Z | 2020-01-06T19:29:39Z |
CI: Using docstring validator from numpydoc | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index a90774d2e8ff1..5be34eee69a91 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -311,8 +311,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
- MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04,... | - [X] xref #28822
- [x] tests added / passed
- [X] passes `black pandas`
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
We moved our script to numpydoc, and it already had some improvements there. The script does like 80% of our validation, so what I'm doing here is to ... | https://api.github.com/repos/pandas-dev/pandas/pulls/30746 | 2020-01-06T17:32:37Z | 2020-01-16T02:01:22Z | 2020-01-16T02:01:22Z | 2020-01-16T02:01:23Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.