title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
Update 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
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
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
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
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
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
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
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
DOC: Fixes to the docs style
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 822bc7407a0c7..483921393f3ea 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -563,7 +563,8 @@ they need to be sorted. As with any index, you can use :meth:`~DataFrame.sort_in .. ipython:: python - import random; random.shu...
Fixing flake8 errors in documentation pages that are mostly correct. Also changing `setup.cfg` to avoid false positives. - [X] refs #24173 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24182
2018-12-09T19:09:35Z
2018-12-09T20:09:12Z
2018-12-09T20:09:12Z
2018-12-09T20:13:46Z
DOC: Link to dev version of contributing guide from README.md
diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 95729f845ff5c..21df1a3aacd59 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,24 +1,23 @@ -Contributing to pandas -====================== +# Contributing to pandas Whether you are a novice or experienced software developer, ...
README.md should link to the development version of the contributing guide, since the stable version may not match current practice for `master`. For example, see #24069 . I'm not sure this PR is a good idea, but I thought it was easiest open it and get comments directly.
https://api.github.com/repos/pandas-dev/pandas/pulls/24172
2018-12-09T17:20:38Z
2018-12-17T12:56:13Z
2018-12-17T12:56:13Z
2018-12-17T15:06:11Z
remove enum import for PY2 compat, xref #22802
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index b4862a5f3b02f..472ac0ee6d45c 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import enum import warnings from cpython cimport (PyObject_RichCo...
xref #22802
https://api.github.com/repos/pandas-dev/pandas/pulls/24170
2018-12-09T15:46:56Z
2018-12-11T15:11:17Z
2018-12-11T15:11:17Z
2018-12-12T20:42:07Z
DOC: Move 0.23.5 release notes
diff --git a/doc/source/whatsnew/v0.23.5.txt b/doc/source/whatsnew/v0.23.5.txt deleted file mode 100644 index 8f4b1a13c2e9d..0000000000000 --- a/doc/source/whatsnew/v0.23.5.txt +++ /dev/null @@ -1,54 +0,0 @@ -.. _whatsnew_0235: - -v0.23.5 (TBD 0, 2018) ---------------------- - -This is a minor bug-fix release in the 0....
Closes https://github.com/pandas-dev/pandas/issues/22923
https://api.github.com/repos/pandas-dev/pandas/pulls/24165
2018-12-08T20:56:33Z
2018-12-08T22:28:33Z
2018-12-08T22:28:33Z
2018-12-08T22:31:38Z
API: Revert breaking `.values` changes
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 0b2b526dfe9e7..5698bbb5cfab9 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -219,17 +219,21 @@ Previously, these would be cast to a NumPy array with object dtype. In general, this should result i...
User-facing change: `Series[period].values` nad `Series[interval].values` continues to be an ndarray of objects. Recommend ``.array`` instead. There are a handful of related places in pandas where we assumed that ``Series[EA].values`` was an EA. Part of #23995
https://api.github.com/repos/pandas-dev/pandas/pulls/24163
2018-12-08T13:14:56Z
2018-12-09T12:11:12Z
2018-12-09T12:11:12Z
2018-12-09T12:11:15Z
DOC: Ignoring F821 in developer.rst, that are breaking the build
diff --git a/doc/source/developer.rst b/doc/source/developer.rst index 2930ac0f20ed2..ba6cec93d02e4 100644 --- a/doc/source/developer.rst +++ b/doc/source/developer.rst @@ -65,8 +65,8 @@ for each column, *including the index columns*. This has JSON form: .. code-block:: python # assuming there's at least...
I merged #18201 without a rebase, and I didn't realize it'd break the CI, because of flake8 errors (variable not defined) in an example that is not supposed to run. Fixing the CI by ignoring the `F821` errors.
https://api.github.com/repos/pandas-dev/pandas/pulls/24160
2018-12-08T08:00:43Z
2018-12-08T18:26:30Z
2018-12-08T18:26:30Z
2018-12-08T18:26:30Z
BUG - anchoring dates for resample with Day(n>1)
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 0b2b526dfe9e7..488971c13508a 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1516,6 +1516,7 @@ Groupby/Resample/Rolling - Bug in :func:`pandas.core.groupby.GroupBy.first` and :func:`pandas.core...
- [ ] closes #24127 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24159
2018-12-08T05:24:02Z
2018-12-13T02:02:21Z
2018-12-13T02:02:20Z
2018-12-13T03:20:05Z
BUG: Assorted DatetimeIndex bugfixes
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 3f881485937d8..b04d2eeba1ed0 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -380,6 +380,7 @@ Backwards incompatible API changes - ``max_rows`` and ``max_cols`` parameters removed from :class:`HTM...
Bit of a hodge-podge. - Deprecate `time_rule` in `offsets.generate_range` - Improve error messages if NaT gets passed to date_range, or in validate_frequency (closes #11587) - Preserve timezone in DatetimeIndex->CategoricalIndex->DatetimeIndex (closes #18664) - Preserve freq when indexing DTI/TDI with Ellipsis (c...
https://api.github.com/repos/pandas-dev/pandas/pulls/24157
2018-12-08T00:09:34Z
2018-12-14T14:53:44Z
2018-12-14T14:53:43Z
2018-12-14T16:12:39Z
BUG: Throw ValueError when the format kwarg is passed to the HDFStore…
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 0b2b526dfe9e7..f33003e95d651 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1492,6 +1492,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - Bug in :func:`Dat...
… constructor - [x] closes #13291 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24155
2018-12-07T22:49:05Z
2018-12-09T16:10:58Z
2018-12-09T16:10:58Z
2018-12-09T16:11:06Z
DOC: update usage of randn in io.rst
diff --git a/doc/source/io.rst b/doc/source/io.rst index 313c4d723d079..c6e7bccdd8aad 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -14,7 +14,6 @@ from pandas.compat import StringIO, BytesIO - randn = np.random.randn np.set_printoptions(precision=4, suppress=True) plt.close('all') pd.o...
- [x] closes #24148 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24154
2018-12-07T21:50:41Z
2018-12-09T15:49:44Z
2018-12-09T15:49:44Z
2018-12-09T15:49:48Z
DOC: remove long listings in the tutorials.rst page
diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst index 83c891c0c0e40..d5da7df347573 100644 --- a/doc/source/tutorials.rst +++ b/doc/source/tutorials.rst @@ -18,117 +18,28 @@ A handy pandas `cheat sheet <http://pandas.pydata.org/Pandas_Cheat_Sheet.pdf>`_. Community Guides ================ -pandas Coo...
Triggered by discussion in https://github.com/pandas-dev/pandas/pull/24117: currently some of the listed tutorials have a very long included table of content, others much less. Here I kept the current list of tutorials, but simply removed detailed tocs of all of them. Each of them can do that on the page you land on wh...
https://api.github.com/repos/pandas-dev/pandas/pulls/24152
2018-12-07T21:27:46Z
2018-12-09T14:27:16Z
2018-12-09T14:27:16Z
2018-12-09T16:08:44Z
DOC: fix warnings in whatsnew about MI.labels -> codes rename
diff --git a/doc/source/whatsnew/v0.10.1.rst b/doc/source/whatsnew/v0.10.1.rst index 5679babf07b73..a627454561759 100644 --- a/doc/source/whatsnew/v0.10.1.rst +++ b/doc/source/whatsnew/v0.10.1.rst @@ -97,22 +97,58 @@ columns, this is equivalent to passing a ``HDFStore`` now serializes MultiIndex dataframes when appe...
Follow-up on https://github.com/pandas-dev/pandas/pull/23752 to get rid of 2 warnings.
https://api.github.com/repos/pandas-dev/pandas/pulls/24150
2018-12-07T20:51:10Z
2018-12-07T21:15:16Z
2018-12-07T21:15:16Z
2018-12-07T21:43:21Z
BUG: Fixed block placment from reindex(?)
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 53ae3200d2adb..083e0198c1d15 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1297,6 +1297,7 @@ Datetimelike - Bug in the :class:`Series` repr with period-dtype data missing a space before the dat...
Closes https://github.com/pandas-dev/pandas/issues/24147
https://api.github.com/repos/pandas-dev/pandas/pulls/24149
2018-12-07T20:32:05Z
2018-12-07T22:05:33Z
2018-12-07T22:05:32Z
2018-12-07T22:05:36Z
CLN: minor cleanups for MultiIndex.codes
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 53ae3200d2adb..aa8fbbd9b8dd8 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1102,8 +1102,9 @@ Deprecations - :attr:`MultiIndex.labels` has been deprecated and replaced by :attr:`MultiIndex.cod...
Minor cleanup for #23752. The whatsnew didn't parse properly and other small stuff.
https://api.github.com/repos/pandas-dev/pandas/pulls/24146
2018-12-07T18:28:49Z
2018-12-07T20:36:29Z
2018-12-07T20:36:29Z
2018-12-13T02:46:09Z
REF/TST: Add more pytest idiom to util/test_util
diff --git a/pandas/tests/util/test_deprecate_kwarg.py b/pandas/tests/util/test_deprecate_kwarg.py new file mode 100644 index 0000000000000..7287df9db8a62 --- /dev/null +++ b/pandas/tests/util/test_deprecate_kwarg.py @@ -0,0 +1,93 @@ +# -*- coding: utf-8 -*- +import pytest + +from pandas.util._decorators import depreca...
Also breaks up `test_util` into multiple test modules by the function or method tested.
https://api.github.com/repos/pandas-dev/pandas/pulls/24141
2018-12-07T10:38:13Z
2018-12-07T21:14:44Z
2018-12-07T21:14:44Z
2018-12-07T23:52:33Z
Added log10 to the list of unary functions df.eval can handle
diff --git a/doc/source/enhancingperf.rst b/doc/source/enhancingperf.rst index 1c873d604cfe0..e40e078ccf075 100644 --- a/doc/source/enhancingperf.rst +++ b/doc/source/enhancingperf.rst @@ -482,7 +482,7 @@ These operations are supported by :func:`pandas.eval`: * Simple variable evaluation, e.g., ``pd.eval('df')`` (this...
- [x] closes https://github.com/pandas-dev/pandas/issues/24139 - [x] tests ~~added~~ / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` `(pandas) ➜ pandas git:(binary_math_log) git diff upstream/master -u -- "*.py" | flake8 --diff ` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24140
2018-12-07T07:57:31Z
2018-12-09T18:52:10Z
2018-12-09T18:52:10Z
2018-12-10T08:59:21Z
Fix repr of DataFrame with IntervalIndex
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index e526aa72affee..14e73b957d519 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1015,10 +1015,11 @@ def _format_with_header(self, header, **kwargs): def _format_native_types(self, na_rep='', q...
@TomAugspurger after the repr PR, the docs build catched an error: the repr of a DataFrame with an IntervalIndex started failing: ``` In [1]: df = pd.DataFrame({'A': [1, 2, 3, 4]}, ...: index=pd.IntervalIndex.from_breaks([0, 1, 2, 3, 4])) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24134
2018-12-06T22:10:22Z
2018-12-13T00:51:11Z
2018-12-13T00:51:11Z
2018-12-16T07:54:28Z
DOC: Fix order section in docstrings (part II)
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index dae88d3b707bf..1484a1299b246 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -158,6 +158,16 @@ cdef class Interval(IntervalMixin): Whether the interval is closed on the left-side, right-side, both or nei...
- [X] closes #24125 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This is to build on #24126 . As I commented in the issue, this pull request will fix additional 10 out of 24 errors. 14 errors will remain and are referenced in the issue.
https://api.github.com/repos/pandas-dev/pandas/pulls/24132
2018-12-06T20:28:38Z
2018-12-16T02:08:26Z
2018-12-16T02:08:26Z
2018-12-20T00:34:06Z
BUG: date_range issue with sub-second granularity
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 4e12b22c8ccac..57a605533b099 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1305,6 +1305,7 @@ Datetimelike - Bug in :class:`DatetimeIndex` where calling ``np.array(dtindex, dtype=object)`` would...
Improves (but doesn't completely resolve) #24110, to avoid rounding issues with sub-second granularity timestamps when creating a date range. - [x] closes #24110 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24129
2018-12-06T15:00:13Z
2018-12-09T22:25:41Z
2018-12-09T22:25:41Z
2018-12-09T22:26:20Z
ENH: fill_value argument for shift #15486
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 1fb43de5f4c5a..2693c98e56582 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -31,6 +31,7 @@ New features - :func:`read_feather` now accepts ``columns`` as an argument, allowing the user to specify...
- [ ] closes #15486 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24128
2018-12-06T11:34:43Z
2018-12-26T01:29:55Z
2018-12-26T01:29:55Z
2018-12-26T01:38:22Z
Fix error GL07
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 1a4368ee8ea98..3c4fe519e4181 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -289,6 +289,11 @@ def unique(values): - If the input is a Categorical dtype, the return is a Categorical - If the input is a Serie...
- [ ] refs #24125 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Original number of errors: 286 Remaining errors: 24
https://api.github.com/repos/pandas-dev/pandas/pulls/24126
2018-12-06T07:40:51Z
2018-12-07T12:53:58Z
2018-12-07T12:53:58Z
2018-12-07T12:54:11Z
REF/TST: Add more pytest idiom to scalar/test_nat
diff --git a/pandas/tests/scalar/test_nat.py b/pandas/tests/scalar/test_nat.py index d2a31de5c0938..abf95b276cda1 100644 --- a/pandas/tests/scalar/test_nat.py +++ b/pandas/tests/scalar/test_nat.py @@ -5,24 +5,24 @@ import pytz from pandas._libs.tslibs import iNaT +import pandas.compat as compat from pandas impor...
https://api.github.com/repos/pandas-dev/pandas/pulls/24120
2018-12-06T00:47:48Z
2018-12-06T12:17:56Z
2018-12-06T12:17:56Z
2018-12-07T02:43:32Z
PERF: speed up PeriodArray creation by exposing dayfirst/yearfirst params
diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py index 8f341c8b415fe..6d2c7156a0a3d 100644 --- a/asv_bench/benchmarks/period.py +++ b/asv_bench/benchmarks/period.py @@ -1,5 +1,6 @@ from pandas import ( DataFrame, Period, PeriodIndex, Series, date_range, period_range) +from pandas.tseri...
As much of the time creating a `PeriodArray` from `int`s is actually spent importing/querying `get_option('display.date_dayfirst')` and its `yearfirst` cousin, this PR exposes those parameters in `Period.__new__()` to allow them to be queried once per array creation. This yields a ~15x speedup: ``` asv compare ups...
https://api.github.com/repos/pandas-dev/pandas/pulls/24118
2018-12-05T22:45:16Z
2018-12-29T14:23:06Z
2018-12-29T14:23:06Z
2018-12-29T14:23:20Z
DOC: Add pandas video series to tutorials.rst
diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst index 0ea0e04f9a1b3..c39227e67ffe8 100644 --- a/doc/source/tutorials.rst +++ b/doc/source/tutorials.rst @@ -86,6 +86,14 @@ Video Tutorials * `Pandas: .head() to .tail() <https://www.youtube.com/watch?v=7vuO9QXDN50>`_ (2016) (1:26) `GitHub repo <htt...
This is a 6-hour video tutorial series that is freely available on YouTube. If you would like to quickly preview the contents of the series, you can see all of the code in this [Jupyter Notebook](http://nbviewer.jupyter.org/github/justmarkham/pandas-videos/blob/master/pandas.ipynb). Collectively, these videos have n...
https://api.github.com/repos/pandas-dev/pandas/pulls/24117
2018-12-05T20:50:30Z
2018-12-17T23:47:09Z
2018-12-17T23:47:09Z
2018-12-21T14:00:59Z
CLN: Follow-up to #24100
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 33f71bcb2fef2..dcc6a5c836485 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -854,173 +854,159 @@ def _time_shift(self, periods, freq=None): return self._generate_range(start=s...
Avoid 1-letter variable names Modernize string formatting Avoid an unnecessary level of indirection in add_datetimelike_methods for DTA/TDA/PA
https://api.github.com/repos/pandas-dev/pandas/pulls/24116
2018-12-05T19:27:45Z
2018-12-05T22:43:46Z
2018-12-05T22:43:46Z
2018-12-06T00:15:12Z
BUG/Perf: Support ExtensionArrays in where
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 6b8d548251061..a18c26f911f1d 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -675,6 +675,7 @@ changes were made: - ``SparseDataFrame.combine`` and ``DataFrame.combine_first`` no longer supports co...
We need some way to do `.where` on EA object for DatetimeArray. Adding it to the interface is, I think, the easiest way. Initially I started to write a version on ExtensionBlock, but it proved to be unwieldy. to write a version that performed well for all types. It *may* be possible to do using `_ndarray_values` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24114
2018-12-05T17:27:22Z
2018-12-10T15:21:09Z
2018-12-10T15:21:08Z
2018-12-10T15:21:12Z
BUG: use internal linkage (static variables) in move.c
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index eab5956735f12..703192f911ccb 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1582,6 +1582,7 @@ Other - Logical operations ``&, |, ^`` between :class:`Series` and :class:`Index` will no longer rai...
move.c declared global variables without explicitly declaring them static, so they had global visibility. This meant that if you linked against a shared object that provided the same symbols, the wrong data would be read. In particular: linking to libgtk, which provides the symbol 'methods', would cause an import e...
https://api.github.com/repos/pandas-dev/pandas/pulls/24113
2018-12-05T16:50:49Z
2018-12-06T21:11:36Z
2018-12-06T21:11:35Z
2018-12-06T21:11:37Z
REF/TST: Add pytest idiom to reshape/test_tile
diff --git a/pandas/tests/reshape/test_cut.py b/pandas/tests/reshape/test_cut.py new file mode 100644 index 0000000000000..458b4b13248dd --- /dev/null +++ b/pandas/tests/reshape/test_cut.py @@ -0,0 +1,447 @@ +import numpy as np +import pytest + +import pandas as pd +from pandas import ( + Categorical, DataFrame, Dat...
https://api.github.com/repos/pandas-dev/pandas/pulls/24107
2018-12-05T06:23:30Z
2018-12-06T12:18:44Z
2018-12-06T12:18:44Z
2018-12-07T02:42:13Z
DOC: Corrects 'reindex_axis' docstring
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 0eb0e14c9054e..1e26c3f45f660 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4359,49 +4359,49 @@ def _reindex_multi(self, axes, copy, fill_value): return NotImplemented _shared_docs['reindex_axis'] = (""" - Co...
The docstring included a 'tolerance' parameter which is missing from the source. This has been removed. The docstring did not describe the 'fill_value' parameter. This has been added, mostly reusing the wording in the summary part of the existing docstring. - [x] closes #23960 - [ ] tests added / passed - [ ] p...
https://api.github.com/repos/pandas-dev/pandas/pulls/24105
2018-12-05T00:44:51Z
2018-12-09T08:02:20Z
2018-12-09T08:02:19Z
2018-12-09T08:03:21Z