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
ENH: `Styler.text_gradient`: easy extension alternative to `.background_gradient`
diff --git a/doc/source/_static/style/tg_ax0.png b/doc/source/_static/style/tg_ax0.png new file mode 100644 index 0000000000000..3460329352282 Binary files /dev/null and b/doc/source/_static/style/tg_ax0.png differ diff --git a/doc/source/_static/style/tg_axNone.png b/doc/source/_static/style/tg_axNone.png new file mod...
This is minor code alteration to the `_background_gradient` function that permits a text-only coloring version, i.e. `Styler.text_gradient`. This could alternatively be performed with a `text_only=True` keyword addition to `Styler.background_gradient` existing method, but it seemed dissimilar enough to merit its own...
https://api.github.com/repos/pandas-dev/pandas/pulls/41098
2021-04-22T12:29:41Z
2021-05-25T09:04:19Z
2021-05-25T09:04:19Z
2021-05-25T09:36:23Z
TYP: Fix typehints for ExtensionDtype
diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py index 8104b0170fbe2..9671c340a0a92 100644 --- a/pandas/core/dtypes/base.py +++ b/pandas/core/dtypes/base.py @@ -7,6 +7,7 @@ from typing import ( TYPE_CHECKING, Any, + TypeVar, ) import numpy as np @@ -26,6 +27,9 @@ if TYPE_CHECKING:...
This is a fix for type hints of `ExtensionDtype`. `register_extension_dtype` was confusing pyright autocomplete. It was fixed by parameterizing its return value on its input value. Example: ```python import pandas as pd pd.CategoricalDtype(categories=['a', 'b']) ``` Before this change: ```console $ pyri...
https://api.github.com/repos/pandas-dev/pandas/pulls/41097
2021-04-22T12:23:49Z
2021-04-26T10:39:44Z
2021-04-26T10:39:44Z
2021-04-26T11:40:01Z
Backport PR #41092: CI/DOC: temporary pin environment to python 3.8
diff --git a/environment.yml b/environment.yml index a369f656cb575..61c8351070de9 100644 --- a/environment.yml +++ b/environment.yml @@ -4,7 +4,7 @@ channels: dependencies: # required - numpy>=1.16.5 - - python=3 + - python=3.8 - python-dateutil>=2.7.3 - pytz
Backport PR #41092
https://api.github.com/repos/pandas-dev/pandas/pulls/41095
2021-04-22T11:18:13Z
2021-04-22T13:29:31Z
2021-04-22T13:29:31Z
2021-04-22T13:29:36Z
CI/DOC: temporary pin environment to python 3.8
diff --git a/environment.yml b/environment.yml index 0d03ad8e0a46a..2e0228a15272e 100644 --- a/environment.yml +++ b/environment.yml @@ -4,7 +4,7 @@ channels: dependencies: # required - numpy>=1.17.3 - - python=3 + - python=3.8 - python-dateutil>=2.7.3 - pytz
The doc build is failing on master (`/home/runner/work/pandas/pandas/doc/source/reference/api/pandas.Series.dt.rst: WARNING: document isn't included in any toctree`), and the build that starts failing seems to have switched from python 3.8 to 3.9 (I don't see any other relevant change in the environment). I suppose the...
https://api.github.com/repos/pandas-dev/pandas/pulls/41092
2021-04-22T07:07:53Z
2021-04-22T11:00:17Z
2021-04-22T11:00:17Z
2021-04-22T11:22:14Z
REF: simplify ohlc
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index a059a90aa3a4e..9d6d2d698dfe5 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -363,20 +363,10 @@ def _cython_agg_general( result = self.grouper._cython_operation( "aggregat...
Or more accurately, simplify BaseGroupBy._cython_agg_general by not having ohlc go through it. This will in turn allow us to simplify SeriesGroupBy._wrap_aggregated_output. This will have a merge conflict with #41066. Doesn't matter which order they are merged in.
https://api.github.com/repos/pandas-dev/pandas/pulls/41091
2021-04-22T00:59:22Z
2021-04-23T01:47:10Z
2021-04-23T01:47:10Z
2021-04-23T01:54:53Z
CLN: annotations, docstrings
diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in index 4dc5e7516db7e..a25867c4a3b0c 100644 --- a/pandas/_libs/hashtable_class_helper.pxi.in +++ b/pandas/_libs/hashtable_class_helper.pxi.in @@ -687,7 +687,10 @@ cdef class {{name}}HashTable(HashTable): {{if dtype...
Remove a no-longer-needed Categorical kludge in wrap_setop_result isinstance(obj, ABCMultiIndex) -> isinstance(obj, MultiIndex) in core.indexing
https://api.github.com/repos/pandas-dev/pandas/pulls/41089
2021-04-21T21:35:48Z
2021-04-22T22:27:32Z
2021-04-22T22:27:32Z
2021-04-22T22:36:57Z
Update license year
diff --git a/LICENSE b/LICENSE index 76954a5a339ab..a0cc369f725b8 100644 --- a/LICENSE +++ b/LICENSE @@ -3,7 +3,7 @@ BSD 3-Clause License Copyright (c) 2008-2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team All rights reserved. -Copyright (c) 2011-2020, Open source contributors. +C...
Saw this today
https://api.github.com/repos/pandas-dev/pandas/pulls/41087
2021-04-21T20:42:27Z
2021-04-22T01:06:47Z
2021-04-22T01:06:47Z
2021-04-22T20:01:24Z
REF: hide ArrayManager implementation details from GroupBy
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 80351a832ec7e..ab03cce0d6476 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -97,7 +97,6 @@ all_indexes_same, ) import pandas.core.indexes.base as ibase -from pandas.core.internals import ArrayM...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/41086
2021-04-21T19:38:42Z
2021-04-30T18:50:01Z
2021-04-30T18:50:01Z
2021-04-30T19:00:20Z
BUG: GH27721 - test groupby rank with multiindex
diff --git a/pandas/tests/groupby/test_rank.py b/pandas/tests/groupby/test_rank.py index da88ea5f05107..e07c5f404a02a 100644 --- a/pandas/tests/groupby/test_rank.py +++ b/pandas/tests/groupby/test_rank.py @@ -578,3 +578,25 @@ def test_rank_pct_equal_values_on_group_transition(use_nan): expected = Series([1 / 3...
- [x] closes #27721 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/41084
2021-04-21T19:07:43Z
2021-04-21T21:55:34Z
2021-04-21T21:55:33Z
2021-04-21T22:23:35Z
CI: ignore ResourceWarning in tm.assert_produces_warning
diff --git a/pandas/_testing/_warnings.py b/pandas/_testing/_warnings.py index 027a53edb1810..391226b622a01 100644 --- a/pandas/_testing/_warnings.py +++ b/pandas/_testing/_warnings.py @@ -142,6 +142,14 @@ def _assert_caught_no_extra_warnings( for actual_warning in caught_warnings: if _is_unexpected_war...
reverts a line in setup.cfg that was intended to do this but failed
https://api.github.com/repos/pandas-dev/pandas/pulls/41083
2021-04-21T16:40:45Z
2021-04-22T22:20:05Z
2021-04-22T22:20:05Z
2021-04-22T22:22:12Z
REF: Back DatetimeTZBlock with sometimes-2D DTA
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index e207dac71752e..593e42f7ed749 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1413,6 +1413,33 @@ def is_extension_type(arr) -> bool: return False +def is_1d_only_ea_obj(obj: Any) -> bool: + """ + ...
Same as #40149 but with the perf-improving edits to frame.py reverted
https://api.github.com/repos/pandas-dev/pandas/pulls/41082
2021-04-21T16:14:05Z
2021-04-22T22:43:29Z
2021-04-22T22:43:29Z
2021-04-22T22:59:14Z
REF: remove Block access in the JSON writing code
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index bbcee479aeb5a..31b43cdb28d9d 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -83,7 +83,6 @@ typedef struct __PdBlockContext { int ncols; int transp...
Closes #27164 This is a small refactor of the JSON writing code (`objToJSON.c`) to remove the access of the Blocks. Serializing to JSON was already done column-by-column (also when accessing the blocks), but currently we were iterating over the different "columns" of the 2D array per block in the C code. While with ...
https://api.github.com/repos/pandas-dev/pandas/pulls/41081
2021-04-21T14:33:46Z
2021-04-26T07:51:29Z
2021-04-26T07:51:28Z
2021-04-26T07:51:32Z
BUG: GH35865 - int cast to str with colon setitem
diff --git a/pandas/tests/indexing/test_coercion.py b/pandas/tests/indexing/test_coercion.py index 7642f78076dcb..585dbd338e965 100644 --- a/pandas/tests/indexing/test_coercion.py +++ b/pandas/tests/indexing/test_coercion.py @@ -258,6 +258,15 @@ def test_setitem_series_timedelta64(self, val, exp_dtype): ) ...
- [x] closes #35865 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry: not sure if it's needed but happy to provide one given some guidelines
https://api.github.com/repos/pandas-dev/pandas/pulls/41077
2021-04-21T13:03:36Z
2021-04-26T12:21:47Z
2021-04-26T12:21:47Z
2021-04-27T12:45:39Z
BUG: GH41044 - test loc dict assig
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index 97b3412ce626e..11391efde4956 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -2700,3 +2700,13 @@ def test_loc_setitem(self, string_series): string_series.loc[d2] = 6 asser...
- [x] closes #41044 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry: not sure if it's needed but happy to provide one given some guidelines
https://api.github.com/repos/pandas-dev/pandas/pulls/41076
2021-04-21T12:31:54Z
2021-04-21T22:34:07Z
2021-04-21T22:34:07Z
2021-04-21T22:52:59Z
[ArrayManager] TST: enable JSON tests (except for table schema)
diff --git a/pandas/tests/io/json/test_compression.py b/pandas/tests/io/json/test_compression.py index 8c69ffedf1df4..febeb4d690562 100644 --- a/pandas/tests/io/json/test_compression.py +++ b/pandas/tests/io/json/test_compression.py @@ -7,8 +7,6 @@ import pandas as pd import pandas._testing as tm -pytestmark = td.s...
xref https://github.com/pandas-dev/pandas/issues/39146 This already enables most of the JSON tests (it are only the table schema tests that are segfaulting). Those are mostly working because the JSON writer falls back to using `df.values`. This only gives some errors with datetime formatting, for which one test is s...
https://api.github.com/repos/pandas-dev/pandas/pulls/41075
2021-04-21T11:40:19Z
2021-04-21T17:20:50Z
2021-04-21T17:20:50Z
2021-04-21T17:20:53Z
TYP: Specify specific type for NumericIndex._values
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index 28144af36d6ea..cd75336ad7bdf 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -48,6 +48,7 @@ class NumericIndex(Index): This is an abstract class. """ + _values: np.ndarray _default_...
Typing clean-up for numeric indexes.
https://api.github.com/repos/pandas-dev/pandas/pulls/41073
2021-04-21T10:47:20Z
2021-04-21T21:54:07Z
2021-04-21T21:54:07Z
2021-06-13T10:08:10Z
REF/TYP: implement NDFrameApply
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 86cde647cc798..9a75857c2586d 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -137,14 +137,6 @@ def f(x): self.orig_f: AggFuncType = func self.f: AggFuncType = f - @property - def index(self) -> Index: - retur...
if called from GroupByApply or ResamplerWindowApply, these would raise
https://api.github.com/repos/pandas-dev/pandas/pulls/41067
2021-04-21T03:39:56Z
2021-04-28T15:18:49Z
2021-04-28T15:18:49Z
2021-04-28T15:53:23Z
REF: BaseGroupBy methods belong in GroupBy
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 4a721ae0d4bf6..a059a90aa3a4e 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -345,6 +345,49 @@ def _aggregate_multiple_funcs(self, arg): ) return self.obj._constructor_expanddim(outpu...
BaseGroupBy is also subclassed by Resampler; if Resampler ever accessed these methods they'd get an AttributeError. Once non-direct move is _cython_agg_general, where the implementation is moved to SeriesGroupBy instead of GroupBy, bc DataFrameGroupBy overrides it.
https://api.github.com/repos/pandas-dev/pandas/pulls/41066
2021-04-21T03:06:20Z
2021-04-22T22:17:16Z
2021-04-22T22:17:16Z
2021-04-22T22:19:30Z
REF: make maybe_cast_result_dtype a WrappedCythonOp method
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index e91927d87d318..d739b46620032 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -406,42 +406,6 @@ def maybe_cast_pointwise_result( return result -def maybe_cast_result_dtype(dtype: DtypeObj, how: str) -> DtypeOb...
Abstraction-wise, this is a much better place for it.
https://api.github.com/repos/pandas-dev/pandas/pulls/41065
2021-04-21T02:45:29Z
2021-04-23T01:45:31Z
2021-04-23T01:45:31Z
2021-04-23T01:46:28Z
CLN: Clean-up numeric index dtype validation
diff --git a/pandas/core/indexes/numeric.py b/pandas/core/indexes/numeric.py index 28144af36d6ea..2182b3647533e 100644 --- a/pandas/core/indexes/numeric.py +++ b/pandas/core/indexes/numeric.py @@ -1,6 +1,8 @@ +from __future__ import annotations + from typing import ( + Callable, Hashable, - Optional, ) im...
The use of a dict with `_typ` attributes as keys in `NumericIndex._validate_dtype` makes it complicated to subclass numeric indexes and change the subclass' `_typ` attribute. This PR makes the dtype validation in `NumericIndex._validate_dtype` not dependent on the value of the `_typ` attribute, making subclassing mo...
https://api.github.com/repos/pandas-dev/pandas/pulls/41063
2021-04-20T22:43:48Z
2021-04-21T12:43:55Z
2021-04-21T12:43:55Z
2022-02-06T11:49:39Z
REF: move only-used-once mixins to resample
diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py index 50248d5af8883..7211fc1b71b54 100644 --- a/pandas/core/groupby/base.py +++ b/pandas/core/groupby/base.py @@ -7,83 +7,8 @@ import collections -from pandas._typing import final - -from pandas.core.dtypes.common import ( - is_list_like, - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/41058
2021-04-20T17:46:47Z
2021-04-20T22:54:47Z
2021-04-20T22:54:47Z
2021-04-20T23:01:14Z
DOC: more accurate wording in roadmap
diff --git a/doc/source/development/roadmap.rst b/doc/source/development/roadmap.rst index 8223edcf6f63a..37e45bf5a42b5 100644 --- a/doc/source/development/roadmap.rst +++ b/doc/source/development/roadmap.rst @@ -71,8 +71,8 @@ instead of comparing as False). Long term, we want to introduce consistent missing data ha...
This came up the other day in https://github.com/pandas-dev/pandas/pull/40651#issuecomment-820671958. As I [originally](https://github.com/pandas-dev/pandas/pull/35208#issuecomment-656879885) said in the PR that put this inaccurate wording in, this overstates the degree to which there is consensus.
https://api.github.com/repos/pandas-dev/pandas/pulls/41057
2021-04-20T17:40:46Z
2021-04-20T22:55:13Z
2021-04-20T22:55:13Z
2021-04-20T22:59:46Z
[ArrowStringArray] Use utf8_upper and utf8_lower functions from Apache Arrow
diff --git a/pandas/core/arrays/string_arrow.py b/pandas/core/arrays/string_arrow.py index ecbb5367febc5..dd09ef4e585ce 100644 --- a/pandas/core/arrays/string_arrow.py +++ b/pandas/core/arrays/string_arrow.py @@ -757,3 +757,9 @@ def _str_map(self, f, na_value=None, dtype: Dtype | None = None): # or .fin...
``` data = ["Mouse", "dog", "house and parrot", "23", np.NaN] * 100_000 s = pd.Series(data, dtype="string") s1 = pd.Series(data, dtype="arrow_string") %timeit s.str.upper() # 63.8 ms ± 259 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) %timeit s1.str.upper() # 92 ms ± 152 µs per loop (mean ± std. de...
https://api.github.com/repos/pandas-dev/pandas/pulls/41056
2021-04-20T15:01:06Z
2021-04-20T22:58:18Z
2021-04-20T22:58:18Z
2021-07-03T15:10:13Z
BUG: Handle zero-chunked pyarrow.ChunkedArray in StringArray
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 85d9acff353be..81f5ad34c53a0 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -700,7 +700,7 @@ Conversion Strings ^^^^^^^ -- +- Bug in the conversion from ``pyarrow.ChunkedArray`` to :class:`~arrays...
- [x] closes #41040 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/41052
2021-04-20T08:06:20Z
2021-04-21T19:44:50Z
2021-04-21T19:44:50Z
2021-04-22T08:19:28Z
PERF: optimize conversion from boolean Arrow array to masked BooleanArray
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 85d9acff353be..74a302922c2aa 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -624,6 +624,7 @@ Performance improvements - Performance improvement in :class:`Styler` where render times are more than 50%...
For arrays without missing values it doesn't change, but gives a decent speed-up when having missing values: ``` In [1]: arr1 = pa.array([True, False, True, True, False]*100_000) In [2]: arr2 = pa.array([True, False, None, True, False]*100_000) In [3]: %timeit pd.BooleanDtype().__from_arrow__(arr1) 9.34 ms ±...
https://api.github.com/repos/pandas-dev/pandas/pulls/41051
2021-04-20T07:52:10Z
2021-04-21T16:09:14Z
2021-04-21T16:09:14Z
2021-04-21T16:09:18Z
DOC: Improve to_datetime() documentation
diff --git a/pandas/core/tools/datetimes.py b/pandas/core/tools/datetimes.py index 77bbde62d607e..d4c3760f3e629 100644 --- a/pandas/core/tools/datetimes.py +++ b/pandas/core/tools/datetimes.py @@ -851,8 +851,19 @@ def to_datetime( >>> pd.to_datetime([1, 2, 3], unit='D', ... origin=pd.Timestam...
Returns Object Type Index when Mixed Timezones are used in list-like input to pandas.to_datetime() - [x] closes #40808 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [ ] whats...
https://api.github.com/repos/pandas-dev/pandas/pulls/41049
2021-04-20T03:26:33Z
2021-04-21T16:24:18Z
2021-04-21T16:24:18Z
2021-04-21T16:24:23Z
REF: remove no-op casting in groupby.generic
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index a381a7bcb33f5..4a721ae0d4bf6 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -46,7 +46,6 @@ from pandas.core.dtypes.cast import ( find_common_type, - maybe_cast_result_dtype, maybe_down...
Simplify _get_cython_function Raise TypeError instead of NotImplementedError in cases where we shouldn't bother falling back to py_fallback
https://api.github.com/repos/pandas-dev/pandas/pulls/41048
2021-04-20T02:11:16Z
2021-04-20T13:12:04Z
2021-04-20T13:12:04Z
2021-04-20T16:02:00Z
BUG: Slice Arrow buffer before passing it to numpy (#40896)
diff --git a/doc/source/whatsnew/v1.3.0.rst b/doc/source/whatsnew/v1.3.0.rst index 0e567972e7823..02d64e96e380b 100644 --- a/doc/source/whatsnew/v1.3.0.rst +++ b/doc/source/whatsnew/v1.3.0.rst @@ -796,6 +796,7 @@ I/O - Bug in :func:`read_excel` dropping empty values from single-column spreadsheets (:issue:`39808`) - ...
Add Arrow buffer slicing before handing it over to numpy which is needed in case the Arrow buffer contains padding or offset. - [x] closes #40896 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for h...
https://api.github.com/repos/pandas-dev/pandas/pulls/41046
2021-04-19T18:14:00Z
2021-04-28T13:07:33Z
2021-04-28T13:07:33Z
2021-04-28T13:07:44Z
PERF: implement get_slice in cython
diff --git a/pandas/_libs/internals.pyi b/pandas/_libs/internals.pyi index a46a1747d1d8d..f3436e9c7afba 100644 --- a/pandas/_libs/internals.pyi +++ b/pandas/_libs/internals.pyi @@ -79,3 +79,5 @@ class BlockManager: _blklocs: np.ndarray def __init__(self, blocks: tuple[B, ...], axes: list[Index], verify_inte...
I'm seeing a 13-19% improvement in the motivating benchmark https://github.com/pandas-dev/pandas/pull/40171#issuecomment-790219422
https://api.github.com/repos/pandas-dev/pandas/pulls/41045
2021-04-19T17:38:19Z
2021-04-19T23:21:23Z
2021-04-19T23:21:23Z
2021-04-19T23:24:42Z
ENH: option to export df to Stata dataset with value labels
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index fee8334940a16..9166b28af4e78 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -101,6 +101,7 @@ Other enhancements - :meth:`Series.ewm`, :meth:`DataFrame.ewm`, now support a ``method`` argument with a `...
GH38454 - [x] closes #38454 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/41042
2021-04-19T15:17:22Z
2021-09-10T08:49:20Z
2021-09-10T08:49:19Z
2021-09-13T14:00:22Z
TST: remove __main__ from all test files
diff --git a/pandas/api/tests/test_api.py b/pandas/api/tests/test_api.py index 410d70c65404f..f925fd792f9ca 100644 --- a/pandas/api/tests/test_api.py +++ b/pandas/api/tests/test_api.py @@ -227,8 +227,3 @@ def test_deprecation_access_obj(self): with tm.assert_produces_warning(FutureWarning, ...
xref #13856
https://api.github.com/repos/pandas-dev/pandas/pulls/15330
2017-02-07T14:47:12Z
2017-02-07T16:13:30Z
2017-02-07T16:13:30Z
2017-02-07T16:13:49Z
DOC/CI: ensure correct pandas version (GH15311)
diff --git a/ci/build_docs.sh b/ci/build_docs.sh index 4dc9a203f1978..5dc649a91c4f7 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -22,8 +22,8 @@ if [ x"$DOC_BUILD" != x"" ]; then echo "Will build docs" source activate pandas - conda install -n pandas -c r r rpy2 --yes + # install sudo deps...
closes #15311
https://api.github.com/repos/pandas-dev/pandas/pulls/15317
2017-02-06T14:14:33Z
2017-02-06T15:55:39Z
2017-02-06T15:55:39Z
2017-02-06T15:55:39Z
Added a tutorial for pandas dataframes
diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst index c25e734a046b2..401a6446673cf 100644 --- a/doc/source/tutorials.rst +++ b/doc/source/tutorials.rst @@ -150,3 +150,4 @@ Various Tutorials - `Intro to pandas data structures, by Greg Reda <http://www.gregreda.com/2013/10/26/intro-to-pandas-data-struct...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/15295
2017-02-03T09:28:24Z
2017-02-03T13:50:26Z
2017-02-03T13:50:26Z
2017-02-03T13:50:29Z
COMPAT: xarray 0.8.2 test compat w.r.t. CategoricalIndex idempotency
diff --git a/ci/install_travis.sh b/ci/install_travis.sh index ded428c677f17..52b52d787aade 100755 --- a/ci/install_travis.sh +++ b/ci/install_travis.sh @@ -143,7 +143,7 @@ else echo "[pip installs]" REQ="ci/requirements-${PYTHON_VERSION}${JOB_TAG}.pip" if [ -e ${REQ} ]; then - pip install --upgrad...
closes #15282
https://api.github.com/repos/pandas-dev/pandas/pulls/15285
2017-02-01T19:37:19Z
2017-02-01T22:55:41Z
2017-02-01T22:55:41Z
2017-02-01T22:55:41Z
CLN: remove build warnings from tslib.pyx, saslib.pyx, some from lib.pyx
diff --git a/pandas/io/sas/saslib.pyx b/pandas/io/sas/saslib.pyx index a66d62ea41581..4396180da44cb 100644 --- a/pandas/io/sas/saslib.pyx +++ b/pandas/io/sas/saslib.pyx @@ -311,7 +311,7 @@ cdef class Parser(object): self.current_page_subheaders_count =\ self.parser._current_page_subheaders_count ...
https://api.github.com/repos/pandas-dev/pandas/pulls/15264
2017-01-30T16:11:53Z
2017-01-30T17:39:51Z
2017-01-30T17:39:51Z
2017-01-30T23:27:01Z
TST: MultiIndex Slicing maintains first level index (#12697)
diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py index a6eb3c8a891e7..f7fa07916ca74 100644 --- a/pandas/tests/indexing/test_indexing.py +++ b/pandas/tests/indexing/test_indexing.py @@ -5392,6 +5392,23 @@ def test_maybe_numeric_slice(self): expected = [1] sel...
- [x] closes #12697 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` The original issue appears to work correctly on master and doesn't seem to have been fixed by a PR from 0.20.0
https://api.github.com/repos/pandas-dev/pandas/pulls/15255
2017-01-29T09:58:31Z
2017-01-29T21:52:56Z
2017-01-29T21:52:56Z
2017-12-20T02:04:06Z
TST: incorrect locale specification for datetime format
diff --git a/pandas/tseries/tests/test_timeseries.py b/pandas/tseries/tests/test_timeseries.py index 4d286fc62764c..b5daf1ac0ec68 100644 --- a/pandas/tseries/tests/test_timeseries.py +++ b/pandas/tseries/tests/test_timeseries.py @@ -1,4 +1,5 @@ # pylint: disable-msg=E1101,W0612 +import locale import calendar import ...
closes #15215
https://api.github.com/repos/pandas-dev/pandas/pulls/15233
2017-01-26T00:21:58Z
2017-01-26T02:31:04Z
2017-01-26T02:31:04Z
2017-01-26T02:31:04Z
BUG/API: Return a Series from DataFrame.asof with no match
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index 86fa919fec304..07c90b1e64f29 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -327,7 +327,7 @@ Other API Changes - ``pd.read_csv()`` will now raise a ``ValueError`` for the C engine if the quote ch...
- [x] closes #15118 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry Technically this is an API change, but more of a bug so didn't think there was a need to warn / deprecate? Also there seems to be room to clean up the whole `asof` implementation, x...
https://api.github.com/repos/pandas-dev/pandas/pulls/15232
2017-01-26T00:12:31Z
2017-01-26T12:37:53Z
2017-01-26T12:37:53Z
2017-01-26T12:37:55Z
CLN: remove deprecated google-analytics module (GH11308)
diff --git a/doc/source/remote_data.rst b/doc/source/remote_data.rst index 019aa82fed1aa..7980133582125 100644 --- a/doc/source/remote_data.rst +++ b/doc/source/remote_data.rst @@ -29,63 +29,3 @@ modules to be independently updated to your pandas installation. The API for .. code-block:: python from pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/15223
2017-01-25T11:09:43Z
2017-01-25T15:43:14Z
2017-01-25T15:43:14Z
2017-01-25T15:43:14Z
BLD: hashtable.pxd is a pxd depends for _join, hashtable, and index
diff --git a/setup.py b/setup.py index 8cdd72b2f4682..1c9972defabbe 100755 --- a/setup.py +++ b/setup.py @@ -490,13 +490,13 @@ def pxd(name): index={'pyxfile': 'index', 'sources': ['pandas/src/datetime/np_datetime.c', 'pandas/src/datetime/np_datetime_strings.c'], - 'px...
https://api.github.com/repos/pandas-dev/pandas/pulls/15218
2017-01-25T01:51:36Z
2017-01-25T12:01:34Z
2017-01-25T12:01:34Z
2017-01-25T12:01:34Z
BLD: remove more build warnings
diff --git a/pandas/src/numpy_helper.h b/pandas/src/numpy_helper.h index 17d5ec12f4f79..809edb2e99fa2 100644 --- a/pandas/src/numpy_helper.h +++ b/pandas/src/numpy_helper.h @@ -125,7 +125,7 @@ PyObject* sarr_from_data(PyArray_Descr* descr, int length, void* data) { void transfer_object_column(char* dst, char* src, s...
https://api.github.com/repos/pandas-dev/pandas/pulls/15191
2017-01-22T17:36:03Z
2017-01-22T21:42:57Z
2017-01-22T21:42:57Z
2017-01-22T21:42:57Z
CI: add matplotlib, xlwt to build for 3.6
diff --git a/ci/requirements-3.6.pip b/ci/requirements-3.6.pip index 688866a18542f..e69de29bb2d1d 100644 --- a/ci/requirements-3.6.pip +++ b/ci/requirements-3.6.pip @@ -1 +0,0 @@ -xlwt diff --git a/ci/requirements-3.6.run b/ci/requirements-3.6.run index daf07be2d1785..5d9cb05a7b402 100644 --- a/ci/requirements-3.6.run ...
https://api.github.com/repos/pandas-dev/pandas/pulls/15189
2017-01-22T16:08:25Z
2017-01-22T16:20:58Z
2017-01-22T16:20:58Z
2017-01-23T20:01:16Z
CLN: remove build warnings in join_asof indexers
diff --git a/pandas/src/algos_common_helper.pxi.in b/pandas/src/algos_common_helper.pxi.in index a579a5020f6e7..5e87528943005 100644 --- a/pandas/src/algos_common_helper.pxi.in +++ b/pandas/src/algos_common_helper.pxi.in @@ -374,7 +374,7 @@ def is_monotonic_{{name}}(ndarray[{{c_type}}] arr, bint timelike): n = len...
https://api.github.com/repos/pandas-dev/pandas/pulls/15188
2017-01-22T16:08:02Z
2017-01-22T17:20:19Z
2017-01-22T17:20:19Z
2017-01-22T17:20:19Z
DEPR: remove openpyxl deprecation warnings
diff --git a/pandas/io/excel.py b/pandas/io/excel.py index 6b7c597ecfcdc..f34ba65cf7b51 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -788,9 +788,15 @@ def __init__(self, path, engine=None, **engine_kwargs): # Create workbook object with default optimized_write=True. self.book = Workbo...
closes #15090
https://api.github.com/repos/pandas-dev/pandas/pulls/15185
2017-01-21T16:31:05Z
2017-01-21T16:49:22Z
2017-01-21T16:49:22Z
2017-01-21T16:49:22Z
BLD: Remove csv dialect warning in io.rst
diff --git a/doc/source/io.rst b/doc/source/io.rst index c53083238e098..6152f83675867 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -419,6 +419,7 @@ finds the closing double quote. We can get around this using ``dialect`` .. ipython:: python + :okwarning: dia = csv.excel() dia.quoting = csv....
Title is self-explanatory. xref <a href="https://github.com/pandas-dev/pandas/pull/14911#issuecomment-273896473">#14911 (comment)</a>.
https://api.github.com/repos/pandas-dev/pandas/pulls/15177
2017-01-20T10:29:53Z
2017-01-20T20:53:11Z
2017-01-20T20:53:11Z
2017-01-21T08:40:15Z
DOC: add subsequent_indent to wrapped text
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index fdf26fdef6b25..f8905dfa315c4 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -148,7 +148,8 @@ na_values : scalar, str, list-like, or dict, default None Additional strings to recognize as NA/NaN. If dict passed, specific per-column...
Hey guys, This should fix the parsing error in the [read_csv documentation](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.read_csv.html#pandas.read_csv) : ![image](https://cloud.githubusercontent.com/assets/5640848/22127326/c84fa65c-de9b-11e6-8702-5c01e8ce4d22.png) `fill` wraps the line to 70 ch...
https://api.github.com/repos/pandas-dev/pandas/pulls/15173
2017-01-19T22:09:04Z
2017-01-22T11:35:13Z
2017-01-22T11:35:13Z
2017-01-22T11:35:24Z
CI: have 34_SLOW build use matplotlib latest from conda-forge
diff --git a/ci/requirements-3.4_SLOW.build b/ci/requirements-3.4_SLOW.build index de36b1afb9fa4..c05a68a14b402 100644 --- a/ci/requirements-3.4_SLOW.build +++ b/ci/requirements-3.4_SLOW.build @@ -1,4 +1,4 @@ python-dateutil pytz -numpy=1.9.3 +numpy=1.10* cython diff --git a/ci/requirements-3.4_SLOW.run b/ci/require...
CI: change 34_SLOW to use numpy 1.10* as mpl 2.0 requires anyhow
https://api.github.com/repos/pandas-dev/pandas/pulls/15170
2017-01-19T20:28:37Z
2017-01-19T21:53:38Z
2017-01-19T21:53:38Z
2017-01-19T21:53:38Z
DOC: Clarified wording of coerce_float
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 504554d6410f9..ef8b7a0d16bdc 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -962,7 +962,7 @@ def from_records(cls, data, index=None, exclude=None, columns=None, in the result (any names not found in the data will become all-NA ...
I think this is the intended meaning (and it matches with use).
https://api.github.com/repos/pandas-dev/pandas/pulls/15164
2017-01-19T12:58:06Z
2017-01-19T13:57:19Z
2017-01-19T13:57:19Z
2017-01-19T13:57:21Z
Apply fontsize to both x- and y-axis tick labels
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index f3d60fa8cc05f..798151971363e 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -439,6 +439,9 @@ Bug Fixes - Bug in ``pd.read_csv()`` for the C engine where ``usecols`` were being indexed incorrectly...
- [x] closes #15108 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/15161
2017-01-19T08:16:39Z
2017-01-20T17:12:58Z
2017-01-20T17:12:58Z
2017-01-20T17:13:03Z
CI: add .pxi.in to build caching
diff --git a/ci/prep_cython_cache.sh b/ci/prep_cython_cache.sh index cadc356b641f9..e091bb00ccedc 100755 --- a/ci/prep_cython_cache.sh +++ b/ci/prep_cython_cache.sh @@ -3,8 +3,8 @@ ls "$HOME/.cache/" PYX_CACHE_DIR="$HOME/.cache/pyxfiles" -pyx_file_list=`find ${TRAVIS_BUILD_DIR} -name "*.pyx" -o -name "*.pxd"` -pyx_...
closes #15154
https://api.github.com/repos/pandas-dev/pandas/pulls/15159
2017-01-19T02:20:20Z
2017-01-19T02:22:15Z
2017-01-19T02:22:14Z
2017-01-19T02:22:15Z
DOC: fix doc-build for .ix deprecations in whatsnew
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 9c653f6d9eeff..e2916c2d969d6 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -586,7 +586,7 @@ Using ``.loc``. Here we will select the appropriate indexes from the index, then .. ipython:: python - dfd.loc[df.index[[0, 2]], ...
https://api.github.com/repos/pandas-dev/pandas/pulls/15158
2017-01-19T01:59:44Z
2017-01-19T02:01:45Z
2017-01-19T02:01:45Z
2017-01-19T02:01:46Z
CLN/DEPR: remove deprecated pandas.rpy module (GH9602)
diff --git a/ci/lint.sh b/ci/lint.sh index 5c4613f88649e..2cbfdadf486b8 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -8,10 +8,9 @@ RET=0 if [ "$LINT" ]; then - # pandas/rpy is deprecated and will be removed. # pandas/src is C code, so no need to search there. echo "Linting *.py" - flake8 pandas --f...
Closes #9602
https://api.github.com/repos/pandas-dev/pandas/pulls/15142
2017-01-16T15:47:42Z
2017-01-22T12:15:10Z
2017-01-22T12:15:10Z
2018-04-10T11:35:47Z
MAINT: remove shebang from test modules
diff --git a/pandas/computation/tests/test_compat.py b/pandas/computation/tests/test_compat.py index 80b415739c647..8e8924379f153 100644 --- a/pandas/computation/tests/test_compat.py +++ b/pandas/computation/tests/test_compat.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # flake8: noqa diff --git a/pandas/computation/...
- [x] closes #15131
https://api.github.com/repos/pandas-dev/pandas/pulls/15134
2017-01-15T12:51:43Z
2017-01-15T16:09:03Z
2017-01-15T16:09:02Z
2017-07-11T10:06:15Z
TST: tests.groupby needs to be a package to run tests
diff --git a/pandas/tests/groupby/__init__.py b/pandas/tests/groupby/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 8e61fa3a5fb66..873c63ca257c4 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pan...
skip parts of cummin test, xref #15109
https://api.github.com/repos/pandas-dev/pandas/pulls/15127
2017-01-13T19:34:21Z
2017-01-13T20:21:22Z
2017-01-13T20:21:22Z
2017-01-13T20:21:22Z
Fix typo in docstring
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 05517bf6cf53a..d96f57f2810e3 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1220,7 +1220,7 @@ def assert_frame_equal(left, right, check_dtype=True, are identical. check_frame_type : bool, default False Whethe...
it -> int
https://api.github.com/repos/pandas-dev/pandas/pulls/15121
2017-01-12T21:53:39Z
2017-01-12T22:10:59Z
2017-01-12T22:10:59Z
2017-01-12T22:11:11Z
TST: Add another test for uneven CSV rows
diff --git a/pandas/io/tests/parser/usecols.py b/pandas/io/tests/parser/usecols.py index 96790e872abc3..4875282067fb3 100644 --- a/pandas/io/tests/parser/usecols.py +++ b/pandas/io/tests/parser/usecols.py @@ -465,3 +465,13 @@ def test_uneven_length_cols(self): [10, 20, 30]]) df =...
Title is self-explanatory. xref #15066. Closes #9549.
https://api.github.com/repos/pandas-dev/pandas/pulls/15114
2017-01-12T05:30:30Z
2017-01-12T22:33:49Z
2017-01-12T22:33:49Z
2017-01-12T22:38:24Z
TST: add network decorator on parser network tests for compressed url in parser
diff --git a/pandas/io/tests/parser/test_network.py b/pandas/io/tests/parser/test_network.py index 8e71cf1cc7e4c..d84c2ae3beb0c 100644 --- a/pandas/io/tests/parser/test_network.py +++ b/pandas/io/tests/parser/test_network.py @@ -30,8 +30,9 @@ def __init__(self): self.base_url = ('https://github.com/pandas-dev/...
https://api.github.com/repos/pandas-dev/pandas/pulls/15102
2017-01-10T21:09:15Z
2017-01-10T21:46:55Z
2017-01-10T21:46:55Z
2017-01-10T21:46:55Z
CLN: check NULL and have similar __dealloc__ code for all hashtables
diff --git a/pandas/src/hashtable_class_helper.pxi.in b/pandas/src/hashtable_class_helper.pxi.in index b26839599ef38..1d3c4b2cb5889 100644 --- a/pandas/src/hashtable_class_helper.pxi.in +++ b/pandas/src/hashtable_class_helper.pxi.in @@ -85,7 +85,9 @@ cdef class {{name}}Vector: self.data.data = <{{arg}}*> self....
https://api.github.com/repos/pandas-dev/pandas/pulls/15101
2017-01-10T18:16:48Z
2017-01-10T21:11:27Z
2017-01-10T21:11:27Z
2017-01-10T21:11:27Z
TST: close sas read handles properly in tests
diff --git a/pandas/io/tests/sas/test_sas7bdat.py b/pandas/io/tests/sas/test_sas7bdat.py index e20ea48247119..69073a90e9669 100644 --- a/pandas/io/tests/sas/test_sas7bdat.py +++ b/pandas/io/tests/sas/test_sas7bdat.py @@ -51,6 +51,7 @@ def test_from_buffer(self): iterator=True, encodin...
https://api.github.com/repos/pandas-dev/pandas/pulls/15100
2017-01-10T18:15:51Z
2017-01-10T21:10:05Z
2017-01-10T21:10:05Z
2017-01-10T21:10:05Z
DEPR: deprecate sortlevel in favor of sort_index
diff --git a/doc/source/api.rst b/doc/source/api.rst index 272dfe72eafe7..b7a1b8a005d89 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -418,7 +418,6 @@ Reshaping, sorting Series.reorder_levels Series.sort_values Series.sort_index - Series.sortlevel Series.swaplevel Series.unstack ...
closes #14279
https://api.github.com/repos/pandas-dev/pandas/pulls/15099
2017-01-10T15:38:41Z
2017-01-11T08:02:34Z
2017-01-11T08:02:34Z
2017-01-11T08:02:34Z
fix misspelled word
diff --git a/pandas/formats/style.py b/pandas/formats/style.py index 4d5e72a38bb98..b3e0f0f6c7462 100644 --- a/pandas/formats/style.py +++ b/pandas/formats/style.py @@ -781,7 +781,7 @@ def background_gradient(self, cmap='PuBu', low=0, high=0, axis=0, low, high: float compress the range by these va...
`colunwise` should be `columnwise`
https://api.github.com/repos/pandas-dev/pandas/pulls/15097
2017-01-10T15:28:36Z
2017-01-10T15:37:15Z
2017-01-10T15:37:15Z
2017-01-10T15:37:18Z
BUG: use more generic type inference for fast plotting
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index c82dc370e3e71..a13b97266811a 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -248,6 +248,7 @@ Other API Changes - ``pd.read_csv()`` will now issue a ``ParserWarning`` whenever there are conflictin...
xref #15073 https://travis-ci.org/pandas-dev/pandas/jobs/190356982 was failing on tz-aware dtypes. these routines are the same in that they require datetime64ns (but any *also* accepts tz-aware).
https://api.github.com/repos/pandas-dev/pandas/pulls/15094
2017-01-10T00:42:26Z
2017-01-12T23:33:39Z
2017-01-12T23:33:39Z
2017-01-12T23:33:39Z
BUG: Inconsistent return type for downsampling on resample of empty DataFrame
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 36ca79e8b8714..56275cda80e57 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -112,6 +112,7 @@ Plotting Groupby/Resample/Rolling ^^^^^^^^^^^^^^^^^^^^^^^^ +- Bug in ``DataFrame.resample().size()`...
- [x] closes #14962 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/15093
2017-01-09T21:58:41Z
2017-06-13T23:16:03Z
2017-06-13T23:16:03Z
2017-06-13T23:16:07Z
BLD: add deps for 3.6 build
diff --git a/ci/requirements-3.6.pip b/ci/requirements-3.6.pip new file mode 100644 index 0000000000000..688866a18542f --- /dev/null +++ b/ci/requirements-3.6.pip @@ -0,0 +1 @@ +xlwt diff --git a/ci/requirements-3.6.run b/ci/requirements-3.6.run index 684dab333648a..daf07be2d1785 100644 --- a/ci/requirements-3.6.run ++...
https://api.github.com/repos/pandas-dev/pandas/pulls/15089
2017-01-09T18:48:48Z
2017-01-09T18:48:53Z
2017-01-09T18:48:53Z
2017-01-09T18:48:54Z
TYP: EA.isin
diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index 5abdfe69e52c0..d8b074fe61322 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -1023,7 +1023,7 @@ def fillna( return super().fillna(value=value, method=method, limit=limit, copy=co...
- [ ] 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/56423
2023-12-09T03:15:16Z
2023-12-09T18:29:50Z
2023-12-09T18:29:50Z
2023-12-09T18:30:15Z
DEPR: make_block
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8a1906d20c243..c455aef452ecc 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -431,6 +431,7 @@ Other Deprecations ^^^^^^^^^^^^^^^^^^ - Changed :meth:`Timedelta.resolution_string` to return ``h``, ``mi...
xref #40226
https://api.github.com/repos/pandas-dev/pandas/pulls/56422
2023-12-09T02:46:51Z
2023-12-11T17:43:41Z
2023-12-11T17:43:41Z
2024-01-08T21:24:50Z
DEPR: type argument in Index.view
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8a1906d20c243..410dfa3fd5b4a 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -438,6 +438,7 @@ Other Deprecations - Deprecated :meth:`Series.view`, use :meth:`Series.astype` instead to change the dtype...
- [x] closes #55709 (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/56421
2023-12-09T02:32:03Z
2023-12-09T18:57:27Z
2023-12-09T18:57:27Z
2023-12-11T20:49:43Z
CLN: Remove unnecessary copy keyword
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 6cad71b3dfd18..d9db2bc5cddb4 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1206,8 +1206,8 @@ def assert_frame_equal( # compare by blocks if by_blocks: - rblocks = right._to_dict_of_blocks...
The copy keyword here is really not needed
https://api.github.com/repos/pandas-dev/pandas/pulls/56420
2023-12-08T23:08:29Z
2023-12-09T01:00:55Z
2023-12-09T01:00:55Z
2023-12-09T08:11:45Z
CoW: Update test with read-only array
diff --git a/pandas/tests/frame/methods/test_to_dict_of_blocks.py b/pandas/tests/frame/methods/test_to_dict_of_blocks.py index 28973fe0d7900..7d08efe916a76 100644 --- a/pandas/tests/frame/methods/test_to_dict_of_blocks.py +++ b/pandas/tests/frame/methods/test_to_dict_of_blocks.py @@ -51,9 +51,7 @@ def test_no_copy_bloc...
- [ ] 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/56418
2023-12-08T22:52:59Z
2023-12-11T13:06:00Z
2023-12-11T13:06:00Z
2023-12-11T13:08:39Z
ENH: unify warning message in to_offset()
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 3ea8fbf69b28b..b893939969c68 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -4786,7 +4786,8 @@ cpdef to_offset(freq, bint is_period=False): for n, (sep, stride, name) in enumerate(tup...
xref #56346 unified warning message for deprecated frequencies in to_offset in order to make test parametrization more clear
https://api.github.com/repos/pandas-dev/pandas/pulls/56417
2023-12-08T22:45:45Z
2023-12-12T16:46:41Z
2023-12-12T16:46:41Z
2023-12-12T16:57:38Z
CLN: generate_range
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index a88f40013b3f6..eb1c2ecc0b0fe 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -2103,7 +2103,9 @@ def _validate_frequency(cls, index, freq: BaseOffset, **kwargs): ) from err ...
- [ ] 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/56416
2023-12-08T21:49:50Z
2023-12-08T23:25:25Z
2023-12-08T23:25:25Z
2023-12-08T23:29:53Z
BUG: fillna with mixed-resolution dt64/td64
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 8a1906d20c243..88a4f3aacc174 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -534,6 +534,7 @@ Datetimelike - Bug in :meth:`Index.is_monotonic_increasing` and :meth:`Index.is_monotonic_decreasing` alwa...
- [ ] 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/56413
2023-12-08T21:43:03Z
2023-12-09T18:38:17Z
2023-12-09T18:38:17Z
2023-12-09T18:40:16Z
Series.str.find fix for arrow strings when start < 0
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 919ac8b03f936..1544b3d953d71 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -577,6 +577,7 @@ Strings - Bug in :func:`pandas.api.types.is_string_dtype` while checking object array with no elements is ...
- [x] closes #56411(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/56412
2023-12-08T21:01:52Z
2023-12-08T23:41:57Z
2023-12-08T23:41:57Z
2023-12-08T23:53:41Z
STY: Fix doctest and docstring formatting errors
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index e91629744463f..e41f625e583c0 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -14,6 +14,8 @@ # $ ./ci/code_checks.sh single-docs # check single-page docs build warning-free # $ ./ci/code_checks.sh notebooks # check execution of documentation ...
Looks like there's some hiding formatting error in docstrings that I found in https://github.com/pandas-dev/pandas/actions/runs/7144701820/job/19458890003?pr=56003 (which appears unrelated)
https://api.github.com/repos/pandas-dev/pandas/pulls/56408
2023-12-08T19:28:12Z
2023-12-09T01:43:35Z
2023-12-09T01:43:34Z
2023-12-09T01:43:37Z
DOC: Fix typo in resample.py, "as_freq"
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 8af81cd43d62e..31e41acbf1774 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -1061,7 +1061,7 @@ def interpolate( 2023-03-01 07:00:04.000 3.0 Freq: 500ms, dtype: float64 - Internal reindexing with ``a...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/56407
2023-12-08T19:17:45Z
2023-12-08T23:24:24Z
2023-12-08T23:24:24Z
2023-12-09T23:08:02Z
fix negative n for str.replace with arrow string
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c878fd2664dc4..919ac8b03f936 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -577,6 +577,7 @@ Strings - Bug in :func:`pandas.api.types.is_string_dtype` while checking object array with no elements is ...
- [ ] closes #56404 (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/56406
2023-12-08T19:01:28Z
2023-12-08T20:06:05Z
2023-12-08T20:06:04Z
2023-12-08T20:06:14Z
DOC: add deprecation of chained assignment to 2.2 whatsnew
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 03d6025b4ef93..991daf6e65c8e 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -451,6 +451,70 @@ Other API changes Deprecations ~~~~~~~~~~~~ +Chained assignment +^^^^^^^^^^^^^^^^^^ + +In preparation ...
Part of the warnings we have been adding in https://github.com/pandas-dev/pandas/issues/56019, specifically the ones for chained assignment / chained inplace methods, are already being raised in the default mode, because this is a part of the changes with CoW we can clearly deprecate in advance. Therefore adding a wh...
https://api.github.com/repos/pandas-dev/pandas/pulls/56403
2023-12-08T15:56:58Z
2023-12-21T22:46:07Z
2023-12-21T22:46:07Z
2023-12-22T08:48:10Z
TST/CoW: expand test for chained inplace methods
diff --git a/pandas/tests/copy_view/test_chained_assignment_deprecation.py b/pandas/tests/copy_view/test_chained_assignment_deprecation.py index 80e38380ed27c..0a37f6b813e55 100644 --- a/pandas/tests/copy_view/test_chained_assignment_deprecation.py +++ b/pandas/tests/copy_view/test_chained_assignment_deprecation.py @@ ...
Another follow-up on https://github.com/pandas-dev/pandas/pull/56400
https://api.github.com/repos/pandas-dev/pandas/pulls/56402
2023-12-08T14:52:22Z
2024-01-08T23:27:50Z
2024-01-08T23:27:50Z
2024-01-08T23:27:57Z
TST: clean CoW chained assignment warning iloc test case
diff --git a/pandas/tests/copy_view/test_chained_assignment_deprecation.py b/pandas/tests/copy_view/test_chained_assignment_deprecation.py index 25935d9489730..80e38380ed27c 100644 --- a/pandas/tests/copy_view/test_chained_assignment_deprecation.py +++ b/pandas/tests/copy_view/test_chained_assignment_deprecation.py @@ ...
Cleaning up the test added in https://github.com/pandas-dev/pandas/pull/56166, now https://github.com/pandas-dev/pandas/pull/56297 and https://github.com/pandas-dev/pandas/pull/56289 are merged
https://api.github.com/repos/pandas-dev/pandas/pulls/56400
2023-12-08T11:07:48Z
2023-12-08T13:55:30Z
2023-12-08T13:55:30Z
2023-12-08T14:49:39Z
Backport PR #56393 on branch 2.1.x (DOC: Add release date for 2.1.4)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 13df35a1477d0..fdbe119268e50 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_214: -What's new in 2.1.4 (December ??, 2023) +What's new in 2.1.4 (December 8, 2023) --------...
Backport PR #56393: DOC: Add release date for 2.1.4
https://api.github.com/repos/pandas-dev/pandas/pulls/56395
2023-12-08T03:10:34Z
2023-12-08T04:14:20Z
2023-12-08T04:14:20Z
2023-12-08T04:14:20Z
DOC: Add release date for 2.1.4
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 723c33280a679..6edd33614c63c 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -1,6 +1,6 @@ .. _whatsnew_214: -What's new in 2.1.4 (December ??, 2023) +What's new in 2.1.4 (December 8, 2023) --------...
- [ ] 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/56393
2023-12-08T00:25:09Z
2023-12-08T03:09:32Z
2023-12-08T03:09:32Z
2023-12-08T03:09:33Z
CoW: Avoid warnings in stata code
diff --git a/pandas/io/stata.py b/pandas/io/stata.py index 1eb8f531dc62a..218afb734d629 100644 --- a/pandas/io/stata.py +++ b/pandas/io/stata.py @@ -345,10 +345,7 @@ def convert_delta_safe(base, deltas, unit) -> Series: has_bad_values = False if bad_locs.any(): has_bad_values = True - # reset ...
xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56392
2023-12-07T23:56:12Z
2023-12-15T22:47:27Z
2023-12-15T22:47:27Z
2023-12-15T22:47:31Z
CoW: Avoid warning in case of expansion
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index a221d02b75bb2..cc88312d5b58f 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -1325,16 +1325,16 @@ def column_setitem( This is a method on the BlockManager level, to avoid creating ...
xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56391
2023-12-07T23:27:49Z
2023-12-08T09:38:38Z
2023-12-08T09:38:38Z
2023-12-08T09:40:19Z
CoW: Remove filterwarnings and todo
diff --git a/pandas/tests/frame/test_subclass.py b/pandas/tests/frame/test_subclass.py index f19e31002c877..ef78ae62cb4d6 100644 --- a/pandas/tests/frame/test_subclass.py +++ b/pandas/tests/frame/test_subclass.py @@ -524,8 +524,6 @@ def test_subclassed_wide_to_long(self): tm.assert_frame_equal(long_frame, ex...
Looks like we fixed this already
https://api.github.com/repos/pandas-dev/pandas/pulls/56390
2023-12-07T23:22:45Z
2023-12-08T08:32:46Z
2023-12-08T08:32:46Z
2023-12-08T08:56:15Z
TYP: tighter typing in _maybe_convert_freq, _from_ordinal
diff --git a/pandas/_libs/tslibs/period.pyi b/pandas/_libs/tslibs/period.pyi index df6ce675b07fc..22f3bdbe668de 100644 --- a/pandas/_libs/tslibs/period.pyi +++ b/pandas/_libs/tslibs/period.pyi @@ -87,7 +87,7 @@ class Period(PeriodMixin): @classmethod def _maybe_convert_freq(cls, freq) -> BaseOffset: ... ...
- [ ] 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/56389
2023-12-07T23:01:40Z
2023-12-08T00:15:01Z
2023-12-08T00:15:01Z
2023-12-08T00:18:40Z
Backport PR #56160 on branch 2.1.x (BUG: reset_index not preserving object dtype for string option)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 519c3a4ab2d32..13df35a1477d0 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -32,6 +32,7 @@ Bug fixes - Fixed bug in :meth:`Index.insert` casting object-dtype to PyArrow backed strings when ``infer_st...
#56160
https://api.github.com/repos/pandas-dev/pandas/pulls/56387
2023-12-07T21:36:14Z
2023-12-07T22:49:21Z
2023-12-07T22:49:21Z
2023-12-07T22:49:25Z
DEPR: Series[categorical].replace special-casing
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c878fd2664dc4..5dd04986dcd3e 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -473,6 +473,7 @@ Other Deprecations - Deprecated the ``kind`` keyword in :meth:`Series.resample` and :meth:`DataFrame.resam...
- [x] closes #55147 (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/56385
2023-12-07T20:07:43Z
2023-12-09T18:27:41Z
2023-12-09T18:27:41Z
2024-01-30T00:57:22Z
TST: Added a test for groupby.prod
diff --git a/pandas/tests/groupby/test_reductions.py b/pandas/tests/groupby/test_reductions.py index 3e78e728f5ea9..425079f943aba 100644 --- a/pandas/tests/groupby/test_reductions.py +++ b/pandas/tests/groupby/test_reductions.py @@ -1057,3 +1057,27 @@ def test_regression_allowlist_methods(op, axis, skipna, sort): ...
- [x] Closes #46573 - The bug related to issue #46573 has been fixed in the current version. - Added a test related to this issue. The test is designed to check if `groupby.prod` returns the same results as `prod`.
https://api.github.com/repos/pandas-dev/pandas/pulls/56384
2023-12-07T19:51:25Z
2023-12-09T13:34:47Z
2023-12-09T13:34:47Z
2023-12-09T13:34:56Z
Backport PR #56184 on branch 2.1.x (BUG: mode not preserving object dtype for string option)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 26fd23d80208c..519c3a4ab2d32 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -31,6 +31,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.to_hdf` raising when columns have ``StringDtype`` (:issue:`55088`)...
#56183/#56184
https://api.github.com/repos/pandas-dev/pandas/pulls/56383
2023-12-07T19:41:52Z
2023-12-07T22:48:40Z
2023-12-07T22:48:40Z
2023-12-07T22:49:33Z
Backport PR #56123 on branch 2.1.x (BUG: ne comparison returns False for NA and other value)
diff --git a/doc/source/whatsnew/v2.1.4.rst b/doc/source/whatsnew/v2.1.4.rst index 6cd44d954a708..26fd23d80208c 100644 --- a/doc/source/whatsnew/v2.1.4.rst +++ b/doc/source/whatsnew/v2.1.4.rst @@ -30,6 +30,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.__setitem__` casting :class:`Index` with object-dtype to PyArrow b...
#56123
https://api.github.com/repos/pandas-dev/pandas/pulls/56382
2023-12-07T19:40:45Z
2023-12-07T21:19:16Z
2023-12-07T21:19:16Z
2023-12-08T22:37:11Z
CoW: Warn for transform inplace modification
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1630c2c31920d..179279cc08bab 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4895,7 +4895,6 @@ def eval(self, expr: str, *, inplace: bool = False, **kwargs) -> Any | None: inplace = validate_bool_kwarg(inplace, "inplace") ...
xref https://github.com/pandas-dev/pandas/issues/56019
https://api.github.com/repos/pandas-dev/pandas/pulls/56381
2023-12-07T19:20:30Z
2023-12-07T21:15:39Z
2023-12-07T21:15:39Z
2023-12-07T21:18:14Z
Backport PR #55703 on branch 2.1.x (Use DeprecationWarning instead of FutureWarning for is_.._dtype deprecations)
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 3db36fc50e343..143dc46359af5 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -211,8 +211,8 @@ def is_sparse(arr) -> bool: warnings.warn( "is_sparse is deprecated and will be removed in a future "...
Backport of https://github.com/pandas-dev/pandas/pull/55703
https://api.github.com/repos/pandas-dev/pandas/pulls/56377
2023-12-07T13:15:49Z
2023-12-07T16:52:03Z
2023-12-07T16:52:03Z
2023-12-14T20:36:01Z
TYP: require_matching_freq
diff --git a/pandas/_libs/tslibs/period.pyi b/pandas/_libs/tslibs/period.pyi index 846d238beadbd..df6ce675b07fc 100644 --- a/pandas/_libs/tslibs/period.pyi +++ b/pandas/_libs/tslibs/period.pyi @@ -63,7 +63,7 @@ class PeriodMixin: def end_time(self) -> Timestamp: ... @property def start_time(self) -> Time...
- [ ] 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/56374
2023-12-07T03:03:35Z
2023-12-07T19:15:44Z
2023-12-07T19:15:44Z
2023-12-07T19:39:21Z
PERF: datetimelike addition
diff --git a/asv_bench/benchmarks/arithmetic.py b/asv_bench/benchmarks/arithmetic.py index 5e23cba2e1074..6b1f75187f887 100644 --- a/asv_bench/benchmarks/arithmetic.py +++ b/asv_bench/benchmarks/arithmetic.py @@ -12,7 +12,6 @@ date_range, to_timedelta, ) -from pandas.core.algorithms import checked_add_with_a...
``` In [1]: import pandas as pd In [2]: dti = pd.date_range("2016-01-01", periods=10_000) In [3]: td = pd.Timedelta(days=1) In [4]: %timeit dti + td 108 µs ± 1.85 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each) # <- main 94.3 µs ± 3.27 µs per loop (mean ± std. dev. of 7 runs, 10,000 loops each)...
https://api.github.com/repos/pandas-dev/pandas/pulls/56373
2023-12-07T02:55:40Z
2023-12-09T18:36:28Z
2023-12-09T18:36:28Z
2023-12-09T18:37:46Z
CLN/TYP: "how" parameter in merge ops
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index f8575b1b53908..0756b25adedcd 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -718,7 +718,7 @@ class _MergeOperation: """ _merge_type = "merge" - how: MergeHow | Literal["asof"] + how: JoinHow...
cleanup and tighten typing of `how` parameter in merge ops.
https://api.github.com/repos/pandas-dev/pandas/pulls/56372
2023-12-07T02:10:50Z
2023-12-07T17:15:34Z
2023-12-07T17:15:34Z
2023-12-07T17:15:41Z
BUG: resample with ArrowDtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index c878fd2664dc4..aa5de99b69f57 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -644,6 +644,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.asfreq` and :meth:`Series.asfreq` with a :class:`Dateti...
- [x] closes #55989 (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/56371
2023-12-06T23:18:34Z
2023-12-09T01:06:34Z
2023-12-09T01:06:34Z
2023-12-09T01:06:37Z
BUG: rolling with datetime ArrowDtype
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index d1481639ca5a0..58a70a2b66a84 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -831,6 +831,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.resample` when resampling on a :class:`ArrowDtype` of `...
- [x] closes #55849 (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/56370
2023-12-06T21:55:41Z
2023-12-28T19:32:01Z
2023-12-28T19:32:01Z
2023-12-28T19:32:03Z
Update nlargest nsmallest doc
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index e741fa7b37f33..8ba9926c054ba 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7505,8 +7505,8 @@ def nlargest( - ``first`` : prioritize the first occurrence(s) - ``last`` : prioritize the last occurrence(s) - ...
- [x] closes #45041 (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/56369
2023-12-06T20:26:06Z
2023-12-12T00:39:24Z
2023-12-12T00:39:24Z
2023-12-12T00:39:32Z
BUG: Series.__mul__ for pyarrow strings
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index 67b4052b386c0..c878fd2664dc4 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -576,6 +576,7 @@ Strings ^^^^^^^ - Bug in :func:`pandas.api.types.is_string_dtype` while checking object array with no ele...
- [x] closes #51970 (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/56368
2023-12-06T19:50:49Z
2023-12-07T05:57:39Z
2023-12-07T05:57:39Z
2023-12-07T05:57:43Z
BUG: `concat` should keep series names unless `ignore_index=True`
diff --git a/doc/source/whatsnew/v2.2.0.rst b/doc/source/whatsnew/v2.2.0.rst index dea986c401b60..52a354b8e54bd 100644 --- a/doc/source/whatsnew/v2.2.0.rst +++ b/doc/source/whatsnew/v2.2.0.rst @@ -636,6 +636,7 @@ Groupby/resample/rolling Reshaping ^^^^^^^^^ - Bug in :func:`concat` ignoring ``sort`` parameter when pa...
- [x] closes #15047 - [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/56365
2023-12-06T18:15:11Z
2023-12-09T19:07:44Z
2023-12-09T19:07:44Z
2023-12-09T21:02:17Z