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: kw `names` to `Styler.hide_index`
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 4fc13fd54df02..9e0769f22e102 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -1114,6 +1114,8 @@ def _copy(self, deepcopy: bool = False) -> Styler: shallow = [ # simple string or boolean immutables ...
adds an item to #41649 and #41693 Im ambiguous about this feature but for better compatability when refactoring `DataFrame.to_html` and `DataFrame.to_latex` to use `Styler` it is needed. ![Screen Shot 2021-09-01 at 19 18 49](https://user-images.githubusercontent.com/24256554/131715321-34925946-f42c-4c79-ae9e-e07f...
https://api.github.com/repos/pandas-dev/pandas/pulls/43346
2021-09-01T17:19:37Z
2021-09-01T18:30:27Z
2021-09-01T18:30:27Z
2021-09-01T21:51:04Z
BUG: styler initialise precision=0
diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index f51a1f5d9809d..8eef89f3cb28a 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -108,7 +108,9 @@ def __init__( self.cell_context: DefaultDict[tuple[int, int], str] = defaultdict(str) ...
- [x] closes #43342 no whats new needed since this was a recent change for 1.4.0
https://api.github.com/repos/pandas-dev/pandas/pulls/43343
2021-09-01T13:48:56Z
2021-09-01T18:09:21Z
2021-09-01T18:09:21Z
2021-09-01T18:10:56Z
BUG: styler.format options and validator tests
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index f594232f5fb6d..83e5f890ff3c7 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -10,6 +10,7 @@ """ import os +from typing import Callable import warnings import pandas._config.config as cf @@ -879,7 +880,7 @@ def...
sorry, this is a fix for recent #43256. the input types were not working using the instance factory approach so this is explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/43341
2021-09-01T09:09:37Z
2021-09-06T15:50:04Z
2021-09-06T15:50:03Z
2021-09-07T15:47:13Z
ENH: Rolling rank
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 97294fc02834b..3d2273b6d7324 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -180,6 +180,33 @@ def time_quantile(self, constructor, window, dtype, percentile, interpolation): self.roll.qua...
xref https://github.com/pandas-dev/pandas/issues/9481 - [x] closes #9481 - [x] 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/43338
2021-08-31T23:10:54Z
2021-09-14T13:07:58Z
2021-09-14T13:07:58Z
2021-09-14T13:08:26Z
PERF: unstack
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 9a3f8920f8e9b..1eea41c97707d 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1653,12 +1653,9 @@ def _unstack(self, unstacker, fill_value, new_placement, allow_fill: bool): # converting to...
``` from asv_bench.benchmarks.reshape import * self = ReshapeExtensionDtype() self.setup("Period[s]") %timeit self.time_unstack_fast('Period[s]') 9.23 ms ± 357 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master 5.19 ms ± 106 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR `...
https://api.github.com/repos/pandas-dev/pandas/pulls/43335
2021-08-31T21:16:46Z
2021-09-02T23:18:54Z
2021-09-02T23:18:54Z
2021-09-02T23:23:39Z
PERF: read_sas
diff --git a/pandas/io/sas/sas7bdat.py b/pandas/io/sas/sas7bdat.py index fb121d3aed105..300df9728cd75 100644 --- a/pandas/io/sas/sas7bdat.py +++ b/pandas/io/sas/sas7bdat.py @@ -789,7 +789,7 @@ def _chunk_to_dataframe(self) -> DataFrame: n = self._current_row_in_chunk_index m = self._current_row_in_fil...
``` from asv_bench.benchmarks.io.sas import * self8 = SAS() self8.setup("sas7bdat") %timeit self8.time_read_sas("sas7bdat") 41.6 ms ± 1.77 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- master 22.7 ms ± 1.04 ms per loop (mean ± std. dev. of 7 runs, 10 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43333
2021-08-31T18:47:51Z
2021-09-01T15:50:16Z
2021-09-01T15:50:16Z
2021-09-01T15:56:50Z
PERF: merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 501ad383168a0..ebd7369607cc5 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -748,7 +748,7 @@ def _maybe_drop_cross_column( self, result: DataFrame, cross_col: str | None ) -> None: if c...
``` from asv_bench.benchmarks.join_merge import * self6 = Merge() self6.setup(False) %timeit self6.time_merge_dataframes_cross(False) 535 ms ± 4.25 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master 242 ms ± 5.98 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- PR self6.setup(Tru...
https://api.github.com/repos/pandas-dev/pandas/pulls/43332
2021-08-31T18:07:18Z
2021-08-31T19:37:14Z
2021-08-31T19:37:14Z
2021-08-31T20:36:43Z
add Series.str.remove(pre|suf)fix
diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 3ff3b2bb53fda..a60dab549e66d 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -427,6 +427,8 @@ strings and apply several methods to it. These can be accessed like Series.str.normalize Series...
- [x] closes #36944 - [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 Based on work in https://github.com/pandas-dev/pandas/pull/39226
https://api.github.com/repos/pandas-dev/pandas/pulls/43328
2021-08-31T12:24:44Z
2021-09-06T19:45:57Z
2021-09-06T19:45:57Z
2021-09-06T19:46:19Z
BUG: styler index and empty df
diff --git a/doc/source/whatsnew/v1.4.0.rst b/doc/source/whatsnew/v1.4.0.rst index be647e344f270..b28b4a663ba54 100644 --- a/doc/source/whatsnew/v1.4.0.rst +++ b/doc/source/whatsnew/v1.4.0.rst @@ -381,7 +381,7 @@ Styler - Bug in :meth:`.Styler.to_html` where the ``Styler`` object was updated if the ``to_html`` method ...
- [x] closes #43305 - [x] tests added / passed - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/43327
2021-08-31T12:13:43Z
2021-08-31T14:59:10Z
2021-08-31T14:59:09Z
2021-08-31T15:45:01Z
REF: `Styler.export`
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 440cb85d1d6a6..5fe619c749d42 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -1380,8 +1380,12 @@ "metadata": {}, "outputs": [], "source": [ - "style1 = df2.style.applymap(sty...
- [x] closes #40675 - [x] tests added / passed - [x] whatsnew entry Finishes a series of PRs for the tracker
https://api.github.com/repos/pandas-dev/pandas/pulls/43318
2021-08-31T05:07:44Z
2021-10-23T12:19:57Z
2021-10-23T12:19:56Z
2021-10-23T12:20:00Z
BENCH: tighter targeting on ChainedIndexing benchmark
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 75ef8a276da5e..58f2a73d82842 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -399,12 +399,14 @@ class ChainIndexing: def setup(self, mode): self.N = 1000000 + self.df = D...
ATM almost half of the benchmark runtime is in the DataFrame constructor.
https://api.github.com/repos/pandas-dev/pandas/pulls/43317
2021-08-31T04:29:59Z
2021-08-31T15:44:12Z
2021-08-31T15:44:12Z
2021-08-31T15:58:32Z
PERF: DataFrame[object].fillna
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 88183a4571327..3b31e1b2997c6 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1084,6 +1084,23 @@ def interpolate( # If there are no NAs, then interpolate is a no-op return...
``` from asv_bench.benchmarks.frame_methods import * self5 = Fillna() self5.setup(False, 'pad', 'object') %timeit self5.time_frame_fillna(False, 'pad', 'object') 191 ms ± 5.41 ms per loop (mean ± std. dev. of 7 runs, 1 loop each) # <- master 127 ms ± 5.03 ms per loop (mean ± std. dev. of 7 runs, 10 loops eac...
https://api.github.com/repos/pandas-dev/pandas/pulls/43316
2021-08-31T01:29:17Z
2021-09-02T23:55:01Z
2021-09-02T23:55:01Z
2021-09-03T01:13:35Z
BUG: Fix some parse dates tests for the Arrow CSV reader
diff --git a/pandas/io/parsers/base_parser.py b/pandas/io/parsers/base_parser.py index 6737f2dfd5086..30ee47862502e 100644 --- a/pandas/io/parsers/base_parser.py +++ b/pandas/io/parsers/base_parser.py @@ -1090,7 +1090,9 @@ def _isindex(colspec): colspec = orig_names[colspec] if _is...
- [ ] 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 Fixes around 21 tests. This fix was left out of the original PR in the interest of keeping ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43312
2021-08-30T21:00:27Z
2021-09-03T00:01:07Z
2021-09-03T00:01:07Z
2021-09-05T18:07:53Z
PERF: nanops
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index a80bd8ba76dac..5d96e9bb6cd19 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -449,6 +449,35 @@ def _na_for_min_count(values: np.ndarray, axis: int | None) -> Scalar | np.ndarr return np.full(result_shape, fill_value, dtype=value...
``` from asv_bench.benchmarks.stat_ops import * self = FrameOps() self.setup("skew", "float", 0) %timeit self.time_op("skew", "float", 0) 3.22 ms ± 235 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- master 2.06 ms ± 71.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) # <- PR %timei...
https://api.github.com/repos/pandas-dev/pandas/pulls/43311
2021-08-30T20:49:49Z
2021-08-31T18:31:30Z
2021-08-31T18:31:30Z
2021-11-21T20:50:47Z
PERF: GroupBy.cumsum
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index d1dc2aa7bd43f..2c73fe5a8b5bc 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -526,7 +526,13 @@ def get_numeric_data(self: T, copy: bool = False) -> T: copy : bool, default False ...
``` from asv_bench.benchmarks.groupby import * self = GroupByMethods() self.setup('int', 'cumsum', 'transformation', 2) %timeit self.time_dtype_as_group('int', 'cumsum', 'transformation', 2) 128 µs ± 7.81 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 99.7 µs ± 1.13 µs per loop (mean ± ...
https://api.github.com/repos/pandas-dev/pandas/pulls/43309
2021-08-30T20:30:04Z
2021-08-30T21:45:33Z
2021-08-30T21:45:33Z
2021-08-30T21:54:38Z
PERF: setting PeriodDtype column
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index a214371bdf26e..bf1f5d37f07dc 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -936,7 +936,18 @@ def __eq__(self, other: Any) -> bool: if isinstance(other, str): return other in [self.name,...
``` from asv_bench.benchmarks.period import * self = DataFramePeriodColumn() self.setup() %timeit self.time_setitem_period_column() 59.8 µs ± 2.19 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 33 µs ± 933 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43308
2021-08-30T20:16:05Z
2021-08-30T23:28:30Z
2021-08-30T23:28:30Z
2021-08-30T23:47:42Z
PERF: DataFrame(ndarray)
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 86834a8dccf40..63d84ab39fa96 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -386,7 +386,9 @@ def ndarray_to_mgr( if len(columns) == 0: block_values = [] - ...
``` from asv_bench.benchmarks.frame_ctor import * self = FromNDArray() self.setup() %timeit self.time_frame_from_ndarray() 37.9 µs ± 1.17 µs per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- master 29.8 µs ± 549 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) # <- PR ```
https://api.github.com/repos/pandas-dev/pandas/pulls/43307
2021-08-30T18:34:41Z
2021-08-30T19:36:39Z
2021-08-30T19:36:39Z
2021-08-30T19:40:13Z
CLN: remove trailing commas
diff --git a/pandas/tests/groupby/transform/test_numba.py b/pandas/tests/groupby/transform/test_numba.py index fcaa5ab13599a..3a184bdd007c7 100644 --- a/pandas/tests/groupby/transform/test_numba.py +++ b/pandas/tests/groupby/transform/test_numba.py @@ -131,7 +131,7 @@ def func_1(values, index): @td.skip_if_no("numba...
#35925 Checked the following file to make sure they are ready for black : - pandas/tests/groupby/transform/test_numba.py CC @MarcoGorelli
https://api.github.com/repos/pandas-dev/pandas/pulls/36441
2020-09-18T04:10:34Z
2020-09-18T06:55:30Z
2020-09-18T06:55:30Z
2020-09-18T08:06:31Z
REGR: Series[numeric] comparison with str raising on numexpr path
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 3f8413bd492ca..1d386fa372ce1 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -34,7 +34,7 @@ Fixed regressions - Fixed regression in :meth:`Series.__getitem__` incorrectly raising when the input was a ...
- [x] closes #36377, closes #35700 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36440
2020-09-18T03:57:06Z
2020-09-18T21:55:07Z
2020-09-18T21:55:06Z
2020-09-19T08:12:40Z
REF: share insert between DTI/TDI/PI
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 122977eee99fb..1ab40a76b30ff 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -575,6 +575,50 @@ def delete(self, loc): arr = type(self._data)._simple_new(new_i8s, dtype=self...
https://api.github.com/repos/pandas-dev/pandas/pulls/36439
2020-09-18T02:25:08Z
2020-09-18T13:05:10Z
2020-09-18T13:05:09Z
2020-09-18T14:24:39Z
REF: collect IntervalArray methods by topic
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index a5b91afac338d..026aad5ad6eb7 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -67,6 +67,15 @@ DTScalarOrNaT = Union[DatetimeLikeScalar, NaTType] +class InvalidComparison(Exception):...
cosmetic edits I find myself tempted to do on a bunch of branches
https://api.github.com/repos/pandas-dev/pandas/pulls/36438
2020-09-18T00:50:43Z
2020-09-18T13:01:35Z
2020-09-18T13:01:35Z
2020-09-18T14:27:30Z
DOC: read_excel skiprows documentation matches read_csv (#36435)
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 45da2d7d28fab..604b7e12ec243 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -120,8 +120,12 @@ Values to consider as True. false_values : list, default None Values to consider as False. -skiprows : list-like - R...
- [x] closes #36435 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Updated `read_excel` documentation to match `read_csv` for the `skiprows` parameter. Changed `test_read_excel_skiprows_list` to `test_read_excel_s...
https://api.github.com/repos/pandas-dev/pandas/pulls/36437
2020-09-18T00:08:52Z
2020-09-18T12:50:06Z
2020-09-18T12:50:06Z
2020-09-18T14:02:19Z
REF: pandas/io/formats/format.py
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 77f2a53fc7fab..7eb31daa894c9 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -10,6 +10,7 @@ from functools import partial from io import StringIO import math +from operator import itemgetter import re from sh...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Partially addresses https://github.com/pandas-dev/pandas/issues/36407 Before splitting ``DataFrameFormatter`` into more dedicated classes, I decid...
https://api.github.com/repos/pandas-dev/pandas/pulls/36434
2020-09-17T19:34:09Z
2020-09-19T22:05:38Z
2020-09-19T22:05:37Z
2020-09-25T19:10:18Z
[DOC]: Add warning about rolling sums with large values
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index 151ef36be7c98..10e27606a1415 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -229,6 +229,15 @@ see the :ref:`groupby docs <groupby.transform.window_resample>`. The API...
- [x] closes #11645 - [x] closes #28244 (probably closes that one too) - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added a warning within the user guide.
https://api.github.com/repos/pandas-dev/pandas/pulls/36433
2020-09-17T18:53:37Z
2020-09-18T21:59:25Z
2020-09-18T21:59:24Z
2020-09-18T22:11:36Z
PERF: construct DataFrame with string array and dtype=str
diff --git a/asv_bench/benchmarks/strings.py b/asv_bench/benchmarks/strings.py index 2023858181baa..d8b35abb94b9d 100644 --- a/asv_bench/benchmarks/strings.py +++ b/asv_bench/benchmarks/strings.py @@ -13,13 +13,20 @@ class Construction: param_names = ["dtype"] def setup(self, dtype): - self.data = tm...
Avoid inefficient call to `arr.astype()` when dtype is `str`, and use ensure_string_array instead. Performance example: ```python >>> x = np.array([str(u) for u in range(1_000_000)], dtype=object).reshape(500_000, 2) >>> %timeit pd.DataFrame(x, dtype=str) 391 ms ± 17.7 ms per loop # master 11.9 ms ± 131 µs p...
https://api.github.com/repos/pandas-dev/pandas/pulls/36432
2020-09-17T18:06:58Z
2020-09-19T19:54:17Z
2020-09-19T19:54:17Z
2020-09-19T20:06:51Z
BUG: get_indexer returned dtype
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8b18b56929acd..4241e2266fd8b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -290,6 +290,7 @@ Indexing - Bug in :meth:`PeriodIndex.get_loc` incorrectly raising ``ValueError`` on non-datelike strings...
- [x] closes #36359 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Changed the return dtype of IndexEngine’s `get_indexer()` and `get_indexer_non_unique()`. I decided to not include tests because dtypes are already ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36431
2020-09-17T16:35:37Z
2020-09-19T19:56:06Z
2020-09-19T19:56:05Z
2020-09-19T20:24:21Z
Update isort version in pre-commit config
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 78e28aad5865b..309e22e71a523 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,7 +25,7 @@ repos: - file args: [--append-config=flake8/cython-template.cfg] - repo: https://github.com/pre-commit/mirrors-iso...
Previously, a mismatch between the isort versions specified by pre-commit and by the files used on CI made it impossible to make a commit which passed both pre-commit and CI lints. See #36426 . This is not a complete solution as the flake8 version differences are intentional and hopefully temporary (see https://gi...
https://api.github.com/repos/pandas-dev/pandas/pulls/36428
2020-09-17T14:06:12Z
2020-09-17T16:34:11Z
2020-09-17T16:34:11Z
2020-09-17T16:34:16Z
DOC: Fix typo in docstring 'handler' --> 'handle'
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index 46327daac2e43..45da2d7d28fab 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -50,7 +50,7 @@ If you want to pass in a path object, pandas accepts any ``os.PathLike``. By file-like object, we refer to objects with a...
https://api.github.com/repos/pandas-dev/pandas/pulls/36427
2020-09-17T13:46:49Z
2020-09-17T21:20:06Z
2020-09-17T21:20:06Z
2020-09-17T21:20:13Z
DEPR: Index.to_native_types
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6436b2eceb33f..c6bb6f628efda 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -212,6 +212,7 @@ Deprecations - Deprecated parameter ``dtype`` in :~meth:`Index.copy` on method all index classes. Use the ...
Closes #28867
https://api.github.com/repos/pandas-dev/pandas/pulls/36418
2020-09-17T06:46:25Z
2020-09-19T02:13:31Z
2020-09-19T02:13:31Z
2020-09-19T07:38:07Z
REF: use BlockManager.to_native_types in formatting code
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 3f446874ffd0e..865412f159ea1 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -631,6 +631,13 @@ def replace_list( bm._consolidate_inplace() return bm + def to_native_t...
Small follow-up on https://github.com/pandas-dev/pandas/pull/36150
https://api.github.com/repos/pandas-dev/pandas/pulls/36417
2020-09-17T06:21:39Z
2020-09-17T16:07:49Z
2020-09-17T16:07:49Z
2020-09-17T18:40:47Z
REF: re-use _maybe_promote for _is_convertible_to_index_for_join
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 5ba5732c710f7..dc427495b6cb1 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -865,11 +865,11 @@ def join( """ See Index.join """ - if self._is_conv...
https://api.github.com/repos/pandas-dev/pandas/pulls/36416
2020-09-17T04:05:15Z
2020-09-17T16:08:30Z
2020-09-17T16:08:30Z
2020-09-17T17:07:09Z
REF: re-use validate_listlike for _convert_arr_indexer
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 5ba5732c710f7..de9f5b178c650 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -8,7 +8,6 @@ from pandas._libs import NaT, Timedelta, iNaT, join as libjoin, lib from pandas._libs.t...
https://api.github.com/repos/pandas-dev/pandas/pulls/36415
2020-09-17T04:04:58Z
2020-09-17T16:06:48Z
2020-09-17T16:06:48Z
2020-09-17T16:54:33Z
REF: _validate_foo pattern for IntervalArray
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 436a7dd062c4a..028472ad93e52 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -640,17 +640,10 @@ def fillna(self, value=None, method=None, limit=None): if limit is not None: raise ...
Makes clear that these have very similar logic, can be shared after a few tweaks.
https://api.github.com/repos/pandas-dev/pandas/pulls/36414
2020-09-17T03:32:13Z
2020-09-17T16:10:35Z
2020-09-17T16:10:35Z
2020-09-17T16:52:21Z
fix inconsistent index naming with union/intersect #35847
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index da16aaf5b3a56..eeac0ed4837dd 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -154,6 +154,14 @@ functionality below. frames = [ process_your_file(f) for f in files ] result = pd.conc...
- [X] closes #35847 - [X] tests added / passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This takes care of some inconsistency in how names are handled by `Index` functions `union` and `intersection`, as discussed in #35847. I believe th...
https://api.github.com/repos/pandas-dev/pandas/pulls/36413
2020-09-17T03:12:58Z
2020-10-07T11:33:29Z
2020-10-07T11:33:29Z
2020-10-07T18:46:01Z
Bump flake8 version in pre-commit-config.yaml
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fcd0ecdc9fcd2..78e28aad5865b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: - id: black language_version: python3 - repo: https://gitlab.com/pycqa/flake8 - rev: 3.7.7 + rev: 3.8.3 ...
The flake8 version used in pre-commit-config.yaml seems to emit spurious errors when there are mypy comments for ignoring specific kinds of type errors. Bumping to the latest version of flake8 seems to fix this. ``` flake8...................................................................Failed - hook id: flake8 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36412
2020-09-17T03:11:47Z
2020-09-17T08:11:01Z
2020-09-17T08:11:01Z
2020-09-17T12:13:21Z
BUG: Concat typing
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index dd4bcf77641ef..a07c7b49ac55b 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -31,6 +31,7 @@ if TYPE_CHECKING: from pandas import DataFrame + from pandas.core.generic import NDFrame # --------...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @simonjayhawkins Attempting to add typing to results in aggregation.transform. Here, the obj can be a Series but the list passed into concat c...
https://api.github.com/repos/pandas-dev/pandas/pulls/36409
2020-09-16T23:08:20Z
2020-09-19T00:56:48Z
2020-09-19T00:56:48Z
2020-09-19T11:37:54Z
CLN: Clean series/test_arithmetic.py
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index a420a1f7d6bca..8fad6ee1cca8b 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -260,73 +260,59 @@ def test_sub_datetimelike_align(self): class TestSeriesFlexCompariso...
https://api.github.com/repos/pandas-dev/pandas/pulls/36406
2020-09-16T20:01:22Z
2020-09-17T16:36:46Z
2020-09-17T16:36:46Z
2020-09-17T16:39:49Z
BUG: Categorical.sort_values inplace breaking views
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 25073282ec0f6..ba7534082d0d6 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1541,7 +1541,7 @@ def sort_values( sorted_idx = nargsort(self, ascending=ascending, na_position=na_pos...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36404
2020-09-16T19:37:25Z
2020-09-17T16:38:35Z
2020-09-17T16:38:34Z
2020-09-17T17:06:36Z
BLD/CI fix arm64 build #36397
diff --git a/.travis.yml b/.travis.yml index 93c8238bb5059..a38e90bbce8ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,7 +42,7 @@ matrix: - arch: arm64 env: - - JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)" + ...
- [x] closes #36397 and closes #34149 and closes #30041
https://api.github.com/repos/pandas-dev/pandas/pulls/36403
2020-09-16T18:22:07Z
2020-09-17T23:11:44Z
2020-09-17T23:11:43Z
2020-12-22T19:02:35Z
BLD/CI: support for 3.9
diff --git a/.travis.yml b/.travis.yml index b016cf386098e..1e5ea21b0f2d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,9 +62,6 @@ matrix: - arch: arm64 env: - JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)" - -...
backport #36393 to 1.1.x
https://api.github.com/repos/pandas-dev/pandas/pulls/36402
2020-09-16T17:27:27Z
2020-09-18T21:58:01Z
2020-09-18T21:58:01Z
2022-11-18T02:21:07Z
TYP: alias IndexLabel without Optional
diff --git a/pandas/_typing.py b/pandas/_typing.py index 7aef5c02e290f..16d81c0d39cbe 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -83,7 +83,7 @@ Axis = Union[str, int] Label = Optional[Hashable] -IndexLabel = Optional[Union[Label, Sequence[Label]]] +IndexLabel = Union[Label, Sequence[Label]] Level = ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Previously in ``_typing.py`` we had the alias ``IndexLabel``, which contained ``Optional``. The present PR eliminates ``Optional`` from the alias, b...
https://api.github.com/repos/pandas-dev/pandas/pulls/36401
2020-09-16T17:12:58Z
2020-09-17T16:39:10Z
2020-09-17T16:39:10Z
2020-12-03T07:52:52Z
REF: implement putmask for CI/DTI/TDI/PI
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 25073282ec0f6..418140c82da08 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1171,6 +1171,11 @@ def map(self, mapper): # ------------------------------------------------------------- ...
Avoids casting to ndarray which in some cases means an object-dtype cast.
https://api.github.com/repos/pandas-dev/pandas/pulls/36400
2020-09-16T16:34:35Z
2020-09-17T16:40:49Z
2020-09-17T16:40:49Z
2020-09-17T23:20:00Z
CLN: remove trailing commas for black update
diff --git a/pandas/tests/arrays/integer/test_arithmetic.py b/pandas/tests/arrays/integer/test_arithmetic.py index f549a7caeab1d..cf382dd5e37e0 100644 --- a/pandas/tests/arrays/integer/test_arithmetic.py +++ b/pandas/tests/arrays/integer/test_arithmetic.py @@ -279,9 +279,7 @@ def test_unary_minus_nullable_int(any_signe...
Working on: CLN remove unnecessary trailing commas to get ready for new version of black #35925. Checked the following files to make sure they are ready for black : pandas/tests/scalar/timestamp/test_arithmetic.py pandas/tests/scalar/timestamp/test_constructors.py pandas/tests/series/methods/test_argsort.py pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/36399
2020-09-16T16:32:48Z
2020-09-16T17:59:18Z
2020-09-16T17:59:18Z
2020-09-16T17:59:27Z
Backport PR #36378: DOC: move release note for #36175 (pt1)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 7f5340b7022ce..7efffffcf9d32 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -18,7 +18,7 @@ Fixed regressions - Fixed regression in :class:`IntegerArray` unary plus and minus operations raising a ``Ty...
#36378
https://api.github.com/repos/pandas-dev/pandas/pulls/36398
2020-09-16T15:30:46Z
2020-09-18T15:30:54Z
2020-09-18T15:30:54Z
2020-09-18T15:31:05Z
Backport PR #36371 on branch 1.1.x (BUG: Fix MultiIndex column stacking with dupe names)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 7f5340b7022ce..0ffa86def4376 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -30,6 +30,7 @@ Bug fixes - Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``path`` would raise a ``TypeError`...
Backport PR #36371: BUG: Fix MultiIndex column stacking with dupe names
https://api.github.com/repos/pandas-dev/pandas/pulls/36396
2020-09-16T09:53:39Z
2020-09-19T10:18:19Z
2020-09-19T10:18:19Z
2020-09-19T10:18:19Z
CLN: remove unnecessary _convert_index_indexer
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 15944565cb254..2eed73d11ba74 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3252,7 +3252,7 @@ def _convert_listlike_indexer(self, keyarr): Return tuple-safe keys. """ if isinstance...
https://api.github.com/repos/pandas-dev/pandas/pulls/36394
2020-09-16T02:55:20Z
2020-09-17T16:47:21Z
2020-09-17T16:47:21Z
2020-09-17T16:51:05Z
BLD/CI: fix py39 ci #36296
diff --git a/.travis.yml b/.travis.yml index 2e98cf47aea3e..93c8238bb5059 100644 --- a/.travis.yml +++ b/.travis.yml @@ -62,9 +62,6 @@ matrix: - arch: arm64 env: - JOB="3.7, arm64" PYTEST_WORKERS=8 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard)" - -...
closes #36296 Need #36298 first.
https://api.github.com/repos/pandas-dev/pandas/pulls/36393
2020-09-16T01:12:16Z
2020-09-16T15:06:58Z
2020-09-16T15:06:57Z
2020-09-23T19:39:34Z
REF: share __getitem__ for Categorical/PandasArray/DTA/TDA/PA
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index 284dd31ffcb59..a947ab64f7380 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -2,6 +2,7 @@ import numpy as np +from pandas._libs import lib from pandas.compat.numpy import function as nv from pandas....
https://api.github.com/repos/pandas-dev/pandas/pulls/36391
2020-09-15T21:54:39Z
2020-09-17T16:46:12Z
2020-09-17T16:46:12Z
2020-09-17T16:51:50Z
CLN: Clean test_arithmetic.py
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index c937e357b9dbc..a420a1f7d6bca 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -271,7 +271,6 @@ def test_comparison_flex_basic(self): tm.assert_series_equal(left....
General cleaning (i.e., replacing for loops) trying to make these easier to follow / debug
https://api.github.com/repos/pandas-dev/pandas/pulls/36390
2020-09-15T21:38:34Z
2020-09-15T23:08:23Z
2020-09-15T23:08:23Z
2020-09-15T23:25:07Z
[TST]: Groupby raised error with duplicate column names
diff --git a/pandas/tests/groupby/test_groupby.py b/pandas/tests/groupby/test_groupby.py index 313b0ea2434f9..1bb40b322cd48 100644 --- a/pandas/tests/groupby/test_groupby.py +++ b/pandas/tests/groupby/test_groupby.py @@ -2126,3 +2126,14 @@ def test_groupby_column_index_name_lost(func): df_grouped = df.groupby([1])...
- [x] closes #31735 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added a test to avoid regression
https://api.github.com/repos/pandas-dev/pandas/pulls/36389
2020-09-15T20:41:42Z
2020-09-15T22:33:48Z
2020-09-15T22:33:48Z
2020-09-16T11:58:56Z
BUG: Always cast to Categorical in lexsort_indexer
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8ead78a17e9c2..2cf93667354d0 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -29,6 +29,7 @@ Bug fixes - Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``path`` would raise a ``TypeError`...
- [x] closes #36383 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36385
2020-09-15T16:06:37Z
2020-09-17T02:31:09Z
2020-09-17T02:31:09Z
2020-09-19T19:39:03Z
REF: _is_compatible_with_other -> _can_union_without_object_cast
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6923b42d3340b..33a5b016a293f 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -367,7 +367,7 @@ Other - Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly raising ``AssertionError``...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Changes the behavior in one test where ATM we behave differently for Series/ndarray than we do for Index arg
https://api.github.com/repos/pandas-dev/pandas/pulls/36384
2020-09-15T15:07:29Z
2020-09-18T22:18:03Z
2020-09-18T22:18:03Z
2020-09-18T23:18:17Z
ADMIN: Update stale PR action
diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml index 0cbe4b7dd4582..a6aece34478d9 100644 --- a/.github/workflows/stale-pr.yml +++ b/.github/workflows/stale-pr.yml @@ -12,9 +12,9 @@ jobs: with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-pr-message: "This pull req...
I think also that it could be good to skip the PR message for when debugging is turned off and only label / manually review the labeled PRs to start (until we're comfortable with the tagging logic and message)
https://api.github.com/repos/pandas-dev/pandas/pulls/36382
2020-09-15T12:13:44Z
2020-09-17T22:03:04Z
2020-09-17T22:03:04Z
2020-09-17T22:03:07Z
DOC: move release note for #36175 (pt2)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 8b18b56929acd..26e9cb7b900f8 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -312,10 +312,9 @@ I/O - In :meth:`read_csv` `float_precision='round_trip'` now handles `decimal` and `thousands` parameters...
xref https://github.com/pandas-dev/pandas/pull/36363#pullrequestreview-488151435
https://api.github.com/repos/pandas-dev/pandas/pulls/36379
2020-09-15T07:40:23Z
2020-09-16T15:09:45Z
2020-09-16T15:09:45Z
2020-09-16T15:23:57Z
DOC: move release note for #36175 (pt1)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8e283aec39786..7efffffcf9d32 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :class:`IntegerArray` unary plus and minus operations raising a ``Ty...
xref https://github.com/pandas-dev/pandas/pull/36363/files#r488227748
https://api.github.com/repos/pandas-dev/pandas/pulls/36378
2020-09-15T07:36:25Z
2020-09-16T15:09:11Z
2020-09-16T15:09:11Z
2020-09-16T15:31:17Z
CLN: Numba internal routines
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index d4e673d2e538c..a931221ef3ce1 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -74,12 +74,11 @@ get_groupby, group_selection_context, ) -from pandas.core.groupby.numba_ import generate_numba_f...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - Remove some leftover implementation after https://github.com/pandas-dev/pandas/pull/36240 - Delegate numba func caching to methods in `numba_.py` - Combine some helper methods
https://api.github.com/repos/pandas-dev/pandas/pulls/36376
2020-09-15T06:48:02Z
2020-09-16T15:08:34Z
2020-09-16T15:08:34Z
2020-09-16T16:54:58Z
BUG: FooIndex.insert casting datetimelike NAs incorrectly
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 028472ad93e52..706b089e929a9 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -37,7 +37,7 @@ ABCPeriodIndex, ABCSeries, ) -from pandas.core.dtypes.missing import isna, notna +from pandas.core...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36374
2020-09-15T03:10:16Z
2020-09-17T23:20:30Z
2020-09-17T23:20:30Z
2020-09-17T23:50:12Z
REF: de-duplicate IntervalIndex compat code
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 3d177e08bb0f5..3bdc8d3c4bb19 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3331,7 +3331,7 @@ def _can_reindex(self, indexer): ValueError if its a duplicate axis """ # trying to reinde...
cc @jschendel can you suggest a sentence for a docstring on why is_overlapping is the relevant check for these behaviors? Maybe something related to `index.get_loc(some_int)` can be a non-integer?
https://api.github.com/repos/pandas-dev/pandas/pulls/36372
2020-09-14T21:41:47Z
2020-09-17T23:21:40Z
2020-09-17T23:21:40Z
2020-09-17T23:49:47Z
BUG: Fix MultiIndex column stacking with dupe names
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8e283aec39786..8ead78a17e9c2 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -29,6 +29,7 @@ Bug fixes - Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``path`` would raise a ``TypeError`...
- [x] closes #36353 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36371
2020-09-14T21:06:39Z
2020-09-15T22:35:41Z
2020-09-15T22:35:41Z
2020-09-16T09:53:02Z
DOC: Add dataframe_sql to eco system page
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index de231e43918f8..624c0551de607 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -303,6 +303,13 @@ HTTP API, and also provides several convenient methods for parsing and analyzing fredapi makes use of pandas and returns data in ...
Adds dataframe_sql, a package for querying pandas dataframes with SQL, to the ECO system page. Also closes #30480
https://api.github.com/repos/pandas-dev/pandas/pulls/36370
2020-09-14T20:53:47Z
2020-09-15T22:40:56Z
2020-09-15T22:40:55Z
2020-09-15T22:40:59Z
DOC: Enhance asfreq docs
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index 257baf20ce911..8523ff77aef9e 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -27,7 +27,7 @@ period_asfreq_arr, ) from pandas._typing import AnyArrayLike -from pandas.util._decorators import cache_readon...
- [n/a] closes #xxxxx - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] tests added Enhanced some docstrings for time-series related methods; mainly `asfreq`. Namely: - Converted `NDFrame.asfreq` into a template to use the specific `klass` in `Series.asfreq` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36369
2020-09-14T20:02:42Z
2020-12-21T20:14:39Z
2020-12-21T20:14:39Z
2020-12-21T20:15:23Z
REF: _assert_can_do_op -> _validate_scalar
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 3d177e08bb0f5..15944565cb254 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -2250,7 +2250,7 @@ def fillna(self, value=None, downcast=None): DataFrame.fillna : Fill NaN values of a DataFrame. Ser...
We have a lot of methods that do something like this; trying to consolidate them with consistent naming conventions.
https://api.github.com/repos/pandas-dev/pandas/pulls/36367
2020-09-14T18:39:08Z
2020-09-15T02:01:37Z
2020-09-15T02:01:37Z
2020-09-15T02:29:00Z
REF: share code for __setitem__
diff --git a/pandas/core/arrays/_mixins.py b/pandas/core/arrays/_mixins.py index e9d8671b69c78..284dd31ffcb59 100644 --- a/pandas/core/arrays/_mixins.py +++ b/pandas/core/arrays/_mixins.py @@ -9,6 +9,7 @@ from pandas.core.algorithms import take, unique from pandas.core.array_algos.transforms import shift from pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/36366
2020-09-14T18:20:09Z
2020-09-15T02:02:28Z
2020-09-15T02:02:28Z
2020-09-15T02:28:19Z
BUG: Python Parser skipping over items if BOM present in first element of header
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6923b42d3340b..6534172a41384 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -318,6 +318,7 @@ I/O - :meth:`to_csv` did not support zip compression for binary file object not having a filename (:issue:...
- [x] closes #36343 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36365
2020-09-14T17:44:48Z
2020-09-19T20:14:06Z
2020-09-19T20:14:06Z
2020-09-20T03:35:30Z
DOC: Added docstring for storage_options GH36361
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 2780b1a7f86c9..0f1cce273a146 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -341,6 +341,15 @@ values. The options are `None` or `high` for the ordinary converter, `legacy` for the original lower precision pandas converter, and ...
DOC: Added docstring for storage_options GH36361 - [x] closes #36361 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36364
2020-09-14T17:31:20Z
2020-09-14T20:26:01Z
2020-09-14T20:26:01Z
2020-09-15T01:33:00Z
REF: _unbox_scalar, _unbox_listlike for Categorical
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 45623f182144b..b6cd0e325f8a6 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -93,7 +93,7 @@ def func(self, other): if is_scalar(other): if other in self.categories: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/36362
2020-09-14T16:40:52Z
2020-09-15T02:00:29Z
2020-09-15T02:00:29Z
2020-09-15T02:29:36Z
Fix documentation for new float_precision on read_csv
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 0f1cce273a146..43ffbe6bdd66c 100644 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -338,9 +338,12 @@ option can improve performance because there is no longer any I/O overhead. float_precision : str, optional Specifies which converter t...
- [x] closes https://github.com/pandas-dev/pandas/pull/36228#discussion_r487587534 - [ ] tests added / passed N/A - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry N/A A followup to PR #36228 to get the documentation string right for...
https://api.github.com/repos/pandas-dev/pandas/pulls/36358
2020-09-14T14:25:26Z
2020-09-17T22:39:42Z
2020-09-17T22:39:42Z
2020-09-18T11:32:37Z
REF: Dispatch string methods to ExtensionArray
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 54aa830379c07..b8f6bd53d4a59 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -335,7 +335,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Doctests strings.py' ; echo $MSG - pytest -q --d...
This is a large refactor of our string methods. The goal is to have the `Series.str` accessor dispatch the actual compute down to the ExtensionArray. The motivation is to allow a Series backed by Arrow memory to use the Arrow string kernel (e.g. `Series.str.lower()` on an Arrow-backed StringArray should eventually call...
https://api.github.com/repos/pandas-dev/pandas/pulls/36357
2020-09-14T13:17:27Z
2020-09-30T12:22:26Z
2020-09-30T12:22:25Z
2020-10-15T13:44:06Z
DOC: Example for natural sort using key argument
diff --git a/environment.yml b/environment.yml index 4622aac1dc6f8..badb0ba94a670 100644 --- a/environment.yml +++ b/environment.yml @@ -106,6 +106,7 @@ dependencies: - cftime # Needed for downstream xarray.CFTimeIndex test - pyreadstat # pandas.read_spss - tabulate>=0.8.3 # DataFrame.to_markdown + - natso...
- [x] closes #36286 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/36356
2020-09-14T13:12:14Z
2020-09-15T22:32:26Z
2020-09-15T22:32:26Z
2020-09-15T22:59:54Z
Backport PR #36175: BUG: read_excel for ods files raising UnboundLocalError in certain cases
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 8e283aec39786..7f5340b7022ce 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -18,6 +18,7 @@ Fixed regressions - Fixed regression in :class:`IntegerArray` unary plus and minus operations raising a ``Ty...
#36175
https://api.github.com/repos/pandas-dev/pandas/pulls/36355
2020-09-14T11:44:37Z
2020-09-14T13:47:59Z
2020-09-14T13:47:59Z
2020-09-15T13:18:14Z
BUG: DataFrameGroupBy.transform with axis=1 fails (#36308)
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 09cb024cbd95c..1aa88e56689c2 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -552,7 +552,7 @@ Groupby/resample/rolling - Bug in :meth:`Rolling.median` and :meth:`Rolling.quantile` returned wrong value...
- [x] closes #36308 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Updated `pandas.core.groupby.generic._wrap_transformed_output` as suggested by @rhshadrach but also had to modify `pandas.core.groupby.groupby.pct_...
https://api.github.com/repos/pandas-dev/pandas/pulls/36350
2020-09-14T01:21:44Z
2020-11-14T16:50:19Z
2020-11-14T16:50:19Z
2020-11-14T16:50:23Z
ADMIN: Auto-label PRs for review
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7c3870470f074..5e4d3b4ec38e4 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,3 +1,9 @@ +--- + +labels: "Needs Review" + +--- + - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `...
Not certain this will work, but nonetheless I think something like this would be helpful (analogous to "Needs Triage" for issues)
https://api.github.com/repos/pandas-dev/pandas/pulls/36349
2020-09-14T01:01:07Z
2020-09-18T22:08:58Z
2020-09-18T22:08:58Z
2020-09-18T22:11:03Z
[BUG]: Implement Kahan summation for rolling().mean() to avoid numerical issues
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index bbee0062cf0ce..d4464b5edd850 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -105,6 +105,7 @@ Other enhancements - :class:`Index` with object dtype supports division and multiplication (:issue:`34160`...
- [x] closes #36031 - [x] closes #32761 - [x] closes #10319 - [x] xref #11645 (fixes the issue expect the 0, will add an additional pr about the doc) - [x] closes #13254 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew en...
https://api.github.com/repos/pandas-dev/pandas/pulls/36348
2020-09-13T22:50:51Z
2020-09-15T22:20:49Z
2020-09-15T22:20:48Z
2020-09-16T11:59:19Z
Backport PR #36174 on branch 1.1.x (BUG: Ensure read_spss accepts pathlib Paths (GH33666))
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index d789518f93f6d..8e283aec39786 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -26,6 +26,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ +- Bug in :func:`read_spss` where passing a ``pathlib.Path`` as ``p...
Backport PR #36174: BUG: Ensure read_spss accepts pathlib Paths (GH33666)
https://api.github.com/repos/pandas-dev/pandas/pulls/36347
2020-09-13T20:33:46Z
2020-09-13T21:42:34Z
2020-09-13T21:42:34Z
2020-09-13T21:42:34Z
ENH/BUG: consistently cast strs to datetimelike for searchsorted
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 3992e697db7e4..55e960de5e9d1 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -119,6 +119,7 @@ Other enhancements - :meth:`DataFrame.explode` and :meth:`Series.explode` now support exploding of sets (:...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ATM we are pretty inconsistent in how we handle strings for (DTI|TDI|PI|Series).searchsorted. The underlying EAs will cast scalar strings but not Se...
https://api.github.com/repos/pandas-dev/pandas/pulls/36346
2020-09-13T20:18:21Z
2020-09-17T02:41:14Z
2020-09-17T02:41:14Z
2020-09-17T02:51:57Z
PERF: styler uuid control and security
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 6436b2eceb33f..80fbd459fc7f1 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -225,6 +225,7 @@ Performance improvements - Performance improvement in :meth:`GroupBy.agg` with the ``numba`` engine (:issu...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry `Styler` uuid is randomly generated from 16bytes, or 128bit entropy, which is poorly formatted for data transmission over the web. `Styler` uuid1 is super-ceded by uuid...
https://api.github.com/repos/pandas-dev/pandas/pulls/36345
2020-09-13T20:04:13Z
2020-09-19T15:21:56Z
2020-09-19T15:21:56Z
2020-09-19T16:42:45Z
CLN: remove CategoricalIndex._create_from_codes
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 4fa6b73932aa4..27e0a198b62a2 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -1376,7 +1376,7 @@ def value_counts(self, dropna=True): count = np.bincount(np.where(mask, code, nc...
Update some constructor calls in Categorical
https://api.github.com/repos/pandas-dev/pandas/pulls/36342
2020-09-13T19:00:02Z
2020-09-13T20:19:41Z
2020-09-13T20:19:41Z
2020-09-13T20:26:17Z
REF: move ShallowMixin to groupby.base
diff --git a/pandas/core/base.py b/pandas/core/base.py index 53378c0e0e252..4d5cddc086b2a 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -4,7 +4,7 @@ import builtins import textwrap -from typing import Any, Callable, Dict, FrozenSet, List, Optional, Union +from typing import Any, Callable, Dict, Froz...
Rename GroupByMixin -> GotItemMixin
https://api.github.com/repos/pandas-dev/pandas/pulls/36341
2020-09-13T18:16:12Z
2020-09-13T20:20:57Z
2020-09-13T20:20:57Z
2020-09-13T20:25:32Z
Backport PR #36231: BUG: Fixe unintentionally added suffix in DataFrame.apply/agg and Series.apply/agg
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 2457d00eb2173..d789518f93f6d 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Dat...
#36231
https://api.github.com/repos/pandas-dev/pandas/pulls/36340
2020-09-13T18:12:29Z
2020-09-13T19:21:22Z
2020-09-13T19:21:22Z
2020-09-13T19:21:29Z
REF: use check_setitem_lengths in DTA.__setitem__
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 6f0e2a6a598fc..377996344dbbc 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1,6 +1,6 @@ from datetime import datetime, timedelta import operator -from typing import Any, Callable, O...
Turning this into a two-line check will make it easy to add to `PandasArray.__setitem__` and `Categorical.__setitem__`, at which point we'll be able to move these methods up to `NDArrayBackedExtensionArray.__setitem__`
https://api.github.com/repos/pandas-dev/pandas/pulls/36339
2020-09-13T16:16:57Z
2020-09-14T06:28:55Z
2020-09-14T06:28:55Z
2020-09-14T15:58:27Z
DOC/CLN: remove versionadded/changed:: 0.23
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index 1e6b2c646fdfd..46c2cbbe39b34 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -73,8 +73,6 @@ applies only to certain dtypes. Extension types --------------- -.. versionadded:...
released 3 Aug 2018 https://github.com/pandas-dev/pandas/releases/tag/v0.23.4
https://api.github.com/repos/pandas-dev/pandas/pulls/36338
2020-09-13T15:51:36Z
2020-09-13T20:21:17Z
2020-09-13T20:21:17Z
2020-09-13T20:31:11Z
BUG: iloc.__setitem__ with DataFrame value, multiple blocks, non-unique columns
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 64da27a6574a6..9ecad335e2c3c 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1690,18 +1690,42 @@ def _setitem_with_indexer(self, indexer, value): sub_indexer = list(indexer) multiindex_i...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36337
2020-09-13T15:32:48Z
2020-09-13T20:37:19Z
2020-09-13T20:37:19Z
2020-09-14T00:31:00Z
CI: Add stale PR action
diff --git a/.github/workflows/stale-pr.yml b/.github/workflows/stale-pr.yml new file mode 100644 index 0000000000000..0cbe4b7dd4582 --- /dev/null +++ b/.github/workflows/stale-pr.yml @@ -0,0 +1,21 @@ +name: "Stale PRs" +on: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: ...
Adding a GitHub Action for ~closing stale PRs~ labeling PRs as stale which I think could help in managing the backlog https://github.com/actions/stale
https://api.github.com/repos/pandas-dev/pandas/pulls/36336
2020-09-13T15:06:43Z
2020-09-15T02:04:47Z
2020-09-15T02:04:47Z
2020-09-16T18:32:16Z
ERR: Cartesian product error
diff --git a/pandas/core/reshape/util.py b/pandas/core/reshape/util.py index a1bf3f8ee4119..d2c08712abacd 100644 --- a/pandas/core/reshape/util.py +++ b/pandas/core/reshape/util.py @@ -39,6 +39,9 @@ def cartesian_product(X): lenX = np.fromiter((len(x) for x in X), dtype=np.intp) cumprodX = np.cumproduct(lenX)...
- [x] closes #31355 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Added a test to trigger the reported error using code from the issue. An if statement was included to return a more helpful error message - borrowing the solution from th...
https://api.github.com/repos/pandas-dev/pandas/pulls/36335
2020-09-13T13:32:56Z
2020-09-13T20:22:37Z
2020-09-13T20:22:37Z
2020-09-13T20:41:16Z
Backport PR #36316 on branch 1.1.x (BUG: Don't overflow with large int scalar)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 25d223418fc92..5cbd160f29d66 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -25,6 +25,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswit...
Backport PR #36316: BUG: Don't overflow with large int scalar
https://api.github.com/repos/pandas-dev/pandas/pulls/36334
2020-09-13T13:29:10Z
2020-09-13T15:52:02Z
2020-09-13T15:52:02Z
2020-09-13T15:52:02Z
Backport PR #36303 on branch 1.1.x (REGR: Fix IntegerArray unary ops regression)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 25d223418fc92..c78adcf42f56b 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :class:`In...
Backport PR #36303: REGR: Fix IntegerArray unary ops regression
https://api.github.com/repos/pandas-dev/pandas/pulls/36333
2020-09-13T13:28:28Z
2020-09-13T15:52:28Z
2020-09-13T15:52:28Z
2020-09-13T15:52:28Z
Backport PR #36147 on branch 1.1.x (REGR: Series access with Index of tuples/frozenset)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index e3161012da5d1..5aca33869bca1 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -14,6 +14,8 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ +- Fixed regression in :meth:`Ser...
Backport PR #36147: REGR: Series access with Index of tuples/frozenset
https://api.github.com/repos/pandas-dev/pandas/pulls/36332
2020-09-13T12:30:03Z
2020-09-13T13:27:22Z
2020-09-13T13:27:22Z
2020-09-13T13:27:22Z
Backport PR #36249 on branch 1.1.x (BUG: na parameter for str.startswith and str.endswith not propagating for Series with categorical dtype)
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index e3161012da5d1..c06990e3f2051 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -22,7 +22,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ -- +- Bug in :meth:`Series.str.startswith` and :meth:`Series.str.en...
Backport PR #36249: BUG: na parameter for str.startswith and str.endswith not propagating for Series with categorical dtype
https://api.github.com/repos/pandas-dev/pandas/pulls/36331
2020-09-13T12:26:20Z
2020-09-13T13:07:50Z
2020-09-13T13:07:50Z
2020-09-13T13:07:50Z
Backport PR #36323 on branch 1.1.x (CI: install numpy from pip #36296)
diff --git a/ci/build39.sh b/ci/build39.sh index f85e1c7def206..b9c76635df99b 100755 --- a/ci/build39.sh +++ b/ci/build39.sh @@ -3,16 +3,9 @@ sudo apt-get install build-essential gcc xvfb pip install --no-deps -U pip wheel setuptools -pip install python-dateutil pytz pytest pytest-xdist hypothesis +pip install nump...
Backport PR #36323: CI: install numpy from pip #36296
https://api.github.com/repos/pandas-dev/pandas/pulls/36328
2020-09-13T11:17:33Z
2020-09-13T12:32:36Z
2020-09-13T12:32:35Z
2020-09-13T12:32:36Z
[TST]: Groupy raised ValueError for ffill with duplicate column names
diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py index 42945be923fa0..ab736b55b5743 100644 --- a/pandas/tests/groupby/test_function.py +++ b/pandas/tests/groupby/test_function.py @@ -495,51 +495,6 @@ def test_idxmin_idxmax_returns_int_types(func, values): tm.assert_frame_e...
- [x] closes #25610 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Was fixed in the past. Added test to avoid regression
https://api.github.com/repos/pandas-dev/pandas/pulls/36326
2020-09-13T09:10:35Z
2020-09-13T22:18:22Z
2020-09-13T22:18:22Z
2020-09-13T22:23:02Z
PERF: StringArray construction
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index f398af6e4dd5e..278fb7274bd9b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -219,7 +219,7 @@ Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ -- Performance improvements when creatin...
Currently, when constructing through `Series(data, dtype="string")`, pandas first converts to strings/NA, then does a check that all scalars are actually strings or NA. The check is not needed in cases where we explicitly already have converted. Performance example: ```python >>> x = np.array([str(u) for u in ra...
https://api.github.com/repos/pandas-dev/pandas/pulls/36325
2020-09-13T06:52:50Z
2020-09-17T16:51:00Z
2020-09-17T16:51:00Z
2020-09-17T17:10:26Z
CI: install numpy from pip #36296
diff --git a/ci/build39.sh b/ci/build39.sh index f85e1c7def206..b9c76635df99b 100755 --- a/ci/build39.sh +++ b/ci/build39.sh @@ -3,16 +3,9 @@ sudo apt-get install build-essential gcc xvfb pip install --no-deps -U pip wheel setuptools -pip install python-dateutil pytz pytest pytest-xdist hypothesis +pip install nump...
Part of #36296
https://api.github.com/repos/pandas-dev/pandas/pulls/36323
2020-09-13T04:42:13Z
2020-09-13T11:17:05Z
2020-09-13T11:17:05Z
2020-09-15T15:15:02Z
REF: de-duplicate get_indexer_non_unique
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 7aceb898f5ccf..c31428e78dab5 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2512,10 +2512,6 @@ def get_indexer(self, target, method=None, limit=None, tolerance=None): return ensure_platform_int(in...
https://api.github.com/repos/pandas-dev/pandas/pulls/36322
2020-09-13T03:08:51Z
2020-09-13T12:40:55Z
2020-09-13T12:40:55Z
2020-09-13T15:05:25Z
REF: _convert_for_op -> _validate_fill_value
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0aed08d46657e..b0f9f8ac8b2fd 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4047,9 +4047,10 @@ def _to_safe_for_reshape(self): """ return self - def _convert_for_op(self, value): + def ...
It will also turn out that _coerce_scalar_to_index is effectively another alias for this, though it has slightly different behavior i need to check/fix/test before replacing it
https://api.github.com/repos/pandas-dev/pandas/pulls/36318
2020-09-12T23:45:34Z
2020-09-13T12:26:22Z
2020-09-13T12:26:22Z
2021-11-20T23:21:23Z
PERF: constructing string Series
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 2b230d2fde645..fe8473665603b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -205,7 +205,7 @@ Deprecations Performance improvements ~~~~~~~~~~~~~~~~~~~~~~~~ -- Performance improvements when creatin...
Avoid needless call to `lib.infer_dtype`, when string dtype. Performance example: ```python >>> x = np.array([str(u) for u in range(1_000_000)], dtype=object) >>> %timeit pd.Series(x, dtype=str) 344 ms ± 59.7 ms per loop # v1.1.0 157 ms ± 7.04 ms per loop # after #35519 22.6 ms ± 191 µs per loop # after #...
https://api.github.com/repos/pandas-dev/pandas/pulls/36317
2020-09-12T23:02:45Z
2020-09-13T12:39:59Z
2020-09-13T12:39:59Z
2020-09-13T13:25:51Z
BUG: Don't overflow with large int scalar
diff --git a/doc/source/whatsnew/v1.1.3.rst b/doc/source/whatsnew/v1.1.3.rst index 25d223418fc92..5cbd160f29d66 100644 --- a/doc/source/whatsnew/v1.1.3.rst +++ b/doc/source/whatsnew/v1.1.3.rst @@ -25,6 +25,7 @@ Fixed regressions Bug fixes ~~~~~~~~~ - Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswit...
- [x] closes #36291 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/36316
2020-09-12T22:58:41Z
2020-09-13T12:34:52Z
2020-09-13T12:34:52Z
2020-09-13T13:33:14Z
REF: separate out helpers from iLoc._setitem_with_indexer
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 51031d9ab1153..64da27a6574a6 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -34,7 +34,7 @@ from pandas.core.indexes.api import Index if TYPE_CHECKING: - from pandas import DataFrame # noqa:F401 + from pandas import Da...
https://api.github.com/repos/pandas-dev/pandas/pulls/36315
2020-09-12T22:29:30Z
2020-09-13T12:28:16Z
2020-09-13T12:28:16Z
2020-09-13T15:04:15Z
REF: de-duplicate _wrap_joined_index in MultiIndex
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 0aed08d46657e..12c2405f6f340 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3876,7 +3876,10 @@ def _join_monotonic(self, other, how="left", return_indexers=False): return join_index def _wrap...
Follow-up to #36282 We'll also be able to clean up MultiIndex special-casing in _reindex_non_unique. I expect others but cant say for sure yet.
https://api.github.com/repos/pandas-dev/pandas/pulls/36313
2020-09-12T21:02:03Z
2020-09-13T12:31:18Z
2020-09-13T12:31:18Z
2020-09-13T15:03:15Z
PERF: JoinUnit.is_na
diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py index 163500525dbd8..d2e4974741b88 100644 --- a/pandas/core/dtypes/missing.py +++ b/pandas/core/dtypes/missing.py @@ -9,7 +9,7 @@ from pandas._libs import lib import pandas._libs.missing as libmissing -from pandas._libs.tslibs import NaT, iN...
This along with #36309 gets #34683 to performance parity with master.
https://api.github.com/repos/pandas-dev/pandas/pulls/36312
2020-09-12T19:48:43Z
2020-09-12T21:20:30Z
2020-09-12T21:20:30Z
2020-09-12T21:29:35Z
DOC: Fix DataFrame.query contradiction on use of Python keywords as identifiers
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b03593ad8afe1..b8b49156a0967 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3238,11 +3238,12 @@ def query(self, expr, inplace=False, **kwargs): in the environment by prefixing them with an '@' character like ``@a ...
- [ ] closes #35989
https://api.github.com/repos/pandas-dev/pandas/pulls/36311
2020-09-12T19:46:28Z
2020-09-12T21:31:59Z
2020-09-12T21:31:59Z
2020-09-13T01:14:44Z