title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
⌀
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
⌀
updated_at
stringlengths
20
20
BUG: pandas.to_datetime raises exception when more than 50 values needs coercion to NaT (#43732)
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index a0a7ef3501d7f..5165eb8607219 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -2223,14 +2223,14 @@ def objects_to_datetime64ns( allow_mixed=allow_mixed, ) result = res...
- [x] closes #43732 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43791
2021-09-28T23:22:31Z
2022-01-16T18:00:40Z
null
2022-01-16T18:00:40Z
TYP: enable reportMissingImports
diff --git a/pandas/_libs/reshape.pyi b/pandas/_libs/reshape.pyi index 893826a35d41e..110687fcd0c31 100644 --- a/pandas/_libs/reshape.pyi +++ b/pandas/_libs/reshape.pyi @@ -1,6 +1,6 @@ import numpy as np -import pandas._tying as npt +from pandas._typing import npt def unstack( values: np.ndarray, # reshape_...
reportMissingImports checks whether all libraries can be imported. This requires all dependencies to be installed on the CI that runs pyright. This flag should probably NOT be enabled, as it would force all contributors to install all dependencies. I'm enabling it temporarily to see whether the CI has all dependenci...
https://api.github.com/repos/pandas-dev/pandas/pulls/43790
2021-09-28T23:13:37Z
2021-10-06T01:04:58Z
2021-10-06T01:04:58Z
2022-04-01T01:36:58Z
CLN: share rank_t fused type
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index a18cfc41d1e2e..22e2abc9b9c36 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -45,6 +45,7 @@ from numpy cimport ( cnp.import_array() cimport pandas._libs.util as util +from pandas._libs.dtypes cimport numeric_object_t from pandas...
Small step towards #43774
https://api.github.com/repos/pandas-dev/pandas/pulls/43789
2021-09-28T22:14:56Z
2021-09-29T18:03:01Z
2021-09-29T18:03:01Z
2021-09-30T21:24:40Z
REF: remove _get_join_target
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 1db8c14af3c4e..c9e128ffc4289 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -315,8 +315,8 @@ class Index(IndexOpsMixin, PandasObject): @final def _left_indexer_unique(self: _IndexT, other: _IndexT) -> n...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43788
2021-09-28T22:10:20Z
2021-09-28T23:35:11Z
2021-09-28T23:35:11Z
2021-09-28T23:37:37Z
[PERF] Improve performace of read_csv with memory_map=True when file encoding is UTF-8
diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py index 35058ba03ade8..153cad403dcc3 100644 --- a/asv_bench/benchmarks/io/csv.py +++ b/asv_bench/benchmarks/io/csv.py @@ -10,6 +10,7 @@ from pandas import ( Categorical, DataFrame, + concat, date_range, read_csv, to_...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry This PR improves performance of read_csv with memory_map=True and a UTF-8-encoded file...
https://api.github.com/repos/pandas-dev/pandas/pulls/43787
2021-09-28T20:17:45Z
2021-10-06T01:02:47Z
2021-10-06T01:02:47Z
2021-10-06T18:11:42Z
BUG: Merge with str/StringDtype keys and multiindex
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index b7efec8fd2e89..b3aa2ac95880d 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -545,6 +545,7 @@ Reshaping - Bug in :func:`crosstab` when inputs are are categorical Series, there are categories that are ...
- [x] closes #43734 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43785
2021-09-28T17:50:58Z
2021-10-16T15:37:51Z
2021-10-16T15:37:51Z
2021-10-18T11:52:43Z
Fixed broken import in assert_frame_equal docs snippet
diff --git a/pandas/_testing/asserters.py b/pandas/_testing/asserters.py index 79c8e64fc4df3..fc7e36dda4619 100644 --- a/pandas/_testing/asserters.py +++ b/pandas/_testing/asserters.py @@ -1203,7 +1203,7 @@ def assert_frame_equal( This example shows comparing two DataFrames that are equal but with columns of ...
- [x ] closes #43778 Super small fix; removed single underscore in import statement.
https://api.github.com/repos/pandas-dev/pandas/pulls/43779
2021-09-28T04:43:38Z
2021-10-03T19:09:45Z
2021-10-03T19:09:45Z
2021-10-03T19:10:08Z
PERF: materialize less on slice in sparse __getitem__
diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index ff1c4c92fe551..8f424685dfbae 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -195,4 +195,17 @@ def time_take(self, indices, allow_fill): self.sp_arr.take(indices, allow_fill=allow_fill) +c...
Could probably be pushed further to avoid densifying doe `step != 1`, but this seemed like a good starting point as the most common case ``` before after ratio [21c29919] [5622f636] <master> <sparse_getitem_slice> - 12.2±1ms 35.2±3μs 0.00 spa...
https://api.github.com/repos/pandas-dev/pandas/pulls/43777
2021-09-28T03:52:33Z
2021-09-28T23:47:38Z
2021-09-28T23:47:38Z
2021-09-28T23:50:19Z
TYP: enable reportUntypedNamedTuple
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index ed48ff7ae08c6..9e140f4cad864 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -50,7 +50,6 @@ from __future__ import annotations -from collections import namedtuple from contextlib import ( ContextDecorator, con...
Prefer `typing.NamedTuple` to `collections.namedtuple`.
https://api.github.com/repos/pandas-dev/pandas/pulls/43776
2021-09-28T02:03:48Z
2021-09-30T13:21:40Z
2021-09-30T13:21:40Z
2022-05-26T01:59:09Z
CLN: enable reportInvalidStubStatement
diff --git a/pandas/_libs/algos.pyi b/pandas/_libs/algos.pyi index fdec60a84a708..bff7d117c97da 100644 --- a/pandas/_libs/algos.pyi +++ b/pandas/_libs/algos.pyi @@ -50,16 +50,16 @@ def kth_smallest( def nancorr( mat: np.ndarray, # const float64_t[:, :] - cov: bool = False, - minp=None, + cov: bool = ....
Default values in stub files are not used by type checkers (and they might get out of sync with the implementation).
https://api.github.com/repos/pandas-dev/pandas/pulls/43775
2021-09-28T00:54:07Z
2021-09-28T15:04:16Z
2021-09-28T15:04:16Z
2022-05-26T01:59:07Z
CI: Test Python 3.10 on MacOS and Windows too
diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index 596c3b6df9d49..3a139936fbd22 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -21,12 +21,20 @@ env: jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: +...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Blocker for MacOS/Windows Python 3.10 wheels. We probably want to migrate these onto A...
https://api.github.com/repos/pandas-dev/pandas/pulls/43772
2021-09-27T21:21:58Z
2021-10-06T12:27:59Z
2021-10-06T12:27:59Z
2021-10-08T23:27:23Z
DEPR REF: `hide(axis=..)` replaces `hide_index` and `hide_columns`
diff --git a/doc/source/reference/style.rst b/doc/source/reference/style.rst index e67813084e389..a739993e4d376 100644 --- a/doc/source/reference/style.rst +++ b/doc/source/reference/style.rst @@ -40,8 +40,7 @@ Style application Styler.applymap_index Styler.format Styler.format_index - Styler.hide_index -...
- [x] closes #43758: addresses the comments raised there. - [x] tests added / passed - [x] whatsnew entry ![Screen Shot 2021-10-25 at 18 37 33](https://user-images.githubusercontent.com/24256554/138735564-e8173dff-9892-4641-94a5-cae727776e84.png) ![Screen Shot 2021-10-25 at 18 38 25](https://user-images.githu...
https://api.github.com/repos/pandas-dev/pandas/pulls/43771
2021-09-27T20:36:06Z
2021-10-30T17:31:38Z
2021-10-30T17:31:38Z
2021-10-30T17:31:45Z
TST: fixed cython doctests
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 76aae2e908de4..21250789fde9f 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -84,6 +84,10 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then pandas/tseries/ RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Cython Doctests' ; echo $MSG ...
- [x] closes #43757 Skipped some of the tests which were failing
https://api.github.com/repos/pandas-dev/pandas/pulls/43768
2021-09-27T13:57:00Z
2021-09-30T19:44:46Z
2021-09-30T19:44:46Z
2021-09-30T19:51:54Z
Ceil ms bug fix
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 63ba9fdd59fc6..16f1328c09387 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1714,12 +1714,75 @@ def _round(self, freq, mode, ambiguous, nonexistent): values = self.view("i8...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43766
2021-09-27T13:27:02Z
2021-09-27T13:27:43Z
null
2021-09-27T13:27:43Z
BUG: to_coo silently converting non-zero fill values
diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index ff1c4c92fe551..d882942a03ced 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -95,11 +95,11 @@ class ToCooFrame: def setup(self): N = 10000 k = 10 - arr = np.full((N, k), n...
- [X] closes #24817 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43763
2021-09-27T06:44:54Z
2021-09-28T18:46:32Z
2021-09-28T18:46:31Z
2021-09-28T18:47:07Z
REF: share _cython_agg_general
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index f0408db7f4ef8..b1f7f56aaad8c 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -48,7 +48,6 @@ is_dict_like, is_integer_dtype, is_interval_dtype, - is_numeric_dtype, is_scalar, ) ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43762
2021-09-27T02:57:28Z
2021-09-27T22:18:38Z
2021-09-27T22:18:38Z
2021-09-28T14:48:15Z
REF: pad/backfill out of IndexEngine
diff --git a/pandas/_libs/index.pyi b/pandas/_libs/index.pyi index 9f526dd3fe653..752f339ff31da 100644 --- a/pandas/_libs/index.pyi +++ b/pandas/_libs/index.pyi @@ -18,12 +18,6 @@ class IndexEngine: def is_monotonic_increasing(self) -> bool: ... @property def is_monotonic_decreasing(self) -> bool: ... - ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43761
2021-09-27T02:49:20Z
2021-09-27T22:17:43Z
2021-09-27T22:17:43Z
2021-09-28T14:46:38Z
PERF: obj_with_exclusions
diff --git a/pandas/core/base.py b/pandas/core/base.py index b0993bbc619dc..790daa7e42b39 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -221,7 +221,11 @@ def _obj_with_exclusions(self): return self.obj[self._selection_list] if len(self.exclusions) > 0: - return self.ob...
``` from asv_bench.benchmarks.groupby import * self = Cumulative() self.setup("int64", "cumsum") %timeit self.setup("int64", "cumsum"); self.time_frame_transform("int64", "cumsum") 107 ms ± 7.57 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 74.6 ms ± 2.04 ms per loop (mean ± std. dev. of ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43760
2021-09-26T21:07:45Z
2021-09-27T22:17:14Z
2021-09-27T22:17:14Z
2021-09-28T14:49:41Z
BUG: groupby mean fails for complex
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index c8fa6d46c3b7e..ed38c09129679 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -488,6 +488,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.rolling.corr` when the :class:`DataFrame` columns was a...
- [x] closes #43701 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43756
2021-09-26T18:55:11Z
2021-09-30T19:46:48Z
2021-09-30T19:46:48Z
2021-09-30T19:52:21Z
Fix typo in doc: pandas.tseries.offset -> pandas.tseries.offsets
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 4755822b8ebea..ea714ce0162bc 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1955,7 +1955,7 @@ cdef class BYearBegin(YearOffset): Examples -------- - >>> from pandas.tseries.offset ...
- [x] closes #43749
https://api.github.com/repos/pandas-dev/pandas/pulls/43754
2021-09-26T16:52:19Z
2021-09-26T17:33:31Z
2021-09-26T17:33:30Z
2021-09-26T17:33:31Z
CLN: Remove unused functions/variables
diff --git a/pandas/_libs/hashtable.pyi b/pandas/_libs/hashtable.pyi index 951703e04d5a3..c6319a1f24435 100644 --- a/pandas/_libs/hashtable.pyi +++ b/pandas/_libs/hashtable.pyi @@ -1,5 +1,4 @@ from typing import ( - Any, Hashable, Literal, ) diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipbo...
Found by pyright's `reportUnused*`. Unused functions/variables are not directly related to typing, but pyright warns about these cases because it is asked to do unnecessary work.
https://api.github.com/repos/pandas-dev/pandas/pulls/43753
2021-09-26T15:15:18Z
2021-09-28T15:05:03Z
2021-09-28T15:05:03Z
2022-06-08T19:27:11Z
TYP: rename FrameOrSeries to NDFrameT
diff --git a/pandas/_typing.py b/pandas/_typing.py index 5f8ea79046235..9c20eb12dc7fc 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -101,11 +101,11 @@ ] Timezone = Union[str, tzinfo] -# FrameOrSeries is stricter and ensures that the same subclass of NDFrame always is -# used. E.g. `def func(a: FrameOrSe...
`FrameOrSeries = TypeVar("FrameOrSeries", bound="NDFrame")` but the current name implies `pd.DataFrame | pd.Series`.
https://api.github.com/repos/pandas-dev/pandas/pulls/43752
2021-09-26T14:22:38Z
2021-09-28T13:08:25Z
2021-09-28T13:08:25Z
2022-06-08T19:26:53Z
TYP: add mypy defaults to pyproject.toml
diff --git a/pyproject.toml b/pyproject.toml index a99aeec17791e..913832cd65d3c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -69,13 +69,50 @@ markers = [ ] [tool.mypy] -platform = "linux-64" +# Import discovery +namespace_packages = false +explicit_package_bases = false ignore_missing_imports = true -no_imp...
may make it easier for contributors to experiment with enabling mypy strictness flags
https://api.github.com/repos/pandas-dev/pandas/pulls/43751
2021-09-26T12:48:17Z
2021-09-26T15:05:48Z
2021-09-26T15:05:48Z
2021-09-26T15:23:29Z
Fixing Typo in BYearEnd example
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 4c9b681452c0a..4755822b8ebea 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -1929,7 +1929,7 @@ cdef class BYearEnd(YearOffset): Examples -------- - >>> from pandas.tseries.offset im...
- [ ] closes #43749 - [ ] Fixes example for BYearEnd - [ ] pandas/pandas/_libs/tslibs/offsets.pyx file updated
https://api.github.com/repos/pandas-dev/pandas/pulls/43750
2021-09-26T09:45:10Z
2021-09-26T10:42:26Z
2021-09-26T10:42:26Z
2021-09-26T10:42:26Z
CI: run pyright with mypy
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 93c17997a95f7..c8f5f0385732f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,6 +45,15 @@ jobs: environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true + - name: Install node.js (for pyright) + ...
The github action running the pre-commit checks does not install all necessary python packages for type checking. This triggered a few unnecessary `reportOverlappingOverload` by pyright because numpy was not installed. Keep pyright in the pre-commit but disable it on the CI (SKIP=pyright). Instead, run pyright toget...
https://api.github.com/repos/pandas-dev/pandas/pulls/43747
2021-09-26T02:03:07Z
2021-09-26T12:21:14Z
2021-09-26T12:21:14Z
2022-06-08T19:26:52Z
TST: DataFrameGroupBy.aggregate with empty frame with MultiIndex
diff --git a/pandas/tests/groupby/aggregate/test_aggregate.py b/pandas/tests/groupby/aggregate/test_aggregate.py index 4bda0e6ef9872..7bb850d38340f 100644 --- a/pandas/tests/groupby/aggregate/test_aggregate.py +++ b/pandas/tests/groupby/aggregate/test_aggregate.py @@ -861,6 +861,16 @@ def test_groupby_aggregate_empty_k...
- [x] closes #39178 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/43746
2021-09-25T19:02:05Z
2021-09-25T22:23:16Z
2021-09-25T22:23:16Z
2021-10-19T03:45:31Z
Improved the type stubs in the _libs directory to help with type checking
diff --git a/pandas/_libs/interval.pyi b/pandas/_libs/interval.pyi new file mode 100644 index 0000000000000..6e201601911da --- /dev/null +++ b/pandas/_libs/interval.pyi @@ -0,0 +1,46 @@ +from typing import FrozenSet, Tuple + +import numpy as np + +class IntervalMixin: + @property + def _left(self) -> object: ... ...
This doesn't change any code, so it should have no impact on runtime behavior.
https://api.github.com/repos/pandas-dev/pandas/pulls/43744
2021-09-25T17:40:28Z
2022-01-16T18:08:04Z
null
2022-01-16T18:08:04Z
DEPR: Silent dropping of nuisance columns in transform_dict_like
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 51c6b297a37cb..243bcf6900d2e 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -337,6 +337,7 @@ Other Deprecations - Deprecated the ``squeeze`` argument to :meth:`read_csv`, :meth:`read_table`, and :met...
Part of #43740 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43743
2021-09-25T17:22:27Z
2021-09-26T01:50:07Z
2021-09-26T01:50:06Z
2022-10-28T16:59:03Z
DEPR: Silent dropping of nuisance columns in agg_list_like
diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 82c8a27bec3a5..a589ad96ca7d9 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -1045,6 +1045,9 @@ not noted for a particular column will be ``NaN``: Mixed dtypes ++++++++++++ +.. deprecated::...
Part of #43740 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43741
2021-09-25T16:26:42Z
2021-09-29T13:10:46Z
2021-09-29T13:10:46Z
2021-09-30T16:05:01Z
DOC: Added sentence to show that unmatched values return -1.
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 926ab0b544abd..4dc9c48dac2a4 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3576,6 +3576,11 @@ def get_loc(self, key, method=None, tolerance=None): positions matches the corresponding target values....
- [x] closes #38482 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew: Added sentence to show that unmatched values return -1 in get_indexer method In [1]: pytho...
https://api.github.com/repos/pandas-dev/pandas/pulls/43738
2021-09-25T11:22:43Z
2021-11-06T02:45:43Z
2021-11-06T02:45:42Z
2023-01-14T04:26:15Z
PERF: `Styler.tooltips`
diff --git a/asv_bench/benchmarks/io/style.py b/asv_bench/benchmarks/io/style.py index d3934942b7dc4..f0902c9c2c328 100644 --- a/asv_bench/benchmarks/io/style.py +++ b/asv_bench/benchmarks/io/style.py @@ -34,6 +34,14 @@ def peakmem_classes_render(self, cols, rows): self._style_classes() self.st._rende...
When tooltips were developed there were no hidden_rows or hidden_columns and no max_rows or max_columns. This adds some benchmarks and a minimal change to improve performance. Scope to do a bit better here in future also. ``` before after ratio [cd13e3a4] [7766f055] <ma...
https://api.github.com/repos/pandas-dev/pandas/pulls/43737
2021-09-25T11:07:44Z
2021-09-25T15:33:56Z
2021-09-25T15:33:56Z
2021-09-25T16:50:42Z
ENH: new .agg for list-likes
diff --git a/doc/source/user_guide/future_udf_behavior.rst b/doc/source/user_guide/future_udf_behavior.rst new file mode 100644 index 0000000000000..8871f767c9cb5 --- /dev/null +++ b/doc/source/user_guide/future_udf_behavior.rst @@ -0,0 +1,72 @@ +.. _future_udf_behavior: + +:orphan: + +{{ header }} + +*****************...
Part of #43678 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them Replaces the list-like implementation for `.agg` used by Series, DataFrame, SeriesGroupBy, DataFrameGroupBy, W...
https://api.github.com/repos/pandas-dev/pandas/pulls/43736
2021-09-24T21:25:23Z
2021-12-11T19:48:51Z
null
2022-09-10T16:49:54Z
TST: multi indexing when one column exclusively contains NaT(#38025)
diff --git a/pandas/tests/indexing/multiindex/test_multiindex.py b/pandas/tests/indexing/multiindex/test_multiindex.py index 479d048d35fbd..9fa873a212cbd 100644 --- a/pandas/tests/indexing/multiindex/test_multiindex.py +++ b/pandas/tests/indexing/multiindex/test_multiindex.py @@ -15,7 +15,6 @@ class TestMultiIndexBa...
- [X] closes #38025 - [X] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them
https://api.github.com/repos/pandas-dev/pandas/pulls/43735
2021-09-24T19:59:15Z
2021-09-29T13:28:07Z
2021-09-29T13:28:07Z
2021-09-29T13:28:11Z
ENH: Add engine="numba" to groupby mean
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 4d0dee01f05c1..5cc2c42021bc8 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -182,7 +182,7 @@ Other enhancements - Added :meth:`.ExponentialMovingWindow.sum` (:issue:`13297`) - :meth:`Series.str.spli...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43731
2021-09-24T05:49:53Z
2021-11-05T00:59:14Z
2021-11-05T00:59:14Z
2021-11-05T02:47:25Z
PERF: GroupBy.count
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index a672f8fc96ba0..f0408db7f4ef8 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -21,6 +21,7 @@ Mapping, TypeVar, Union, + cast, ) import warnings @@ -30,7 +31,9 @@ from pandas._typi...
``` from asv_bench.benchmarks.groupby import * self = GroupByMethods() self.setup("datetime", "count", "direct", 2) %timeit self.time_dtype_as_field('datetime', 'count', 'direct', 2) 73.7 µs ± 982 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 48.7 µs ± 473 ns per loop (mean ± std. dev....
https://api.github.com/repos/pandas-dev/pandas/pulls/43730
2021-09-24T04:31:05Z
2021-09-25T15:20:15Z
2021-09-25T15:20:15Z
2021-09-25T15:39:49Z
DEPS: Upgrade Deps for Python 3.10
diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml index d4777bcd1d079..2e4bfea165316 100644 --- a/.github/actions/build_pandas/action.yml +++ b/.github/actions/build_pandas/action.yml @@ -13,5 +13,5 @@ runs: - name: Build Pandas run: | python setup.py bu...
- [ ] xref #43715 - [ ] closes #40307 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43729
2021-09-24T02:13:08Z
2021-10-13T10:40:35Z
2021-10-13T10:40:35Z
2021-10-17T16:22:43Z
REF: unwrap PandasArray earlier
diff --git a/pandas/core/construction.py b/pandas/core/construction.py index 90349ee5f942f..8d3fd0c520a6d 100644 --- a/pandas/core/construction.py +++ b/pandas/core/construction.py @@ -49,7 +49,10 @@ is_object_dtype, is_timedelta64_ns_dtype, ) -from pandas.core.dtypes.dtypes import DatetimeTZDtype +from pand...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43728
2021-09-24T01:17:18Z
2021-09-25T16:57:41Z
2021-09-25T16:57:41Z
2021-09-25T18:11:55Z
Backport PR #43722 on branch 1.3.x (BUG: set numpy requirement for aarch64 and py3.9)
diff --git a/pyproject.toml b/pyproject.toml index 0d1aefb9d4b55..28925ce62a761 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ requires = [ # Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml (which is also licensed under BSD) "numpy==1.17.3; python_version=='3.7' and (pl...
Backport PR #43722: BUG: set numpy requirement for aarch64 and py3.9
https://api.github.com/repos/pandas-dev/pandas/pulls/43726
2021-09-23T21:12:23Z
2021-09-23T23:29:04Z
2021-09-23T23:29:04Z
2021-09-23T23:29:04Z
PERF: Groupby.quantile
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 7ff672429afcf..f8e6e8dcf1821 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2647,10 +2647,9 @@ def post_processor(vals: np.ndarray, inference: np.dtype | None) -> np.ndarray: return va...
``` from asv_bench.benchmarks.groupby import * self2 = GroupByMethods() self2.setup('uint', 'quantile', 'direct', 1) %timeit self2.time_dtype_as_group('uint', 'quantile', 'direct', 1) 1.03 ms ± 46.9 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- master 328 µs ± 17.2 µs per loop (mean ± std. dev...
https://api.github.com/repos/pandas-dev/pandas/pulls/43725
2021-09-23T19:50:06Z
2021-09-27T13:11:54Z
2021-09-27T13:11:54Z
2021-09-27T15:07:27Z
Backport PR #43634 on branch 1.3.x (PERF: groupby with string dtype)"
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 1648985a56b91..da02d167a62c5 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -568,6 +568,38 @@ def time_sum(self): self.df.groupby(["a"])["b"].sum() +class String: + # GH#41596 + ...
Backport PR #43634 on branch 1.3.x
https://api.github.com/repos/pandas-dev/pandas/pulls/43724
2021-09-23T19:39:42Z
2021-09-24T11:31:17Z
2021-09-24T11:31:16Z
2021-09-24T12:20:44Z
DOC: Fix introduction of DataFrame.rename
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index bfdfeabbd389c..887689341ac3f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4994,8 +4994,8 @@ def rename( copy : bool, default True Also copy underlying data. inplace : bool, default False - Whethe...
- [x] closes #43708 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43723
2021-09-23T19:04:45Z
2021-09-29T13:29:49Z
null
2021-09-29T13:29:50Z
BUG: set numpy requirement for aarch64 and py3.9
diff --git a/pyproject.toml b/pyproject.toml index 03c1485bd4e35..aa602bba630c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ requires = [ # Copied from https://github.com/scipy/scipy/blob/master/pyproject.toml (which is also licensed under BSD) "numpy==1.17.3; python_version=='3.7' and (pl...
It is stated in this file on line 13 that `# Aarch64(Python 3.9 requirements are the same as AMD64)` However, the python 3.9 numpy requirement is excluding `aarch64`, therefore there is no `aarch64` numpy requirement defined at all for py3.9. When one tries to build pandas from source on `aarch64` with py3.9 (such as...
https://api.github.com/repos/pandas-dev/pandas/pulls/43722
2021-09-23T18:40:06Z
2021-09-23T21:11:56Z
2021-09-23T21:11:56Z
2021-09-23T21:13:12Z
BUG: `Styler.to_latex` with multirow cellcolor
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 2c862f2f4ed96..27a5170e48949 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -740,7 +740,7 @@ def _translate_latex(self, d: dict) -> None: "display_value": col["dis...
- [x] xref #41994 but provides an alternative workable solution. - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] No whatsnew entry needed since `apply_index` methods were ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43720
2021-09-23T16:43:45Z
2021-10-21T01:24:09Z
2021-10-21T01:24:09Z
2021-10-21T05:15:26Z
Backport PR #43709 on branch 1.3.x (REGR: Passing args/kwargs to Series.agg fails)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 6212f2c6f3399..caec32ed3342b 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -20,7 +20,7 @@ Fixed regressions - Fixed regression in :meth:`Series.cat.reorder_categories` failing to update the categori...
Backport PR #43709: REGR: Passing args/kwargs to Series.agg fails
https://api.github.com/repos/pandas-dev/pandas/pulls/43716
2021-09-23T12:12:42Z
2021-09-23T13:14:08Z
2021-09-23T13:14:08Z
2021-09-23T13:14:08Z
BUG: round_trip parser initial/trailing whitespace
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 6a342c059203b..c980df3bd4c7a 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -454,6 +454,8 @@ I/O - Bug in unpickling a :class:`Index` with object dtype incorrectly inferring numeric dtypes (:issue:`4...
- [x] closes #43713 - [x] tests added / passed - [X] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [X] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43714
2021-09-23T10:28:58Z
2021-10-02T00:05:04Z
2021-10-02T00:05:04Z
2021-10-02T00:05:11Z
BUG: Index.get_loc(np.nan) non-unique non-monotonic
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index ab3d27bdd45de..d652780ff6d92 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -431,7 +431,8 @@ Indexing - Bug in :meth:`DataFrame.drop` where the error message did not show missing labels with commas w...
- [ ] closes #xxxx - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry The tests file will need to be rebased following #43705.
https://api.github.com/repos/pandas-dev/pandas/pulls/43711
2021-09-23T05:12:45Z
2021-09-28T22:55:20Z
2021-09-28T22:55:20Z
2021-09-28T23:23:37Z
ENH: Add equivalence test for float in to_numeric() GH43693
diff --git a/doc/source/whatsnew/v1.5.0.rst b/doc/source/whatsnew/v1.5.0.rst index 290f2e0ae08b6..045466ba9192e 100644 --- a/doc/source/whatsnew/v1.5.0.rst +++ b/doc/source/whatsnew/v1.5.0.rst @@ -31,6 +31,7 @@ enhancement2 Other enhancements ^^^^^^^^^^^^^^^^^^ - Improved the rendering of ``categories`` in :class:`C...
- [x] closes #43693 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry This PR prevents issues where float64 arrays would be downcast to float32 arrays eve...
https://api.github.com/repos/pandas-dev/pandas/pulls/43710
2021-09-23T03:49:25Z
2022-01-17T13:48:35Z
2022-01-17T13:48:35Z
2022-01-17T13:48:39Z
REGR: Passing args/kwargs to Series.agg fails
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 6212f2c6f3399..caec32ed3342b 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -20,7 +20,7 @@ Fixed regressions - Fixed regression in :meth:`Series.cat.reorder_categories` failing to update the categori...
- [x] closes #43357 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43709
2021-09-23T03:06:36Z
2021-09-23T12:12:16Z
2021-09-23T12:12:15Z
2021-09-26T00:38:24Z
BUG: Fix some index_col tests for pyarrow read_csv
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 243bcf6900d2e..46759fbbcf8b8 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -93,7 +93,7 @@ Multithreaded CSV reading with a new CSV Engine based on pyarrow ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43706
2021-09-23T00:43:23Z
2021-09-27T23:32:42Z
2021-09-27T23:32:41Z
2021-12-08T00:27:12Z
PERF: Index.get_loc
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 31b507e9b7800..cdb53e0e838e9 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -87,11 +87,7 @@ cdef class IndexEngine: values = self.values self._check_type(val) - try: - loc = _bin...
Makes a big difference for Float64Index with integer key. ``` import numpy as np import pandas as pd idx = pd.Index(np.arange(10**7)) fidx = idx.astype('f8') key = idx[len(idx) // 2] key2 = idx[10] %timeit idx.get_loc(key) 2.97 µs ± 36.2 ns per loop (mean ± std. dev. of 7 runs, 100000 loops each) # ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43705
2021-09-22T21:07:32Z
2021-09-23T12:21:18Z
2021-09-23T12:21:17Z
2021-09-23T16:17:35Z
REF: simplify DatetimeEngine.__contains__
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 31b507e9b7800..d7de9a25cecda 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -418,19 +418,12 @@ cdef class DatetimeEngine(Int64Engine): def __contains__(self, val: object) -> bool: # We assume before we get here: ...
This is never called outside of tests so not a big deal, but the code is redundant and in one place returns the wrong type.
https://api.github.com/repos/pandas-dev/pandas/pulls/43702
2021-09-22T19:57:03Z
2021-09-22T22:00:24Z
2021-09-22T22:00:23Z
2021-09-22T22:16:49Z
GH36236 - Additional Test for df.join()
diff --git a/pandas/tests/frame/methods/test_join.py b/pandas/tests/frame/methods/test_join.py index 989a9be181a3f..b09ea596efe5b 100644 --- a/pandas/tests/frame/methods/test_join.py +++ b/pandas/tests/frame/methods/test_join.py @@ -373,3 +373,12 @@ def test_frame_join_tzaware(self): tm.assert_index_equal(re...
TST - [x] closes #36263 - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43700
2021-09-22T17:31:37Z
2021-11-07T02:38:41Z
null
2021-11-07T02:38:41Z
API: change ExtensionArray.astype to always return an ExtensionArray
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index a64aef64ab49f..1f5d1f16370b5 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -75,6 +75,7 @@ isin, unique, ) +from pandas.core.construction import array as pd_array from pandas.core.sorting import ( na...
Closes #24877 This is a work-in-progress to see if it's realistic to require `ExtensionArray.astype` to always return an ExtensionArray (in practice this means returning a PandasArray if now a numpy array would be returned). Further we will also need to see how this impacts external EAs, and how this change can ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43699
2021-09-22T14:30:48Z
2023-02-22T16:03:41Z
null
2023-02-22T16:03:42Z
Backport PR #43677 on branch 1.3.x (CI: Strict channel Priority)
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index d9e78b197de7a..3c4b0f913ed1b 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -2,7 +2,9 @@ name: Database on: push: - branches: [master] + branches: + - master + - 1.3.x pull_re...
Backport PR #43677
https://api.github.com/repos/pandas-dev/pandas/pulls/43698
2021-09-22T13:17:27Z
2021-09-22T14:39:35Z
2021-09-22T14:39:34Z
2021-09-22T14:39:39Z
PERF: nsmallest
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index e8b68d41983d5..a8de95cfa72e0 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -6351,8 +6351,11 @@ def drop(self, labels, errors: str_t = "raise") -> Index: KeyError If not all of the labels ar...
``` from asv_bench.benchmarks.series_methods import * self6 = NSort() self6.setup("last") %timeit self6.time_nsmallest('last') 10.6 ms ± 43.4 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master 1.5 ms ± 17.2 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43696
2021-09-22T03:49:33Z
2021-09-22T13:10:57Z
2021-09-22T13:10:57Z
2021-09-22T14:38:19Z
TYP: use __all__ to signal public API to type checkers
diff --git a/pandas/__init__.py b/pandas/__init__.py index 294b092e33c58..9505d0481ee19 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -131,7 +131,7 @@ qcut, ) -import pandas.api +from pandas import api, arrays, errors, io, plotting, testing, tseries from pandas.util._print_versions import show_ve...
- [x] closes #43664 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43695
2021-09-22T01:48:27Z
2021-09-28T23:39:12Z
2021-09-28T23:39:12Z
2022-05-26T01:59:08Z
PERF: Groupby.count
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 38f1d41494fd2..a672f8fc96ba0 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -80,6 +80,7 @@ Index, MultiIndex, all_indexes_same, + default_index, ) from pandas.core.series import Se...
``` from asv_bench.benchmarks.groupby import * self4 = GroupByMethods() self4.setup('uint', 'count', 'direct', 5) %timeit self4.time_dtype_as_field('uint', 'count', 'direct', 5) 231 µs ± 5.23 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- master 77.3 µs ± 619 ns per loop (mean ± std. dev. of 7 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43694
2021-09-21T23:47:46Z
2021-09-22T01:10:42Z
2021-09-22T01:10:42Z
2021-09-22T01:54:49Z
REF: implement Index._can_use_libjoin
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 95387c9557b1a..e8b68d41983d5 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3059,6 +3059,7 @@ def _union(self, other: Index, sort): and self.is_monotonic and other.is_monotonic ...
Arbitrary EA-backed Indexes (e.g. Nullable) will not go down that path.
https://api.github.com/repos/pandas-dev/pandas/pulls/43692
2021-09-21T23:03:58Z
2021-09-22T01:09:31Z
2021-09-22T01:09:31Z
2021-09-22T01:55:29Z
Backport PR #43647 on branch 1.3.x (BUG: REGR: read_csv with memory_map=True raises UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 262143: unexpected end of data )
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 87b08fae52c15..6212f2c6f3399 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed performance regression in :meth:`MultiIndex.equals` (:issue:`43549`) - Fixed regr...
Backport PR #43647: BUG: REGR: read_csv with memory_map=True raises UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 262143: unexpected end of data
https://api.github.com/repos/pandas-dev/pandas/pulls/43691
2021-09-21T21:38:14Z
2021-09-22T10:25:18Z
2021-09-22T10:25:18Z
2021-09-22T10:25:18Z
BUG: Write compliant Parquet with `pyarrow`
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 87f47dc65cea9..a6eaa8f2f57f8 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -125,6 +125,7 @@ Other enhancements - Attempting to write into a file in missing parent directory with :meth:`DataFrame.to_...
- [x] closes #43689 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43690
2021-09-21T21:21:09Z
2021-11-28T21:01:26Z
null
2021-11-28T21:01:26Z
CI: fix doc build
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 87f47dc65cea9..4f181389faddd 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -355,7 +355,7 @@ Performance improvements - Performance improvement in indexing with a :class:`MultiIndex` indexer on anoth...
- [x] closes #43685
https://api.github.com/repos/pandas-dev/pandas/pulls/43688
2021-09-21T21:07:01Z
2021-09-21T22:11:48Z
2021-09-21T22:11:48Z
2021-09-22T00:45:31Z
ASV: rendering hidden elements in `Styler`
diff --git a/asv_bench/benchmarks/io/style.py b/asv_bench/benchmarks/io/style.py index a0067307c3905..d3934942b7dc4 100644 --- a/asv_bench/benchmarks/io/style.py +++ b/asv_bench/benchmarks/io/style.py @@ -42,6 +42,14 @@ def peakmem_format_render(self, cols, rows): self._style_format() self.st._render_...
This asv aims to check for rendering regressions when processing loops for hidden rows and columns.
https://api.github.com/repos/pandas-dev/pandas/pulls/43687
2021-09-21T21:00:26Z
2021-09-22T13:13:35Z
2021-09-22T13:13:35Z
2021-09-22T16:56:21Z
CLN: simplify `Styler._translate`
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 1c83b0d3d048b..440cb85d1d6a6 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1047,7 +1047,7 @@ "source": [ "### 5. If every byte counts use string replacement\n", "\n", - ...
Bit of a pre cursor to some other cleaning in #43649. Prevents needing to pass variables around in worker functions, and has the added benefit of making the CSS classes user editable, by storing as a class attribute instead of module constants. I ran the updated styler ASVs for this and "BENCHMARKS NOT SIGNIFICAN...
https://api.github.com/repos/pandas-dev/pandas/pulls/43686
2021-09-21T19:33:07Z
2021-10-16T16:13:29Z
2021-10-16T16:13:29Z
2021-10-16T16:37:07Z
CLN: unnecessary arg, declarations
diff --git a/pandas/_libs/index_class_helper.pxi.in b/pandas/_libs/index_class_helper.pxi.in index f1dbc3780011f..dfce411c09e66 100644 --- a/pandas/_libs/index_class_helper.pxi.in +++ b/pandas/_libs/index_class_helper.pxi.in @@ -49,9 +49,7 @@ cdef class {{name}}Engine(IndexEngine): # Returns ndarray[bool] or i...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43684
2021-09-21T18:28:55Z
2021-09-22T13:13:02Z
2021-09-22T13:13:02Z
2021-09-22T14:38:44Z
PERF: dropna
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index d37295eff83c4..2d0aa45f0fad2 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -462,6 +462,7 @@ def newfunc(values: np.ndarray, *, axis: int | None = None, **kwargs): and values.ndim == 2 and values.flags["C_CONTI...
``` from asv_bench.benchmarks.frame_methods import * self3 = Dropna() self3.setup("all", 0) %timeit self3.time_dropna('all', 0) 125 ms ± 3.03 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 34.8 ms ± 269 µs per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43683
2021-09-21T17:24:45Z
2021-09-21T19:20:52Z
2021-09-21T19:20:52Z
2021-09-21T20:35:18Z
REF: unify i8 casting in DatetimeEngine
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index c511fa85d2ec4..31b507e9b7800 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -84,7 +84,7 @@ cdef class IndexEngine: if self.over_size_threshold and self.is_monotonic_increasing: if not self.is_unique: ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43679
2021-09-21T03:33:06Z
2021-09-21T19:21:57Z
2021-09-21T19:21:57Z
2021-09-21T20:35:57Z
POC: New UDF methods option
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index 7555fb50f16af..b954600016d4b 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -21,7 +21,10 @@ import numpy as np -from pandas._config import option_context +from pandas._config import ( + get_option, + option_context, +) from pa...
Start of #41112 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry The goal is to provide an implementation for apply on lists. See https://github.com/pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/43678
2021-09-21T01:59:24Z
2021-10-26T03:34:49Z
null
2022-09-10T16:49:57Z
CI: Strict channel Priority
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index cedc2b85c2794..6da47c86026ed 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -4,6 +4,7 @@ on: push: branches: - master + - 1.3.x pull_request: branches: - master @@ -...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Hopefully, this makes the slow Database CI that takes 6+ hours go faster(most of the t...
https://api.github.com/repos/pandas-dev/pandas/pulls/43677
2021-09-21T00:23:04Z
2021-09-22T13:10:25Z
2021-09-22T13:10:25Z
2021-09-23T00:04:48Z
WIP: Debug Slow Database CI
diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index d9e78b197de7a..6172f71659f4a 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -74,7 +74,7 @@ jobs: - uses: conda-incubator/setup-miniconda@v2 with: activate-environment: pandas-dev ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry Database / Linux_py37_IO (ci/deps/actions-37-db-min.yaml) (pull_request) is the offe...
https://api.github.com/repos/pandas-dev/pandas/pulls/43676
2021-09-20T23:49:25Z
2021-09-21T00:17:26Z
null
2021-11-12T05:05:06Z
PERF: Groupby.any/all object dtype
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 1ea16939603f9..050b835386ae6 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -1654,9 +1654,12 @@ def objs_to_bool(vals: ArrayLike) -> tuple[np.ndarray, type]: if is_object_dtype(vals.dtype...
``` from asv_bench.benchmarks.groupby import * self = GroupByMethods() self.setup("object", "any", "direct", 10) %timeit self.time_dtype_as_field("object", "any", "direct", 10) 1.12 ms ± 60.7 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) # <- PR 11.4 ms ± 49.8 µs per loop (mean ± std. dev. of 7 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43675
2021-09-20T22:58:46Z
2021-09-21T12:48:26Z
2021-09-21T12:48:26Z
2021-09-21T14:50:05Z
TST: dropping of nuisance columns for groupby ops #38815
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 3de6af8eef694..83b096cfc2d05 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -853,11 +853,6 @@ def test_groupby_multi_corner(df): def test_omit_nuisance(df): grouped = d...
Add more aggregation functions for nuisance tests - [ x] closes #38815 - [x ] tests added / passed - [x ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43674
2021-09-20T20:23:30Z
2021-10-05T00:30:11Z
2021-10-05T00:30:11Z
2021-10-05T00:30:14Z
ENH: omit CSSStyle rules for hidden table elements (#43619)
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f18b3b75ca3d2..88f1a19eda7fe 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -79,6 +79,7 @@ Styler - Keyword arguments ``level`` and ``names`` added to :meth:`.Styler.hide_index` and :meth:`.Styler....
- [x] closes #43619 - [x] tests added / passed (but canceled due to another error) - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry I couldn't run all tests, because of the followin...
https://api.github.com/repos/pandas-dev/pandas/pulls/43673
2021-09-20T19:25:30Z
2021-09-22T12:36:52Z
2021-09-22T12:36:51Z
2021-09-23T14:42:43Z
CI: run pyright
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eb0abe1829fc6..22c805733aff2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -81,6 +81,15 @@ repos: - flake8-comprehensions==3.1.0 - flake8-bugbear==21.3.2 - pandas-dev-flaker==0.2.0 +- re...
Run pyright in strict mode with a very long list of rules that need to be ignored. The idea is to enable more rules over time. pre-commit seamlessly installs pyright (depends on node.js) but running pyright as part of the pre-commit slows the pre-commit down by ~85s.
https://api.github.com/repos/pandas-dev/pandas/pulls/43672
2021-09-20T19:03:24Z
2021-09-25T15:37:17Z
2021-09-25T15:37:17Z
2021-09-25T15:37:51Z
ENH: enable skipna on groupby reduction ops
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index 2a718fdcf16e7..7d063e8e20333 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -168,7 +168,7 @@ Other enhancements - Add support for assigning values to ``by`` argument in :meth:`DataFrame.plot.hist` an...
- [ ] closes #15675 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry @mzeitlin11 Any help you can provide on what tests I should add, or where to start di...
https://api.github.com/repos/pandas-dev/pandas/pulls/43671
2021-09-20T18:41:27Z
2022-01-16T18:02:27Z
null
2022-01-16T18:02:28Z
ENH: latex styler bool pandas options
diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst index 59319fda8045c..a65bb774b9df8 100644 --- a/doc/source/user_guide/options.rst +++ b/doc/source/user_guide/options.rst @@ -512,6 +512,7 @@ styler.latex.multicol_align r Alignment of headers in a m styler.latex....
- [x] adds the last remaining options for #41395 for the existing args in Styler.to_latex.
https://api.github.com/repos/pandas-dev/pandas/pulls/43670
2021-09-20T18:25:46Z
2021-10-18T23:15:03Z
2021-10-18T23:15:03Z
2021-10-19T05:32:03Z
BUG: rename fails when using level
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f18b3b75ca3d2..9acf0b7b884e6 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -413,6 +413,7 @@ Interval Indexing ^^^^^^^^ +- Bug in :meth:`Series.rename` when index in Series is MultiIndex and level...
- [x] closes #43659 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43667
2021-09-20T06:45:26Z
2021-09-27T23:34:23Z
2021-09-27T23:34:23Z
2021-09-28T01:12:36Z
ENH: RangeIndex.sort_values now avoids materialization of values
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 9c05019c70396..2b2302a796730 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -86,6 +86,12 @@ def time_iter_dec(self): for _ in self.idx_dec: pass + de...
- [x] closes #43584 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry What's new: On any instance of RangeIndex, sort_values will not sort as it is already s...
https://api.github.com/repos/pandas-dev/pandas/pulls/43666
2021-09-20T06:25:54Z
2021-10-21T00:50:22Z
2021-10-21T00:50:22Z
2023-04-18T17:37:38Z
DEPR: rolling/expanding/ewm.validate
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index f18b3b75ca3d2..96f4750d58d9e 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -334,7 +334,7 @@ Other Deprecations - Deprecated the 'include_start' and 'include_end' arguments in :meth:`DataFrame.betwee...
- [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry An method with validation logic that should be in `__init__` ideally and should not be called by users.
https://api.github.com/repos/pandas-dev/pandas/pulls/43665
2021-09-19T22:10:37Z
2021-09-20T14:36:30Z
2021-09-20T14:36:30Z
2021-09-20T16:59:13Z
ENH: `Styler.bar` accepts matplotlib colormap
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 7b7df83274620..67cf07a718877 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -49,6 +49,7 @@ "source": [ "import pandas as pd\n", "import numpy as np\n", + "import matplotli...
No one has requested this but I think its nice none-the-less, especially in finance / science. Kind of like background_gradient with slightly different vizualisations. ![Screen Shot 2021-09-19 at 21 25 07](https://user-images.githubusercontent.com/24256554/133940391-b2a8157e-8346-4cb4-8af2-8e71146e7c90.png) ![S...
https://api.github.com/repos/pandas-dev/pandas/pulls/43662
2021-09-19T19:33:51Z
2021-10-10T17:35:44Z
2021-10-10T17:35:44Z
2021-10-11T15:51:20Z
REF: simplify IndexEngine signature
diff --git a/asv_bench/benchmarks/indexing_engines.py b/asv_bench/benchmarks/indexing_engines.py index 30ef7f63dc0dc..dc9576bc94d4c 100644 --- a/asv_bench/benchmarks/indexing_engines.py +++ b/asv_bench/benchmarks/indexing_engines.py @@ -48,7 +48,7 @@ def setup(self, engine_and_dtype, index_type): "non_mono...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43661
2021-09-19T17:59:21Z
2021-09-20T13:18:24Z
2021-09-20T13:18:24Z
2021-09-20T15:24:43Z
CI: adding cython coverage
diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000000000..d9a48b4bbc107 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +plugins = Cython.Coverage diff --git a/.github/workflows/python-cython.yml b/.github/workflows/python-cython.yml new file mode 100644 index 0000000000000..71034dd06cc17 ...
- [x] closes #43652 Trying to include cython codes in codecov reports. Working with the CI for the first time.
https://api.github.com/repos/pandas-dev/pandas/pulls/43660
2021-09-19T16:30:43Z
2022-01-16T18:02:48Z
null
2022-01-16T18:02:48Z
DEPR: Fix deprecation warnings in ASV
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index e48a2060a3b34..2e43827232ae5 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -44,9 +44,9 @@ def setup(self, unique, sort, dtype): raise NotImplementedError d...
- [X] closes #43586
https://api.github.com/repos/pandas-dev/pandas/pulls/43658
2021-09-19T09:21:40Z
2021-09-21T12:14:18Z
2021-09-21T12:14:17Z
2021-09-21T12:44:21Z
BUG: add css conversion for new `Styler.apply_index` styles
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 0ec6a9b470b50..8e7d82ae22b01 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -1636,7 +1636,11 @@ def _parse_latex_cell_styles( def _parse_latex_header_span( - cell: dict[str, Any], ...
- [x] closes #43648 no whats new needed since `apply_index` is new to 1.4.0 and this just makes it more complete.
https://api.github.com/repos/pandas-dev/pandas/pulls/43657
2021-09-19T08:01:34Z
2021-09-21T13:57:25Z
2021-09-21T13:57:25Z
2021-09-21T14:09:22Z
DOC: expand allowed vals for `multicol_align`
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index cf41bcff3d0c8..3f7363836acdb 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -816,9 +816,11 @@ def register_converter_cb(key): The specifier for vertical alignment of sparsified LaTeX multirows. """ -styler_mu...
- [x] closes #43471 no whats new since this is a new feature for 1.4.0 anyway.
https://api.github.com/repos/pandas-dev/pandas/pulls/43656
2021-09-19T07:26:18Z
2021-09-21T14:09:54Z
2021-09-21T14:09:53Z
2021-09-21T16:16:29Z
PERF: sparse take
diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index 32baec25bef2d..ff1c4c92fe551 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -180,4 +180,19 @@ def time_min_max(self, func, fill_value): getattr(self.sp_arr, func)() +class Take: + + pa...
This helps some on #41023 because `__getitem__` uses `take` internally for `SparseArray`. However, the big gain there can follow after this to move towards not densifying on `__getitem__` with a slice Benchmarks: ``` before after ratio [e7e7b407] [4de1fe27] <master> ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43654
2021-09-19T03:02:14Z
2021-09-21T14:08:48Z
2021-09-21T14:08:48Z
2021-09-21T16:51:15Z
REF: ExtensionIndex.searchsorted -> IndexOpsMixin.searchsorted
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 1d8e3093713f0..8a1688948a3c9 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -96,6 +96,7 @@ ) from pandas.core.arrays import ( DatetimeArray, + ExtensionArray, TimedeltaArray, ) @...
Perf-neutral on the case that motivated implementing ExtensionIndex.searchsorted (#38083)
https://api.github.com/repos/pandas-dev/pandas/pulls/43653
2021-09-19T01:18:48Z
2021-09-29T13:11:21Z
2021-09-29T13:11:21Z
2021-09-29T16:39:56Z
REF: remove JoinUnit.shape
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 991e4bbf4fbdb..f98cda57cb9c2 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -212,6 +212,8 @@ def concatenate_managers( for placement, join_units in concat_plan: unit = join_units[0] ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43651
2021-09-18T21:31:25Z
2022-03-07T13:46:00Z
2022-03-07T13:46:00Z
2022-03-07T16:26:45Z
BUG: styler multiindex hiding indexes and columns alignment
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index d6ad5eb2003ce..aeaa91a4d8517 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -81,6 +81,7 @@ Styler - Naive sparsification is now possible for LaTeX without the multirow package (:issue:`43369`) -...
#### Follows #43686 - [x] closes #43637 - [x] closes #43644 - [x] closes #43703 - [x] tests added / passed - [x] whatsnew entry (note part of the bug seems to have been created by hiding `levels` which is a new feature in 1.4.0). This PR has two parts: 1) Addressing the bug fixes as per above. The key ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43649
2021-09-18T20:45:11Z
2021-10-18T23:15:56Z
2021-10-18T23:15:55Z
2021-10-19T05:31:54Z
BUG: REGR: read_csv with memory_map=True raises UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 262143: unexpected end of data
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index 87b08fae52c15..6212f2c6f3399 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed performance regression in :meth:`MultiIndex.equals` (:issue:`43549`) - Fixed regr...
- [x ] closes #43540 - [x ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43647
2021-09-18T19:29:29Z
2021-09-21T21:37:42Z
2021-09-21T21:37:42Z
2021-09-22T17:14:09Z
Backport PR #43641 on branch 1.3.x (DOC: minor fixup of 1.3.4 release notes)
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index daefa9dc618f5..87b08fae52c15 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -15,7 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`merge...
Backport PR #43641: DOC: minor fixup of 1.3.4 release notes
https://api.github.com/repos/pandas-dev/pandas/pulls/43646
2021-09-18T19:26:42Z
2021-09-18T20:51:05Z
2021-09-18T20:51:05Z
2021-09-18T20:51:05Z
CI: azure timeouts
diff --git a/pandas/tests/io/parser/common/test_index.py b/pandas/tests/io/parser/common/test_index.py index a37bd010d0e1b..9db1df345404b 100644 --- a/pandas/tests/io/parser/common/test_index.py +++ b/pandas/tests/io/parser/common/test_index.py @@ -17,6 +17,10 @@ xfail_pyarrow = pytest.mark.usefixtures("pyarrow_xfai...
Based on the logging in #43611, in both timeout cases, the last test `gw0` ran was before the hypothesis test in `test_parse_dates` (this is a giant test - 56 parameterizations, hypothesis does 100 examples by default). Not sure why this would be the cause, couldn't find any issues about it that might explain a dead...
https://api.github.com/repos/pandas-dev/pandas/pulls/43643
2021-09-18T17:40:12Z
2021-09-21T12:46:35Z
2021-09-21T12:46:35Z
2021-09-21T16:51:33Z
CLN: Python Parser code
diff --git a/pandas/_libs/parsers.pyi b/pandas/_libs/parsers.pyi index 9e3c163fb54d9..01f5d5802ccd5 100644 --- a/pandas/_libs/parsers.pyi +++ b/pandas/_libs/parsers.pyi @@ -16,7 +16,6 @@ STR_NA_VALUES: set[str] def sanitize_objects( values: npt.NDArray[np.object_], na_values: set, - convert_empty: bool = ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43642
2021-09-18T16:26:11Z
2021-11-04T20:35:18Z
null
2021-11-04T20:35:27Z
DOC: minor fixup of 1.3.4 release notes
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index daefa9dc618f5..87b08fae52c15 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -15,7 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`merge...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/43641
2021-09-18T15:01:51Z
2021-09-18T19:26:18Z
2021-09-18T19:26:18Z
2021-09-20T09:20:03Z
backport 43638: BUG: styler to_latex doesnt respect hide_index
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index e56e481355ac2..708609e956da4 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -28,6 +28,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`.GroupBy.mean` with datetimelike values includ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/43640
2021-09-18T15:01:11Z
2021-09-23T16:39:33Z
null
2021-09-23T16:40:32Z
backport 43638: bug: styler to_latex doesnt respect hide_index
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000000..777c2548ab589 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,21 @@ +version: 2.1 + +jobs: + test-arm: + machine: + image: ubuntu-2004:202101-01 + resource_class: arm.medium + environment: + ...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/43639
2021-09-18T14:58:56Z
2021-09-18T14:59:51Z
null
2021-09-23T16:40:43Z
wip: BUG: styler hide index fails for latex translate
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index daefa9dc618f5..726ea426e9e08 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -28,6 +28,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Fixed bug in :meth:`.GroupBy.mean` with datetimelike values includ...
- [x] closes #43637 - [x] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43638
2021-09-18T14:49:57Z
2021-09-23T16:38:32Z
null
2021-09-23T16:40:52Z
DOC: sync 1.3.4 release notes on 1.3.x with master
diff --git a/doc/source/whatsnew/v1.3.4.rst b/doc/source/whatsnew/v1.3.4.rst index e56e481355ac2..daefa9dc618f5 100644 --- a/doc/source/whatsnew/v1.3.4.rst +++ b/doc/source/whatsnew/v1.3.4.rst @@ -15,10 +15,10 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression in :meth:`mer...
This is directly against 1.3.x branch so no backport required.
https://api.github.com/repos/pandas-dev/pandas/pulls/43636
2021-09-18T14:00:21Z
2021-09-18T14:59:07Z
2021-09-18T14:59:07Z
2021-09-18T14:59:12Z
WIP: DEPR: remove methods deprecated in 1.3.0 `Styler`
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 2fbd9506e391a..b3313d6fbe0ca 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -220,8 +220,6 @@ def __init__( formatter = formatter or get_option("styler.format.formatter") # precision is handled by su...
removing methods from `Styler` for 1.4.0 that were deprecated as of 1.3.0.
https://api.github.com/repos/pandas-dev/pandas/pulls/43635
2021-09-18T12:25:21Z
2021-10-19T12:56:19Z
null
2021-10-19T12:56:19Z
PERF: groupby with string dtype
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index e41f185e08443..86322661a4e8a 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -603,6 +603,38 @@ def time_sum(self): self.df.groupby(["a"])["b"].sum() +class String: + # GH#41596 + ...
- [x] closes #41596 - [ ] tests added / passed - [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them - [x] whatsnew entry ```python In [1]: import numpy as np ...: ...: import pandas as pd ...: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43634
2021-09-18T09:24:34Z
2021-09-23T16:22:27Z
2021-09-23T16:22:27Z
2021-09-24T11:32:45Z
DOC: Update Matplotlib Colormaps documentation link in chart visualization #43624
diff --git a/doc/source/user_guide/visualization.rst b/doc/source/user_guide/visualization.rst index 4a4c3624aa614..fd0af7583f5dc 100644 --- a/doc/source/user_guide/visualization.rst +++ b/doc/source/user_guide/visualization.rst @@ -1651,7 +1651,7 @@ remedy this, ``DataFrame`` plotting supports the use of the ``colorma...
- [x] closes #43624 Fixes: Fixed a chart visualization coiormap section link that linked to an outdated version of matplotlib. Now links to a [stable version](https://matplotlib.org/stable/gallery/color/colormap_reference.html#sphx-glr-gallery-color-colormap-reference-py).
https://api.github.com/repos/pandas-dev/pandas/pulls/43633
2021-09-18T08:06:59Z
2021-09-29T13:30:54Z
2021-09-29T13:30:54Z
2021-09-29T21:18:23Z