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
CLN: assorted cleanups in cython
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 5a7c6dad311b5..6c28b4f821080 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1,6 +1,5 @@ -import cython -from cython import Py_ssize_t - +cimport cython +from cython cimport Py_ssize_t from libc.math cimport ( fabs, sqrt,...
- [ ] 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/46861
2022-04-24T21:33:30Z
2022-04-25T21:30:58Z
2022-04-25T21:30:58Z
2022-04-25T21:33:20Z
BUG: Series.map is ignoring the na_action keyword
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index e4879a6c41515..90586920120e0 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -79,6 +79,7 @@ as seen in the following example. Other enhancements ^^^^^^^^^^^^^^^^^^ +- :meth:`Series.map` now raises ...
- [x] closes #46588 - [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/46860
2022-04-24T17:22:11Z
2022-04-27T12:36:31Z
2022-04-27T12:36:30Z
2022-04-27T12:36:38Z
Backport PR #46842 on branch 1.4.x (CI/TST: xfail git test failure on 32 bit job)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ec798bd607034..d84f2d7784935 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,7 +48,8 @@ jobs: pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \ python setup.py build_ext ...
Backport PR #46842 (cherry picked from commit 976404bde733c4751da56b41fba0aa95b4c8165d)
https://api.github.com/repos/pandas-dev/pandas/pulls/46857
2022-04-24T01:30:04Z
2022-04-25T12:44:50Z
2022-04-25T12:44:50Z
2022-04-25T19:02:04Z
Missing `f` prefix on f-strings fix
diff --git a/pandas/tests/groupby/transform/test_transform.py b/pandas/tests/groupby/transform/test_transform.py index 237d6a96f39ec..0492b143eaf1f 100644 --- a/pandas/tests/groupby/transform/test_transform.py +++ b/pandas/tests/groupby/transform/test_transform.py @@ -1043,7 +1043,7 @@ def demean_rename(x): if...
Fixes #46853
https://api.github.com/repos/pandas-dev/pandas/pulls/46855
2022-04-23T22:55:50Z
2022-04-24T01:43:25Z
2022-04-24T01:43:25Z
2022-04-24T01:43:32Z
Add more overflow tests for timedelta64 operations
diff --git a/pandas/_testing/__init__.py b/pandas/_testing/__init__.py index 96f37bd47e10c..399b2db1c4c65 100644 --- a/pandas/_testing/__init__.py +++ b/pandas/_testing/__init__.py @@ -4,6 +4,7 @@ from datetime import datetime from decimal import Decimal from functools import wraps +from inspect import isclass impo...
- [ ] 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/46854
2022-04-23T22:50:39Z
2022-08-15T16:31:10Z
null
2022-08-15T16:31:11Z
Update join docs for other param
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fe101926a6782..6319fb82bd81c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9788,7 +9788,7 @@ def _append( def join( self, - other: DataFrame | Series, + other: DataFrame | Series | list[DataFrame | Series], ...
Currently the `DataFrame.join` docs imply that the type of `other` is `DataFrame | Series | list[DataFrame]`, but this is not correct, and `list[Series | DataFrame]` is a more appropriate type. The type signature and also the method description have been updated to amend this. - [ ] closes #xxxx (Replace xxxx wi...
https://api.github.com/repos/pandas-dev/pandas/pulls/46850
2022-04-23T10:33:35Z
2022-07-21T17:17:26Z
2022-07-21T17:17:26Z
2022-07-21T17:17:39Z
REF: implement utc_val_to_local_val
diff --git a/pandas/_libs/tslibs/vectorized.pyx b/pandas/_libs/tslibs/vectorized.pyx index 39bcfc9277969..6b78100705a93 100644 --- a/pandas/_libs/tslibs/vectorized.pyx +++ b/pandas/_libs/tslibs/vectorized.pyx @@ -80,20 +80,31 @@ cdef class Localizer: else: trans, deltas, typ = get_dst_info(tz) ...
Some overlap with #46803. I'm pretty happy with the perf impact, as the cases that are slowed down are the ones that are currently the fastest. ``` asv continuous -E virtualenv -f 1.01 a8968bfa 874d1ed4 --record-samples --append-samples -b tslibs.normalize -b tslibs.tslib.TimeIntsToPydatetime -b tslibs.period.Time...
https://api.github.com/repos/pandas-dev/pandas/pulls/46847
2022-04-23T01:34:36Z
2022-04-27T12:26:39Z
2022-04-27T12:26:39Z
2022-04-27T15:03:02Z
Try to fix groupby_valuecount
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8d9b94f242e33..055ef899f9c94 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1721,6 +1721,16 @@ def value_counts( in_axis_names = { grouping.name for grouping in self.gro...
- [BUG: fixed subset parameter of DataFrameGroupBy.value_counts has no effect] closes #46383
https://api.github.com/repos/pandas-dev/pandas/pulls/46846
2022-04-23T01:05:32Z
2022-06-03T21:24:38Z
null
2022-06-03T21:24:38Z
BUG: fix subset parameter of DataFrameGroupBy.value_counts has no effect #46383
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 06a1aed8e3b09..7ebc3fd91789c 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -1723,6 +1723,16 @@ def value_counts( in_axis_names = { grouping.name for grouping in self.gro...
- [ ] 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/46845
2022-04-23T00:19:30Z
2022-04-23T00:26:44Z
null
2022-04-23T00:26:45Z
CI/TST: xfail git test failure on 32 bit job
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9b83ed6116ed3..f7c97f0554e0e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -48,6 +48,7 @@ jobs: pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio>=0.17 hypothesis && \ python setup.py build_ext ...
- [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). Doesn't appear that a sp...
https://api.github.com/repos/pandas-dev/pandas/pulls/46842
2022-04-22T22:49:42Z
2022-04-24T01:19:31Z
2022-04-24T01:19:31Z
2022-04-25T12:43:18Z
Add "rows" as option to "axis" docstring
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index c2b36dab4a67e..82519aaf1ea73 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -171,7 +171,7 @@ def concat( argument, unless it is passed, in which case the values will be selected (see bel...
The "axis" parameter of `pd.concat()` can take the string `'rows'` as an optional way of explicitly defining the default row axis for concatenation: ```python import pandas as pd pd.concat([pd.DataFrame(), pd.DataFrame()], axis="rows") ``` Using `'rows'` instead of `'index'` or `0` might be more intuitive as...
https://api.github.com/repos/pandas-dev/pandas/pulls/46841
2022-04-22T20:37:27Z
2022-05-24T20:45:14Z
null
2022-05-24T20:45:14Z
ENH: initial support for non-nano Timestamp
diff --git a/pandas/_libs/tslibs/timestamps.pxd b/pandas/_libs/tslibs/timestamps.pxd index 1ccd8d2dfc4cd..bde7cf9328712 100644 --- a/pandas/_libs/tslibs/timestamps.pxd +++ b/pandas/_libs/tslibs/timestamps.pxd @@ -5,19 +5,26 @@ from cpython.datetime cimport ( from numpy cimport int64_t from pandas._libs.tslibs.base ...
- [ ] 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/46839
2022-04-22T17:47:29Z
2022-04-27T12:25:38Z
2022-04-27T12:25:38Z
2022-04-27T15:02:35Z
TST: GH32822 data types in frame manip
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 3e22734992d23..3adc63e1a27f6 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -2007,6 +2007,15 @@ def test_bool_frame_mult_float(): tm.assert_frame_equal(result, expecte...
- [ ] closes #32822 - [ ] [1 Test added and passed] - [ ] All [code checks passed]
https://api.github.com/repos/pandas-dev/pandas/pulls/46836
2022-04-22T13:57:03Z
2022-06-03T18:31:40Z
2022-06-03T18:31:39Z
2022-06-03T18:31:46Z
DOC: fix rsplit doc
diff --git a/pandas/core/strings/accessor.py b/pandas/core/strings/accessor.py index 935b124ca446a..abd380299ba02 100644 --- a/pandas/core/strings/accessor.py +++ b/pandas/core/strings/accessor.py @@ -659,8 +659,8 @@ def cat( Parameters ---------- - pat : str or compiled regex, optional - String o...
- [x] closes #46488 (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/46835
2022-04-22T12:38:01Z
2022-04-23T09:10:06Z
2022-04-23T09:10:06Z
2022-04-23T09:10:07Z
Fix concat docstring
diff --git a/.circleci/config.yml b/.circleci/config.yml index dc357101e79fd..9d1a11026b35d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: environment: ENV_FILE: ci/deps/circle-38-arm64.yaml PYTEST_WORKERS: auto - PATTERN: "not slow and not network and not ...
- [ ] 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/46834
2022-04-22T10:57:45Z
2022-04-22T20:41:04Z
null
2022-04-22T20:41:21Z
Importing pandas changes return value of sys.getsizeof?
diff --git a/pandas/tests/test_common.py b/pandas/tests/test_common.py index d31f617b9be15..298d2f0bec742 100644 --- a/pandas/tests/test_common.py +++ b/pandas/tests/test_common.py @@ -12,6 +12,7 @@ import pandas.core.common as com from pandas.util.version import Version +import sys def test_get_callable_name():...
- [X] closes #21758 - [X] [Tests added and passed] - [ ] 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/46832
2022-04-22T05:35:36Z
2022-06-03T17:14:58Z
null
2022-09-12T08:34:58Z
stopped numeric_only=True from dropping columns
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index f649cce985474..894f1825978ab 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1610,8 +1610,6 @@ def _cython_agg_general( raise NotImplementedError( f"{type(self)._...
- [ ] [Tests added and passed] Issue #46375
https://api.github.com/repos/pandas-dev/pandas/pulls/46830
2022-04-22T03:38:42Z
2022-05-24T20:52:23Z
null
2022-05-24T20:52:23Z
added tests for the test_groupby_dropna.py
diff --git a/pandas/tests/groupby/test_groupby_dropna.py b/pandas/tests/groupby/test_groupby_dropna.py index 9fcc28d8f65a9..44989d1b93e99 100644 --- a/pandas/tests/groupby/test_groupby_dropna.py +++ b/pandas/tests/groupby/test_groupby_dropna.py @@ -348,3 +348,33 @@ def test_groupby_nan_included(): tm.assert_nu...
- [ ] closes #46783
https://api.github.com/repos/pandas-dev/pandas/pulls/46829
2022-04-22T03:34:14Z
2022-05-24T20:51:50Z
null
2022-05-24T20:51:50Z
ENH: ints_to_pytimedelta support non-nano
diff --git a/pandas/_libs/tslibs/timedeltas.pyi b/pandas/_libs/tslibs/timedeltas.pyi index f4711f728907d..a04104915cf1f 100644 --- a/pandas/_libs/tslibs/timedeltas.pyi +++ b/pandas/_libs/tslibs/timedeltas.pyi @@ -63,7 +63,7 @@ UnitChoices = Literal[ _S = TypeVar("_S", bound=timedelta) def ints_to_pytimedelta( - ...
- [ ] 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/46828
2022-04-21T23:48:04Z
2022-04-26T00:31:37Z
2022-04-26T00:31:37Z
2022-04-26T04:08:17Z
BUG: Timedelta(td64, unit=foo) silent overflow
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 9f2bbaa8d5120..5386e10c695c7 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -479,6 +479,8 @@ Datetimelike Timedelta ^^^^^^^^^ - Bug in :func:`astype_nansafe` astype("timedelta64[ns]") fails when np...
- [ ] 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/46827
2022-04-21T20:54:42Z
2022-04-22T02:46:50Z
2022-04-22T02:46:50Z
2022-04-22T02:53:43Z
add code and sample test
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index a88d1dce693f6..8466efdc4e368 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -2158,8 +2158,18 @@ def _factorize_keys( # GH#23917 TODO: needs tests for case where lk is integer-dtype # and rk...
- [ ] 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/46824
2022-04-21T18:20:34Z
2022-05-24T20:48:08Z
null
2022-05-24T20:48:08Z
REF: remove unnecessary args in libparsing
diff --git a/pandas/_libs/tslibs/parsing.pyi b/pandas/_libs/tslibs/parsing.pyi index 6a96b05d53c37..ce49136e6b379 100644 --- a/pandas/_libs/tslibs/parsing.pyi +++ b/pandas/_libs/tslibs/parsing.pyi @@ -51,9 +51,7 @@ def try_parse_datetime_components( def format_is_iso(f: str) -> bool: ... def guess_datetime_format( ...
- [ ] 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/46821
2022-04-21T15:01:10Z
2022-04-22T02:39:37Z
2022-04-22T02:39:37Z
2022-04-22T02:52:56Z
ENH: adding saving and reading of dataframe `attrs` field in parquet metadata
diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index 99f8b89d1d562..9c9a64b124e62 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -25,7 +25,7 @@ dependencies: - blosc=1.20.1 - bottleneck=1.3.1 - brotlipy=0...
I implemented the saving and reading of the custom `attrs` field of a dataframe inside parquet files. This is done using a field called `"pandas_attrs"` inside the parquet metadata, even though this passage is hidden to the user, who can just keep on using `to_parquet` and `pandas.read_parquet` as before. I hope it mi...
https://api.github.com/repos/pandas-dev/pandas/pulls/46817
2022-04-21T09:49:48Z
2022-05-25T12:38:56Z
null
2022-05-25T12:38:56Z
REF: avoid ravel in DatetimeArray.to_period
diff --git a/pandas/_libs/tslibs/vectorized.pyx b/pandas/_libs/tslibs/vectorized.pyx index 5829bf5492ef8..0f0e321b2d5bf 100644 --- a/pandas/_libs/tslibs/vectorized.pyx +++ b/pandas/_libs/tslibs/vectorized.pyx @@ -355,36 +355,44 @@ def is_date_array_normalized(const int64_t[:] stamps, tzinfo tz=None) -> bool: @cython...
- [ ] 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/46816
2022-04-20T23:16:17Z
2022-04-22T23:09:35Z
2022-04-22T23:09:35Z
2022-04-22T23:25:49Z
ENH: Add axis=None for statistical methods
diff --git a/pandas/core/generic.py b/pandas/core/generic.py old mode 100644 new mode 100755 index 473435bae48eb..20718dfe35929 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10671,6 +10671,23 @@ def _stat_function( validate_bool_kwarg(skipna, "skipna", none_allowed=False) + if axis i...
Issue #43889. Adding axis=None option for statistical methods: .min, .max, .median, and .mean.
https://api.github.com/repos/pandas-dev/pandas/pulls/46815
2022-04-20T21:49:59Z
2022-06-03T17:15:30Z
null
2022-06-03T17:15:31Z
BUG: parsing nanoseconds incorrect resolution
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index e4879a6c41515..c418801c0a9f2 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -581,6 +581,8 @@ Period ^^^^^^ - Bug in subtraction of :class:`Period` from :class:`PeriodArray` returning wrong results (...
- [ ] 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/46811
2022-04-20T16:38:25Z
2022-04-27T12:26:09Z
2022-04-27T12:26:09Z
2022-04-27T15:03:25Z
DOC: building page for nested methods doesn't work
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index a5fd72e343c16..a27ed42c984bf 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -80,6 +80,10 @@ jobs: id: build uses: ./.github/actions/build_pandas + - name: Check for no w...
closes #46804 Like this ``` python make.py clean && python make.py --single pandas.Series.str.rsplit ``` and ``` python make.py clean && python make.py --single pandas.Series.value_counts ``` and ``` python make.py clean && python make.py --single pandas.Series ``` have their docs built fine cc @j...
https://api.github.com/repos/pandas-dev/pandas/pulls/46806
2022-04-19T21:01:38Z
2022-04-30T17:50:24Z
2022-04-30T17:50:24Z
2022-06-11T13:11:28Z
ENH: Upgrade versioneer
diff --git a/MANIFEST.in b/MANIFEST.in index d2b1b8cb887bc..96b2f2f0cbc6f 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -58,3 +58,4 @@ prune pandas/tests/io/parser/data # Selectively re-add *.cxx files that were excluded above graft pandas/_libs/src graft pandas/_libs/tslibs/src +include pandas/_version.py diff --gi...
- [ ] 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/46805
2022-04-19T20:50:13Z
2022-04-19T21:22:20Z
null
2022-04-19T21:22:28Z
REF: re-use Localizer for tz_convert_from_utc
diff --git a/asv_bench/benchmarks/tslibs/tz_convert.py b/asv_bench/benchmarks/tslibs/tz_convert.py index 803c2aaa635b0..c6b510efdca69 100644 --- a/asv_bench/benchmarks/tslibs/tz_convert.py +++ b/asv_bench/benchmarks/tslibs/tz_convert.py @@ -11,10 +11,14 @@ try: old_sig = False - from pandas._libs.tslibs.tzco...
Also de-duplicate `tdata` construction and avoid a copy in some cases in DTA construction.
https://api.github.com/repos/pandas-dev/pandas/pulls/46803
2022-04-19T19:26:36Z
2022-04-26T00:30:54Z
2022-04-26T00:30:54Z
2022-04-26T03:24:25Z
ENH: adding datetime default output formatting in Styler
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index dd106b6dbb63c..5e585b56647e8 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -816,6 +816,11 @@ def register_converter_cb(key): The string representation for values identified as missing. """ +styler_date_forma...
- [x] partly addresses #46755 - [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-commi...
https://api.github.com/repos/pandas-dev/pandas/pulls/46802
2022-04-19T16:12:59Z
2022-07-23T19:25:14Z
null
2022-07-23T19:25:14Z
BUG: `DataFrameGroupBy.value_counts` includes non-observed categories of non-grouping columns
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 578431e9ab2d8..127fc97d87124 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -393,6 +393,48 @@ upon serialization. (Related issue :issue:`12997`) # Roundtripping now works pd.read_json(a.to_j...
- [X] closes #46357 - [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/46798
2022-04-18T15:40:37Z
2022-08-07T17:11:59Z
2022-08-07T17:11:59Z
2022-08-07T17:12:15Z
TST: xfail(strict=False) flaky numexpr test
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index b59e74eda0553..852e85968d43f 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -833,8 +833,21 @@ def test_basic_frame_series_alignment( ) @pytest.mark.filterwarnings...
- [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). Seen in a few builds ...
https://api.github.com/repos/pandas-dev/pandas/pulls/46796
2022-04-18T02:06:47Z
2022-04-18T22:28:03Z
2022-04-18T22:28:03Z
2022-04-18T22:30:53Z
ENH: Add numeric_only to resampler methods
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 922ef28b855b9..e4879a6c41515 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -96,6 +96,7 @@ Other enhancements - :meth:`pd.concat` now raises when ``levels`` contains duplicate values (:issue:`46653`)...
- [ ] closes #46442 - [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/46792
2022-04-17T07:06:15Z
2022-04-23T22:27:07Z
2022-04-23T22:27:06Z
2022-04-24T03:09:32Z
Change `mylen` function to account for NaN empty lists when exploding on multiple columns
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 04e168f1ab6ca..256a1b3146e40 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9012,7 +9012,7 @@ def explode( if len(columns) == 1: result = df[columns[0]].explode() else: - mylen = lambda x: len(x) i...
- [x] closes #46084 - [ ] [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/46791
2022-04-16T17:13:00Z
2022-10-24T21:24:06Z
null
2022-10-24T21:24:06Z
BUG: .fillna(-1) does not work in pd.eval
diff --git a/pandas/core/computation/ops.py b/pandas/core/computation/ops.py index 9c54065de0353..5233ec65a1bb2 100644 --- a/pandas/core/computation/ops.py +++ b/pandas/core/computation/ops.py @@ -569,6 +569,7 @@ class UnaryOp(Op): def __init__(self, op: str, operand) -> None: super().__init__(op, (operan...
Adding ```self.value``` resolves the issue #46471 - [x] closes #46471 - [ ] [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/46789
2022-04-16T15:33:57Z
2022-06-03T16:25:03Z
null
2022-06-03T16:25:03Z
Object of type int64 is not JSON serializable during passing it to request.post
diff --git a/issue2.py b/issue2.py new file mode 100644 index 0000000000000..c20a5b3145609 --- /dev/null +++ b/issue2.py @@ -0,0 +1,40 @@ +import pandas as pd +import json + +df = pd.DataFrame({ + "X": [1,2], + "Y": [1,2]} +) +for x, df in df.groupby("X"): + print(type(x)) + print(x) # <class 'int...
json does not recognize NumPy data types. Convert the number to a Python int before serializing the object
https://api.github.com/repos/pandas-dev/pandas/pulls/46788
2022-04-16T14:49:47Z
2022-04-16T17:34:53Z
null
2022-04-16T17:34:53Z
BUG FIX: groupby.last() no longer changes np arrays with pd.NA to dtype Int64
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 358d9447b131d..fc3b01d35861b 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -457,7 +457,7 @@ Performance improvements .. _whatsnew_150.bug_fixes: Bug fixes -~~~~~~~~~ +- Bug in :func:`groupby.last...
- [ X] closes #46409 - [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/46787
2022-04-15T21:03:50Z
2022-04-16T17:35:20Z
null
2022-04-16T17:35:40Z
TYP: CallableDynamicDoc
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index 58c9eae5fe7f3..756c3b2d4b2b6 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -58,13 +58,17 @@ from typing import ( Any, Callable, + Generic, Iterable, NamedTuple, cast, ) import warnings -from...
The more tricky parts of #46698. Adding type annotations to `CallableDynamicDoc` seems to uncover multiple missing type annotations. I'm not very confident in some of the new pyi files (types for cython/c functions).
https://api.github.com/repos/pandas-dev/pandas/pulls/46786
2022-04-15T20:34:45Z
2022-05-26T01:30:59Z
2022-05-26T01:30:59Z
2022-05-26T02:00:12Z
To excel storage options fix
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 54568d5cd18bb..608e49580843b 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -566,6 +566,7 @@ def to_excel( inf_rep: str = "inf", verbose: bool = True, freeze_panes: tuple[int, int] | None =...
- [ ] closes #46381 - [ ] [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/46785
2022-04-15T19:54:27Z
2022-04-17T17:05:23Z
null
2023-05-11T01:21:42Z
ENH: Added Index param to to_dict like in to_json #46398
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 358d9447b131d..50aca237b6a12 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -95,6 +95,7 @@ Other enhancements - :meth:`pd.concat` now raises when ``levels`` is given but ``keys`` is None (:issue:`466...
- [X] closes #46398 - [X] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X...
https://api.github.com/repos/pandas-dev/pandas/pulls/46784
2022-04-15T18:00:03Z
2022-06-03T17:21:14Z
null
2022-06-03T17:21:15Z
ENH: Added index param to to_dict #46398
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 358d9447b131d..50aca237b6a12 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -95,6 +95,7 @@ Other enhancements - :meth:`pd.concat` now raises when ``levels`` is given but ``keys`` is None (:issue:`466...
- [X] closes #46398 - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). - [X...
https://api.github.com/repos/pandas-dev/pandas/pulls/46780
2022-04-15T06:38:38Z
2022-04-15T08:36:42Z
null
2022-04-15T08:36:42Z
TST: Added test for frequency retention in categorical constructor
diff --git a/pandas/tests/arrays/categorical/test_constructors.py b/pandas/tests/arrays/categorical/test_constructors.py index d221ef5373fea..c108ce9fcf100 100644 --- a/pandas/tests/arrays/categorical/test_constructors.py +++ b/pandas/tests/arrays/categorical/test_constructors.py @@ -759,3 +759,14 @@ def test_construct...
- [ ] xref #33830 (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/cont...
https://api.github.com/repos/pandas-dev/pandas/pulls/46779
2022-04-14T19:56:46Z
2022-04-18T18:49:56Z
2022-04-18T18:49:56Z
2022-04-18T18:50:10Z
BUG: fixed buggy behavior in pivot_table with margins=True and numeric columns
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 358d9447b131d..3fde7c8e9c5f1 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -607,6 +607,7 @@ Reshaping - Bug in :func:`get_dummies` that selected object and categorical dtypes but not string (:issue:...
- [X] closes #26568(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/46778
2022-04-14T19:42:31Z
2022-06-03T17:17:02Z
null
2022-06-03T17:17:03Z
DEBUG verbose pre-commit
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 767ef62bb1758..8ba0486d89a36 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,12 +2,14 @@ minimum_pre_commit_version: 2.9.2 exclude: ^LICENSES/|\.(html|csv|svg)$ ci: autofix_prs: false + skip: [black, yesqa] repos: ...
pre-commit-ci timed out, so just checking hooks' timings with `verbose: true`
https://api.github.com/repos/pandas-dev/pandas/pulls/46777
2022-04-14T17:10:07Z
2022-04-16T18:54:45Z
null
2022-04-16T22:12:17Z
ENH: Create ArrowDtype
diff --git a/pandas/core/arrays/arrow/dtype.py b/pandas/core/arrays/arrow/dtype.py new file mode 100644 index 0000000000000..c0ecb0856f27f --- /dev/null +++ b/pandas/core/arrays/arrow/dtype.py @@ -0,0 +1,106 @@ +from __future__ import annotations + +import numpy as np +import pyarrow as pa + +from pandas._typing import...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Not activated yet. Opening to get any feedback about the approach cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/46774
2022-04-14T04:57:34Z
2022-05-02T14:59:56Z
2022-05-02T14:59:56Z
2022-05-02T21:36:58Z
Backport PR #46767 on branch 1.4.x (CI: Fail Numpy Dev build on DeprecationWarnings from numpy only)
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index ea9df610c1dff..0a914dd965a5e 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -61,7 +61,7 @@ jobs: env_file: actions-310-numpydev.yaml pattern: "not slow and not network and not single_cpu...
Backport PR #46767: CI: Fail Numpy Dev build on DeprecationWarnings from numpy only
https://api.github.com/repos/pandas-dev/pandas/pulls/46773
2022-04-14T01:08:22Z
2022-04-14T13:55:40Z
2022-04-14T13:55:40Z
2022-04-14T13:55:40Z
BUG: Prevent segfault in roll_weighted_var
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 358d9447b131d..0e6eb5d0a1fbb 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -599,7 +599,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.cummax` with ``int64`` dtype with leading value being the...
- closes #46760 - edit: I added a test to `test_win_type.py` - I added an entry in the latest `doc/source/whatsnew/v1.5.0.rst` file because this fixes a bug
https://api.github.com/repos/pandas-dev/pandas/pulls/46772
2022-04-13T22:53:35Z
2022-04-18T00:58:07Z
2022-04-18T00:58:06Z
2022-04-18T00:58:38Z
BUG: date_range not excluding dates correctly with periods and inclusive not 'both'
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 358d9447b131d..e96f88d37f52f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -473,6 +473,7 @@ Datetimelike - Bug in :meth:`Index.astype` when casting from object dtype to ``timedelta64[ns]`` dtype inc...
- [x] closes #46331 (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/co...
https://api.github.com/repos/pandas-dev/pandas/pulls/46771
2022-04-13T20:39:49Z
2022-08-15T16:33:15Z
null
2022-08-15T16:33:16Z
CI: Fail Numpy Dev build on DeprecationWarnings from numpy only
diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index ec7da7d68ba9f..8a16ef4020b14 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -61,7 +61,7 @@ jobs: env_file: actions-310-numpydev.yaml pattern: "not slow and not network and not single_cpu...
- [ ] [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). I believe the intent of ...
https://api.github.com/repos/pandas-dev/pandas/pulls/46767
2022-04-13T16:27:41Z
2022-04-14T01:07:39Z
2022-04-14T01:07:38Z
2022-04-14T01:11:00Z
DOC: add examples to groupby.first
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index f649cce985474..b25781f87872a 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2302,8 +2302,7 @@ def first(self, numeric_only: bool = False, min_count: int = -1): Parameters ----------...
- [ ] 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/46766
2022-04-13T15:14:15Z
2022-04-26T00:25:32Z
2022-04-26T00:25:32Z
2022-04-26T13:47:43Z
TYP: add some properties to Timestamp
diff --git a/pandas/_libs/tslibs/timestamps.pyi b/pandas/_libs/tslibs/timestamps.pyi index f641c7fe1a12a..c5ffaba37f51f 100644 --- a/pandas/_libs/tslibs/timestamps.pyi +++ b/pandas/_libs/tslibs/timestamps.pyi @@ -199,10 +199,14 @@ class Timestamp(datetime): @property def day_of_week(self) -> int: ... @pr...
For typing, add for `Timestamp`: - `dayofweek` - `dayofyear` - `days_in_month` - `daysinmonth`
https://api.github.com/repos/pandas-dev/pandas/pulls/46761
2022-04-13T03:00:25Z
2022-04-30T00:53:03Z
2022-04-30T00:53:03Z
2023-02-13T21:04:12Z
PERF: Some faster date/time string formatting
diff --git a/asv_bench/benchmarks/io/sql.py b/asv_bench/benchmarks/io/sql.py index 3cfa28de78c90..fb8b7dafa0ade 100644 --- a/asv_bench/benchmarks/io/sql.py +++ b/asv_bench/benchmarks/io/sql.py @@ -39,6 +39,8 @@ def setup(self, connection): index=tm.makeStringIndex(N), ) self.df.loc[1000:3...
"Easy" fixes related to #44764, taken from the big PR #46116: - Performance improvement in `BusinessHour`, `repr` is now 4 times faster - Performance improvement in `DatetimeArray` and `DatetimeIndex`: string formatting is now up to 80% faster (as fast as default) when one of the default strftime formats `"%Y-%m-...
https://api.github.com/repos/pandas-dev/pandas/pulls/46759
2022-04-12T21:16:00Z
2022-07-01T22:17:21Z
2022-07-01T22:17:21Z
2022-07-11T07:54:28Z
Use np.dtype with explicit type argument rather than just using np.dtype with implicit Any type argument.
diff --git a/pandas/_libs/tslibs/np_datetime.pyi b/pandas/_libs/tslibs/np_datetime.pyi index 59f4427125266..24ba3c5991445 100644 --- a/pandas/_libs/tslibs/np_datetime.pyi +++ b/pandas/_libs/tslibs/np_datetime.pyi @@ -7,5 +7,5 @@ class OutOfBoundsTimedelta(ValueError): ... def py_get_unit_from_dtype(dtype: np.dtype): ....
Existing type annotation used np.dtype assuming type argument "Any" will be used on type checking. but some type checker such as pyright with the highest type checking mode will complain about using generic type with implicit Any type argument. so, I went through all usages of np.dtype in type annotation and added t...
https://api.github.com/repos/pandas-dev/pandas/pulls/46758
2022-04-12T20:00:22Z
2022-04-12T22:47:50Z
null
2022-04-14T12:28:37Z
BUG: REF: Groupby refactor
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index ab46aa4ec28d4..d9db9d41c0315 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -602,6 +602,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.max` with empty groups and ``uint64`` dtype incorrectly r...
This is a follow-up, scaled back version of https://github.com/pandas-dev/pandas/pull/46258, that hopefully should be easier to merge. - [NA, this is small ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_cod...
https://api.github.com/repos/pandas-dev/pandas/pulls/46754
2022-04-12T15:44:54Z
2022-04-19T02:37:39Z
2022-04-19T02:37:39Z
2022-04-19T03:19:09Z
BUG: Do not allow urllib to hijack all non-HTTP protocols
diff --git a/pandas/io/common.py b/pandas/io/common.py index 57015924ce77f..b291c54688463 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -321,7 +321,11 @@ def _get_filepath_or_buffer( if "t" not in fsspec_mode and "b" not in fsspec_mode: fsspec_mode += "b" - if isinstance(filepath_or_b...
Currently, many non HTTP protocols are routed to urllib to open, even when not supported by urllib. In particular, opening files via SFTP will always fail, since the attempt to open the file is not sent to fsspec, which supports that protocol. The following code demonstrates the issue. It will fail pre-patch, and s...
https://api.github.com/repos/pandas-dev/pandas/pulls/46753
2022-04-12T13:43:57Z
2022-04-13T14:29:24Z
null
2022-04-13T14:29:42Z
BUG: Coerce to native types to_dict list and index (#46751)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 358d9447b131d..82694de531db6 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -500,6 +500,7 @@ Conversion - Bug in :func:`array` with ``FloatingDtype`` and values containing float-castable strings inco...
- [x] closes #46751 (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/46752
2022-04-12T12:44:31Z
2022-04-22T02:42:27Z
2022-04-22T02:42:27Z
2022-04-22T02:42:38Z
Backport PR #46656: BUG: df.nsmallest get wrong results when NaN in the sorting column
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index 8572c136c28a9..0c326e15d90ed 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Dat...
Backport PR #46656
https://api.github.com/repos/pandas-dev/pandas/pulls/46748
2022-04-12T10:34:02Z
2022-04-12T13:30:57Z
2022-04-12T13:30:57Z
2022-04-12T13:30:57Z
TST: Add a test for `series name should be preserved in pser.mode() `
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index 7c16d13e59d3a..2d73b8e91e831 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -2282,6 +2282,13 @@ def test_index(self): # algos.mode expects Arraylike, does *not* unwrap TimedeltaIndex algos.m...
Add a test for pser.mode() should set series name - [x] closes #46737 - [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/devel...
https://api.github.com/repos/pandas-dev/pandas/pulls/46746
2022-04-12T07:38:13Z
2022-04-13T16:12:29Z
2022-04-13T16:12:29Z
2022-04-13T16:12:43Z
PERF: avoid casting in groupby.min/max
diff --git a/pandas/_libs/dtypes.pxd b/pandas/_libs/dtypes.pxd index f87a1525b15fd..ccfb2d2ef4a23 100644 --- a/pandas/_libs/dtypes.pxd +++ b/pandas/_libs/dtypes.pxd @@ -34,15 +34,3 @@ ctypedef fused numeric_t: ctypedef fused numeric_object_t: numeric_t object - -# i64 + u64 + all float types -ctypedef fused ...
- [ ] 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/46745
2022-04-11T22:34:13Z
2022-04-13T00:08:23Z
2022-04-13T00:08:23Z
2022-04-13T01:06:54Z
REF: stronger typing in libconversion
diff --git a/pandas/_libs/algos_common_helper.pxi.in b/pandas/_libs/algos_common_helper.pxi.in index c6338216eb7a2..991566f9b7143 100644 --- a/pandas/_libs/algos_common_helper.pxi.in +++ b/pandas/_libs/algos_common_helper.pxi.in @@ -65,7 +65,8 @@ def ensure_{{name}}(object arr, copy=True): if (<ndarray>arr).de...
- [ ] 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/46742
2022-04-11T16:05:57Z
2022-04-16T00:42:09Z
2022-04-16T00:42:09Z
2022-04-16T00:43:58Z
Add a license file for klib (khash)
diff --git a/LICENSES/KLIB_LICENSE b/LICENSES/KLIB_LICENSE new file mode 100644 index 0000000000000..0a996fae3360f --- /dev/null +++ b/LICENSES/KLIB_LICENSE @@ -0,0 +1,23 @@ +The MIT License + +Copyright (c) 2008- Attractive Chaos <attractor@live.co.uk> + +Permission is hereby granted, free of charge, to any person...
File contents are exactly those of: https://raw.githubusercontent.com/attractivechaos/klib/9a063b33efd841fcc42d4b9f68cb78bb528bf75b/LICENSE.txt - [ ] closes #xxxx (Replace xxxx with the Github issue number) **Not applicable** - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contr...
https://api.github.com/repos/pandas-dev/pandas/pulls/46741
2022-04-11T15:12:08Z
2022-04-11T21:31:55Z
2022-04-11T21:31:55Z
2022-04-11T21:31:59Z
ENH: add validate as a param to join (#46622)
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 922ef28b855b9..e01be8a77b0ec 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -95,6 +95,7 @@ Other enhancements - :meth:`pd.concat` now raises when ``levels`` is given but ``keys`` is None (:issue:`466...
- [ ] closes #46622 - [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/46740
2022-04-11T14:28:39Z
2022-04-27T12:27:06Z
2022-04-27T12:27:06Z
2022-04-27T12:27:12Z
Do not install C sources in binary distributions
diff --git a/setup.cfg b/setup.cfg index d3c4fe0cb35ce..05b7975cbc0a8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -45,6 +45,11 @@ zip_safe = False pandas_plotting_backends = matplotlib = pandas:plotting._matplotlib +[options.exclude_package_data] +* = + *.c + *.h + [options.extras_require] test = hyp...
With this PR, binary distributions, including wheels, no longer contain `.c` and `.h` C source files in `pandas/_libs/src` and `pandas/_libs/tslibs/src`. Shipping these sources in binary distributions doesn’t seem to have any clear benefit. This does not affect source distributions, and Cython sources (`.pyx`), defi...
https://api.github.com/repos/pandas-dev/pandas/pulls/46739
2022-04-11T13:26:24Z
2022-06-16T13:43:44Z
2022-06-16T13:43:44Z
2022-06-16T13:43:59Z
REF: de-vendor _stprtime code
diff --git a/pandas/_libs/tslibs/fields.pyx b/pandas/_libs/tslibs/fields.pyx index 6d8b27e0ad75a..b8358122c2cb4 100644 --- a/pandas/_libs/tslibs/fields.pyx +++ b/pandas/_libs/tslibs/fields.pyx @@ -4,6 +4,7 @@ objects and arrays """ from locale import LC_TIME +from _strptime import LocaleTime import cython from cy...
- [ ] 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/46736
2022-04-11T02:09:29Z
2022-04-13T00:08:49Z
2022-04-13T00:08:49Z
2022-04-13T01:06:30Z
REF: de-duplicate cython funcs
diff --git a/pandas/_libs/algos.pxd b/pandas/_libs/algos.pxd index fdeff2ed11805..c3b83b9bd40cb 100644 --- a/pandas/_libs/algos.pxd +++ b/pandas/_libs/algos.pxd @@ -1,4 +1,7 @@ -from pandas._libs.dtypes cimport numeric_t +from pandas._libs.dtypes cimport ( + numeric_object_t, + numeric_t, +) cdef numeric_t k...
- [ ] 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/46735
2022-04-11T00:49:36Z
2022-04-11T12:32:12Z
2022-04-11T12:32:11Z
2022-04-11T14:46:42Z
DOC: Improve .at indexer API docs
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index ddae58fd46bb0..53b51251a2324 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -539,14 +539,30 @@ def at(self) -> _AtIndexer: Raises ------ KeyError - If 'label' does not exist in DataFrame. + ...
- [x] closes #46722 Not sure about the wording of the `ValueError` and whether it is worth adding the additional methods under `See Also` but the same doc is used for both DataFrame and Series so I thought that mentioning all the methods is good for the sake of completeness
https://api.github.com/repos/pandas-dev/pandas/pulls/46734
2022-04-10T21:46:43Z
2022-06-03T17:25:03Z
2022-06-03T17:25:02Z
2022-06-03T17:25:25Z
PERF: avoid potentially-copying ravel
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index cf85a5111e1a9..280a2b23f51af 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -2,6 +2,7 @@ import cython import numpy as np cimport numpy as cnp +from cpython.object cimport PyObject...
- [ ] 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/46733
2022-04-10T21:10:56Z
2022-04-11T12:32:46Z
2022-04-11T12:32:46Z
2022-04-11T14:46:57Z
WARN: PerformanceWarning for non-pyarrow fallback
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index ab46aa4ec28d4..98d56bac402ac 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -95,6 +95,7 @@ Other enhancements - :meth:`pd.concat` now raises when ``levels`` is given but ``keys`` is None (:issue:`466...
- [x] closes #42613 (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/46732
2022-04-10T21:02:34Z
2022-04-18T22:28:25Z
2022-04-18T22:28:25Z
2022-04-18T22:33:05Z
Test column addition using .at with different values
diff --git a/pandas/tests/indexing/test_at.py b/pandas/tests/indexing/test_at.py index a2f02378d061a..5a042ed25ec2c 100644 --- a/pandas/tests/indexing/test_at.py +++ b/pandas/tests/indexing/test_at.py @@ -16,16 +16,6 @@ import pandas._testing as tm -def test_at_timezone(): - # https://github.com/pandas-dev/pand...
- [x] closes #30649
https://api.github.com/repos/pandas-dev/pandas/pulls/46731
2022-04-10T18:20:34Z
2022-06-28T17:25:44Z
null
2022-06-28T17:25:45Z
BUG: to_json incorrectly localizes tz-naive datetimes to UTC
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 931d18dc349f3..f180b01f17bff 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -194,10 +194,47 @@ did not have the same index as the input. df.groupby('a', dropna=True).transform('ffill') df.gr...
- [ ] closes #38760 (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/46730
2022-04-10T16:43:29Z
2022-05-04T23:30:11Z
2022-05-04T23:30:11Z
2022-05-05T00:03:53Z
DOC: Move idxmin/idxmax docstrings to shared docs
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1a28d9f44ae28..ceede5fdb5577 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -10536,67 +10536,8 @@ def nunique(self, axis: Axis = 0, dropna: bool = True) -> Series: """ return self.apply(Series.nunique, axis=axis, dropna=dr...
- [ ] 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/46729
2022-04-10T16:21:42Z
2022-04-10T21:24:38Z
2022-04-10T21:24:38Z
2022-04-10T21:34:16Z
ENH: Add numeric_only to certain groupby ops
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index c85a087835b80..9daab20e1b809 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -113,7 +113,7 @@ Other enhancements - :meth:`DataFrame.reset_index` now accepts a ``names`` argument which renames the inde...
Part of #46560 - [x] Closes #46524 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/46728
2022-04-10T16:13:32Z
2022-04-30T00:46:05Z
2022-04-30T00:46:05Z
2022-04-30T13:46:18Z
Backport PR #46633 on branch 1.4.x (CI: Remove grep from asv call (using strict parameter instead))
diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 59fb81b167bd4..87b80204d0c19 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -140,22 +140,8 @@ jobs: - name: Run ASV benchmarks run: | cd asv_bench - asv check -...
Backport PRs #46633 and #46599
https://api.github.com/repos/pandas-dev/pandas/pulls/46727
2022-04-10T11:18:09Z
2022-04-10T16:46:20Z
2022-04-10T16:46:20Z
2022-04-12T10:29:13Z
ENH: Use pyarrow.compute for unique, dropna
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 56f9c93ac63a5..93e7667ccec58 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -96,6 +96,7 @@ Other enhancements - :meth:`pd.concat` now raises when ``levels`` is given but ``keys`` is None (:issue:`466...
- [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/46725
2022-04-10T03:08:10Z
2022-04-27T22:21:20Z
2022-04-27T22:21:20Z
2022-04-28T00:09:41Z
DOC: Move code_style.rst docs to other sections & a check
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c6c7acf5b3823..767ef62bb1758 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -176,6 +176,13 @@ repos: files: ^pandas/core/ exclude: ^pandas/core/api\.py$ types: [python] + - id: use-io-common-urlop...
- [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). `code_style.rst` is very...
https://api.github.com/repos/pandas-dev/pandas/pulls/46724
2022-04-09T21:15:26Z
2022-04-10T16:49:09Z
2022-04-10T16:49:08Z
2022-04-10T17:23:06Z
TST: Add test for groupby where by column contains values with same starting value
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 97e388cd074c3..ed025ada3a36c 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2658,3 +2658,26 @@ def test_pad_backfill_deprecation(): s.groupby(level=0).backfill() ...
- [x] closes #29635
https://api.github.com/repos/pandas-dev/pandas/pulls/46721
2022-04-09T10:18:09Z
2022-04-09T17:40:00Z
2022-04-09T17:40:00Z
2022-04-09T17:40:09Z
Backport PR #46690 on branch 1.4.x (CI fix-ci-isocalendar)
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 9d07a5862f11f..2c296ae1d1b0c 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1342,15 +1342,14 @@ def date(self) -> npt.NDArray[np.object_]: def isocalendar(self) -> DataFrame: """ ...
Backport PR #46690: CI fix-ci-isocalendar
https://api.github.com/repos/pandas-dev/pandas/pulls/46720
2022-04-09T09:50:19Z
2022-04-09T11:49:38Z
2022-04-09T11:49:38Z
2022-04-09T11:49:38Z
BUG: Fix __instancecheck__ and __subclasscheck__ of metaclass in pandas.core.dtypes.generic
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 4920622a15f3f..41ec9594bdb68 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -498,6 +498,7 @@ Conversion - Bug in :meth:`Series.astype` and :meth:`DataFrame.astype` from floating dtype to unsigned int...
- [x] closes #46684 (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/46719
2022-04-09T09:36:47Z
2022-04-10T22:28:32Z
2022-04-10T22:28:31Z
2022-04-10T22:28:41Z
Raise `FileNotFoundError` in `read_json` if input looks like file path but file is missing
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 45c32d689bd5b..e375d90b39118 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -432,6 +432,7 @@ Other API changes <https://developers.googleblog.com/2022/02/making-oauth-flows-safer.html?m=1#disallowe...
- [x] closes #29102 - [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/46718
2022-04-09T09:22:30Z
2022-06-07T16:28:37Z
2022-06-07T16:28:37Z
2022-06-07T16:29:59Z
EHN: add same value count for skew & kurt
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 2efc6c9167a83..9f1c4755bc54f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -732,6 +732,7 @@ Groupby/resample/rolling - Bug in :meth:`SeriesGroupBy.apply` would incorrectly name its result when there...
REF: * https://github.com/pandas-dev/pandas/pull/46431#issuecomment-1092391777 * https://github.com/pandas-dev/pandas/pull/46431#issuecomment-1093798927 - [ ] closes #xxxx (Replace xxxx with the Github issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_...
https://api.github.com/repos/pandas-dev/pandas/pulls/46717
2022-04-09T08:15:37Z
2022-05-13T16:03:30Z
2022-05-13T16:03:30Z
2022-05-14T03:08:04Z
ENH: Same val counts for roll sum mean
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index e4879a6c41515..be986e2684cb6 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -607,6 +607,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.max` with empty groups and ``uint64`` dtype incorrectly r...
REF: https://github.com/pandas-dev/pandas/pull/46431#issuecomment-1092391777 - [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...
https://api.github.com/repos/pandas-dev/pandas/pulls/46715
2022-04-09T06:29:53Z
2022-04-27T12:49:16Z
2022-04-27T12:49:16Z
2022-04-27T12:49:23Z
DOC/CLN: pd.test
diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index dac1219245e84..369d27b8c97b9 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -9,7 +9,6 @@ dependencies: - pytest>=6.0 - pytest-cov - pytest-xdist>=1.31 - - hypothesis>=5.5.3 - psutil - pytest-asyncio>=0.17 ...
- [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/46714
2022-04-09T04:22:23Z
2022-04-09T22:20:22Z
2022-04-09T22:20:22Z
2022-04-10T00:08:42Z
TST: Use fixtures instead of setup_method
diff --git a/pandas/tests/frame/test_query_eval.py b/pandas/tests/frame/test_query_eval.py index 266b0e78e885e..feb912b2420bf 100644 --- a/pandas/tests/frame/test_query_eval.py +++ b/pandas/tests/frame/test_query_eval.py @@ -1094,20 +1094,18 @@ def test_query_string_scalar_variable(self, parser, engine): class Tes...
- [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/46713
2022-04-09T03:59:30Z
2022-04-09T23:47:51Z
2022-04-09T23:47:51Z
2022-04-10T00:08:53Z
TST: Parameterize
diff --git a/pandas/tests/reshape/concat/test_append_common.py b/pandas/tests/reshape/concat/test_append_common.py index 0a330fd12d76d..527ec43437469 100644 --- a/pandas/tests/reshape/concat/test_append_common.py +++ b/pandas/tests/reshape/concat/test_append_common.py @@ -70,11 +70,18 @@ def _check_expected_dtype(self,...
- [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/46712
2022-04-09T03:46:09Z
2022-04-09T21:54:10Z
2022-04-09T21:54:10Z
2022-04-09T22:01:08Z
DOC: sample variance -> population variance (#46482)
diff --git a/doc/source/user_guide/gotchas.rst b/doc/source/user_guide/gotchas.rst index f4cef88072afa..adb40e166eab4 100644 --- a/doc/source/user_guide/gotchas.rst +++ b/doc/source/user_guide/gotchas.rst @@ -367,7 +367,7 @@ integer arrays to floating when NAs must be introduced. Differences with NumPy --------------...
- [x] closes #46482 (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/46711
2022-04-09T00:14:30Z
2022-04-27T12:24:13Z
2022-04-27T12:24:12Z
2022-04-27T12:24:17Z
Backport PR #46697 on branch 1.4.x (DOC: indicate that `month_name` and `day_name` also applies to Series)
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index 6843e4f7eeb58..9d07a5862f11f 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1217,7 +1217,8 @@ def to_perioddelta(self, freq) -> TimedeltaArray: def month_name(self, locale=None): ...
Backport PR #46697: DOC: indicate that `month_name` and `day_name` also applies to Series
https://api.github.com/repos/pandas-dev/pandas/pulls/46710
2022-04-08T23:30:13Z
2022-04-09T01:57:13Z
2022-04-09T01:57:13Z
2022-04-09T01:57:13Z
Backport PR #46691 on branch 1.4.x (REGR: read_fwf raising ValueError when widths was specified with usecols)
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index d53acc698c3bb..8572c136c28a9 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression in :func:`...
Backport PR #46691: REGR: read_fwf raising ValueError when widths was specified with usecols
https://api.github.com/repos/pandas-dev/pandas/pulls/46709
2022-04-08T23:28:28Z
2022-04-09T01:57:25Z
2022-04-09T01:57:25Z
2022-04-09T01:57:25Z
ENH: Add numeric_only to frame methods
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 4920622a15f3f..291eed4174d32 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -94,7 +94,7 @@ Other enhancements - :meth:`DataFrame.reset_index` now accepts a ``names`` argument which renames the index ...
Part of #46560 - [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] Ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/46708
2022-04-08T22:56:48Z
2022-04-09T21:53:11Z
2022-04-09T21:53:11Z
2022-04-09T21:54:29Z
DEPR: mad
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 4920622a15f3f..2f9dfdf7cd66f 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -430,7 +430,7 @@ Other Deprecations - Deprecated :attr:`Timedelta.freq` and :attr:`Timedelta.is_populated` (:issue:`46430`)...
- [x] closes #11787 (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/46707
2022-04-08T22:34:57Z
2022-04-09T21:53:39Z
2022-04-09T21:53:38Z
2022-04-09T21:54:15Z
DOC: removed .value_counts() and .nunique() from the docs for 'table …
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 2bb0659264eb0..51bd659081b8f 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -132,9 +132,7 @@ The following methods are available only for ``SeriesGroupBy`` objects. SeriesGroupBy.hist ...
…methods available only for SeriesGroupBy' objects. GH46670 - [x] closes #46670 (Replace xxxx with the Github issue number) - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
https://api.github.com/repos/pandas-dev/pandas/pulls/46701
2022-04-08T17:03:58Z
2022-04-08T23:32:39Z
2022-04-08T23:32:38Z
2022-04-09T09:49:21Z
DOC: remove links to deprecated methods
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index 054fbb85cead7..c2b36dab4a67e 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -215,8 +215,6 @@ def concat( See Also -------- - Series.append : Concatenate Series. - DataFrame.append : Conc...
- [ ] 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/46700
2022-04-08T16:36:31Z
2022-04-10T16:40:26Z
2022-04-10T16:40:26Z
2022-04-10T16:40:32Z
TYP: Make temporary variables in pandas/__init__.py private
diff --git a/pandas/__init__.py b/pandas/__init__.py index 1b18af0f69cf2..3645e8744d8af 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -3,33 +3,33 @@ __docformat__ = "restructuredtext" # Let users know if they're missing any of our hard dependencies -hard_dependencies = ("numpy", "pytz", "dateutil") -m...
Tiny step towards #39813 (`pyright --ignoreexternal --verifytypes pandas`) the relevant changes are in `pandas/__init__.py` and `pandas/_config/config.py` (private but `get_option`, ... uses the annotated wrapper). I didn't plan to do the second commit (seemingly unrelated changes) but it seems that the first commit...
https://api.github.com/repos/pandas-dev/pandas/pulls/46698
2022-04-08T14:08:05Z
2022-05-07T03:26:48Z
2022-05-07T03:26:48Z
2022-05-26T01:59:26Z
DOC: indicate that `month_name` and `day_name` also applies to Series
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index b1c19ab7c0476..9c9faa0a343db 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1229,7 +1229,8 @@ def to_perioddelta(self, freq) -> TimedeltaArray: def month_name(self, locale=None): ...
- [ ] closes #xxxx (Replace xxxx with the Github issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/46697
2022-04-08T13:53:58Z
2022-04-08T23:30:02Z
2022-04-08T23:30:02Z
2022-04-11T16:42:10Z
Backport PR #46692 on branch 1.4.x (CI fix ci-failure from bs4 new version)
diff --git a/pandas/io/html.py b/pandas/io/html.py index 05d7c2998ef27..cebedd18664e4 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -577,7 +577,7 @@ def _parse_tables(self, doc, match, attrs): for elem in table.find_all(style=re.compile(r"display:\s*none")): elem.decomp...
Backport PR #46692: CI fix ci-failure from bs4 new version
https://api.github.com/repos/pandas-dev/pandas/pulls/46696
2022-04-08T11:58:04Z
2022-04-08T23:25:59Z
2022-04-08T23:25:59Z
2022-04-09T09:54:51Z
TYP: lib.no_default
diff --git a/pandas/_libs/lib.pyi b/pandas/_libs/lib.pyi index ad77e9e533b0b..9b0d4ac50cb9e 100644 --- a/pandas/_libs/lib.pyi +++ b/pandas/_libs/lib.pyi @@ -21,11 +21,7 @@ from pandas._typing import ( # placeholder until we can specify np.ndarray[object, ndim=2] ndarray_obj_2d = np.ndarray -from enum import Enum - ...
@Dr-Irv in common with other public api typing discussions, the lib.NoDefault type annotations serves no purpose for the user facing api. It is beneficial tough for ensuring that internal code handles it correctly. However, this type is actually wrong since we should not handle any NoDefault subclass/instance, only ...
https://api.github.com/repos/pandas-dev/pandas/pulls/46695
2022-04-08T11:57:29Z
2022-05-11T15:05:31Z
null
2022-05-11T15:05:31Z
BUG: isin casting to float64 for unsigned int and list
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 35594fbc8fb8a..7e943bb5832e6 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -825,6 +825,7 @@ Indexing - Bug in :meth:`Series.__setitem__` with a non-integer :class:`Index` when using an integer key t...
- [x] closes #46485 (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/46693
2022-04-08T11:24:12Z
2022-06-24T18:14:27Z
2022-06-24T18:14:26Z
2022-06-25T14:24:03Z
CI fix ci-failure from bs4 new version
diff --git a/pandas/io/html.py b/pandas/io/html.py index efcbb3c588ce9..3692b07acb85c 100644 --- a/pandas/io/html.py +++ b/pandas/io/html.py @@ -577,7 +577,7 @@ def _parse_tables(self, doc, match, attrs): for elem in table.find_all(style=re.compile(r"display:\s*none")): elem.decomp...
New BS4 release is throwing a deprecation warning ``` _____________ TestReadHtml.test_banklist_url_positional_match[bs4] _____________ [gw1] linux -- Python 3.8.13 /usr/share/miniconda/envs/pandas-dev/bin/python self = <pandas.tests.io.test_html.TestReadHtml object at 0x7f7fd333a040> @pytest.mark.network...
https://api.github.com/repos/pandas-dev/pandas/pulls/46692
2022-04-08T09:25:44Z
2022-04-08T11:57:27Z
2022-04-08T11:57:27Z
2022-04-09T09:55:18Z
REGR: read_fwf raising ValueError when widths was specified with usecols
diff --git a/doc/source/whatsnew/v1.4.3.rst b/doc/source/whatsnew/v1.4.3.rst index d53acc698c3bb..8572c136c28a9 100644 --- a/doc/source/whatsnew/v1.4.3.rst +++ b/doc/source/whatsnew/v1.4.3.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression in :func:`...
- [x] closes #46580 (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/46691
2022-04-08T09:14:15Z
2022-04-08T23:28:13Z
2022-04-08T23:28:12Z
2023-04-27T19:52:46Z
CI fix-ci-isocalendar
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index e40acad0cb51a..b1c19ab7c0476 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -1328,15 +1328,14 @@ def date(self) -> npt.NDArray[np.object_]: def isocalendar(self) -> DataFrame: """ ...
Fix failing CI check https://github.com/pandas-dev/pandas/runs/5874948094?check_suite_focus=true probably caused by #46674
https://api.github.com/repos/pandas-dev/pandas/pulls/46690
2022-04-07T20:14:16Z
2022-04-08T07:52:25Z
2022-04-08T07:52:25Z
2022-04-09T09:49:18Z
BUG: Series.replace with to_replace dict and value=None, nonsensical error message
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 473435bae48eb..e3db7a1fa6f70 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -6594,6 +6594,7 @@ def replace( regex=False, method=lib.no_default, ): + if not ( is_scalar(to_replace) ...
- [x] closes #46004 - [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/46689
2022-04-07T18:08:40Z
2022-06-21T19:19:22Z
null
2022-07-11T14:44:27Z