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
BUG: groupby shift fill_value, freq followup
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 31293a42a3977..137f2e5c12211 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -618,7 +618,7 @@ Other - Bug in :func:`assert_almost_equal` now throwing assertion error for two unequal sets (:issue:`5172...
- [ ] closes #54093 (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/54133
2023-07-15T00:32:51Z
2023-07-18T03:08:20Z
2023-07-18T03:08:20Z
2023-07-18T03:27:02Z
BUG: Series.groupby.size returning int64 for masked and arrow types
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index a2c3bf1453c2e..f4dbf9e08ac18 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -559,6 +559,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.apply` raising a ``TypeError`` when selecting mu...
- [ ] 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/54132
2023-07-15T00:00:01Z
2023-07-18T23:02:23Z
2023-07-18T23:02:23Z
2023-07-18T23:02:26Z
Backport PR #54110: CI: Fix pyarrow nightly build
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 23bb988ef4d73..42e5960955f93 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -8,6 +8,7 @@ runs: run: | micromamba info micromamba list + ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54131
2023-07-14T23:29:08Z
2023-07-18T19:19:13Z
null
2023-07-18T19:19:22Z
BUG: DataFrame repr with ArrowDtype with extension
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 31293a42a3977..ed546187d721c 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -598,6 +598,7 @@ ExtensionArray - Bug in :meth:`Series.quantile` for pyarrow temporal types raising ArrowInvalid (:issue:`5...
- [x] closes #54062 (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/54130
2023-07-14T21:16:21Z
2023-07-18T16:50:50Z
2023-07-18T16:50:50Z
2023-07-18T16:51:35Z
BUG: groupby.count maintains masked and arrow dtypes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 839870cb18a0b..107dd87fd7486 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -569,6 +569,7 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.var` failing to raise ``TypeError`` when called with date...
- [x] closes #53831 (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/54129
2023-07-14T20:14:18Z
2023-07-24T17:45:09Z
2023-07-24T17:45:09Z
2023-07-24T21:28:53Z
Add ASCII art script
diff --git a/pandas_ascii.py b/pandas_ascii.py new file mode 100644 index 0000000000000..8668070c5971f --- /dev/null +++ b/pandas_ascii.py @@ -0,0 +1,17 @@ +# Add your ASCII art code here + + ...
- [x] closes #xxxx (Replace xxxx with the GitHub issue number) - [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54128
2023-07-14T19:45:53Z
2023-07-14T20:24:32Z
null
2023-07-15T17:27:56Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 989ef6958d2e6..7dd347327f3cc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -88,7 +88,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.errors.UnsupportedFunctionCall \ pandas.test \ pandas.NaT \ - pan...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 It's not possible to make the html file for each method before opening the PR: /preview needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/54127
2023-07-14T16:23:34Z
2023-07-14T17:45:59Z
2023-07-14T17:45:59Z
2023-07-18T09:12:11Z
DOC: Fixing EX01 - Added example
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1c6e23746352e..39c7582744601 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -131,7 +131,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray.ndim \ pandas.api.extensions.ExtensionArray.shape...
- [ x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 ~~Modified `validate_docstrings.py`: it was raising for "importing pandas". If I didn't import pandas_gbq on the docstring, the er...
https://api.github.com/repos/pandas-dev/pandas/pulls/54126
2023-07-14T13:58:54Z
2023-07-18T16:35:23Z
2023-07-18T16:35:23Z
2023-07-18T16:48:22Z
DOC: Added depr note to swapaxes docstrings
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 0fc8b8217b63f..989ef6958d2e6 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -149,7 +149,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray.shape \ pandas.api.extensions.ExtensionArray.toli...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Deprecated here: #51960 but docstring note missing there
https://api.github.com/repos/pandas-dev/pandas/pulls/54125
2023-07-14T10:38:09Z
2023-07-14T12:54:11Z
2023-07-14T12:54:11Z
2023-07-14T13:46:54Z
DOC: Update to Documentation - Grammatical Updates and Typo Corrections
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index 8a72df0661fe4..d558491facdac 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -5,7 +5,7 @@ .. module:: pandas ******************** -pandas documentation +Pandas Documentation ******************** **...
Typo correction and grammatical updates on the "Pandas Documentation" page (https://pandas.pydata.org/docs/). Title: pandas documentation -> Pandas Documentation Capitalization of title. The text below "Useful links": The word "pandas" is not capitalized. Since it is the first word of a sentence, it must be ...
https://api.github.com/repos/pandas-dev/pandas/pulls/54122
2023-07-14T00:45:39Z
2023-07-14T01:06:42Z
null
2023-07-14T01:15:41Z
TST:add tests for kurt in integer/test_reduction.py
diff --git a/pandas/core/arrays/masked.py b/pandas/core/arrays/masked.py index b5c686f53597f..1f3790e0dfccc 100644 --- a/pandas/core/arrays/masked.py +++ b/pandas/core/arrays/masked.py @@ -1126,7 +1126,7 @@ def _wrap_na_result(self, *, name, axis, mask_size): mask = np.ones(mask_size, dtype=bool) fl...
Follow-up to https://github.com/pandas-dev/pandas/pull/52788#discussion_r1262810432.
https://api.github.com/repos/pandas-dev/pandas/pulls/54119
2023-07-13T22:26:13Z
2023-07-14T16:40:38Z
2023-07-14T16:40:38Z
2023-07-14T17:18:44Z
CoW: Set refs properly for non CoW mode
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 9084395871675..c67250ed3164b 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -794,11 +794,7 @@ def swapaxes(self, axis1: Axis, axis2: Axis, copy: bool_t | None = None) -> Self new_axes = [self._get_axis(mapping.get(k, 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/54118
2023-07-13T20:19:55Z
2023-07-17T21:26:04Z
2023-07-17T21:26:04Z
2023-07-17T21:26:09Z
CoW: Avoid unnecessary copies for columnwise replace
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6fdd6cb2a639e..5cf0e9d9f2796 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4158,11 +4158,15 @@ def _set_item_mgr( if len(self): self._check_setitem_copy() - def _iset_item(self, loc: int, value: Series) -> 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/54117
2023-07-13T20:17:48Z
2023-07-17T10:39:18Z
2023-07-17T10:39:18Z
2023-07-17T11:56:48Z
CoW: Copy less in replace implementation with listlikes
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 69fa711d9e375..d0de1ed77c3a6 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -11,6 +11,7 @@ final, ) import warnings +import weakref import numpy as np @@ -839,7 +840,7 @@ def replace_l...
- [ ] 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/54116
2023-07-13T20:16:13Z
2023-08-11T09:16:57Z
2023-08-11T09:16:57Z
2023-08-11T09:17:41Z
ENH: .shift optionally takes multiple periods
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 8cf7543ae075b..46ca987d7b95b 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -168,6 +168,7 @@ Other enhancements - Added :meth:`ExtensionArray.interpolate` used by :meth:`Series.interpolate` and :meth...
Taking over from https://github.com/pandas-dev/pandas/pull/44660/files - [x] closes #44424 - [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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/54115
2023-07-13T20:15:51Z
2023-07-28T21:57:46Z
2023-07-28T21:57:46Z
2023-07-29T20:23:32Z
TST / CoW: Adjust test to cover missing case
diff --git a/pandas/tests/copy_view/test_indexing.py b/pandas/tests/copy_view/test_indexing.py index f9b4ba295f3a0..5ef0abbb423ac 100644 --- a/pandas/tests/copy_view/test_indexing.py +++ b/pandas/tests/copy_view/test_indexing.py @@ -843,8 +843,9 @@ def test_del_frame(backend, using_copy_on_write): tm.assert_frame_...
- [ ] 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/54114
2023-07-13T20:14:10Z
2023-07-17T10:17:00Z
2023-07-17T10:17:00Z
2023-07-17T11:57:04Z
CoW: Fix test that is failing with new arrow version
diff --git a/pandas/compat/pyarrow.py b/pandas/compat/pyarrow.py index 2f2fb6a3662f4..049ce50920e28 100644 --- a/pandas/compat/pyarrow.py +++ b/pandas/compat/pyarrow.py @@ -13,6 +13,7 @@ pa_version_under9p0 = _palv < Version("9.0.0") pa_version_under10p0 = _palv < Version("10.0.0") pa_version_under11p0 =...
- [ ] 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/54112
2023-07-13T20:09:34Z
2023-07-17T11:53:32Z
2023-07-17T11:53:32Z
2023-07-17T11:53:35Z
CoW: Avoid tracking references in delete if not necessary
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 69fa711d9e375..815417277f270 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -317,7 +317,7 @@ def take_block_columns(self, indices: npt.NDArray[np.intp]) -> Self: @final def getitem_blo...
- [ ] 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/54111
2023-07-13T20:08:24Z
2023-08-11T09:17:10Z
2023-08-11T09:17:09Z
2023-08-11T09:17:37Z
CI: Fix pyarrow nightly build
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index a65718ba045a0..73d7723e2fb49 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -12,6 +12,7 @@ runs: run: | micromamba info micromamba list + ...
EDIT: Looks like it was a stale cache issue. After deleting the cache (which the weekly job should help going forward), looks like pyarrow dev has an error
https://api.github.com/repos/pandas-dev/pandas/pulls/54110
2023-07-13T17:58:14Z
2023-07-14T23:21:23Z
2023-07-14T23:21:23Z
2023-07-14T23:29:43Z
ENH: support argmin/max, idxmin/max with object dtype
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 30b2f03dec98c..9000c83b323df 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -128,6 +128,7 @@ Other enhancements - Many read/to_* functions, such as :meth:`DataFrame.to_pickle` and :func:`read_csv`, s...
- [x] closes #4279 - [x] closes #18021 - [x] closes #40685 - [x] closes #43697 - [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/...
https://api.github.com/repos/pandas-dev/pandas/pulls/54109
2023-07-13T17:49:36Z
2023-07-17T16:22:48Z
2023-07-17T16:22:48Z
2023-07-17T16:47:55Z
DOC: Organize README.md badges
diff --git a/README.md b/README.md index a7f38b0fde5e8..8ea473beb107e 100644 --- a/README.md +++ b/README.md @@ -5,17 +5,13 @@ ----------------- # pandas: powerful Python data analysis toolkit -[![PyPI Latest Release](https://img.shields.io/pypi/v/pandas.svg)](https://pypi.org/project/pandas/) -[![Conda Latest Rele...
Inspired by https://github.com/pypa/hatch/blob/master/README.md
https://api.github.com/repos/pandas-dev/pandas/pulls/54108
2023-07-13T17:12:41Z
2023-07-14T04:14:54Z
2023-07-14T04:14:54Z
2023-07-14T04:16:01Z
Update multiple instances of `dtype_backend` parameter description to make them all consistent
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 22c2aa374263d..344a6c2be7a2a 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -1004,11 +1004,16 @@ def convert_dtypes( infer_objects : bool, defaults False Whether to also infer objects to float/int if po...
- [x] closes #53878 - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Note that this supersedes PR #53881.
https://api.github.com/repos/pandas-dev/pandas/pulls/54104
2023-07-13T03:26:38Z
2023-07-13T08:54:08Z
2023-07-13T08:54:08Z
2023-07-13T08:54:16Z
TST: Add test for concat multiindex with category
diff --git a/pandas/tests/reshape/concat/test_concat.py b/pandas/tests/reshape/concat/test_concat.py index 8208abc23551d..d0fed21b15897 100644 --- a/pandas/tests/reshape/concat/test_concat.py +++ b/pandas/tests/reshape/concat/test_concat.py @@ -832,3 +832,32 @@ def test_concat_mismatched_keys_length(): concat(...
https://github.com/pandas-dev/pandas/pull/53697#issuecomment-1633340930 cc @phofl
https://api.github.com/repos/pandas-dev/pandas/pulls/54103
2023-07-13T00:55:23Z
2023-07-13T16:20:05Z
2023-07-13T16:20:05Z
2023-07-25T00:15:53Z
BUG: Timestamp(pd.NA) raising TypeError
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index b7cc254d5c7e5..1467455d86d94 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -435,6 +435,7 @@ Datetimelike - Bug in :meth:`arrays.DatetimeArray.map` and :meth:`DatetimeIndex.map`, where the supplied c...
- [x] closes #45481 - [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/54102
2023-07-13T00:30:33Z
2023-07-17T16:23:44Z
2023-07-17T16:23:44Z
2023-07-25T00:15:43Z
REF: rename PandasArray->NumpyExtensionArray
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 1c6e23746352e..8f410d45a9dc9 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -106,7 +106,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.indexers.VariableOffsetWindowIndexer \ pandas.api.extensions.ExtensionDtype...
- [x] closes #53694 (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/54101
2023-07-12T23:12:34Z
2023-07-18T20:32:53Z
2023-07-18T20:32:53Z
2023-07-18T20:34:06Z
DOC: point out the limitation of precision while doing serialization
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 42cd74a0ca781..cfa0320c6fdd7 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2413,7 +2413,8 @@ def to_json( the default is 'epoch'. double_precision : int, default 10 The number of decimal places t...
- [x] closes #38437 Updated docstring for `to_json`, pointed out that the maximal possible value for `double_precision` is equal 15.
https://api.github.com/repos/pandas-dev/pandas/pulls/54100
2023-07-12T21:50:24Z
2023-07-18T16:00:20Z
2023-07-18T16:00:20Z
2023-07-18T16:00:21Z
BUG: groupby.resample(kind="period") raising AttributeError
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 7450fc6fdc1da..dd99d5031e724 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -511,11 +511,11 @@ Groupby/resample/rolling - Bug in :meth:`GroupBy.groups` with a datetime key in conjunction with another...
- [x] closes #24103 - [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/54099
2023-07-12T21:42:39Z
2023-07-12T23:15:22Z
2023-07-12T23:15:22Z
2023-07-25T00:15:55Z
DEV: Improves Error msg when constructing a Timedelta
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 28aeb854638b6..ffa9a67542e21 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1843,7 +1843,10 @@ class Timedelta(_Timedelta): NPY_DATETIMEUNIT.NPY_FR_W, ...
- [x] closes #54059 - [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/54098
2023-07-12T21:10:35Z
2023-07-17T17:40:56Z
2023-07-17T17:40:56Z
2023-07-17T17:41:28Z
BUG: Timestamp unit with time and not date
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 7450fc6fdc1da..57b2bf910e2e5 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -393,6 +393,7 @@ Datetimelike - Bug in :meth:`Timestamp.round` with values close to the implementation bounds returning inc...
- [ ] 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/54097
2023-07-12T21:05:06Z
2023-07-13T13:12:41Z
2023-07-13T13:12:41Z
2023-07-13T13:52:32Z
CI: Use better pip check to uninstall existing pandas
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index 2d6b0aada4abd..a65718ba045a0 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -16,8 +16,8 @@ runs: - name: Uninstall existing Pandas installation run: |...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54096
2023-07-12T20:24:50Z
2023-07-13T16:08:11Z
2023-07-13T16:08:11Z
2023-07-13T16:08:15Z
CLN: Replace confusing brackets with backticks
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 5783842e9ddef..e0340f99b92e1 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -470,12 +470,12 @@ def isin(comps: ListLike, values: ListLike) -> npt.NDArray[np.bool_]: if not is_list_like(comps): raise TypeErr...
There are some errors which read like: > only list-like objects are allowed to be passed to isin(), you > passed a [str] (note how the type `str` is enclosed in square brackets) This is potentially confusing, since some languages use notation like `[TYPE]` to denote a list of TYPE objects. So the user could r...
https://api.github.com/repos/pandas-dev/pandas/pulls/54091
2023-07-11T20:45:07Z
2023-07-12T16:30:04Z
2023-07-12T16:30:04Z
2023-07-12T16:31:16Z
DOC: Update README.md to use URL in documentation link.
diff --git a/README.md b/README.md index 1bff2941f86ca..a7f38b0fde5e8 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ See the full instructions for [installing from source](https://pandas.pydata.org [BSD 3](LICENSE) ## Documentation -The official documentation is hosted on PyData.org: https://pandas.pyda...
- [x] closes #54089 (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/54090
2023-07-11T20:21:28Z
2023-07-11T21:16:12Z
2023-07-11T21:16:12Z
2023-07-11T21:16:18Z
DOC: Try out sphinx_remove_toctrees
diff --git a/doc/_templates/sidebar-nav-bs.html b/doc/_templates/sidebar-nav-bs.html deleted file mode 100644 index 8298b66568e20..0000000000000 --- a/doc/_templates/sidebar-nav-bs.html +++ /dev/null @@ -1,9 +0,0 @@ -<nav class="bd-links" id="bd-docs-nav" aria-label="Main navigation"> - <div class="bd-toc-item navbar-...
- [ ] closes #54045 (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/54088
2023-07-11T19:45:53Z
2023-07-28T20:32:40Z
null
2023-07-28T20:32:48Z
BUG: merge cross with Series
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 0e4a64d7e6c5f..a904f4d9fbe13 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -145,10 +145,12 @@ def merge( indicator: str | bool = False, validate: str | None = None, ) -> DataFrame: + left_df = ...
- [x] closes #54055 (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/54087
2023-07-11T19:18:46Z
2023-07-11T21:17:59Z
2023-07-11T21:17:59Z
2023-07-11T21:36:17Z
DOC: Supress setups less in user guide
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index d76c7e2bf3b03..41b0c98e339da 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -470,11 +470,6 @@ Compare the above with the result using ``drop_level=True`` (the default value). df....
xref https://github.com/pandas-dev/pandas/issues/28038 I think it would be valuable to show the setup for some examples in the user guide so they can more easily be copy pasted
https://api.github.com/repos/pandas-dev/pandas/pulls/54086
2023-07-11T19:16:34Z
2023-07-17T18:14:00Z
2023-07-17T18:14:00Z
2023-07-17T18:14:03Z
TYP: update mypy and small pyi fixes from ruff
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8997dfe32dcb2..366db4337b0e1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.275 + rev: v0.0.277 ...
There is a much newer version of pyright but I haven't yet managed to get it to pass.
https://api.github.com/repos/pandas-dev/pandas/pulls/54085
2023-07-11T19:14:44Z
2023-07-13T16:08:58Z
2023-07-13T16:08:58Z
2023-08-09T15:08:33Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 756096a7fe345..fd256f2ff7db0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -158,14 +158,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.api.extensions.ExtensionArray.shape \ pandas.api.extensions.ExtensionArray.to...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/54084
2023-07-11T17:57:07Z
2023-07-11T19:48:04Z
2023-07-11T19:48:04Z
2023-07-14T08:49:52Z
TST/DOC: clarify warning message for inplace methods with CoW
diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 0c5b8caeaba6e..be6a9ef488be9 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -395,12 +395,13 @@ class ChainedAssignmentError(Warning): _chained_assignment_method_msg = ( "A value is trying to be set on a copy of a...
Small follow-up on https://github.com/pandas-dev/pandas/pull/53779
https://api.github.com/repos/pandas-dev/pandas/pulls/54081
2023-07-11T12:14:55Z
2023-07-11T15:31:32Z
2023-07-11T15:31:32Z
2023-10-14T22:20:52Z
DOC: to_datetime param format has no effect for df
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index ea418a2c16d06..454c6e1be5b5f 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -706,7 +706,8 @@ def to_datetime( arg : int, float, str, datetime, list, tuple, 1-d array, Series, DataFrame/dict-like ...
- [x] closes #54029 Updated docstring for `to_datetime`. Pointed out, that the parameter `format` has no effect if `DataFrame` is passed. Emphasized that in this case the column `"year"` must be specified in 4-digit format.
https://api.github.com/repos/pandas-dev/pandas/pulls/54079
2023-07-11T10:33:12Z
2023-07-11T13:33:58Z
2023-07-11T13:33:58Z
2023-07-11T13:33:58Z
DOC: Update merge copy parameter code and doc
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index 10793a6973f8a..c0a8fd7d03e66 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -489,9 +489,10 @@ all standard database join operations between ``DataFrame`` or named ``Series`` columns. De...
- [ ] closes #4599 (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/54077
2023-07-11T08:13:18Z
2023-08-21T19:32:30Z
null
2024-02-12T07:51:47Z
Warn: add space
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 8a28b30aecc03..6ab2f958b8730 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -1284,7 +1284,7 @@ def curried(x): if len(mapped) and isinstance(mapped[0], ABCSeries): warnings.warn( - "Returning a DataFra...
- [X] closes #54056 - [ ] [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/54075
2023-07-11T07:44:51Z
2023-07-11T08:54:05Z
2023-07-11T08:54:05Z
2023-07-11T09:38:54Z
BUG: checking for value type when parquet is partitioned
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 0f669beaa036f..255c707a04a94 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -533,13 +533,13 @@ Sparse ExtensionArray ^^^^^^^^^^^^^^ +- Bug in :class:`ArrowStringArray` constructor raises ``ValueEr...
- [ ] closes #53951 - [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/54074
2023-07-11T04:22:10Z
2023-07-13T18:23:37Z
2023-07-13T18:23:37Z
2023-07-14T00:23:47Z
TST: fix test broken on main
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 63ce7ab2b85c8..635416f0cb1d6 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -390,10 +390,8 @@ def f3(x): depr_msg = "The behavior of array concatenation with empty entries...
- [ ] 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/54073
2023-07-10T23:51:29Z
2023-07-11T01:49:40Z
2023-07-11T01:49:40Z
2023-07-11T03:34:26Z
Revert "BUG: DataFrame.stack sometimes sorting the resulting index"
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index e154ca2cd3884..5bde92ddc6dde 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -113,6 +113,7 @@ Other enhancements - Let :meth:`DataFrame.to_feather` accept a non-default :class:`Index` and non-string c...
Closes #53969 Reverts pandas-dev/pandas#53825
https://api.github.com/repos/pandas-dev/pandas/pulls/54068
2023-07-10T20:48:57Z
2023-07-13T20:19:52Z
2023-07-13T20:19:52Z
2023-07-13T20:19:57Z
CI: Fix weekly cache cleanup job
diff --git a/.github/workflows/cache-cleanup-weekly.yml b/.github/workflows/cache-cleanup-weekly.yml index 225503f2894f8..6da31f7354457 100644 --- a/.github/workflows/cache-cleanup-weekly.yml +++ b/.github/workflows/cache-cleanup-weekly.yml @@ -7,6 +7,9 @@ on: jobs: cleanup: runs-on: ubuntu-latest + if: git...
It appears this job didn't fully clear all the GHA caches. I think setting the correct permissions should do the trick
https://api.github.com/repos/pandas-dev/pandas/pulls/54067
2023-07-10T16:50:21Z
2023-07-11T16:46:36Z
2023-07-11T16:46:36Z
2023-07-11T16:46:39Z
Simplify pandas footer
diff --git a/doc/_templates/pandas_footer.html b/doc/_templates/pandas_footer.html index 6d8caa4d6c741..d477315870ca8 100644 --- a/doc/_templates/pandas_footer.html +++ b/doc/_templates/pandas_footer.html @@ -1,3 +1,4 @@ -<p class="copyright"> +<!-- <p class="copyright"> &copy {{copyright}} pandas via <a href="htt...
- [X] closes #51536 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/54066
2023-07-10T15:29:45Z
2023-08-15T19:19:21Z
null
2023-08-15T19:19:22Z
DOC: constant check in series
diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst index fd4f7cd1b83fe..041061f32db3f 100644 --- a/doc/source/user_guide/cookbook.rst +++ b/doc/source/user_guide/cookbook.rst @@ -1488,3 +1488,31 @@ of the data values: {"height": [60, 70], "weight": [100, 140, 180], "sex": ["Mal...
- [X] closes #54033 - [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/54064
2023-07-10T11:26:51Z
2023-07-12T15:40:24Z
2023-07-12T15:40:24Z
2023-07-12T15:41:05Z
DEPR: deprecate strings T, S, L, U, and N in offsets frequencies, resolution abbreviations, _attrname_to_abbrevs
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 4fd9740f184c8..49543c166d047 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -262,7 +262,7 @@ class Timeseries: def setup(self, tz): N = 10**6 halfway = (N // 2) ...
xref #52536 deprecated codes `'T'` and `'L'` in `_attrname_to_abbrevs/_abbrev_to_attrnames`, added a test for FutureWarning. EDIT: - Deprecated in Timedelta units `'T', 'L', 'U', 'N'` in favour of `'min', 'ms', 'us', 'ns'`. - Deprecated aliases `'T', 'L', 'U', 'N'` for time series frequencies in favour of `'...
https://api.github.com/repos/pandas-dev/pandas/pulls/54061
2023-07-10T08:40:33Z
2023-08-29T15:10:53Z
2023-08-29T15:10:53Z
2023-08-29T15:10:53Z
DOC: Add security policy
diff --git a/doc/source/development/policies.rst b/doc/source/development/policies.rst index d079cc59b0ca5..8465820452353 100644 --- a/doc/source/development/policies.rst +++ b/doc/source/development/policies.rst @@ -51,5 +51,9 @@ Python support pandas mirrors the `NumPy guidelines for Python support <https://numpy....
- [ ] closes #8545 (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/54060
2023-07-10T07:16:41Z
2023-07-11T01:50:33Z
2023-07-11T01:50:33Z
2023-07-11T01:54:21Z
REF: share block methods
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 4480a1a0c6746..f34a9f7590a5e 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -156,10 +156,34 @@ class Block(PandasObject): __slots__ = () is_numeric = False - is_object = False - ...
1) Move towards having fewer Block subclasses 2) Hopefully a little bit clearer about why the different cases behave the way they do.
https://api.github.com/repos/pandas-dev/pandas/pulls/54058
2023-07-09T20:18:29Z
2023-07-10T22:21:56Z
2023-07-10T22:21:56Z
2023-07-10T22:27:58Z
Backport PR #54051 on branch 2.0.x (DOC: Add whatsnew for 2.0.4)
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 3905c320be023..018f341ad4ee4 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -16,6 +16,7 @@ Version 2.0 .. toctree:: :maxdepth: 2 + v2.0.4 v2.0.3 v2.0.2 v2.0.1 diff --git a/doc/source/...
Backport PR #54051: DOC: Add whatsnew for 2.0.4
https://api.github.com/repos/pandas-dev/pandas/pulls/54053
2023-07-09T03:11:01Z
2023-07-09T05:23:41Z
2023-07-09T05:23:41Z
2023-07-09T05:23:41Z
BLD: Shrink sdist/wheel sizes
diff --git a/.gitattributes b/.gitattributes index 736fa09d070fe..19c6fd2fd1d47 100644 --- a/.gitattributes +++ b/.gitattributes @@ -14,3 +14,71 @@ *.xls binary *.xlsx binary pandas/_version.py export-subst + + +*.bz2 export-ignore +*.csv export-ignore +*.data export-ignore +*.dta export-ignore +*.feather export-ign...
- [ ] closes #53224 (Replace xxxx with the GitHub issue number) - [ ] closes #50302 (this should also fix that) - [ ] [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:/...
https://api.github.com/repos/pandas-dev/pandas/pulls/54052
2023-07-09T03:09:26Z
2023-07-31T18:11:43Z
2023-07-31T18:11:43Z
2023-07-31T18:13:16Z
DOC: Add whatsnew for 2.0.4
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index fc225d0f44497..f22fd2a79b50e 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -24,6 +24,7 @@ Version 2.0 .. toctree:: :maxdepth: 2 + v2.0.4 v2.0.3 v2.0.2 v2.0.1 diff --git a/doc/source/...
- [ ] 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/54051
2023-07-08T22:40:55Z
2023-07-09T03:09:59Z
2023-07-09T03:09:59Z
2023-07-09T03:10:00Z
CI: Use PYTEST_WORKERS=0 instead of 1 for single cpu runtime
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 600986d3297a9..91c30c4c0b333 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -173,7 +173,7 @@ jobs: uses: ./.github/actions/run-tests env: PATTERN: 'single_cpu' - ...
It appears `-n 1` with pytest-xdist will spawn a worker and run a test on the single worker while `-n 0` avoids that extra work of spawning a worker and still runs the tests in a "single cpu" runtime
https://api.github.com/repos/pandas-dev/pandas/pulls/54049
2023-07-07T22:24:31Z
2023-07-10T18:10:05Z
2023-07-10T18:10:05Z
2023-07-10T18:10:09Z
STY: Consolidate & add pre-commit checks
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8e7dfe71115d..9932d73bbcbdc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -46,14 +46,22 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: + - id: check-ast + - id: check...
* Adds some easy/useful `pre-commit-hooks` and `pygrep-hooks` * Consolidates & de-duplicates some redundant pre-commit `pygrep` checks
https://api.github.com/repos/pandas-dev/pandas/pulls/54047
2023-07-07T22:02:49Z
2023-07-10T22:16:43Z
2023-07-10T22:16:43Z
2023-07-10T22:16:46Z
BLD: Update Gitpod to use docker installation flow and pip/meson for setup
diff --git a/.gitpod.yml b/.gitpod.yml index 0a5b5648994ae..9222639136a17 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -3,19 +3,20 @@ # https://www.gitpod.io/docs/config-start-tasks/#configuring-the-terminal # ------------------------------------------------------------------------- -# assuming we use dockerhub: n...
- [x] closes #53685 - [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 | it is not a feature/bug - [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codeba...
https://api.github.com/repos/pandas-dev/pandas/pulls/54046
2023-07-07T20:48:40Z
2023-07-11T18:09:54Z
2023-07-11T18:09:54Z
2023-07-11T18:23:56Z
STY: pyupgrade to 3.9
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c9cd7528bcd2f..f8e7dfe71115d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -20,7 +20,7 @@ repos: rev: 23.3.0 hooks: - id: black -- repo: https://github.com/charliermarsh/ruff-pre-commit +- repo: https://git...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54044
2023-07-07T18:57:36Z
2023-07-10T20:09:54Z
2023-07-10T20:09:54Z
2023-07-10T20:11:31Z
⬆️ UPGRADE: Autoupdate pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8e7dfe71115d..53962a9426cc2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,7 +21,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.270 + rev: v0.0.275 ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54043
2023-07-07T18:17:33Z
2023-07-10T22:12:18Z
2023-07-10T22:12:18Z
2023-07-11T00:02:11Z
STY: Use ruff instead of flake8 to lint docstring examples
diff --git a/environment.yml b/environment.yml index 8e3c3a26ffc0f..eba131594869f 100644 --- a/environment.yml +++ b/environment.yml @@ -75,7 +75,6 @@ dependencies: - cxx-compiler # code checks - - flake8=6.0.0 # run in subprocess over docstring examples - mypy=1.2 # pre-commit uses locally installed mypy...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54042
2023-07-07T16:56:22Z
2023-07-07T18:58:46Z
null
2023-07-07T18:58:49Z
DOC: Fix typos in groupby user guide
diff --git a/doc/source/user_guide/groupby.rst b/doc/source/user_guide/groupby.rst index 6f4008853f161..7ddce18d8a259 100644 --- a/doc/source/user_guide/groupby.rst +++ b/doc/source/user_guide/groupby.rst @@ -878,7 +878,7 @@ will be broadcast across the group. grouped.transform("sum") In addition to string alia...
- [ ] 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/54041
2023-07-07T16:25:41Z
2023-07-07T17:08:23Z
2023-07-07T17:08:23Z
2023-07-07T17:08:32Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index fd256f2ff7db0..79445ec7b936d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -112,8 +112,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DatetimeIndex.snap \ pandas.api.indexers.BaseIndexer \ pandas.api.inde...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 We need to preview here as html documents for `Styler` can't be done locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/54039
2023-07-07T16:12:33Z
2023-07-13T10:58:58Z
2023-07-13T10:58:58Z
2023-07-18T08:51:57Z
WEB: Add Noa Tamir to maintainers list
diff --git a/web/pandas/config.yml b/web/pandas/config.yml index 4f17822c35582..27e5ea25c1bad 100644 --- a/web/pandas/config.yml +++ b/web/pandas/config.yml @@ -93,6 +93,7 @@ maintainers: - lithomas1 - mzeitlin11 - lukemanley + - noatamir inactive: - lodagro - jseabold
null
https://api.github.com/repos/pandas-dev/pandas/pulls/54038
2023-07-07T16:11:09Z
2023-07-11T16:20:47Z
2023-07-11T16:20:47Z
2023-07-11T16:20:47Z
BUG: Fix failing hash function for certain non-ns resolution `Timedelta`s
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index dc306471dbd3f..97069e32a66e2 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -393,6 +393,7 @@ Timedelta - :meth:`TimedeltaIndex.map` with ``na_action="ignore"`` now works as expected (:issue:`51644`) ...
I noticed that hashing certain large `pd.Timedelta`s resultet in an `OutOfBoundsTimedelta` exception, which shouldn't happen. In the hash implementation there is seems to be an attempt at catching this error, as the offending line is wrapped in a `try` clause, but, the `except` clause catches an `OverflowError` inst...
https://api.github.com/repos/pandas-dev/pandas/pulls/54037
2023-07-07T14:08:53Z
2023-07-07T19:01:05Z
2023-07-07T19:01:05Z
2023-07-08T11:08:14Z
TST: Add test for Timedelta hash invariance
diff --git a/pandas/tests/scalar/timedelta/test_timedelta.py b/pandas/tests/scalar/timedelta/test_timedelta.py index a83c6a8596575..701cfdf157d26 100644 --- a/pandas/tests/scalar/timedelta/test_timedelta.py +++ b/pandas/tests/scalar/timedelta/test_timedelta.py @@ -1,5 +1,6 @@ """ test the scalar Timedelta """ from da...
Adding an xfailing test to reproduce and document #44504. Ideally the test could cover an even wider set of comparisons, but I think this is a good start. - [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 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/54035
2023-07-07T11:56:41Z
2023-07-12T16:24:08Z
2023-07-12T16:24:08Z
2023-07-12T16:24:15Z
Implement Pydantic V2 protocol
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index dc306471dbd3f..404d3820cad02 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -127,7 +127,7 @@ Other enhancements - Many read/to_* functions, such as :meth:`DataFrame.to_pickle` and :func:`read_csv`, s...
- [X] closes #53999 - [ ] [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/54034
2023-07-07T09:40:00Z
2023-08-08T07:31:16Z
null
2023-08-08T08:22:23Z
DOC: add backticks to docstrings
diff --git a/pandas/io/xml.py b/pandas/io/xml.py index 2aec361d46b99..62bbb410dacc1 100644 --- a/pandas/io/xml.py +++ b/pandas/io/xml.py @@ -1,5 +1,5 @@ """ -:mod:`pandas.io.xml` is a module for reading XML. +:mod:``pandas.io.xml`` is a module for reading XML. """ from __future__ import annotations @@ -66,26 +66,2...
- [ ] Issue DOC: Inconsistent use of code-style formatting (backticks) in docstrings #53674 - [ ] Issue originally referenced only read_csv and read_excel but open to all docstrings to update this formatting for consistency This PR doesn't address all backsticks needed in pandas/io/xml.py but want to get the ball...
https://api.github.com/repos/pandas-dev/pandas/pulls/54030
2023-07-07T03:59:16Z
2023-07-07T17:12:15Z
2023-07-07T17:12:15Z
2023-07-11T01:39:46Z
BUG: fixes #53935 Categorical order lost after call to remove_categories
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index e154ca2cd3884..0c71c82788c9f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -375,6 +375,7 @@ Bug fixes Categorical ^^^^^^^^^^^ +- Bug in :meth:`CategoricalIndex.remove_categories` where ordered ca...
- [x] closes https://github.com/pandas-dev/pandas/issues/53935 - [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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/54027
2023-07-06T21:55:41Z
2023-07-11T17:32:50Z
2023-07-11T17:32:50Z
2023-07-11T21:47:23Z
TST: Mark subprocess tests as single_cpu
diff --git a/pandas/tests/io/test_compression.py b/pandas/tests/io/test_compression.py index 9bdfbad347481..af83ec4a55fa5 100644 --- a/pandas/tests/io/test_compression.py +++ b/pandas/tests/io/test_compression.py @@ -202,6 +202,7 @@ def test_gzip_reproducibility_file_object(): assert output == buffer.getvalue() ...
Spawning a new subprocess can be a little intensive, so marking these as single cpu for our CI
https://api.github.com/repos/pandas-dev/pandas/pulls/54026
2023-07-06T21:30:41Z
2023-07-07T17:07:41Z
2023-07-07T17:07:41Z
2023-07-07T17:07:45Z
BUG: fixes Arrow Dataframes/Series producing a Numpy object result
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 137f2e5c12211..bcc8b1877128f 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -466,6 +466,7 @@ Numeric - Bug in :meth:`Series.mean`, :meth:`DataFrame.mean` with object-dtype values containing strings t...
- [x] closes #53979 - [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/54025
2023-07-06T20:40:28Z
2023-07-18T20:24:33Z
2023-07-18T20:24:33Z
2023-07-18T20:39:11Z
CoW: Add ChainedAssignmentError for update
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 1119117c411d3..c9ee055b4a6c7 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -33,6 +33,7 @@ Copy-on-Write improvements operating inplace like this will never work, since the selection behaves as ...
xref https://github.com/pandas-dev/pandas/issues/48998 - [ ] 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://api.github.com/repos/pandas-dev/pandas/pulls/54024
2023-07-06T19:48:07Z
2023-07-11T11:49:03Z
2023-07-11T11:49:03Z
2023-07-28T08:32:24Z
CoW: Add ChainedAssignmentError for replace with inplace=True
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 44e091e12bfa6..cf7285f94b218 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -75,6 +75,7 @@ Copy-on-Write improvements - DataFrame.update / Series.update - DataFrame.fillna / Series.fillna + -...
xref https://github.com/pandas-dev/pandas/issues/48998 - [ ] 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://api.github.com/repos/pandas-dev/pandas/pulls/54023
2023-07-06T19:37:32Z
2023-07-17T10:12:02Z
2023-07-17T10:12:02Z
2023-07-17T11:56:39Z
Update README.md
diff --git a/README.md b/README.md index 1bff2941f86ca..9cf29bf060c0b 100644 --- a/README.md +++ b/README.md @@ -180,7 +180,7 @@ Additional information on the communication channels can be found on the [contri [![Open Source Helpers](https://www.codetriage.com/pandas-dev/pandas/badges/users.svg)](https://www.codetri...
- [ ] 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/54020
2023-07-06T10:34:33Z
2023-07-06T11:03:25Z
null
2023-07-06T11:03:25Z
CI: Cache doc build
diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index 9840596357d26..badab51383d2a 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -49,6 +49,14 @@ jobs: - name: Build website run: python web/pandas_w...
- [ ] 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/54018
2023-07-06T02:56:01Z
2023-08-03T19:53:03Z
null
2024-03-16T17:12:27Z
BUG: Fix mamba can't create environment issue
diff --git a/environment.yml b/environment.yml index 8fd97e6fcc0e1..6178fe896760f 100644 --- a/environment.yml +++ b/environment.yml @@ -17,7 +17,6 @@ dependencies: - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17.0 - - pytest-localserver>=0.7.1 - coverage # required dependencies diff --git a...
- [ ] closes #53978 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/54017
2023-07-06T02:23:03Z
2023-07-06T19:48:35Z
2023-07-06T19:48:35Z
2023-07-06T23:20:24Z
BUG: Parameter col_space of to_html method not working with multi-level columns
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 137f2e5c12211..24def10266ab7 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -523,6 +523,7 @@ I/O - Bug in :func:`read_html`, tail texts were removed together with elements containing ``display:none``...
BUG: Parameter col_space of to_html method not working with multi-level columns - [X] closes #53885 - [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.p...
https://api.github.com/repos/pandas-dev/pandas/pulls/54015
2023-07-05T22:02:36Z
2023-07-18T23:01:35Z
2023-07-18T23:01:35Z
2023-07-18T23:01:54Z
DEPR: passing mixed offsets with utc=False into to_datetime
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 3dba120c0c64b..bb51124f10e54 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -931,6 +931,8 @@ Parsing a CSV with mixed timezones pandas cannot natively represent a column or index with mixed timezones. If you...
xref #50887 parsing datetimes with mixed time zones will raise a warning if `utc=False`. We advice users to use `utc=True` to silence this warning.
https://api.github.com/repos/pandas-dev/pandas/pulls/54014
2023-07-05T21:55:09Z
2023-07-27T19:03:22Z
2023-07-27T19:03:22Z
2023-11-27T07:39:04Z
CLN: Remove unnecessary pa version check
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 17120d0de5c5f..284044dfadfef 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -2026,8 +2026,6 @@ def _str_repeat(self, repeats: int | Sequence[int]): raise NotImplementedError( ...
- [ ] 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/54012
2023-07-05T21:04:55Z
2023-07-06T20:25:51Z
2023-07-06T20:25:51Z
2023-07-06T20:26:02Z
API/CoW: Return copies for head and tail
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 44e091e12bfa6..8fa9c28c4bad2 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -65,6 +65,7 @@ Copy-on-Write improvements - The :class:`DataFrame` constructor, when constructing a DataFrame from a dictio...
- [ ] 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/54011
2023-07-05T20:55:30Z
2023-07-17T13:58:05Z
2023-07-17T13:58:05Z
2023-07-17T13:58:09Z
DOC: Added to 10mins guide
diff --git a/doc/source/user_guide/10min.rst b/doc/source/user_guide/10min.rst index 7c98c99fecd5b..cb3c4ab3de658 100644 --- a/doc/source/user_guide/10min.rst +++ b/doc/source/user_guide/10min.rst @@ -16,6 +16,16 @@ Customarily, we import as follows: import numpy as np import pandas as pd +Basic data structur...
- [ ] closes #47282 - [ ] 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/54010
2023-07-05T18:13:39Z
2023-07-06T20:31:31Z
2023-07-06T20:31:31Z
2023-07-06T20:31:55Z
CLN: is_mixed_type, is_homogeneous_type
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ae43a44d68f1c..f90b5c0eedbe8 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -961,13 +961,6 @@ def _is_homogeneous_type(self) -> bool: ------- bool - See Also - -------- - Index._is_homogeneous_type :...
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number) - [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/con...
https://api.github.com/repos/pandas-dev/pandas/pulls/54008
2023-07-05T16:47:44Z
2023-07-06T20:33:54Z
2023-07-06T20:33:54Z
2023-07-06T20:34:53Z
ENH: Use explicit methods instead of regex pattern in arrow strings
diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py index fa56571d7b0b0..12f4b5486b6b9 100644 --- a/pandas/core/arrays/string_arrow.py +++ b/pandas/core/arrays/string_arrow.py @@ -307,28 +307,31 @@ def _str_contains( return super()._str_contains(pat, case, flags, na, regex)...
- [ ] 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/54006
2023-07-05T15:29:03Z
2023-07-06T23:55:09Z
2023-07-06T23:55:09Z
2023-07-07T08:04:39Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index bf0711dcc0581..756096a7fe345 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -110,12 +110,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas_object \ pandas.api.interchange.from_dataframe \ pandas.DatetimeIndex...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 It wasn't possible to make the html files locally to preview the examples.
https://api.github.com/repos/pandas-dev/pandas/pulls/54004
2023-07-05T11:51:37Z
2023-07-06T18:17:44Z
2023-07-06T18:17:44Z
2023-07-18T09:12:05Z
Correct check when slicing non-monotonic datetime indexes
diff --git a/doc/source/whatsnew/v2.1.0.rst b/doc/source/whatsnew/v2.1.0.rst index 6390fbeed8548..8644caef21de2 100644 --- a/doc/source/whatsnew/v2.1.0.rst +++ b/doc/source/whatsnew/v2.1.0.rst @@ -368,6 +368,7 @@ Categorical Datetimelike ^^^^^^^^^^^^ - :meth:`DatetimeIndex.map` with ``na_action="ignore"`` now works ...
The intention of #37819 was to deprecate (removed in #49607) the special case behaviour of non-monotonic datetime indexes, so that if either slice bound is not in the index, a KeyError is raised. However, the check only fired correctly for the case where the lower bound was not in the index and either the upper boun...
https://api.github.com/repos/pandas-dev/pandas/pulls/54002
2023-07-05T10:16:25Z
2023-07-19T15:41:34Z
2023-07-19T15:41:34Z
2023-07-19T15:42:15Z
REF: implement EA.pad_or_backfill
diff --git a/doc/source/reference/extensions.rst b/doc/source/reference/extensions.rst index bff5b2b70b518..eb2529716b55e 100644 --- a/doc/source/reference/extensions.rst +++ b/doc/source/reference/extensions.rst @@ -54,6 +54,7 @@ objects. api.extensions.ExtensionArray.interpolate api.extensions.Extension...
- [x] closes #53621 (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/54001
2023-07-04T18:57:20Z
2023-07-31T16:48:32Z
2023-07-31T16:48:32Z
2023-07-31T16:53:38Z
CLN: tests.groupby.test_any_all
diff --git a/pandas/tests/groupby/conftest.py b/pandas/tests/groupby/conftest.py index c5e30513f69de..b1b1d455d5027 100644 --- a/pandas/tests/groupby/conftest.py +++ b/pandas/tests/groupby/conftest.py @@ -24,6 +24,11 @@ def dropna(request): return request.param +@pytest.fixture(params=[True, False]) +def skipn...
- [ ] 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/53998
2023-07-04T14:32:08Z
2023-07-06T19:52:58Z
2023-07-06T19:52:58Z
2023-07-07T15:14:32Z
DEPR: start with Deprecation instead of FutureWarning for NDFrame._data
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b806ddbaa89ba..f049e9d479b26 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -506,7 +506,7 @@ def _data(self): warnings.warn( f"{type(self).__name__}._data is deprecated and will be removed in " "a ...
Follow-up on https://github.com/pandas-dev/pandas/pull/52003 Given this is something being used by downstream libraries, and not directly by users, we can start with a DeprecationWarning, which is not visible for users of those libraries.
https://api.github.com/repos/pandas-dev/pandas/pulls/53994
2023-07-04T10:55:53Z
2023-07-04T18:53:09Z
2023-07-04T18:53:09Z
2023-07-04T18:53:12Z
TST: add test to check dtype after replacing values in categorical Series inplace
diff --git a/pandas/tests/series/methods/test_replace.py b/pandas/tests/series/methods/test_replace.py index d3cdae63d26f3..50b9714082054 100644 --- a/pandas/tests/series/methods/test_replace.py +++ b/pandas/tests/series/methods/test_replace.py @@ -387,6 +387,16 @@ def test_replace_categorical(self, categorical, numeri...
- [x] closes #53358 - added a test in order to check if the `dtype` is being updated, when we replace values in a categorical Series with `inplace=True`.
https://api.github.com/repos/pandas-dev/pandas/pulls/53993
2023-07-04T09:50:00Z
2023-07-07T17:06:54Z
2023-07-07T17:06:54Z
2023-07-07T17:07:01Z
BUG: ignoring sort in DTA.factorize
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 86849aa41e3e1..40cd59340f942 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -2211,7 +2211,15 @@ def factorize( codes = codes[::-1] uniques = uniques[:...
- [ ] 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/53992
2023-07-03T22:48:09Z
2023-07-06T19:57:33Z
2023-07-06T19:57:33Z
2023-07-06T20:29:50Z
CLN: remove unreachable, unnecessary axis kwd
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b806ddbaa89ba..ff20d60a40a32 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8035,10 +8035,8 @@ def interpolate( ) else: index = missing.get_interp_index(method, obj.index) - axis = self...
- [ ] 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/53991
2023-07-03T22:29:32Z
2023-07-06T19:58:37Z
2023-07-06T19:58:37Z
2023-07-06T20:29:33Z
BUG: missing fstring
diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx index 536ae7ee4673b..9173b7e8b1449 100644 --- a/pandas/_libs/tslibs/parsing.pyx +++ b/pandas/_libs/tslibs/parsing.pyx @@ -704,7 +704,7 @@ cdef datetime dateutil_parse( # we get tzlocal, once the deprecation is enforced will...
- [ ] 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/53990
2023-07-03T20:55:27Z
2023-07-06T19:56:44Z
2023-07-06T19:56:44Z
2023-07-06T20:30:16Z
REF: swap axis before calling Manager.pad_or_backfill
diff --git a/pandas/core/arrays/numpy_.py b/pandas/core/arrays/numpy_.py index 570e48344c961..5f02053a454ed 100644 --- a/pandas/core/arrays/numpy_.py +++ b/pandas/core/arrays/numpy_.py @@ -247,7 +247,7 @@ def pad_or_backfill( meth = missing.clean_fill_method(method) missing.pad_or_backfill_inplace( ...
This was causing some major headaches in trying to implement #53621. An upcoming PR that implements that will get rid fo the ugly try/except in the dim2 test.
https://api.github.com/repos/pandas-dev/pandas/pulls/53989
2023-07-03T20:01:21Z
2023-07-06T20:53:32Z
2023-07-06T20:53:32Z
2023-07-06T20:58:28Z
ENH: Add support for engine=numba to groupby apply
diff --git a/pandas/core/_numba/__init__.py b/pandas/core/_numba/__init__.py index e69de29bb2d1d..70cf580cf0ce9 100644 --- a/pandas/core/_numba/__init__.py +++ b/pandas/core/_numba/__init__.py @@ -0,0 +1,13 @@ +# ruff: noqa: F401 +def _register_extensions() -> None: + """ + Exposes the DF/Series/Index extension t...
- [ ] closes #53933 (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/c...
https://api.github.com/repos/pandas-dev/pandas/pulls/53988
2023-07-03T19:11:46Z
2023-11-26T13:54:02Z
null
2023-11-26T13:54:02Z
DOC: Clean up CSV sniffing and chunking examples
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 0084e885db2b5..ec0e7d0636b07 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -1568,8 +1568,7 @@ class of the csv module. For this, you have to specify ``sep=None``. .. ipython:: python df = pd.DataFrame...
Sniffing: - Had an unused "to_csv" call Chunking: - Used an unnecessary "sep" - Had two no-op statements, which seem like they were meant to be printed Both - Put the index as a column unnecessarily --- - [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_cod...
https://api.github.com/repos/pandas-dev/pandas/pulls/53987
2023-07-03T18:18:31Z
2023-07-06T20:03:50Z
2023-07-06T20:03:50Z
2023-07-07T02:03:48Z
REF: Separate groupby, rolling, and window agg/apply list/dict-like
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 6af4557897a0d..fc322312a9195 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -2,14 +2,12 @@ import abc from collections import defaultdict -from contextlib import nullcontext from functools import partial import inspect from typing im...
- [ ] 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/53986
2023-07-03T17:30:22Z
2023-07-09T08:58:55Z
2023-07-09T08:58:55Z
2023-07-09T21:59:06Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index a67dc66b26d34..2c43bd794b798 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -118,17 +118,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.core.window.rolling.Window.sum \ pandas.core.window.rolling.Window.var \ ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 It's not possible to locally make the html for each method.
https://api.github.com/repos/pandas-dev/pandas/pulls/53985
2023-07-03T16:36:14Z
2023-07-05T07:37:38Z
2023-07-05T07:37:38Z
2023-07-05T07:54:30Z
WEB/DOC: use Plausible for analytics (using Scientific Python server)
diff --git a/doc/source/conf.py b/doc/source/conf.py index 31893bdf929d8..69a3a7187ecc2 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -240,7 +240,10 @@ "footer_start": ["pandas_footer", "sphinx-version"], "github_url": "https://github.com/pandas-dev/pandas", "twitter_url": "https://twitter....
This proposes to switch from our current usage of Google Analytics to Plausible. (currently it fully switches, but could also first add it in addition so we have both for some time) Plausible is a privacy-friendly and open source alternative for Google Analytics (https://plausible.io/). The server we are using ...
https://api.github.com/repos/pandas-dev/pandas/pulls/53984
2023-07-03T15:54:30Z
2023-08-15T19:18:05Z
2023-08-15T19:18:05Z
2024-01-22T16:51:26Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f9020a192e5b7..bf0711dcc0581 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -110,10 +110,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas_object \ pandas.api.interchange.from_dataframe \ pandas.DatetimeIndex...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875 I could not make the html of each method, so I'm not sure if everything looks well. I'll use `/preview` here.
https://api.github.com/repos/pandas-dev/pandas/pulls/53982
2023-07-03T14:48:29Z
2023-07-05T08:07:14Z
2023-07-05T08:07:14Z
2023-07-05T08:08:26Z
Test CoW for multiple Python versions
diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index d608654b510d1..600986d3297a9 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -57,7 +57,15 @@ jobs: # Also install zh_CN (its encoding is gb2312) but do not activate it. ...
- [ ] 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/53981
2023-07-03T14:33:22Z
2023-07-05T18:46:54Z
2023-07-05T18:46:54Z
2023-07-05T18:47:14Z
Update ecosystem.md
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index 957a8d38b204c..fba50faac3e58 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -210,10 +210,11 @@ or may not be compatible with non-HTML Jupyter output formats.) See [Options and Settings](h...
Hi @lithomas1 , This pull request has been raised to update the documentation file - ecosystem.md. As discussed in issue #53451, I have replaced the deprecated qgrid with the modin-spreadsheet in the ecosystem.md file. I am new to open source, kindly let me know if any modifications need to be made.
https://api.github.com/repos/pandas-dev/pandas/pulls/53980
2023-07-03T14:14:50Z
2023-07-06T13:09:41Z
2023-07-06T13:09:41Z
2023-07-06T13:09:50Z
ENH: Don't fragment manager if convert is no-op
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 1d572dbfd5386..8923faf444953 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -480,7 +480,15 @@ def convert( return [self.copy()] if copy else [self] if self.ndim != 1 and se...
- [x] closes #53853 (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/53977
2023-07-02T21:49:47Z
2023-07-03T20:07:39Z
2023-07-03T20:07:39Z
2023-07-03T20:07:42Z