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
Update mangle_dupe_cols documentation to reflect actual state of implementation
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 030ae9fefda98..4d45ff208ae12 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -275,8 +275,8 @@ mangle_dupe_cols : bool, default True Duplicate columns will be specified as 'X', 'X.1', ...'X.N', rather than - '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). - [ ] Added an entry in th...
https://api.github.com/repos/pandas-dev/pandas/pulls/47046
2022-05-17T23:44:21Z
2022-06-28T17:27:04Z
null
2022-06-28T17:27:05Z
TYP: Mypy workaround for NoDefault
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index ad77e9e533b0b..d4a766f7086af 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -23,9 +23,11 @@ ndarray_obj_2d = np.ndarray from enum import Enum -class NoDefault(Enum): ... +class _NoDefault(Enum): + no_default = ... -no_default: NoD...
This uses the mypy-workaround from https://github.com/python/typeshed/pull/7127/files for `NoDefault` (works also for pyright). `no_default` is public but `NoDefault` is luckily not public, so it should be fine to do the following: - rename the existing `NoDefault` to `_NoDefault` (implementation and typing) - d...
https://api.github.com/repos/pandas-dev/pandas/pulls/47045
2022-05-17T22:35:53Z
2022-05-25T21:53:55Z
2022-05-25T21:53:55Z
2022-05-26T01:58:47Z
ENH: DatetimeArray fields support non-nano
diff --git a/pandas/_libs/tslibs/fields.pyi b/pandas/_libs/tslibs/fields.pyi index e404eadf13657..b1d9e0342f81e 100644 --- a/pandas/_libs/tslibs/fields.pyi +++ b/pandas/_libs/tslibs/fields.pyi @@ -22,6 +22,7 @@ def get_start_end_field( def get_date_field( dtindex: npt.NDArray[np.int64], # const int64_t[:] f...
- [ ] 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/47044
2022-05-17T22:13:21Z
2022-05-18T01:01:08Z
2022-05-18T01:01:08Z
2022-05-18T01:05:33Z
Backport PR #46394 on branch 1.4.x (CI: Use conda-forge PyPy)
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index b86dcea59edb8..35c40f2a4aa54 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -155,24 +155,11 @@ jobs: channel-priority: flexible environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: t...
Backport PR #46394: CI: Use conda-forge PyPy
https://api.github.com/repos/pandas-dev/pandas/pulls/47040
2022-05-17T09:17:38Z
2022-05-17T11:06:54Z
2022-05-17T11:06:54Z
2022-05-17T11:06:54Z
REF: share parts of DTI and PI
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 25b7a5c3d3689..811dc72e9b908 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -210,8 +210,12 @@ def _summary(self, name=None) -> str: # -----------------------------------------...
- [ ] 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/47038
2022-05-17T03:13:56Z
2022-05-17T12:32:02Z
2022-05-17T12:32:02Z
2022-05-17T14:37:52Z
TYP: pandas/_testing
diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index 9e89e09e418b3..1a8fe71ae3728 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -7,6 +7,7 @@ import re import sys from typing import ( + Literal, Sequence, Type, cast, @@ -17,7 +18,9 @@ @con...
Toward's pyrights reportGeneralTypeIssues. After this almost all exceptions for reportGeneralTypeIssues are in pandas/{core, io, plotting}.
https://api.github.com/repos/pandas-dev/pandas/pulls/47037
2022-05-17T01:36:09Z
2022-06-05T22:49:13Z
2022-06-05T22:49:13Z
2022-06-08T19:26:35Z
REF: write indexing checks in terms of should_fallback_to_positional
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8ebaaa28e13a5..c4a3afbb282cf 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4205,9 +4205,14 @@ def is_int(v): return v is None or is_integer(v) is_index_slice = is_int(start) and is_int(s...
- [ ] 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/47036
2022-05-16T20:05:15Z
2022-05-17T12:32:44Z
2022-05-17T12:32:44Z
2022-05-17T14:37:27Z
Stacklevel argument updated #46687
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 589ea6e67d926..5d2331298fc98 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10973,7 +10973,6 @@ def _add_numeric_operations(cls): @deprecate_nonkeyword_arguments( version=None, allowed_args=["self...
- [x] closes #46687 - [ ] [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/47035
2022-05-16T19:58:59Z
2022-06-30T18:06:56Z
2022-06-30T18:06:56Z
2022-06-30T18:07:06Z
ENH: Incorproate ArrowDtype into ArrowExtensionArray
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 53e003e2ed7dd..fbf1cea670c5c 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -26,6 +26,7 @@ ) from pandas._typing import Dtype +from pandas.compat import pa_version_under1p01 from pandas.core.dtypes.common ...
- [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). Not fully user facing ye...
https://api.github.com/repos/pandas-dev/pandas/pulls/47034
2022-05-16T18:53:40Z
2022-06-09T12:42:59Z
2022-06-09T12:42:59Z
2022-08-25T23:44:11Z
DOC: Fix a typo in documentation for qyear
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 05e71c22052ad..de44f0da8275e 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2202,7 +2202,7 @@ cdef class _Period(PeriodMixin): 2018 If the fiscal year starts in April (`Q-MAR`), t...
This fixes a typo that I ran across in the [documentation](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Period.qyear.html?highlight=qyear#pandas.Period.qyear). This change corrects the wording to match the given example that is just below.
https://api.github.com/repos/pandas-dev/pandas/pulls/47033
2022-05-16T18:13:19Z
2022-05-16T18:47:38Z
2022-05-16T18:47:38Z
2022-05-16T18:47:48Z
CI: Start Testing on Python 3.11
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 09639acafbba1..d0895450df818 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -29,7 +29,7 @@ env: jobs: build: - if: false # Comment this line out to "unfreeze" + #if: false # Commen...
- [ ] xref #46680 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/47032
2022-05-15T17:51:01Z
2022-07-30T18:24:07Z
null
2022-07-30T18:24:08Z
Backport PR #47015 on branch 1.4.x (CI: Ensure no-use-pep517 with no-build-isolation with new pip version)
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 483353cfcb3cd..80448319f7918 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -104,6 +104,6 @@ echo "Build extensions" python setup.py build_ext -q -j3 echo "Install pandas" -python -m pip install --no-build-isolation -e . +python -m pip install --no-build-i...
Backport PR #47015: CI: Ensure no-use-pep517 with no-build-isolation with new pip version
https://api.github.com/repos/pandas-dev/pandas/pulls/47031
2022-05-15T13:50:48Z
2022-05-15T15:22:52Z
2022-05-15T15:22:52Z
2022-05-15T15:22:52Z
Backport PR #47020 on branch 1.4.x (CI: Move 32 bit Linux build to GHA)
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml new file mode 100644 index 0000000000000..500e800a082d9 --- /dev/null +++ b/.github/workflows/32-bit-linux.yml @@ -0,0 +1,43 @@ +name: 32 Bit Linux + +on: + push: + branches: + - main + - 1.4.x + pull_request: + branc...
Backport PR #47020
https://api.github.com/repos/pandas-dev/pandas/pulls/47029
2022-05-15T11:33:59Z
2022-05-15T13:53:41Z
2022-05-15T13:53:41Z
2022-05-15T13:53:45Z
Fix: Pandas rolling removes imaginary part of complex
diff --git a/pandas/_libs/window/aggregations.pyx b/pandas/_libs/window/aggregations.pyx index 68c05f2bb2c98..a81c9182c04d2 100644 --- a/pandas/_libs/window/aggregations.pyx +++ b/pandas/_libs/window/aggregations.pyx @@ -14,6 +14,7 @@ import numpy as np cimport numpy as cnp from numpy cimport ( + complex64_t, ...
- [ ] closes #46619 - [ ] [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/47028
2022-05-15T09:59:17Z
2022-06-06T11:51:03Z
null
2022-06-06T11:51:03Z
WIP: ENH Add float[pyarrow] dtype
diff --git a/pandas/__init__.py b/pandas/__init__.py index 3645e8744d8af..7d266566528d9 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -55,6 +55,9 @@ UInt16Dtype, UInt32Dtype, UInt64Dtype, + Float16ArrowDtype, + Float32ArrowDtype, + Float64ArrowDtype, Float32Dtype, Float64...
- Basing this off https://github.com/pandas-dev/pandas/pull/46972 - [ ] [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/47027
2022-05-15T02:25:02Z
2022-05-16T14:03:20Z
null
2022-05-16T14:03:20Z
DOC: Clarify decay argument validation in ewm when times is provided
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 9f1c4755bc54f..4681257dcfca0 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -150,6 +150,7 @@ Other enhancements - Added ``validate`` argument to :meth:`DataFrame.join` (:issue:`46622`) - A :class:`e...
- [x] closes #47003 (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/47026
2022-05-15T01:48:39Z
2022-05-18T13:21:25Z
2022-05-18T13:21:25Z
2022-05-18T16:21:20Z
DEPR: groupby numeric_only default
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 128fd68674f96..af30add139222 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -493,7 +493,8 @@ retained by specifying ``group_keys=False``. ``numeric_only`` default value ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
- [x] closes #46072 (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/47025
2022-05-14T16:04:46Z
2022-05-18T12:54:44Z
2022-05-18T12:54:43Z
2022-05-19T02:28:46Z
DOC: Fix some typos in pandas/.
diff --git a/pandas/_libs/src/ujson/lib/ultrajson.h b/pandas/_libs/src/ujson/lib/ultrajson.h index 5b5995a671b2c..71df0c5a186b7 100644 --- a/pandas/_libs/src/ujson/lib/ultrajson.h +++ b/pandas/_libs/src/ujson/lib/ultrajson.h @@ -29,7 +29,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc) ...
- [ ] 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 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/47022
2022-05-14T12:40:39Z
2022-05-18T13:22:08Z
2022-05-18T13:22:08Z
2022-05-18T13:22:12Z
MAINT: Fix some typos.
diff --git a/LICENSES/ULTRAJSON_LICENSE b/LICENSES/ULTRAJSON_LICENSE index 3b2886eb9cfae..a905fb017d813 100644 --- a/LICENSES/ULTRAJSON_LICENSE +++ b/LICENSES/ULTRAJSON_LICENSE @@ -28,7 +28,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc) https://github.com/client9/stringencoders Copyr...
- [ ] 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 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/47021
2022-05-14T12:38:56Z
2022-05-15T02:58:33Z
2022-05-15T02:58:33Z
2022-05-15T02:58:39Z
CI: Move 32 bit Linux build to GHA
diff --git a/.github/workflows/32-bit-linux.yml b/.github/workflows/32-bit-linux.yml new file mode 100644 index 0000000000000..500e800a082d9 --- /dev/null +++ b/.github/workflows/32-bit-linux.yml @@ -0,0 +1,43 @@ +name: 32 Bit Linux + +on: + push: + branches: + - main + - 1.4.x + pull_request: + branc...
- [x] closes #46351 (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 Also removes references to Azure since no builds run there anymore.
https://api.github.com/repos/pandas-dev/pandas/pulls/47020
2022-05-13T21:47:31Z
2022-05-15T02:56:13Z
2022-05-15T02:56:13Z
2022-05-15T13:55:00Z
REF: simplify tzconversion
diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py index b3a006141fadc..72bc6886b5175 100644 --- a/pandas/_libs/tslibs/__init__.py +++ b/pandas/_libs/tslibs/__init__.py @@ -58,9 +58,7 @@ ) from pandas._libs.tslibs.timestamps import Timestamp from pandas._libs.tslibs.timezones import tz_co...
Broken off branch implementing tzconversion for non-nano
https://api.github.com/repos/pandas-dev/pandas/pulls/47019
2022-05-13T20:54:57Z
2022-05-15T02:55:22Z
2022-05-15T02:55:22Z
2022-05-15T16:10:55Z
REF: merge datetime_to_datetime64 into array_to_datetime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 9492888e7db77..e6bbf52ab1272 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -59,6 +59,7 @@ from pandas._libs.tslibs.nattype cimport ( c_nat_strings as nat_strings, ) from pandas._libs.tslibs.timestamps cimport _Timestamp +fro...
- [ ] 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/47018
2022-05-13T20:51:26Z
2022-05-21T19:47:14Z
2022-05-21T19:47:14Z
2022-05-21T21:53:29Z
BUG: Decay args constraint not enforced when times was provided
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 9f1c4755bc54f..0f1b71c690ce0 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -150,6 +150,7 @@ Other enhancements - Added ``validate`` argument to :meth:`DataFrame.join` (:issue:`46622`) - A :class:`e...
- [x] closes #47003 (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/47017
2022-05-13T20:09:00Z
2022-05-15T01:34:35Z
null
2022-05-15T01:34:38Z
Unpin xarray
diff --git a/environment.yml b/environment.yml index b4710e252384c..df69e654018fb 100644 --- a/environment.yml +++ b/environment.yml @@ -116,7 +116,7 @@ dependencies: - fsspec>=0.7.4 # for generic remote file operations - gcsfs>=0.6.0 # file IO when using 'gcs://...' path - sqlalchemy # pandas.read_sql, Dat...
- [X] closes [#42716](https://github.com/pandas-dev/pandas/issues/42716) - [ ] [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/deve...
https://api.github.com/repos/pandas-dev/pandas/pulls/47016
2022-05-13T20:02:44Z
2022-05-16T09:23:03Z
2022-05-16T09:23:02Z
2022-05-16T09:23:03Z
CI: Ensure no-use-pep517 with no-build-isolation with new pip version
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 483353cfcb3cd..80448319f7918 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -104,6 +104,6 @@ echo "Build extensions" python setup.py build_ext -q -j3 echo "Install pandas" -python -m pip install --no-build-isolation -e . +python -m pip install --no-build-i...
xref https://github.com/scipy/oldest-supported-numpy/issues/53 We may even be able to replace no-build-isolation with no-use-pep517 https://github.com/scikit-learn/scikit-learn/pull/23339 but that could be a followup.
https://api.github.com/repos/pandas-dev/pandas/pulls/47015
2022-05-13T16:21:34Z
2022-05-15T13:49:48Z
2022-05-15T13:49:48Z
2022-05-15T13:54:31Z
DOC: pyarrow >= 8.0.0 supports timedelta
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 4ed71913d7b4d..5228ef9f3c5b6 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -5470,7 +5470,7 @@ See the documentation for `pyarrow <https://arrow.apache.org/docs/python/>`__ an .. note:: These engines a...
8.0.0 was released recently with timedelta support: https://arrow.apache.org/release/8.0.0.html, https://issues.apache.org/jira/browse/ARROW-6780
https://api.github.com/repos/pandas-dev/pandas/pulls/47012
2022-05-13T11:30:54Z
2022-05-15T02:57:45Z
2022-05-15T02:57:45Z
2022-05-15T02:57:50Z
TYP: resolve mypy ingores in core/indexing.py
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 3418f1cab0e6f..06b93622d3ca6 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -627,7 +627,7 @@ def iat(self) -> _iAtIndexer: class _LocationIndexer(NDFrameIndexerBase): _valid_types: str - axis = None + axis: int | N...
xref https://github.com/pandas-dev/pandas/issues/37715 Notes: `axis` has to be passed as an argument to `_tupleize_axis_indexer` in order to assert that it is not `None`. Since this kind of decouples it from the `_LocationIndexer` class, I made it a standalone utility function.
https://api.github.com/repos/pandas-dev/pandas/pulls/47010
2022-05-12T22:25:21Z
2022-05-25T22:45:24Z
2022-05-25T22:45:24Z
2022-05-25T22:45:31Z
Backport PR #46981 on branch 1.4.x (CI: Move MacOS build from Azure to GHA)
diff --git a/.github/workflows/windows.yml b/.github/workflows/macos-windows.yml similarity index 70% rename from .github/workflows/windows.yml rename to .github/workflows/macos-windows.yml index 6f267357554a3..560a421ec74ec 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/macos-windows.yml @@ -1,4 +1...
Backport PR #46981: CI: Move MacOS build from Azure to GHA
https://api.github.com/repos/pandas-dev/pandas/pulls/47007
2022-05-12T15:55:05Z
2022-05-15T04:32:06Z
2022-05-15T04:32:06Z
2022-05-15T04:32:06Z
Simplify Timedelta init, standardize overflow errors
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 4eb1494c4d56c..3ce75d09f78e8 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1,4 +1,5 @@ import collections +import operator import warnings cimport cython @@ -55,6 +56,7 @@ from ...
- [ ] 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/47004
2022-05-11T20:22:31Z
2022-08-15T16:31:40Z
null
2022-08-15T16:31:41Z
Bug fix dataframe interval transpose
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 51ca9dbd763b4..a2699996ddfc8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3451,7 +3451,14 @@ def transpose(self, *args, copy: bool = False) -> DataFrame: arr_type = dtype.construct_array_type() values = self.val...
- [ ] closes #44917 - [ ] [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/47001
2022-05-11T17:15:13Z
2022-05-12T15:23:42Z
null
2022-05-31T16:12:47Z
ENH: do not sort resulting columns when sort=False
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 128fd68674f96..5111ffbda14f9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -745,6 +745,7 @@ Reshaping - Bug in concanenation with ``IntegerDtype``, or ``FloatingDtype`` arrays where the resulting dt...
- [x] closes #17041 - [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/46994
2022-05-11T06:10:41Z
2022-05-19T14:36:21Z
2022-05-19T14:36:20Z
2022-05-19T17:34:26Z
CLN: DatetimeTZBlock don't override values_for_json
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 3836f3e6540b4..421fac4ea767b 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1989,11 +1989,9 @@ class DatetimeTZBlock(DatetimeLikeBlock): _validate_ndim = True _can_consolidate = False ...
- [ ] 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/46993
2022-05-11T01:27:21Z
2022-06-06T19:25:29Z
2022-06-06T19:25:29Z
2022-06-06T19:25:36Z
Backport PR #46991 on branch 1.4.x (CI/TST: Fix test for pyarrow 8.0 release)
diff --git a/pandas/compat/pyarrow.py b/pandas/compat/pyarrow.py index 00b205d018e89..eef2bb6639c36 100644 --- a/pandas/compat/pyarrow.py +++ b/pandas/compat/pyarrow.py @@ -14,6 +14,7 @@ pa_version_under5p0 = _palv < Version("5.0.0") pa_version_under6p0 = _palv < Version("6.0.0") pa_version_under7p0 = _p...
Backport PR #46991: CI/TST: Fix test for pyarrow 8.0 release
https://api.github.com/repos/pandas-dev/pandas/pulls/46992
2022-05-11T01:11:08Z
2022-05-11T12:07:07Z
2022-05-11T12:07:07Z
2022-05-11T12:07:08Z
CI/TST: Fix test for pyarrow 8.0 release
diff --git a/pandas/compat/pyarrow.py b/pandas/compat/pyarrow.py index 00b205d018e89..eef2bb6639c36 100644 --- a/pandas/compat/pyarrow.py +++ b/pandas/compat/pyarrow.py @@ -14,6 +14,7 @@ pa_version_under5p0 = _palv < Version("5.0.0") pa_version_under6p0 = _palv < Version("6.0.0") pa_version_under7p0 = _p...
- [ ] [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/46991
2022-05-10T22:30:11Z
2022-05-11T01:10:27Z
2022-05-11T01:10:27Z
2022-05-11T01:16:22Z
ENH: non-nano Timestamp.timestamp, to_period
diff --git a/pandas/_libs/tslibs/dtypes.pxd b/pandas/_libs/tslibs/dtypes.pxd index 8cc7bcb2a1aad..833ba4ce70bd7 100644 --- a/pandas/_libs/tslibs/dtypes.pxd +++ b/pandas/_libs/tslibs/dtypes.pxd @@ -6,6 +6,7 @@ from pandas._libs.tslibs.np_datetime cimport NPY_DATETIMEUNIT cdef str npy_unit_to_abbrev(NPY_DATETIMEUNIT uni...
- [ ] 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/46990
2022-05-10T21:55:56Z
2022-05-11T01:58:59Z
2022-05-11T01:58:59Z
2022-05-11T15:10:30Z
ENH: Implement nlargest and nsmallest for DataFrameGroupBy
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 2efc6c9167a83..042452c79230e 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -150,6 +150,7 @@ Other enhancements - Added ``validate`` argument to :meth:`DataFrame.join` (:issue:`46622`) - A :class:`e...
- [ ] closes #46924 - [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/46986
2022-05-10T15:34:59Z
2022-06-23T22:20:27Z
null
2022-06-23T22:20:28Z
TST: Assign back multiple column to datetime
diff --git a/pandas/tests/indexing/test_iloc.py b/pandas/tests/indexing/test_iloc.py index c61f3c028f129..539b56667ee07 100644 --- a/pandas/tests/indexing/test_iloc.py +++ b/pandas/tests/indexing/test_iloc.py @@ -21,11 +21,13 @@ Interval, NaT, Series, + Timestamp, array, concat, date_ra...
This tests make sure when converting multiple columns to datetimes and when assiging back it remains as datetime not as unix date as mentioned in GH #20511. - [x] closes #20511 - [x] [Tests added and passed] - [x] All [code checks passed]
https://api.github.com/repos/pandas-dev/pandas/pulls/46982
2022-05-10T06:24:57Z
2022-06-05T23:44:41Z
2022-06-05T23:44:41Z
2022-06-05T23:44:46Z
CI: Move MacOS build from Azure to GHA
diff --git a/.github/workflows/windows.yml b/.github/workflows/macos-windows.yml similarity index 70% rename from .github/workflows/windows.yml rename to .github/workflows/macos-windows.yml index 6f267357554a3..560a421ec74ec 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/macos-windows.yml @@ -1,4 +1...
- [ ] [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). Similar to https://githu...
https://api.github.com/repos/pandas-dev/pandas/pulls/46981
2022-05-10T02:38:18Z
2022-05-12T15:54:27Z
2022-05-12T15:54:27Z
2022-05-13T16:00:47Z
TST: avoid chained assignment in tests outside of specific tests on chaining
diff --git a/pandas/tests/frame/methods/test_combine_first.py b/pandas/tests/frame/methods/test_combine_first.py index daddca7891b93..47ebca0b9bf5c 100644 --- a/pandas/tests/frame/methods/test_combine_first.py +++ b/pandas/tests/frame/methods/test_combine_first.py @@ -66,7 +66,7 @@ def test_combine_first(self, float_fr...
A small part of the test changes from #46958 that can be done separately. We have specific tests about chained indexing (eg `test_chaining_and_caching.py`), so outside those specific tests, I can think we can avoid using chained indexing (regardless of #46958, this would follow our own recommendation on best indexin...
https://api.github.com/repos/pandas-dev/pandas/pulls/46980
2022-05-09T23:03:27Z
2022-05-10T00:07:13Z
2022-05-10T00:07:13Z
2022-05-10T08:16:05Z
API/TST: add tests for new copy/view behaviour
diff --git a/pandas/tests/copy_view/__init__.py b/pandas/tests/copy_view/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/copy_view/test_indexing.py b/pandas/tests/copy_view/test_indexing.py new file mode 100644 index 0000000000000..16cd72cc1cb06 --- /dev/null +++ b/pandas/t...
This is broken off from https://github.com/pandas-dev/pandas/pull/46958 / https://github.com/pandas-dev/pandas/pull/41878 This are the _new_ tests that I wrote for the PRs implementing the proposed new copy/view semantics with Copy-on-Write (https://github.com/pandas-dev/pandas/issues/36195). They are intended to be...
https://api.github.com/repos/pandas-dev/pandas/pulls/46979
2022-05-09T22:50:06Z
2022-05-31T17:01:57Z
2022-05-31T17:01:57Z
2022-05-31T22:07:19Z
follow-up to 44787, use pandas compat for platform specifics in added test
diff --git a/pandas/tests/io/test_compression.py b/pandas/tests/io/test_compression.py index 35749aabdc39f..98e136a9c4ba6 100644 --- a/pandas/tests/io/test_compression.py +++ b/pandas/tests/io/test_compression.py @@ -11,6 +11,8 @@ import pytest +from pandas.compat import is_platform_windows + import pandas as pd ...
follow-up to #44787, as requested by @mroeschke in https://github.com/pandas-dev/pandas/pull/44787#issuecomment-1120292009. Updates one added test to use `is_platform_windows()` for dealing with carriage returns.
https://api.github.com/repos/pandas-dev/pandas/pulls/46973
2022-05-09T07:30:29Z
2022-05-09T18:48:15Z
2022-05-09T18:48:15Z
2022-05-09T18:48:26Z
WIP: ENH Add int[pyarrow] dtype
diff --git a/pandas/__init__.py b/pandas/__init__.py index 3645e8744d8af..1423e65bf52b7 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -47,6 +47,14 @@ from pandas.core.api import ( # dtype + Int8ArrowDtype, + Int16ArrowDtype, + Int32ArrowDtype, + Int64ArrowDtype, + UInt8ArrowDtype, +...
- [ ] [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/46972
2022-05-09T03:06:18Z
2022-05-16T18:54:08Z
null
2022-05-16T18:54:12Z
Backport PR #46960 on branch 1.4.x (CI: Move Windows build from Azure to GHA)
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index e916d5bfde5fb..5e5a3bdf0f024 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -12,6 +12,9 @@ runs: - name: Build Pandas run: | - python setup.py ...
Backport PR #46960: CI: Move Windows build from Azure to GHA
https://api.github.com/repos/pandas-dev/pandas/pulls/46971
2022-05-08T22:19:42Z
2022-05-10T00:05:30Z
2022-05-10T00:05:30Z
2022-05-10T00:05:30Z
TYP: enable reportOverlappingOverload
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index a27ed42c984bf..d4a2bedcfba1a 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -74,7 +74,7 @@ jobs: - name: Install pyright # note: keep version in sync with .pre-commit-config....
reportOverlappingOverload needs a newer pyright version (otherwise it has a few false positives). I intended to update pyright together with mypy in #46905 first, but mypy still hasn't been updated on conda-forge.
https://api.github.com/repos/pandas-dev/pandas/pulls/46969
2022-05-08T14:33:00Z
2022-05-09T00:06:39Z
2022-05-09T00:06:39Z
2022-05-26T01:59:34Z
CLN: mmap used by only read_csv
diff --git a/pandas/io/common.py b/pandas/io/common.py index 15a8f2e114041..fdee1600c2a32 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -640,7 +640,7 @@ def get_handle( .. versionchanged:: 1.4.0 Zstandard support. memory_map : bool, default False - See parsers._parser_params for m...
Make it clear that mmap is only ever used by `read_csv`.
https://api.github.com/repos/pandas-dev/pandas/pulls/46967
2022-05-07T22:10:42Z
2022-05-09T00:04:45Z
2022-05-09T00:04:45Z
2022-05-26T01:59:27Z
TYP: overload asarray_tuplesafe signature
diff --git a/pandas/core/common.py b/pandas/core/common.py index 098b501cc95c9..2e8d6dbced4e3 100644 --- a/pandas/core/common.py +++ b/pandas/core/common.py @@ -225,14 +225,27 @@ def count_not_none(*args) -> int: return sum(x is not None for x in args) -def asarray_tuplesafe(values, dtype: NpDtype | None = Non...
xref https://github.com/pandas-dev/pandas/issues/37715
https://api.github.com/repos/pandas-dev/pandas/pulls/46966
2022-05-07T20:08:48Z
2022-05-09T00:05:36Z
2022-05-09T00:05:36Z
2022-05-09T00:05:36Z
Fix link to be *true* raw data
diff --git a/doc/source/getting_started/intro_tutorials/includes/titanic.rst b/doc/source/getting_started/intro_tutorials/includes/titanic.rst index 312ca48b45dd1..19b8e81914e31 100644 --- a/doc/source/getting_started/intro_tutorials/includes/titanic.rst +++ b/doc/source/getting_started/intro_tutorials/includes/titanic...
Which would be handy for `wget` - [ ] 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....
https://api.github.com/repos/pandas-dev/pandas/pulls/46963
2022-05-07T08:05:05Z
2022-05-08T22:18:14Z
2022-05-08T22:18:14Z
2022-05-08T22:18:19Z
CI: Move Windows build from Azure to GHA
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index e916d5bfde5fb..5e5a3bdf0f024 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -12,6 +12,9 @@ runs: - name: Build Pandas run: | - python setup.py ...
- [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 Took parts from https://github.com/pandas-dev/pandas/pull/46611
https://api.github.com/repos/pandas-dev/pandas/pulls/46960
2022-05-07T03:54:35Z
2022-05-08T22:19:03Z
2022-05-08T22:19:03Z
2022-05-08T22:22:00Z
ENH: Timestamp.month_name, day_name support non-nano
diff --git a/asv_bench/benchmarks/tslibs/fields.py b/asv_bench/benchmarks/tslibs/fields.py index 203afcdaa7378..23ae73811204c 100644 --- a/asv_bench/benchmarks/tslibs/fields.py +++ b/asv_bench/benchmarks/tslibs/fields.py @@ -66,9 +66,9 @@ class TimeGetStartEndField: def setup(self, size, side, period, freqstr, m...
Should also fix an asv that currently fails when run on e.g. v1.4.0
https://api.github.com/repos/pandas-dev/pandas/pulls/46959
2022-05-06T22:19:01Z
2022-05-07T02:28:13Z
2022-05-07T02:28:13Z
2022-05-07T16:41:02Z
API: New copy / view semantics using Copy-on-Write
diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index c4398efb12c3d..b8268a82d9b70 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -52,6 +52,10 @@ jobs: extra_apt: "language-pack-zh-hans" lang: "zh_CN.utf8" lc_all: "zh_CN.ut...
This is a port of the proof of concept using the ArrayManager in https://github.com/pandas-dev/pandas/pull/41878 to the default BlockManager. This PR is a start to implement the proposal described in more detail in https://docs.google.com/document/d/1ZCQ9mx3LBMy-nhwRl33_jgcvWo9IWdEfxDNQ2thyTb0/edit / discussed in ht...
https://api.github.com/repos/pandas-dev/pandas/pulls/46958
2022-05-06T21:54:32Z
2022-08-20T18:45:23Z
2022-08-20T18:45:23Z
2022-10-07T08:43:02Z
DOC: fix cookbook groupby & transform example
diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst index d0b2119f9d315..daf5a0e481b8e 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -511,7 +511,7 @@ Unlike agg, apply's callable is passed a sub-DataFrame which gives you access to def ...
In the example, all negative values of a group should be replaced by the mean of the rest of the group. The linked stackoverflow output has it right: https://stackoverflow.com/questions/14760757/replacing-values-with-groupby-means We have to negate the first argument of `DataFrame.where` here, since this should be t...
https://api.github.com/repos/pandas-dev/pandas/pulls/46957
2022-05-06T20:24:27Z
2022-05-07T02:24:07Z
2022-05-07T02:24:07Z
2022-05-07T02:24:15Z
ENH: plot.scatter passes errorbar specific keyword arguments to ax.er…
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 2efc6c9167a83..76ef011b4fa31 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -713,6 +713,7 @@ Plotting - Bug in :meth:`DataFrame.boxplot` that prevented specifying ``vert=False`` (:issue:`36918`) - B...
…rorbar() (#46952) - [x] closes #46952 (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-d...
https://api.github.com/repos/pandas-dev/pandas/pulls/46954
2022-05-06T02:52:24Z
2022-08-08T23:51:41Z
null
2022-08-08T23:51:42Z
CLN: Remove special case for rank in groupby.ops
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 03f318d08d8cb..7f5fe85e07f40 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -1325,8 +1325,8 @@ def group_rank( mask=sub_mask, ) for i in range(len(result)): - # TODO: why can't we do...
- [ ] 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/46953
2022-05-06T02:46:48Z
2022-05-06T17:02:37Z
2022-05-06T17:02:37Z
2022-05-06T17:06:08Z
Fix for issue #46870 DataFrame.select_dtypes(include='number') includes BooleanDtype
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 35b9de3f7af93..626e46483b14d 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -99,7 +99,7 @@ def _is_boolean(self) -> bool: @property def _is_numeric(self) -> bool: - return True + ...
- [x] closes #46870 (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/46951
2022-05-06T02:22:03Z
2022-06-22T09:59:34Z
null
2022-06-22T09:59:34Z
WIP: CI: Debug Windows recurssion error
diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml deleted file mode 100644 index a1812843b1a8f..0000000000000 --- a/.github/workflows/assign.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Assign -on: - issue_comment: - types: created - -jobs: - issue_assign: - runs-on: ubuntu-latest - steps...
Example: ``` ......x..........................................x.....................................................................................................................x...........xxxWindows fatal exception: stack overflow Thread 0x000015f0 (most recent call first): File "C:\Miniconda\envs\pandas-d...
https://api.github.com/repos/pandas-dev/pandas/pulls/46950
2022-05-05T21:56:33Z
2022-05-07T21:28:06Z
null
2022-05-07T21:28:09Z
CI/DOC: Fix to_hdf docstring validation
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c7013cb95f670..e1459a66a0f12 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2601,11 +2601,6 @@ def to_hdf( followed by fallback to "fixed". index : bool, default True Write DataFrame index as a ...
- [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/46949
2022-05-05T21:26:14Z
2022-05-06T02:23:50Z
2022-05-06T02:23:50Z
2022-05-06T04:18:47Z
PERF: Remove unnecessary asof join functions
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index 9238d36e0ee16..cc7d863bf326c 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -839,11 +839,16 @@ def asof_join_nearest_on_X_by_Y(numeric_t[:] left_values, by_t[:] left_by_values, ...
Several functions in the join cython are module are basically just calling others, and can probably be removed. This wouldn't be a big deal inside python, but in this case it cuts down considerably on the amount of generated cython code. The tests pass for me locally when I do this and there seems to be signifi...
https://api.github.com/repos/pandas-dev/pandas/pulls/46943
2022-05-04T20:11:58Z
2022-05-06T21:29:50Z
2022-05-06T21:29:50Z
2022-09-03T16:04:41Z
TYP: narrow type bounds on extract_array
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 393eb2997f6f0..888e943488953 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -453,30 +453,34 @@ def isin(comps: AnyArrayLike, values: AnyArrayLike) -> npt.NDArray[np.bool_]: else: values = extract_array(valu...
xref https://github.com/pandas-dev/pandas/issues/37715 Narrowing the type bound allows resolving some ignored mypy errors. The other modified code is needed because `extract_array` no longer returns `Any`, causing more strict type checking in the calling methods.
https://api.github.com/repos/pandas-dev/pandas/pulls/46942
2022-05-04T20:09:51Z
2022-05-25T22:28:01Z
2022-05-25T22:28:01Z
2022-08-02T19:28:09Z
PERF: Improve SeriesGroupBy.value_counts performances with categorical values.
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index cf6f3f92068e8..1152c2253c42d 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -677,6 +677,15 @@ def time_groupby_extra_cat_sort(self): def time_groupby_extra_cat_nosort(self): self.df_...
- [X] closes #46202 - [ ] [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/46940
2022-05-04T13:44:04Z
2022-08-01T20:24:35Z
null
2022-08-01T20:24:41Z
ENH: validates boolean kwargs in DataFrame and Series methods
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 931d18dc349f3..7828e05892887 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -125,6 +125,7 @@ Other enhancements - Added ``validate`` argument to :meth:`DataFrame.join` (:issue:`46622`) - A :class:`e...
- [X] closes #16714 (for DataFrame and Series) - [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] pre commit code check passed - [X] Added an entry in the latest whatsnew. (First commit is an ...
https://api.github.com/repos/pandas-dev/pandas/pulls/46938
2022-05-04T10:08:07Z
2022-06-23T22:20:57Z
null
2022-06-23T22:20:58Z
TYP: enable reportUnusedImport
diff --git a/pandas/__init__.py b/pandas/__init__.py index 01ff2e1e1f181..eb5ce71141f46 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -1,4 +1,3 @@ -# flake8: noqa from __future__ import annotations __docformat__ = "restructuredtext" @@ -20,7 +19,7 @@ del _hard_dependencies, _dependency, _missing_depe...
pyright's reportUnusedImport checks py and pyi files for unused imports. If an import is explicitly marked as public (re-exported using `as` or in `__all__`) it is "used" (flake8 seems to use the same definition). Adding unused imports to `__all__` becomes messy when the file does not yet have `__all__`: need to lis...
https://api.github.com/repos/pandas-dev/pandas/pulls/46937
2022-05-04T03:34:35Z
2022-07-10T00:11:59Z
2022-07-10T00:11:59Z
2022-09-21T15:28:31Z
Add/reorganize scalar Timedelta tests
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 4eb1494c4d56c..5f4a5d144eb8c 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1,4 +1,5 @@ import collections +import operator import warnings cimport cython @@ -41,6 +42,7 @@ from ...
- [ ] 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/46936
2022-05-04T01:02:22Z
2022-05-25T01:05:05Z
null
2022-05-25T01:05:05Z
PERF: Remove docstrings from inline cython code
diff --git a/setup.py b/setup.py index 67b91c55dd397..11e3494b72561 100755 --- a/setup.py +++ b/setup.py @@ -46,8 +46,11 @@ def is_platform_mac(): __version__ as _CYTHON_VERSION, ) from Cython.Build import cythonize + from Cython.Compiler import Options _CYTHON_INSTALLED = parse_version(_CY...
These functions aren't externally available, and removing them saves a small amount of space (approximately 250k in the size of the generated .so's on a linux64 machine).
https://api.github.com/repos/pandas-dev/pandas/pulls/46934
2022-05-03T20:00:27Z
2022-06-16T05:22:31Z
null
2022-06-16T05:22:31Z
ENH: support mask in libalgos.rank
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index 60bdb504c545b..0cc9209fbdfc5 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -109,6 +109,7 @@ def rank_1d( ascending: bool = ..., pct: bool = ..., na_option=..., + mask: npt.NDArray[np.bool_] | None = ..., ) -> np....
- [ ] 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/46932
2022-05-02T22:35:01Z
2022-05-04T13:07:42Z
2022-05-04T13:07:42Z
2022-05-04T20:14:26Z
DOC: added index, dropna description for HDF methods #45030
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c615216240d60..13af64c9fea5d 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2599,6 +2599,8 @@ def to_hdf( like searching / selecting subsets of the data. - If None, pd.get_option('io.hdf.default_format')...
- [ ] closes #45030 - [ ] [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/46931
2022-05-02T22:20:01Z
2022-05-04T23:38:22Z
2022-05-04T23:38:22Z
2022-05-05T08:15:34Z
DataFrame.replace with dict doesn't work when value=None
diff --git a/pandas/core/shared_docs.py b/pandas/core/shared_docs.py index bece833066f89..890b988378870 100644 --- a/pandas/core/shared_docs.py +++ b/pandas/core/shared_docs.py @@ -482,8 +482,8 @@ - Dicts can be used to specify different replacement values for different existing values. For ...
- [x] closes #46606 (Replace xxxx with the Github issue number)
https://api.github.com/repos/pandas-dev/pandas/pulls/46930
2022-05-02T22:16:55Z
2022-05-03T01:36:54Z
2022-05-03T01:36:53Z
2022-05-03T01:37:00Z
TYP: overload maybe_downcast_numeric and maybe_downcast_to_dtype
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index cba055d5b4345..88a92ea1455d0 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -246,6 +246,16 @@ def _disallow_mismatched_datetimelike(value, dtype: DtypeObj): raise TypeError(f"Cannot cast {repr(value)} to {dt...
xref https://github.com/pandas-dev/pandas/issues/37715 Overload type definitions for these methods so that passing in an ndarray returns an ndarray. This allows removing two more ignored mypy errors.
https://api.github.com/repos/pandas-dev/pandas/pulls/46929
2022-05-02T21:28:09Z
2022-05-06T14:23:01Z
2022-05-06T14:23:01Z
2022-05-06T14:23:27Z
TYP: resolve ignored mypy errors in core/describe.py
diff --git a/pandas/core/describe.py b/pandas/core/describe.py index 60881d7a68b10..c70dbe0b8b0b1 100644 --- a/pandas/core/describe.py +++ b/pandas/core/describe.py @@ -22,7 +22,10 @@ import numpy as np from pandas._libs.tslibs import Timestamp -from pandas._typing import NDFrameT +from pandas._typing import ( + ...
xref https://github.com/pandas-dev/pandas/issues/37715
https://api.github.com/repos/pandas-dev/pandas/pulls/46928
2022-05-02T20:26:52Z
2022-05-06T21:24:31Z
2022-05-06T21:24:31Z
2022-05-06T21:24:36Z
CLN: tzconversion
diff --git a/pandas/_libs/tslibs/tzconversion.pxd b/pandas/_libs/tslibs/tzconversion.pxd index a34161b20e2ff..600ac54639dfc 100644 --- a/pandas/_libs/tslibs/tzconversion.pxd +++ b/pandas/_libs/tslibs/tzconversion.pxd @@ -6,9 +6,6 @@ from numpy cimport ( ) -cdef int64_t localize_tzinfo_api( - int64_t utc_val, tz...
Cleanups following recent refactoring.
https://api.github.com/repos/pandas-dev/pandas/pulls/46926
2022-05-02T16:00:08Z
2022-05-02T20:10:43Z
2022-05-02T20:10:42Z
2022-05-02T20:48:29Z
Backport PR #46912 on branch 1.4.x (CI: More targeted pyarrow version testing)
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 0a914dd965a5e..f5cbb0e88ff11 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -62,6 +62,15 @@ jobs: pattern: "not slow and not network and not single_cpu" pandas_testing_mode: "deprecate" ...
Backport PR #46912: CI: More targeted pyarrow version testing
https://api.github.com/repos/pandas-dev/pandas/pulls/46925
2022-05-02T15:01:10Z
2022-05-02T20:31:43Z
2022-05-02T20:31:43Z
2022-05-02T20:31:44Z
STYL: a few cleanups in pyi files
diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi index 5c7be5e660fd9..a6d593076777d 100644 --- a/pandas/_libs/hashtable.pyi +++ b/pandas/_libs/hashtable.pyi @@ -144,26 +144,13 @@ class HashTable: np.ndarray, # np.ndarray[subclass-specific] npt.NDArray[np.intp], ] | np.ndarray...
Might make sense to run flake8 on pyi files (add flake8-pyi to pre-commit)
https://api.github.com/repos/pandas-dev/pandas/pulls/46921
2022-05-01T21:53:51Z
2022-05-03T09:36:56Z
2022-05-03T09:36:56Z
2022-05-26T01:59:22Z
TYP: fix a few annotations in offsets.pyi
diff --git a/pandas/_libs/tslibs/offsets.pyi b/pandas/_libs/tslibs/offsets.pyi index 4cc301018e8f8..9410379b16ba2 100644 --- a/pandas/_libs/tslibs/offsets.pyi +++ b/pandas/_libs/tslibs/offsets.pyi @@ -9,9 +9,7 @@ from typing import ( Any, Collection, Literal, - Tuple, TypeVar, - Union, ov...
- [ ] closes #46908 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Some doc-strings refer to `pd.HolidayCalendar` but that doesn't seem to exist?! There are a few more un-annotated variables and a few containers (list and dict) without...
https://api.github.com/repos/pandas-dev/pandas/pulls/46920
2022-05-01T18:18:51Z
2022-05-03T11:58:49Z
2022-05-03T11:58:48Z
2022-05-26T01:59:21Z
TYP: fix MultiIndex._names type
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 51ca9dbd763b4..6b7aca1b6c4ee 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10420,12 +10420,14 @@ def _count_level(self, level: Level, axis: int = 0, numeric_only: bool = False): else: mask = index_mask.reshape(-1, 1)...
xref https://github.com/pandas-dev/pandas/issues/37715 _names was never really a FrozenList. Also adapted some related code in _count_level The change in _count_level is required because `list` cannot be indexed by `Hashable` - this issue had not been detected by mypy up until now because the argument of `__geti...
https://api.github.com/repos/pandas-dev/pandas/pulls/46919
2022-05-01T16:40:03Z
2022-05-21T20:04:21Z
2022-05-21T20:04:20Z
2022-05-21T20:04:25Z
Fix: subset parameter of DataFrameGroupBy.value_counts has no effect
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 245e33fb1a23b..f9fc7d3fecb0e 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1735,12 +1735,20 @@ def value_counts( name = self._selected_obj.name keys = [] if name in...
- [x] closes #46383 - [ ] [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/46918
2022-05-01T16:06:30Z
2022-05-01T16:08:10Z
null
2022-05-01T16:08:10Z
REF: stronger typing in _box_func
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 5c8c6d7fe23a3..5859f051ab343 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -538,13 +538,10 @@ def _check_compatible_with(self, other, setitem: bool = False): # ------------------------------...
Necessary for non-nano support
https://api.github.com/repos/pandas-dev/pandas/pulls/46917
2022-05-01T15:22:50Z
2022-05-02T14:58:31Z
2022-05-02T14:58:31Z
2022-05-02T15:47:23Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 767ef62bb1758..bd095c03e6fdb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -26,7 +26,7 @@ repos: types_or: [python, rst, markdown] files: ^(pandas|doc)/ - repo: https://github.com/pre-commit/pre-commit-hook...
<!-- 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/46915
2022-05-01T07:08:27Z
2022-05-01T09:15:29Z
2022-05-01T09:15:29Z
2022-05-07T03:09:21Z
TYP: fix type annotation in _has_externally_shared_axis
diff --git a/pandas/plotting/_matplotlib/tools.py b/pandas/plotting/_matplotlib/tools.py index 30af4f90d6869..bfbf77e85afd3 100644 --- a/pandas/plotting/_matplotlib/tools.py +++ b/pandas/plotting/_matplotlib/tools.py @@ -328,13 +328,13 @@ def _remove_labels_from_axis(axis: Axis): axis.get_label().set_visible(False...
`from matplotlib import axes` is a module, not the axes class.
https://api.github.com/repos/pandas-dev/pandas/pulls/46914
2022-05-01T04:17:25Z
2022-05-07T02:29:24Z
2022-05-07T02:29:24Z
2022-05-26T01:59:20Z
CI: More targeted pyarrow version testing
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 8a16ef4020b14..f5cbb0e88ff11 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -28,7 +28,7 @@ jobs: pattern: ["not single_cpu", "single_cpu"] # Don't test pyarrow v2/3: Causes timeouts in read_csv ...
- [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 Hoping to supersede https://github.com/pandas-dev/pandas/pull/46386. cc @lithomas1 While the job queue bandwidth is larger now, probably don't nee...
https://api.github.com/repos/pandas-dev/pandas/pulls/46912
2022-05-01T00:56:14Z
2022-05-02T14:59:26Z
2022-05-02T14:59:25Z
2022-05-02T21:37:08Z
BUG: added finalize to merge, GH28283
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 931d18dc349f3..2d20951a5e8a2 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -659,7 +659,7 @@ Metadata ^^^^^^^^ - Fixed metadata propagation in :meth:`DataFrame.melt` (:issue:`28283`) - Fixed metada...
Progress towards #28283 This PR gives the `merge` method the ability to propagate metadata using `__finalize__`. - [ ] 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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/46911
2022-05-01T00:55:13Z
2022-05-01T03:21:32Z
null
2022-05-01T03:21:32Z
DOC: update shortened link to full (#46899)
diff --git a/pandas/core/strings/object_array.py b/pandas/core/strings/object_array.py index 1904ce32f3170..7421645baa463 100644 --- a/pandas/core/strings/object_array.py +++ b/pandas/core/strings/object_array.py @@ -434,9 +434,9 @@ def _str_rstrip(self, to_strip=None): return self._str_map(lambda x: x.rstrip(...
- [ ] 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/46907
2022-04-30T16:13:27Z
2022-04-30T18:37:20Z
2022-04-30T18:37:20Z
2022-04-30T18:37:37Z
DEPR: numeric_only default in DataFrame methods with None/True
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 931d18dc349f3..aa42d4236484b 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -120,7 +120,7 @@ Other enhancements - :meth:`DataFrame.reset_index` now accepts a ``names`` argument which renames the inde...
- [x] closes #46852 (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/46906
2022-04-30T15:47:33Z
2022-05-05T01:22:56Z
2022-05-05T01:22:55Z
2022-07-26T20:44:02Z
TYP/CI: bump mypy&pyright
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index d4a2bedcfba1a..7d24b26f5538b 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -74,7 +74,7 @@ jobs: - name: Install pyright # note: keep version in sync with .pre-commit-config....
Mypy aims to have a monthly release.
https://api.github.com/repos/pandas-dev/pandas/pulls/46905
2022-04-30T13:08:54Z
2022-05-15T15:33:17Z
2022-05-15T15:33:17Z
2022-05-30T07:02:51Z
BUG: DatetimeIndex.resolution with nanosecond reso
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 128fd68674f96..4e2f547d7d2dc 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -553,6 +553,8 @@ Other Deprecations - Deprecated the ``closed`` argument in :meth:`interval_range` in favor of ``inclusive`...
- [ ] 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/46903
2022-04-30T02:14:50Z
2022-05-19T13:12:04Z
2022-05-19T13:12:03Z
2022-05-19T15:12:06Z
ENH: fields.get_start_end_field support non-nano
diff --git a/asv_bench/benchmarks/tslibs/fields.py b/asv_bench/benchmarks/tslibs/fields.py index 23ae73811204c..203afcdaa7378 100644 --- a/asv_bench/benchmarks/tslibs/fields.py +++ b/asv_bench/benchmarks/tslibs/fields.py @@ -66,9 +66,9 @@ class TimeGetStartEndField: def setup(self, size, side, period, freqstr, m...
- [ ] 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/46902
2022-04-30T01:36:32Z
2022-05-05T22:08:23Z
2022-05-05T22:08:23Z
2022-05-05T22:14:20Z
ENH: allow non-nano in DatetimeArray, TimedeltaArray._simple_new
diff --git a/pandas/_libs/tslibs/__init__.py b/pandas/_libs/tslibs/__init__.py index 7cbc1833093ba..b3a006141fadc 100644 --- a/pandas/_libs/tslibs/__init__.py +++ b/pandas/_libs/tslibs/__init__.py @@ -25,6 +25,7 @@ "Tick", "BaseOffset", "tz_compare", + "is_unitless", ] from pandas._libs.tslibs imp...
- [ ] 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/46901
2022-04-30T01:26:17Z
2022-05-06T21:20:03Z
2022-05-06T21:20:03Z
2022-05-06T22:26:38Z
Update Git.io deprecated link (#46888)
diff --git a/pandas/core/strings/object_array.py b/pandas/core/strings/object_array.py index 2f65ce17f93b2..1904ce32f3170 100644 --- a/pandas/core/strings/object_array.py +++ b/pandas/core/strings/object_array.py @@ -435,7 +435,7 @@ def _str_rstrip(self, to_strip=None): def _str_removeprefix(self, prefix: str) -...
- [ ] 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/46899
2022-04-29T23:56:21Z
2022-04-30T00:48:13Z
2022-04-30T00:48:13Z
2022-04-30T15:41:44Z
REF: Use Localizer more
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index c876cc55be0be..e5217259a3648 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -52,12 +52,8 @@ from pandas._libs.tslibs.np_datetime import ( ) from pandas._libs.tslibs.timezones cimpo...
I think this gets us to maximal feasible sharing for utc_val_to_local_val.
https://api.github.com/repos/pandas-dev/pandas/pulls/46898
2022-04-29T22:58:27Z
2022-04-30T03:14:03Z
2022-04-30T03:14:03Z
2022-04-30T03:24:42Z
Styler whatsew
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index c85a087835b80..9f8ab3118751d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -37,10 +37,17 @@ The protocol consists of two parts: Styler ^^^^^^ - - New method :meth:`.Styler.to_string` for alterna...
editing the whatsnew placeholder ahead of 1.5, in case I don't have time later on
https://api.github.com/repos/pandas-dev/pandas/pulls/46897
2022-04-29T19:51:48Z
2022-04-29T22:42:07Z
2022-04-29T22:42:07Z
2022-04-30T14:49:25Z
PERF: Optimize read_excel nrows
diff --git a/asv_bench/benchmarks/io/excel.py b/asv_bench/benchmarks/io/excel.py index 3363b43f29b78..a2d989e787e0f 100644 --- a/asv_bench/benchmarks/io/excel.py +++ b/asv_bench/benchmarks/io/excel.py @@ -86,4 +86,15 @@ def time_read_excel(self, engine): read_excel(fname, engine=engine) +class ReadExcelNRo...
- [x] closes #32727 - [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/46894
2022-04-29T05:06:53Z
2022-06-05T23:49:12Z
2022-06-05T23:49:12Z
2022-06-07T03:22:23Z
BUG: rolling aggregate() with a list of functions along axis 1 raises ValueError #46132
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 6bf6fd65f5633..0f361ca9a74a9 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -862,6 +862,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.skew` and :meth:`Rolling.kurt` would give NaN with window...
- [x] closes #46132 (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/46892
2022-04-28T21:11:41Z
2022-06-06T03:04:59Z
null
2022-06-06T03:05:17Z
REF: handle 2D in tslibs.vectorized
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 8f145d0d66acc..4eb1494c4d56c 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -354,6 +354,7 @@ def array_to_timedelta64( raise ValueError( "unit mus...
- [ ] 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/46886
2022-04-27T21:31:15Z
2022-05-06T21:30:54Z
2022-05-06T21:30:54Z
2022-05-06T22:25:47Z
DOC: GH27557 Updates Python support documentation to match NumPy NEP 29
diff --git a/doc/source/development/policies.rst b/doc/source/development/policies.rst index f8e6bda2085d8..d75262c08dfd6 100644 --- a/doc/source/development/policies.rst +++ b/doc/source/development/policies.rst @@ -51,7 +51,7 @@ pandas may change the behavior of experimental features at any time. Python support ~~~...
- [x] closes [#27557](https://github.com/pandas-dev/pandas/issues/27557) - [ ] [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/devel...
https://api.github.com/repos/pandas-dev/pandas/pulls/46883
2022-04-27T07:02:56Z
2022-04-28T13:37:33Z
2022-04-28T13:37:33Z
2022-04-28T13:37:34Z
Backport PR #45247 on branch 1.4.x (PERF: find_stack_level)
diff --git a/pandas/util/_exceptions.py b/pandas/util/_exceptions.py index 806e2abe83a92..ef467f096e963 100644 --- a/pandas/util/_exceptions.py +++ b/pandas/util/_exceptions.py @@ -29,17 +29,20 @@ def find_stack_level() -> int: Find the first place in the stack that is not inside pandas (tests notwithstanding...
Backport PR #45247: PERF: find_stack_level
https://api.github.com/repos/pandas-dev/pandas/pulls/46881
2022-04-27T03:45:59Z
2022-04-27T12:31:44Z
2022-04-27T12:31:44Z
2022-04-27T12:59:44Z
REF: libhashtable.mode support mask
diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi index 481ff0d36c460..5c7be5e660fd9 100644 --- a/pandas/_libs/hashtable.pyi +++ b/pandas/_libs/hashtable.pyi @@ -197,10 +197,13 @@ def duplicated( values: np.ndarray, keep: Literal["last", "first", False] = ..., ) -> npt.NDArray[np.bool_]: ....
- [ ] 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/46880
2022-04-26T23:32:51Z
2022-04-27T12:32:25Z
2022-04-27T12:32:25Z
2022-04-27T14:56:08Z
Merge nonstring columns
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 55bfb044fb31d..5397b1763242d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -154,6 +154,8 @@ Other enhancements - ``times`` argument in :class:`.ExponentialMovingWindow` now accepts ``np.timedelta64`...
- [X] closes https://github.com/pandas-dev/pandas/issues/46885 - [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/46879
2022-04-26T20:05:57Z
2022-08-09T01:29:22Z
null
2022-08-09T01:29:22Z
PERF: use C version of np.empty
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 5094f6f07d534..13bd95004445d 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -873,7 +873,7 @@ def get_level_sorter( """ cdef: Py_ssize_t i, l, r - ndarray[intp_t, ndim=1] out = np.empty(len(codes), dtype=np.intp) + ...
- [ ] 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/46878
2022-04-26T18:16:07Z
2022-04-27T12:35:40Z
2022-04-27T12:35:40Z
2022-04-27T14:55:56Z
BUG: extra row created when calling to_excel for multi-index columns
diff --git a/pandas/io/formats/excel.py b/pandas/io/formats/excel.py index d0fea32cafe26..d011f0f0a9ff4 100644 --- a/pandas/io/formats/excel.py +++ b/pandas/io/formats/excel.py @@ -705,8 +705,8 @@ def _format_regular_rows(self) -> Iterable[ExcelCell]: else: index_label = self.df.index.name...
- [ ] 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 - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/46875
2022-04-26T10:16:43Z
2022-06-23T22:22:43Z
null
2022-06-23T22:22:43Z
TST: Fix flaky xfail condition typo
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 852e85968d43f..910449d98bcc5 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -840,7 +840,7 @@ def test_basic_series_frame_alignment( and parser == "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). This flaky test resurfac...
https://api.github.com/repos/pandas-dev/pandas/pulls/46871
2022-04-25T19:57:55Z
2022-04-26T00:22:29Z
2022-04-26T00:22:29Z
2022-04-26T01:15:58Z
DOC: fix typo in docstrings
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index dda0d9549e7b3..ab42fcd92a3d9 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1146,7 +1146,7 @@ def assert_frame_equal( Check that left and right DataFrame are equal. This function is intended to c...
Correct a spelling mistake in docstrings of `pandas.testing.assert_frame_equal`. Before ```python: before Is is mostly intended for use in unit tests. ``` After ``` It is mostly intended for use in unit tests. ```
https://api.github.com/repos/pandas-dev/pandas/pulls/46866
2022-04-25T13:13:39Z
2022-04-25T13:23:37Z
2022-04-25T13:23:37Z
2022-04-25T13:23:37Z
BUG: Raise error when expr does not evaluate to bool in df.query
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index ba1c610decc7f..d00aa6d54687d 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -810,6 +810,7 @@ Indexing - Bug in :meth:`NDFrame.xs`, :meth:`DataFrame.iterrows`, :meth:`DataFrame.loc` and :meth:`DataFra...
- [X] closes #8560 - [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/46862
2022-04-25T01:34:28Z
2022-07-22T17:48:39Z
null
2022-07-22T17:48:39Z