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
REF: use cached inferred_type when calling lib.infer_dtype(index)
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index a312fdc6cda22..5256bdc988995 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1173,15 +1173,15 @@ cdef class Seen: or self.nat_) -cdef object _try_infer_map(object v): +cdef object _try_infer_map(object dtype): ...
Among other things, this will let us avoid a couple of ugly calls in Series ``` if isinstance(key, Index): key_type = key.inferred_type else: key_type = lib.infer_dtype(key, skipna=False) ``` Cleanup of nearby EA-handling code
https://api.github.com/repos/pandas-dev/pandas/pulls/33537
2020-04-14T01:30:47Z
2020-04-25T22:22:08Z
2020-04-25T22:22:08Z
2020-04-25T22:27:38Z
ENH: Clear index cache after reindex
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 42e0d228dab09..1ae5742ef193e 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2464,6 +2464,7 @@ def get_indexer(self, target, method=None, limit=None, tolerance=None): else: indexer = sel...
Add flag to clear index cache after reindex. By default, reindex causes index to cache values which potentially increases the memory consumption significantly in the case of multiindexes. ``` In [2]: idx = pd.MultiIndex.from_product([pd.date_range('2010-01-01', '2015-01-01'), range(1000)], names=['date', 'id'])...
https://api.github.com/repos/pandas-dev/pandas/pulls/33536
2020-04-14T00:26:37Z
2020-05-22T10:56:05Z
null
2020-05-22T10:56:50Z
REF: put EA concat logic in _concat_arrays
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index b3fb3459891e0..ab53fadb06681 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -30,6 +30,7 @@ ensure_platform_int, is_categorical_dtype, is_datetime64_dtype, + is_datetime64...
cc @jorisvandenbossche @TomAugspurger per discussion in #32586 (among others) about `_concat_same_type`, this is a proof of concept for a 3-method solution: - `EA._concat_same_dtype` --> require same type _and_ dtype; DTA/PA do this now - `EA._concat_same_type` --> require same type but not necessarily same type; w...
https://api.github.com/repos/pandas-dev/pandas/pulls/33535
2020-04-13T23:54:23Z
2020-04-17T14:59:08Z
null
2020-04-17T14:59:26Z
CI: pin cython==0.29.16 in npdev build
diff --git a/ci/deps/azure-37-numpydev.yaml b/ci/deps/azure-37-numpydev.yaml index 29ebfe2639e32..17c3d318ce54d 100644 --- a/ci/deps/azure-37-numpydev.yaml +++ b/ci/deps/azure-37-numpydev.yaml @@ -14,7 +14,8 @@ dependencies: - pytz - pip - pip: - - cython>=0.29.16 + - cython==0.29.16 + # GH#33507 cyth...
xref #33507
https://api.github.com/repos/pandas-dev/pandas/pulls/33534
2020-04-13T22:07:32Z
2020-04-13T22:41:36Z
2020-04-13T22:41:36Z
2020-04-13T22:42:28Z
CLN: Change isocalendar to be a method
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index a09a5576ca378..6ba58310000cb 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -772,7 +772,6 @@ There are several time/date properties that one can access from ``Timestamp`` or ...
For consistency with `Timestamp.isocalendar`, `Series.dt.isocalendar` and `DatetimeIndex.isocalendar` should rather be methods and not attributes. Followup of #33220, see the discussions following the merge of that PR
https://api.github.com/repos/pandas-dev/pandas/pulls/33533
2020-04-13T19:58:13Z
2020-04-14T16:22:53Z
2020-04-14T16:22:53Z
2020-05-27T08:23:27Z
CLN: General cleanup in `_libs/lib.pyx`
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 6147d6d9c1658..bbb4d562b8971 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -1,9 +1,6 @@ from collections import abc from decimal import Decimal -from fractions import Fraction -from numbers import Number -import sys import warnings ...
- [ ] closes #xxxx - [ ] 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/33532
2020-04-13T18:43:09Z
2020-04-14T00:07:12Z
2020-04-14T00:07:11Z
2021-05-03T12:28:31Z
BUG: Do not use string Index like Datetimelike Index
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index ca6eb45e22c69..6e67bb1337400 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -138,13 +138,16 @@ def equals(self, other) -> bool: if not isinstance(other, ABCIndexClass): ...
Follow up of conversation in https://github.com/pandas-dev/pandas/pull/32739#issuecomment-602271577. The goal is to prevent index of string that look like datetimelike to be used as datetimelike. - [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u...
https://api.github.com/repos/pandas-dev/pandas/pulls/33531
2020-04-13T17:37:31Z
2020-10-08T00:29:21Z
null
2020-10-08T00:29:21Z
REF: matching-dtype case first in concat_compat
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index 301c9bb7b3f5c..0255c6507313a 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -105,7 +105,15 @@ def is_nonempty(x) -> bool: _contains_datetime = any(typ.startswith("datetime") for typ in typs) _contai...
Moving towards clarifying the EA._concat_same_type behavior with unique vs non-unique dtypes
https://api.github.com/repos/pandas-dev/pandas/pulls/33530
2020-04-13T17:16:03Z
2020-04-17T02:41:56Z
2020-04-17T02:41:56Z
2020-04-17T02:55:53Z
CLN: .values->._values in hashing
diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py index d9c8611c94cdb..ebfba5a1e1ff6 100644 --- a/pandas/core/util/hashing.py +++ b/pandas/core/util/hashing.py @@ -90,13 +90,13 @@ def hash_pandas_object( return Series(hash_tuples(obj, encoding, hash_key), dtype="uint64", copy=False) ...
This sits on top of #33511 (at first thought it could be orthogonal, but this breaks a couple of hash_scalar tests if we dont rip those out first)
https://api.github.com/repos/pandas-dev/pandas/pulls/33529
2020-04-13T16:59:51Z
2020-04-15T01:28:13Z
2020-04-15T01:28:13Z
2020-04-15T01:35:22Z
BUG: Grouped-by column loses name when empty list of aggregations is specified
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 6d33537a40175..53fda9703a08e 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -9,7 +9,7 @@ pandas code style guide .. contents:: Table of contents: :local: -*pandas* f...
- [ ] closes #32580 - [ ] 0 tests added / 0 passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/33528
2020-04-13T16:39:41Z
2020-05-22T10:22:12Z
null
2020-05-22T10:22:12Z
CI: xfail rank tests
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index ad7028702ec8c..8907d942ecf0a 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -7,7 +7,7 @@ import pytest from pandas._libs import algos as libalgos, groupby as libgroupby, hashtable as ht -from pandas.compat.numpy ...
With npdev installed, the affected tests arent failing for me on OSX, so this is a shot int he dark.
https://api.github.com/repos/pandas-dev/pandas/pulls/33527
2020-04-13T16:26:11Z
2020-04-13T16:54:41Z
null
2020-04-13T16:54:59Z
REF: simplify concat_datetime
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 30a34282889f8..ece92acae6461 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -723,7 +723,7 @@ def take(self, indices, allow_fill=False, fill_value=None): return type(self)(new_...
By wrapping dt64/td64 ndarrays in DTA/TDA, we can get rid of a bunch of .astype(object) logic
https://api.github.com/repos/pandas-dev/pandas/pulls/33526
2020-04-13T14:27:46Z
2020-04-15T01:32:20Z
2020-04-15T01:32:20Z
2020-04-15T01:36:43Z
TST: Add Categorical Series test
diff --git a/pandas/tests/reductions/test_reductions.py b/pandas/tests/reductions/test_reductions.py index 635b1a1cd1326..235aa8e4aa922 100644 --- a/pandas/tests/reductions/test_reductions.py +++ b/pandas/tests/reductions/test_reductions.py @@ -1098,6 +1098,14 @@ def test_min_max_ordered(self, values, categories, funct...
Follow up to https://github.com/pandas-dev/pandas/pull/33513 cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/33525
2020-04-13T14:20:13Z
2020-04-21T14:49:08Z
2020-04-21T14:49:08Z
2020-04-21T18:32:12Z
CLN: redundant code in IntegerArray._reduce
diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index 37620edfd9a95..5605b3fbc5dfa 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -571,10 +571,6 @@ def _reduce(self, name: str, skipna: bool = True, **kwargs): if np.isnan(result): return...
https://api.github.com/repos/pandas-dev/pandas/pulls/33523
2020-04-13T13:03:07Z
2020-04-13T14:55:20Z
2020-04-13T14:55:20Z
2020-04-13T15:08:39Z
BUG: Fixed concat with reindex and extension types
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 567b6853bd633..0476c34db3773 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -1073,6 +1073,7 @@ ExtensionArray ^^^^^^^^^^^^^^ - Fixed bug where :meth:`Series.value_counts` would raise on empty inpu...
Closes https://github.com/pandas-dev/pandas/issues/27692 Closes https://github.com/pandas-dev/pandas/issues/33027 I have a larger cleanup planned, but this fixes the linked issues for now.
https://api.github.com/repos/pandas-dev/pandas/pulls/33522
2020-04-13T11:35:47Z
2020-07-01T01:43:27Z
2020-07-01T01:43:26Z
2020-07-02T08:12:21Z
TYP: disallow decorator preserves function signature
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index f8cb99e2b2e75..06b6d4242e622 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8522,6 +8522,12 @@ def idxmin(self, axis=0, skipna=True) -> Series: """ axis = self._get_axis_number(axis) indices = nanops.nanargmin(se...
xref #33455
https://api.github.com/repos/pandas-dev/pandas/pulls/33521
2020-04-13T11:19:21Z
2020-05-02T16:30:23Z
2020-05-02T16:30:23Z
2020-05-02T18:00:27Z
TYP: remove assert mask is not None for mypy
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 9494248a423a8..b9ff0a5959c01 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -300,11 +300,8 @@ def _get_values( dtype, fill_value=fill_value, fill_value_typ=fill_value_typ ) - copy = (mask is not None) and (fill_value ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33520
2020-04-13T11:16:19Z
2020-04-14T17:28:46Z
2020-04-14T17:28:46Z
2020-04-14T19:31:22Z
TYP: use overload to refine return type of reset_index
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d19f1a263f71a..23bea58de1a8e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -32,6 +32,7 @@ Type, Union, cast, + overload, ) import warnings @@ -4302,7 +4303,29 @@ def set_index( if not inplace: re...
https://api.github.com/repos/pandas-dev/pandas/pulls/33519
2020-04-13T11:15:45Z
2020-05-01T14:57:30Z
null
2021-03-03T16:55:46Z
add a new feature sample() into groupby
diff --git a/pandas/core/base.py b/pandas/core/base.py index 5945d8a4b432d..0b849e705c787 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -438,7 +438,16 @@ def is_any_frame() -> bool: # we have a dict of DataFrames # return a MI DataFrame - return concat(...
- [ ] closes #33175 - [ ] 0 tests added / 0 passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/33516
2020-04-13T06:34:37Z
2020-05-13T18:33:52Z
null
2020-05-13T18:33:52Z
DOC: Add missing descriptions in See Also section
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index 3fdf81c4bb570..ad91a51cae016 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -1041,8 +1041,8 @@ def _get_window( """ See Also -------- - pandas.DataFrame.rolling.aggregate - pandas...
Fixed SR04 for `pandas/core/window/rolling.py` - [X] xref #28792 - [ ] 0 tests added / 0 passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/33514
2020-04-13T03:41:51Z
2020-05-22T10:29:05Z
null
2020-05-22T10:29:05Z
BUG: Fix Categorical.min / max bug
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5fe7d12188860..2f4e961ff433f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -397,6 +397,7 @@ Categorical - Bug where :class:`Categorical` comparison operator ``__ne__`` would incorrectly evaluate to ...
- [ ] closes #33450 - [ ] 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/33513
2020-04-13T03:40:56Z
2020-04-13T08:16:59Z
2020-04-13T08:16:59Z
2020-05-05T09:07:23Z
TST/CLN: Clean categorical min / max tests
diff --git a/pandas/tests/arrays/categorical/test_analytics.py b/pandas/tests/arrays/categorical/test_analytics.py index 67b491165b8cc..83ecebafbea07 100644 --- a/pandas/tests/arrays/categorical/test_analytics.py +++ b/pandas/tests/arrays/categorical/test_analytics.py @@ -53,40 +53,28 @@ def test_min_max_ordered(self):...
Fixes one small error in a test, and otherwise tries to remove some code duplication
https://api.github.com/repos/pandas-dev/pandas/pulls/33512
2020-04-13T03:21:12Z
2020-04-14T17:26:28Z
2020-04-14T17:26:28Z
2020-04-14T17:58:58Z
CLN: remove unused util.hashing functions
diff --git a/pandas/core/util/hashing.py b/pandas/core/util/hashing.py index d9c8611c94cdb..3406753a3b5ba 100644 --- a/pandas/core/util/hashing.py +++ b/pandas/core/util/hashing.py @@ -6,10 +6,8 @@ import numpy as np -from pandas._libs import Timestamp import pandas._libs.hashing as hashing -from pandas.core.dt...
The only place where _any_ of util.hashing is used internally is in `CategoricalDtype.__hash__`. It's pretty ugly dependency-tree wise. This just prunes a couple of entirely unused functions.
https://api.github.com/repos/pandas-dev/pandas/pulls/33511
2020-04-13T03:06:31Z
2020-04-15T01:29:42Z
2020-04-15T01:29:41Z
2020-04-15T01:35:56Z
Issue 31175
diff --git a/0001-standardize-term-pandas-in-documentation.patch b/0001-standardize-term-pandas-in-documentation.patch new file mode 100644 index 0000000000000..3b71d7863223d --- /dev/null +++ b/0001-standardize-term-pandas-in-documentation.patch @@ -0,0 +1,1695 @@ +From 69f0641f92b94d42620b1382e58ed21a90bc9ce2 Mon Sep...
- [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/33510
2020-04-13T02:29:08Z
2020-04-13T04:16:25Z
null
2020-04-13T04:16:25Z
ENH: clearer error message if read_hdf loads upsupported HDF file (GH9539)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 0682e179a7640..8c745d01aba71 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -576,6 +576,8 @@ I/O - Bug in :meth:`read_excel` did not correctly handle multiple embedded spaces in OpenDocument text cel...
- [x] closes #9539 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The error message changed since the original bug report but still could be made more clear.
https://api.github.com/repos/pandas-dev/pandas/pulls/33509
2020-04-13T00:37:04Z
2020-04-17T18:08:36Z
2020-04-17T18:08:36Z
2020-04-20T04:18:38Z
Added two tests for issue #29697
diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index 29d3bf302545e..a92e628960456 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -2024,6 +2024,36 @@ def test_merge_suffix(col1, col2, kwargs, expected_cols): t...
I added two basic tests for `merge` as requested in #29697, one for `how="outer"` and one for `how="right"`. I'm not sure if the way I'm creating duplicate columns for the `expected` dataframe is the recommended way but I could not find anything on this. Please let me know if there's a better way to do this. - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33508
2020-04-13T00:28:11Z
2020-04-26T20:24:18Z
2020-04-26T20:24:17Z
2020-04-26T20:24:21Z
Removed xfail for issue #31883
diff --git a/pandas/tests/indexes/multi/test_indexing.py b/pandas/tests/indexes/multi/test_indexing.py index 39049006edb7c..563a82395c7f3 100644 --- a/pandas/tests/indexes/multi/test_indexing.py +++ b/pandas/tests/indexes/multi/test_indexing.py @@ -408,10 +408,6 @@ def test_get_loc_nan(self, level, nulls_fixture): ...
I removed the xfail in lines 412-414 as discussed in https://github.com/pandas-dev/pandas/issues/31883. - [x] closes #31883 - [x] 0 tests added / 0 passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/33506
2020-04-12T23:05:53Z
2020-04-14T15:00:53Z
2020-04-14T15:00:51Z
2020-04-14T15:01:00Z
CI: Setup 3.9 Travis Build
diff --git a/.travis.yml b/.travis.yml index 2c8533d02ddc1..98826a2d9e115 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,11 @@ matrix: fast_finish: true include: + # In allowed failures + - dist: bionic + python: 3.9-dev + env: + - JOB="3.9-dev" PATTERN="(not slow and not network...
- [x] closes https://github.com/pandas-dev/pandas/issues/33395 - In a very similar fashion to @jbrockmendel work for 3.8 - might be useful to have start a 3.9 build so we can start eliminating the issues @TomAugspurger mentioned in https://github.com/pandas-dev/pandas/issues/33395. This is using currently using `...
https://api.github.com/repos/pandas-dev/pandas/pulls/33505
2020-04-12T22:57:21Z
2020-05-09T23:26:57Z
2020-05-09T23:26:57Z
2020-05-10T01:01:13Z
WIP: CI: Setup 3.9 Travis Build
diff --git a/.travis.yml b/.travis.yml index 2c8533d02ddc1..374dcdd6bc39d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,6 +27,11 @@ matrix: fast_finish: true include: + # In allowed failures + - dist: bionic + python: 3.9-dev + env: + - JOB="3.9-dev" PATTERN="(not slow and not network...
- [x] ref https://github.com/pandas-dev/pandas/issues/33395 - In a very similar fashion to @jbrockmendel work for 3.8 - might be useful to have start a 3.9 build so we can start eliminating the issues @TomAugspurger mentioned in https://github.com/pandas-dev/pandas/issues/33395
https://api.github.com/repos/pandas-dev/pandas/pulls/33504
2020-04-12T22:18:12Z
2020-04-12T22:20:13Z
null
2020-04-12T22:20:13Z
ENH: Make Series.update() use objects coercible to Series
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 845f7773c263c..430c0913ee6ad 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -98,6 +98,8 @@ Other enhancements This can be used to set a custom compression level, e.g., ``df.to_csv(path, compress...
- [x] closes #33215 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Allows `Series.update()` to accept objects that can be coerced into a `Series`, like a `dict`. This mirrors the existing behavior of `DataFrame.upd...
https://api.github.com/repos/pandas-dev/pandas/pulls/33502
2020-04-12T19:48:56Z
2020-04-26T19:49:37Z
2020-04-26T19:49:37Z
2020-04-27T04:32:35Z
CLN: use _values_for_argsort in fewer places
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 62a3808d36ba2..9db9805e09b50 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -616,7 +616,7 @@ def factorize( values = _ensure_arraylike(values) original = values - if is_extension_array_dtype(values): + ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33501
2020-04-12T19:22:19Z
2020-04-17T18:06:20Z
2020-04-17T18:06:20Z
2020-04-17T18:10:38Z
ENH: Adds round_decimals=None to Series.value_counts() to use with normalize=True
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 718de09a0c3e4..a0c39a185bd75 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -97,6 +97,7 @@ Other enhancements This can be used to set a custom compression level, e.g., ``df.to_csv(path, compress...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry When using `value_counts` with `normalize=True` with a **Series,** the result contains the relative frequencies of the unique values and therefore sums up to 1.0. If the...
https://api.github.com/repos/pandas-dev/pandas/pulls/33499
2020-04-12T18:24:42Z
2020-06-19T11:31:07Z
null
2022-03-05T13:04:14Z
BUG: Fix a bug in 'timedelta_range' that produced an extra point on a edge case (fix #30353)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 95cb4ccbbb796..79f78471922bc 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -574,6 +574,9 @@ Timedelta - Timedeltas now understand ``µs`` as identifier for microsecond (:issue:`32899`) - :class:`Tim...
The issue from #30353 came actually from `timedelta_range`. ```python import pandas as pd def mock_timedelta_range(start=None, end=None, periods=None, freq=None, name=None, closed=None): epoch = pd.Timestamp(0) if start is not None: start = epoch + pd.Timedelta(start) if end is not None: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33498
2020-04-12T16:44:54Z
2020-05-09T19:23:30Z
2020-05-09T19:23:29Z
2020-05-09T20:41:27Z
CLN: assorted cleanups, annotations, de-privatizing
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 306636278bcbe..4c7d03d51e909 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -157,8 +157,8 @@ cdef _wrap_timedelta_result(result): """ if PyDelta_Check(result): # convert Timedel...
https://api.github.com/repos/pandas-dev/pandas/pulls/33497
2020-04-12T16:33:55Z
2020-04-17T02:47:40Z
2020-04-17T02:47:40Z
2020-04-17T02:53:56Z
BUG: Allow apply of ufunc over Series of list-like
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5fe7d12188860..2724414dec43f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -570,6 +570,7 @@ Reshaping - Bug in :meth:`concat` where when passing a non-dict mapping as ``objs`` would raise a ``TypeEr...
- [ ] closes #33492 - [ ] 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/33496
2020-04-12T16:25:50Z
2020-04-13T02:04:21Z
null
2020-04-13T02:04:25Z
CLN: remove ensure_categorical
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index b2301ab0190c7..cf00535385c24 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -111,27 +111,6 @@ def ensure_str(value: Union[bytes, Any]) -> str: return value -def ensure_categorical(arr): - """ - ...
only used in two places, its a misnomer because it really only ensures categorical dtype, and it complicates the dependency structure
https://api.github.com/repos/pandas-dev/pandas/pulls/33495
2020-04-12T15:56:39Z
2020-04-17T02:48:49Z
2020-04-17T02:48:49Z
2020-04-17T02:55:17Z
BUG: groupby.hist legend should use group keys
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 567b6853bd633..22b83425b58c2 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -292,6 +292,7 @@ Other enhancements - :meth:`DataFrame.to_csv` and :meth:`Series.to_csv` now accept an ``errors`` argument ...
- [x] closes #6279 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry cc @TomAugspurger Added argument "legend" to histogram backend. This adds the ability to display a legend even when not using a groupby. ````...
https://api.github.com/repos/pandas-dev/pandas/pulls/33493
2020-04-12T13:55:43Z
2020-06-22T15:30:56Z
2020-06-22T15:30:55Z
2020-07-11T16:02:04Z
REF: de-duplicate code in libperiod
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index dd745f840d0ab..c4a7df0017619 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -806,24 +806,22 @@ cdef int64_t get_period_ordinal(npy_datetimestruct *dts, int freq) nogil: return unix_date_to_we...
discussed a few months ago, this gets rid of `date_info_from_days_and_time` and instead re-uses `pandas_datetime_to_datetimestruct`
https://api.github.com/repos/pandas-dev/pandas/pulls/33491
2020-04-12T04:16:46Z
2020-04-15T19:20:55Z
2020-04-15T19:20:55Z
2020-04-15T19:38:19Z
Implement pd.NA checking function
diff --git a/pandas/_libs/missing.pyx b/pandas/_libs/missing.pyx index dacf454824190..d18dad343c7c0 100644 --- a/pandas/_libs/missing.pyx +++ b/pandas/_libs/missing.pyx @@ -129,6 +129,33 @@ cpdef ndarray[uint8_t] isnaobj(ndarray arr): return result.view(np.bool_) +cpdef ndarray[uint8_t] ispdna(ndarray arr): + ...
- [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This may already exist in some form, but if not I think it could be useful to have a fast function for checking specifically for the presence of pd.NA (e.g. if we're loo...
https://api.github.com/repos/pandas-dev/pandas/pulls/33490
2020-04-12T03:30:26Z
2020-04-14T18:04:26Z
null
2020-04-14T18:04:30Z
REF: _convert_to_index_sliceable as DataFrame method
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d19f1a263f71a..8e673dc10d0fb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -124,7 +124,7 @@ from pandas.core.indexes.datetimes import DatetimeIndex from pandas.core.indexes.multi import MultiIndex, maybe_droplevels from pandas.core.inde...
It really doesnt make sense as anything other than a method.
https://api.github.com/repos/pandas-dev/pandas/pulls/33488
2020-04-11T21:57:07Z
2020-04-15T18:44:10Z
null
2021-07-16T16:08:20Z
API: dont infer freq in DTA/TDA arithmetic ops
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 30a34282889f8..0b50f18e0e290 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -1176,10 +1176,7 @@ def _add_timedeltalike_scalar(self, other): # adding a scalar preserves fre...
- [x] closes #23216 freq inference is pure overhead for the Series/DataFrame op because freq gets discarded.
https://api.github.com/repos/pandas-dev/pandas/pulls/33487
2020-04-11T21:20:39Z
2020-04-17T21:42:53Z
2020-04-17T21:42:53Z
2020-04-17T22:03:53Z
REF: remove Block.concat_same_type
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 185b0f4da2627..ebdc331a673ab 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -48,7 +48,6 @@ is_timedelta64_dtype, pandas_dtype, ) -from pandas.core.dtypes.concat import concat_categorica...
All the relevant logic lives in concat_compat already.
https://api.github.com/repos/pandas-dev/pandas/pulls/33486
2020-04-11T20:56:32Z
2020-04-15T19:22:47Z
2020-04-15T19:22:46Z
2020-04-15T19:34:21Z
PERF: Cythonize `from_nested_dict`
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 6147d6d9c1658..77caaa87d9b98 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -2526,3 +2526,20 @@ def fast_multiget(dict mapping, ndarray keys, default=np.nan): output[i] = default return maybe_convert_objects(output) + + ...
I did try to cythonize this function, but the problem is that it also accepting a ```collections.OrderedDict```, which cannot be ```cdef``` as ```dict```, but have to ```cdef``` as ```object```. --- I don't see much of a performance boost, I have ran the full benchmark suite and ```asv``` says that the ```BENCHMA...
https://api.github.com/repos/pandas-dev/pandas/pulls/33485
2020-04-11T18:00:50Z
2020-04-23T16:34:57Z
null
2020-04-23T16:34:57Z
TST: Don't use deprecated version of read_html
diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index 3d73e983402a7..2c93dbb5b6b83 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -321,7 +321,7 @@ def test_invalid_table_attrs(self): url = self.banklist_data with pytest.raises(ValueError, match...
Usage of function read_html is marked as deprecated when used with positional arguments. In case when we do not explicitly check the warning message with assert_produces_warning we should use non-deprecated version. This will resolve #33397 To identify candidates to change I modified decorator to raise an `Exc...
https://api.github.com/repos/pandas-dev/pandas/pulls/33482
2020-04-11T14:33:30Z
2020-04-12T21:48:32Z
2020-04-12T21:48:32Z
2020-04-12T21:48:37Z
BUG: Add unordered option to pandas.cut (#33141)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 597a0c5386cf0..8650eb24f615d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -139,6 +139,7 @@ Other enhancements - The :meth:`DataFrame.to_feather` method now supports additional keyword arguments ...
Added tests and error message when there are no labels and `ordered=False`. Issue: Pandas cut raises error if labels are non-unique (Closes #33141) - [x] closes #33141 - [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/33480
2020-04-11T14:07:04Z
2020-05-01T00:31:48Z
2020-05-01T00:31:47Z
2020-05-01T00:31:53Z
Added option to ignore file paths
diff --git a/scripts/validate_unwanted_patterns.py b/scripts/validate_unwanted_patterns.py index 193fef026a96b..16bf9a677641a 100755 --- a/scripts/validate_unwanted_patterns.py +++ b/scripts/validate_unwanted_patterns.py @@ -18,8 +18,6 @@ import tokenize from typing import IO, Callable, FrozenSet, Iterable, List, Tup...
This is needed both for #32942 and to #33394 to ignore the ```pandas/tests``` directory
https://api.github.com/repos/pandas-dev/pandas/pulls/33479
2020-04-11T13:47:45Z
2020-07-10T00:06:32Z
null
2021-05-03T12:28:26Z
Send None parameter to pandas-gbq to set no progress bar
diff --git a/ci/deps/travis-36-locale.yaml b/ci/deps/travis-36-locale.yaml index 3fc19f1bca084..2c8403acf6971 100644 --- a/ci/deps/travis-36-locale.yaml +++ b/ci/deps/travis-36-locale.yaml @@ -27,7 +27,7 @@ dependencies: - numexpr - numpy - openpyxl - - pandas-gbq=0.8.0 + - pandas-gbq=0.12.0 - psycopg2=2....
- [x] closes #33360 - [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/33477
2020-04-11T11:12:16Z
2020-06-04T17:41:35Z
2020-06-04T17:41:34Z
2020-06-04T18:10:02Z
REF: unstack
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index d8875b38ed738..185b0f4da2627 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1384,15 +1384,13 @@ def equals(self, other) -> bool: return False return array_equivalent(self.va...
cc @jreback this moves a small amount of the unstack logic up the call stack, which is worthwhile, but the big wins available are if you can help me figure out the questions in inline comments.
https://api.github.com/repos/pandas-dev/pandas/pulls/33474
2020-04-11T03:00:36Z
2020-04-12T20:33:38Z
2020-04-12T20:33:38Z
2020-12-02T17:58:46Z
BUG: Series.__setitem__[listlike_of_integers] with IntervalIndex
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 67dba3fab23e1..bccfce4f7e077 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -525,6 +525,7 @@ Indexing - Bug in `Series.__getitem__` with an integer key and a :class:`MultiIndex` with leading integer ...
- [ ] closes #xxxx - [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/33473
2020-04-11T01:54:00Z
2020-04-17T18:09:59Z
2020-04-17T18:09:59Z
2020-04-17T19:44:12Z
REF: Simplify __getitem__ by doing positional-int check first
diff --git a/pandas/core/series.py b/pandas/core/series.py index a73ef08b606e3..3f5927828e541 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -881,32 +881,35 @@ def __getitem__(self, key): if isinstance(key, (list, tuple)): key = unpack_1tuple(key) - if key_is_scalar or ...
This gets rid of the last non-test usage of `Index.get_value`, so that can be deprecated, xref #19728 This focuses only on `__getitem__`; `__setitem__` is tougher for a few reasons, including #33469.
https://api.github.com/repos/pandas-dev/pandas/pulls/33471
2020-04-10T23:22:34Z
2020-04-12T20:29:57Z
2020-04-12T20:29:57Z
2020-04-12T20:31:02Z
DOC: timezone conversion example added to pandas.Series.astype doc #33399
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index eb6554bf2260c..f5ebd6bc08bfb 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5538,6 +5538,24 @@ def astype( 0 10 1 2 dtype: int64 + + Create a series of dates: + + >>> ser_date = pd.Se...
…3399 - [x] closes #33399 Have added an example in the documentation page of pandas.Series.astype for datetime type with timezone.
https://api.github.com/repos/pandas-dev/pandas/pulls/33470
2020-04-10T23:00:35Z
2020-04-12T21:47:12Z
2020-04-12T21:47:12Z
2020-04-13T01:58:00Z
Groupby test_apply_mutate
diff --git a/pandas/tests/groupby/test_apply_mutate.py b/pandas/tests/groupby/test_apply_mutate.py new file mode 100644 index 0000000000000..529f76bf692ce --- /dev/null +++ b/pandas/tests/groupby/test_apply_mutate.py @@ -0,0 +1,70 @@ +import numpy as np + +import pandas as pd +import pandas._testing as tm + + +def test...
@jreback comment in https://github.com/pandas-dev/pandas/pull/33072#pullrequestreview-391657128
https://api.github.com/repos/pandas-dev/pandas/pulls/33468
2020-04-10T21:03:01Z
2020-04-10T22:24:01Z
2020-04-10T22:24:00Z
2023-04-12T20:17:00Z
setup.py Simplifications
diff --git a/setup.py b/setup.py index 62c645bbb1465..fbc7c1cf9aa8f 100755 --- a/setup.py +++ b/setup.py @@ -415,28 +415,10 @@ def run(self): # ---------------------------------------------------------------------- # Preparation of compiler arguments -debugging_symbols_requested = "--with-debugging-symbols" in sys....
Just a smattering of things that I doubt anyone is using
https://api.github.com/repos/pandas-dev/pandas/pulls/33467
2020-04-10T20:32:38Z
2020-04-14T14:59:48Z
null
2023-04-12T20:16:58Z
API: more permissive conversion to StringDtype
diff --git a/doc/source/user_guide/text.rst b/doc/source/user_guide/text.rst index bea0f42f6849c..3408b98b3179d 100644 --- a/doc/source/user_guide/text.rst +++ b/doc/source/user_guide/text.rst @@ -63,6 +63,29 @@ Or ``astype`` after the ``Series`` or ``DataFrame`` is created s s.astype("string") + +.. versionc...
- [x] closes #31204 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is a proposal to make using ``StringDtype`` more permissive and be usable inplace of ``dtype=str``. ATM converting to StringDtype will only ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33465
2020-04-10T19:50:25Z
2020-05-26T22:20:21Z
2020-05-26T22:20:20Z
2020-05-27T05:56:38Z
CLN: Nitpicks
diff --git a/pandas/_libs/reshape.pyx b/pandas/_libs/reshape.pyx index e74b5919a4590..aed5e1d612088 100644 --- a/pandas/_libs/reshape.pyx +++ b/pandas/_libs/reshape.pyx @@ -36,7 +36,7 @@ ctypedef fused reshape_t: @cython.wraparound(False) @cython.boundscheck(False) -def unstack(reshape_t[:, :] values, uint8_t[:] ma...
- [ ] closes #xxxx - [ ] 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/33464
2020-04-10T19:33:41Z
2020-04-11T18:41:33Z
2020-04-11T18:41:33Z
2020-04-11T18:54:14Z
BUG: None converted to NaN after groupby first and last
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 718de09a0c3e4..f789b74e1b795 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -546,6 +546,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrameGroupBy.agg` with dictionary input losing ``ExtensionArr...
- [x] closes #32800 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This PR solves #32800. In #32124 `not checknull()` was introduced to `groupfirst()` and `grouplast()`. `None` is not caught in this conditional and ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33462
2020-04-10T17:48:02Z
2020-04-17T02:53:39Z
2020-04-17T02:53:39Z
2020-05-26T09:36:35Z
CI: fix lint issue
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 75c935cdf2e60..80573f32b936e 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -8,7 +8,7 @@ from pandas._libs import NaT, algos as libalgos, lib, writers import pandas._libs.internals as libinter...
https://github.com/pandas-dev/pandas/runs/577244968 Linting .py code ##[error]./pandas/core/internals/blocks.py:11:1:F401:'pandas._libs.tslibs.Timedelta' imported but unused Linting .py code DONE
https://api.github.com/repos/pandas-dev/pandas/pulls/33461
2020-04-10T17:45:51Z
2020-04-10T19:16:14Z
2020-04-10T19:16:14Z
2020-04-11T08:36:45Z
asv config to use `build_ext` instead of `build`
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 7c10a2d17775a..221cabfcacf36 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -125,6 +125,6 @@ "regression_thresholds": { }, "build_command": - ["python setup.py build -j4", + ["python setup.py build_ext -j4",...
Not 100% sure on this change, feel free to close at any time. --- I have not seen a single mention in the docs of ```python setup.py build``` there was only mention of ```python setup.py build_ext```, so I thought that asv should follow that as well (I could be wrong here).
https://api.github.com/repos/pandas-dev/pandas/pulls/33459
2020-04-10T15:59:30Z
2020-04-10T19:26:29Z
null
2020-04-10T19:27:31Z
TST: concat(..., copy=False) with datetime tz-aware data raises ValueError: cannot create a DatetimeTZBlock without a tz
diff --git a/pandas/tests/dtypes/test_concat.py b/pandas/tests/dtypes/test_concat.py index 1fbbd3356ae13..5a9ad732792ea 100644 --- a/pandas/tests/dtypes/test_concat.py +++ b/pandas/tests/dtypes/test_concat.py @@ -88,3 +88,14 @@ def test_concat_mismatched_categoricals_with_empty(): result = _concat.concat_compat([s...
…n version 0.24.1 but passes on current version - [x] closes #25257 - [x] tests added / passed
https://api.github.com/repos/pandas-dev/pandas/pulls/33458
2020-04-10T15:30:26Z
2020-07-13T12:55:12Z
2020-07-13T12:55:12Z
2020-07-13T12:55:29Z
TYP: F used in decorators to _typing
diff --git a/pandas/_config/config.py b/pandas/_config/config.py index df706bf25097e..8955a06187109 100644 --- a/pandas/_config/config.py +++ b/pandas/_config/config.py @@ -51,20 +51,11 @@ from collections import namedtuple from contextlib import contextmanager import re -from typing import ( - Any, - Callable...
xref #27404
https://api.github.com/repos/pandas-dev/pandas/pulls/33456
2020-04-10T14:14:39Z
2020-04-10T17:02:33Z
2020-04-10T17:02:33Z
2020-04-10T17:10:57Z
Bump cython asv
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index 7886b63e9983e..7c10a2d17775a 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -39,7 +39,7 @@ // followed by the pip installed packages). "matrix": { "numpy": [], - "Cython": [], + "Cython": ["0.29....
We were pulling in an older version, possibly from defaults. I think we should plan a major update of all these (notably python 3.6 -> 3.8) but that'll require some care to not invalidate the results at pandas.pydata.org/speed/pandas.
https://api.github.com/repos/pandas-dev/pandas/pulls/33454
2020-04-10T13:07:26Z
2020-04-10T13:53:34Z
2020-04-10T13:53:34Z
2020-04-10T13:53:37Z
CLN/TYP: redundant casts and unused ignores
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index df58593bc930c..54e49eaf60021 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3838,7 +3838,7 @@ def values(self) -> np.ndarray: return self._data.view(np.ndarray) @cache_readonly - @doc(IndexOps...
https://api.github.com/repos/pandas-dev/pandas/pulls/33453
2020-04-10T12:26:20Z
2020-04-10T15:38:42Z
2020-04-10T15:38:42Z
2020-04-10T15:50:55Z
Whitelist std and var for use with custom rolling windows
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index af2f02a09428b..d7d025981f2f4 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -312,8 +312,8 @@ We provide a number of common statistical functions: :meth:`~Rolling.media...
- [X] xref #32865 - [X] 0 tests added / 0 passed - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry ### The problem While researching what funcitons are broken for #32865 , I added `std` and `var` to the list since their output didn't match numpy...
https://api.github.com/repos/pandas-dev/pandas/pulls/33448
2020-04-10T07:21:48Z
2020-04-17T02:54:51Z
2020-04-17T02:54:51Z
2020-04-17T06:27:03Z
REF: de-nest Series getitem/setitem checks
diff --git a/pandas/core/series.py b/pandas/core/series.py index 66caa4623f9ad..71fd7af29ef3a 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -880,6 +880,17 @@ def __getitem__(self, key): if isinstance(key, (list, tuple)): key = unpack_1tuple(key) + if isinstance(key, sl...
ATM the first checks we do in `Series.__getitem__` and `__setitem__` are for `get_loc` with some not-totally-straightforward try/except logic. This moves the slice case and the com.is_bool_indexer case up, and aligns the ordering of the checks between getitem/setitem. Getting the com.is_bool_indexer case out from...
https://api.github.com/repos/pandas-dev/pandas/pulls/33447
2020-04-10T03:59:45Z
2020-04-10T18:21:13Z
null
2020-04-14T03:17:57Z
BUG: Fix ValueError when grouping by read-only category (#33410)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c39377899a20..38f850422d7ae 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -517,6 +517,7 @@ Groupby/resample/rolling - Bug in :meth:`SeriesGroupBy.first`, :meth:`SeriesGroupBy.last`, :meth:`SeriesGr...
- [x] closes #33410 - [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/33446
2020-04-10T02:12:31Z
2020-04-10T16:57:10Z
2020-04-10T16:57:09Z
2020-04-10T17:10:43Z
REF: remove replace_list kludge
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index 75c935cdf2e60..80573f32b936e 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -8,7 +8,7 @@ from pandas._libs import NaT, algos as libalgos, lib, writers import pandas._libs.internals as libinter...
This sits on top of #33441
https://api.github.com/repos/pandas-dev/pandas/pulls/33445
2020-04-10T01:43:16Z
2020-04-10T20:55:01Z
2020-04-10T20:55:01Z
2020-04-10T20:57:33Z
DOC: Fix heading capitalization in doc/source/whatsnew - part4 (#32550)
diff --git a/doc/source/whatsnew/v0.14.0.rst b/doc/source/whatsnew/v0.14.0.rst index 0041f6f03afef..847a42b3a7643 100644 --- a/doc/source/whatsnew/v0.14.0.rst +++ b/doc/source/whatsnew/v0.14.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_0140: -v0.14.0 (May 31 , 2014) ------------------------ +Version 0.14.0 (May 31 , 2014) +--...
Add exceptions to the list in 'scripts/validate_rst_title_capitalization.py' - [ ] Modify files in doc/source/whatsnew: v0.14.0.rst, v0.14.1.rst, v0.15.0.rst, v0.15.1.rst, v0.15.2.rst, v0.16.0.rst, v0.16.1.rst, v0.16.2.rst, v0.17.0.rst, v0.17.1.rst - [ ] Modify files in scripts: validate_rst_title_capitalization.py
https://api.github.com/repos/pandas-dev/pandas/pulls/33444
2020-04-09T22:21:38Z
2020-04-17T02:55:35Z
2020-04-17T02:55:35Z
2020-04-17T02:55:52Z
ENH: Add prod to masked_reductions
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 718de09a0c3e4..b31041886cf15 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -377,7 +377,7 @@ Performance improvements sparse values from ``scipy.sparse`` matrices using the :meth:`DataFrame.spar...
Adding prod to /core/array_algos/masked_reductions.py and using them for IntegerArray and BooleanArray. This also seems to offer a decent speedup over nanops like the other reductions: ```python # Branch [ins] In [3]: %timeit arr.prod() # arr = pd.Series([None, 0, 1, 2] * 10_000, dtype="Int64") 102 µs ± 379 ns...
https://api.github.com/repos/pandas-dev/pandas/pulls/33442
2020-04-09T20:14:40Z
2020-04-12T22:59:02Z
2020-04-12T22:59:02Z
2020-04-12T23:21:57Z
BUG: Timedelta == ndarray[td64]
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c39377899a20..1161ac2d19049 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -395,6 +395,7 @@ Timedelta - Bug in dividing ``np.nan`` or ``None`` by :class:`Timedelta`` incorrectly returning ``NaT`` (:...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry xref #33346 Between the two of these, we should be able to get rid of this kludge: https://github.com/pandas-dev/pandas/blob/master/pandas/core/in...
https://api.github.com/repos/pandas-dev/pandas/pulls/33441
2020-04-09T19:49:45Z
2020-04-10T15:58:10Z
2020-04-10T15:58:10Z
2020-04-10T18:06:09Z
BUG: `weights` is not working for multiple columns in df.plot.hist
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 584e21e87390d..c5be188f5c9b7 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -504,7 +504,7 @@ Plotting ^^^^^^^^ - :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`). -- +- Bu...
- [x] closes #33173 - [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/33440
2020-04-09T19:41:52Z
2020-04-10T16:59:56Z
2020-04-10T16:59:56Z
2020-04-10T17:00:00Z
BUG: Fix bug when concatenating Index of strings
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c39377899a20..13b0d6ee66eb8 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -421,7 +421,7 @@ Strings ^^^^^^^ - Bug in the :meth:`~Series.astype` method when converting "string" dtype data to nulla...
- [ ] closes #33425 - [ ] 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/33436
2020-04-09T18:07:20Z
2020-04-10T17:47:26Z
2020-04-10T17:47:25Z
2020-04-10T18:10:06Z
Support downcasting of nullable arrays
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index d283d4450e6bf..0ecec532d4340 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -88,6 +88,7 @@ Other enhancements - :class:`Series.str` now has a `fullmatch` method that matches a regular expression agai...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Addressing GH #33013. Supports downcasting of nullable dtypes by transferring elements in extension array to ndarray to avoid TypeError thrown by np....
https://api.github.com/repos/pandas-dev/pandas/pulls/33435
2020-04-09T17:28:41Z
2020-11-18T16:55:40Z
null
2020-11-18T16:55:40Z
remove flake8-rst cap
diff --git a/environment.yml b/environment.yml index c874c5a8f68da..6ba5d0d324aeb 100644 --- a/environment.yml +++ b/environment.yml @@ -19,7 +19,7 @@ dependencies: - cpplint - flake8 - flake8-comprehensions>=3.1.0 # used by flake8, linting of unnecessary comprehensions - - flake8-rst>=0.6.0,<=0.7.0 # linti...
looks like this was capped a ways back in #24756 - tried locally and didn't see any issues so may be fine to lift the cap @datapythonista
https://api.github.com/repos/pandas-dev/pandas/pulls/33432
2020-04-09T17:00:55Z
2020-04-10T16:40:32Z
null
2023-04-12T20:17:02Z
Temporary fix for Py38 build issues on macOS
diff --git a/setup.py b/setup.py index 089baae123d2a..338686bddd146 100755 --- a/setup.py +++ b/setup.py @@ -454,6 +454,9 @@ def run(self): ): os.environ["MACOSX_DEPLOYMENT_TARGET"] = "10.9" + if sys.version_info[:2] == (3, 8): # GH 33239 + extra_compile_args.append("-Wno-error=deprec...
ref #33239 works around issues confirmed by @jbrockmendel and @TomAugspurger Ideally could fix upstream, but may not be worth the effort given the level of nuance
https://api.github.com/repos/pandas-dev/pandas/pulls/33431
2020-04-09T16:52:58Z
2020-04-09T18:26:58Z
2020-04-09T18:26:58Z
2023-04-12T20:17:37Z
DOC: Fix heading capitalization in doc/source/whatsnew - part3 (#32550)
diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index 2e0442364b2f3..443250592a4a7 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -1,7 +1,7 @@ .. _whatsnew_0100: -v0.10.0 (December 17, 2012) ---------------------------- +Version 0.10.0 (December 1...
- [ ] Modify files v0.8.0.rst, v0.8.1.rst, v0.9.0.rst, v0.9.1.rst, v010.0.rst, v0.10.1.rst, v0.11.0.rst, v0.12.0.rst, v0.13.0.rst, v0.13.1.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/33429
2020-04-09T16:29:36Z
2020-04-10T17:48:06Z
2020-04-10T17:48:06Z
2020-04-10T17:48:10Z
CLN: avoid accessing private functions
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 6cb597ba75852..7447d593a7ff0 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -1206,7 +1206,7 @@ def _maybe_convert(arr): return _maybe_convert(res) - op_name = ops._get_op_name(op, True) + ...
xref #33394 @simonjayhawkins thoughts on how to handle the mypy complaint?
https://api.github.com/repos/pandas-dev/pandas/pulls/33427
2020-04-09T16:13:57Z
2020-04-10T16:08:54Z
2020-04-10T16:08:54Z
2020-04-10T18:02:12Z
CLN: remove unnecessary branches in Series.__setitem__
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 6e41ff189592c..a47303ddc93cf 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -194,7 +194,7 @@ cdef class IntervalMixin: f"expected {repr(self.closed)}.") -cdef _interval_like(other): +cde...
Eventually I'd like to get the structure of `__setitem__` to parallel the structure of `__getitem__`. Some big improvements to both will be available following #33404.
https://api.github.com/repos/pandas-dev/pandas/pulls/33424
2020-04-09T15:04:59Z
2020-04-09T18:28:32Z
2020-04-09T18:28:32Z
2021-11-20T23:23:12Z
Unpin Python 37 in environment.yml
diff --git a/environment.yml b/environment.yml index 935f8e97d4bf6..c874c5a8f68da 100644 --- a/environment.yml +++ b/environment.yml @@ -4,7 +4,7 @@ channels: dependencies: # required - numpy>=1.15 - - python=3.7 + - python=3 - python-dateutil>=2.6.1 - pytz
I believe this was supposed to be temporary, so quick follow up to #29431 @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/33423
2020-04-09T14:48:36Z
2020-04-09T15:38:05Z
2020-04-09T15:38:05Z
2023-04-12T20:17:03Z
ENH: update feather IO for pyarrow 0.17 / Feather V2
diff --git a/doc/source/conf.py b/doc/source/conf.py index d24483abd28e1..d2404b757ca11 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -416,6 +416,7 @@ "python": ("https://docs.python.org/3/", None), "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None), "statsmodels": (...
Upcoming pyarrow 0.17 release will include an upgraded feather format. This PRs updates pandas for that, more specifically ensures the new keywords can be passed through (the basics should keep working out of the box, since the public API did not change), and small update to the tests
https://api.github.com/repos/pandas-dev/pandas/pulls/33422
2020-04-09T14:19:31Z
2020-04-10T08:37:48Z
2020-04-10T08:37:48Z
2020-06-21T17:26:14Z
API: More permissive conversion to StringDtype
diff --git a/pandas/core/arrays/string_.py b/pandas/core/arrays/string_.py index dbca8e74f5e1b..c452f3fbc87ae 100644 --- a/pandas/core/arrays/string_.py +++ b/pandas/core/arrays/string_.py @@ -203,11 +203,12 @@ def _from_sequence(cls, scalars, dtype=None, copy=False): # TODO: it would be nice to do this in _va...
- [x] closes #31204 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is a proposal to make using ``StringDtype`` more permissive and be usable inplace of ``dtype=str``. ATM converting to StringDtype will only ...
https://api.github.com/repos/pandas-dev/pandas/pulls/33421
2020-04-09T13:05:15Z
2020-04-09T13:23:31Z
null
2020-05-25T11:50:11Z
lreshape and wide_to_long documentation (Closes #33417)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1587dd8798ec3..a4408d1f5d23d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6609,6 +6609,8 @@ def groupby( duplicate values for one index/column pair. DataFrame.unstack : Pivot based on the index values instead of a ...
- [ ] closes #33417 - [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/33418
2020-04-09T06:39:07Z
2020-08-19T13:05:41Z
2020-08-19T13:05:41Z
2020-08-19T13:05:48Z
DOC: Fix EX01 in DataFrame.duplicated
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index d2da52ba7bdd0..e14325759e509 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4740,6 +4740,73 @@ def duplicated( Returns ------- Series + Boolean series for each duplicated rows. + + See Also + ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Related to #27977. ``` ################################################################################ ################################## Vali...
https://api.github.com/repos/pandas-dev/pandas/pulls/33416
2020-04-09T03:24:13Z
2020-04-09T17:53:33Z
2020-04-09T17:53:33Z
2020-04-09T17:53:40Z
WIP: Timestamp/DTA match stdlib tzawareness-compat behavior
diff --git a/pandas/_libs/tslibs/c_timestamp.pxd b/pandas/_libs/tslibs/c_timestamp.pxd index d095b6027d2f9..49e7992063aa0 100644 --- a/pandas/_libs/tslibs/c_timestamp.pxd +++ b/pandas/_libs/tslibs/c_timestamp.pxd @@ -11,7 +11,7 @@ cdef class _Timestamp(datetime): cpdef _get_date_name_field(self, object field, obje...
- [x] closes #28507 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I'm not super-happy with the implementation adding `op` kwarg to check_compatible_with and assert_tzawareness_compat, looking for something cleaner.
https://api.github.com/repos/pandas-dev/pandas/pulls/33415
2020-04-09T03:01:58Z
2020-04-15T18:44:42Z
null
2021-01-04T06:20:18Z
use https link for Anaconda
diff --git a/doc/source/getting_started/index.rst b/doc/source/getting_started/index.rst index 9ac8c58e1d8f2..3f15c91f83c6a 100644 --- a/doc/source/getting_started/index.rst +++ b/doc/source/getting_started/index.rst @@ -21,7 +21,7 @@ Installation <div class="card-body"> <p class="...
- [ ] closes #xxxx - [ ] 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/33413
2020-04-09T01:35:50Z
2020-04-09T02:22:07Z
2020-04-09T02:22:07Z
2020-04-09T02:22:12Z
To numeric
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index d283d4450e6bf..0ecec532d4340 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -88,6 +88,7 @@ Other enhancements - :class:`Series.str` now has a `fullmatch` method that matches a regular expression agai...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Addressing GH #33013. Supports downcasting of nullable dtypes by transferring elements in extension array to ndarray to avoid TypeError thrown by np....
https://api.github.com/repos/pandas-dev/pandas/pulls/33411
2020-04-09T00:18:02Z
2020-04-09T17:26:16Z
null
2020-04-09T17:26:16Z
BUG: DatetimeIndex.astype matches Series.dtype with datetime tz dtype
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c39377899a20..6fab4da0921cf 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -400,7 +400,7 @@ Timezones ^^^^^^^^^ - Bug in :func:`to_datetime` with ``infer_datetime_format=True`` where timezone nam...
- [x] closes #33401 - [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/33409
2020-04-08T23:05:28Z
2020-04-09T02:50:10Z
null
2020-04-09T02:50:15Z
REF: collect DataFrame.__setitem__ tests
diff --git a/pandas/tests/frame/indexing/test_categorical.py b/pandas/tests/frame/indexing/test_categorical.py index 0ae2f81108be9..d94dc8d2ffe00 100644 --- a/pandas/tests/frame/indexing/test_categorical.py +++ b/pandas/tests/frame/indexing/test_categorical.py @@ -391,11 +391,3 @@ def test_loc_indexing_preserves_index_...
https://api.github.com/repos/pandas-dev/pandas/pulls/33408
2020-04-08T21:44:12Z
2020-04-08T23:22:32Z
2020-04-08T23:22:31Z
2020-04-08T23:23:50Z
REF: call pandas_dtype up-front in Index.__new__
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 1c5cdd1617cbd..530aaee24c7fb 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -48,6 +48,7 @@ is_signed_integer_dtype, is_timedelta64_dtype, is_unsigned_integer_dtype, + pandas_dtype, ) from pand...
This leaves us in position to drop in dtype-only is_foo_dtype checks
https://api.github.com/repos/pandas-dev/pandas/pulls/33407
2020-04-08T20:59:44Z
2020-04-10T20:52:11Z
2020-04-10T20:52:11Z
2020-04-10T20:58:58Z
BUG: to_period() freq was not infered
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 718de09a0c3e4..f3b301a29b8c3 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -409,6 +409,8 @@ Datetimelike - Bug in :meth:`DatetimeIndex.searchsorted` not accepting a ``list`` or :class:`Series` as it...
- [x] closes #33358 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry --- When running ```pytest -q --cache-clear pandas/tests/ -k "period"``` some tests in ```pandas/tests/indexing/``` are failing, but when running...
https://api.github.com/repos/pandas-dev/pandas/pulls/33406
2020-04-08T19:56:23Z
2020-04-12T23:00:01Z
2020-04-12T23:00:01Z
2020-06-10T15:15:38Z
CLN: follow-ups to #33340
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index d69b417f6e056..d3d8bead88d08 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -106,13 +106,8 @@ cdef class BlockPlacement: else: return self._as_array - def isin(self, arr): - from pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/33405
2020-04-08T19:49:03Z
2020-04-08T20:41:07Z
2020-04-08T20:41:07Z
2020-04-08T20:49:52Z
BUG: Series.__getitem__ with MultiIndex and leading integer level
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c39377899a20..0e68c3799efa7 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -447,6 +447,7 @@ Indexing - Bug in :meth:`DataFrame.lookup` incorrectly raising an ``AttributeError`` when ``frame.index`` ...
- [x] closes #33355 - [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/33404
2020-04-08T19:14:26Z
2020-04-10T16:00:57Z
2020-04-10T16:00:57Z
2020-04-10T18:18:56Z
DOC: Fix heading capitalization in doc/source/whatsnew - part2 (#32550)
diff --git a/doc/source/whatsnew/v0.6.1.rst b/doc/source/whatsnew/v0.6.1.rst index d01757775d694..8eea0a07f1f79 100644 --- a/doc/source/whatsnew/v0.6.1.rst +++ b/doc/source/whatsnew/v0.6.1.rst @@ -1,8 +1,8 @@ .. _whatsnew_061: -v.0.6.1 (December 13, 2011) ---------------------------- +Version 0.6.1 (December 13, 2...
- [ ] Modify files v0.6.1.rst, v0.7.0.rst, v0.7.1.rst, v0.7.2.rst, v0.7.3.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/33403
2020-04-08T18:24:09Z
2020-04-10T17:54:24Z
2020-04-10T17:54:24Z
2020-04-10T17:54:28Z
TST: Parameterize tests
diff --git a/pandas/tests/indexes/numeric/test_indexing.py b/pandas/tests/indexes/numeric/test_indexing.py index 473e370c76f8b..a28a925b76a8f 100644 --- a/pandas/tests/indexes/numeric/test_indexing.py +++ b/pandas/tests/indexes/numeric/test_indexing.py @@ -13,17 +13,28 @@ def index_large(): class TestGetLoc: - ...
- [ ] 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/33402
2020-04-08T18:05:48Z
2020-07-17T11:18:36Z
null
2023-05-11T01:19:36Z
PERF: fastpaths in is_foo_dtype checks
diff --git a/pandas/_libs/__init__.py b/pandas/_libs/__init__.py index 141ca0645b906..f119e280f5867 100644 --- a/pandas/_libs/__init__.py +++ b/pandas/_libs/__init__.py @@ -6,9 +6,11 @@ "Timedelta", "Timestamp", "iNaT", + "Interval", ] +from pandas._libs.interval import Interval from pandas._lib...
xref #33364, partially addresses #33368 For exposition I used the new type checking functions in parsers.pyx. For the implementation I chose `.type` and `.kind` checks in order to avoid needing the imports from `dtypes.dtypes`, which has dependencies on a bunch of other parts of the code. ``` In [1]: import p...
https://api.github.com/repos/pandas-dev/pandas/pulls/33400
2020-04-08T16:39:15Z
2020-04-17T02:33:46Z
2020-04-17T02:33:46Z
2020-04-17T03:01:07Z
ENH: Support passing compression args to gzip and bz2
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index f2152c43ceaba..df6b44ac654ce 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -285,14 +285,18 @@ chunksize : int, default ``None`` Quoting, compression, and file format +++++++++++++++++++++++++++++++++++++ ...
This commit closes #33196 but takes a more generic approach than the suggested solution. Instead of providing a 'fast' kwarg or global compression level setting, this commit extends the ability to pass compression settings as a dict to the gzip and bz2 compression methods. In this way, if the user wants faster comp...
https://api.github.com/repos/pandas-dev/pandas/pulls/33398
2020-04-08T15:28:40Z
2020-04-10T22:21:10Z
2020-04-10T22:21:10Z
2020-04-10T22:21:44Z
(WIP) CI: Check private function not used across modules
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f7a513ca22d53..926f09e561193 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -116,6 +116,14 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then fi RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Check for use of private functions across modu...
- [x] xref https://github.com/pandas-dev/pandas/pull/32942#issuecomment-609893282 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry --- cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/33394
2020-04-08T13:06:05Z
2020-06-14T17:21:52Z
null
2021-05-05T12:14:09Z
CI: Check private function not used across modules
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8901efad56f79..8e47b1ffb5b76 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -116,6 +116,19 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then fi RET=$(($RET + $?)) ; echo $MSG "DONE" + MSG='Check for use of private functions across modu...
- [x] xref https://github.com/pandas-dev/pandas/pull/32942#issuecomment-609893282 - [ ] 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/33393
2020-04-08T13:02:40Z
2020-04-08T13:03:00Z
null
2020-09-01T01:57:44Z
BUG/PLT: Multiple plots with different cmap, colorbars legends use first cmap
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 33c65a146dbb5..7059e7e30c73f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -441,6 +441,7 @@ Plotting - :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`). - - Bug in :meth:`...
- [x] closes #33389 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Since this is a plot PR, just post what it looks like after the change ![Screen Shot 2020-04-08 at 3 43 54 PM](https://user-images.githubusercon...
https://api.github.com/repos/pandas-dev/pandas/pulls/33392
2020-04-08T12:46:16Z
2020-04-10T17:00:49Z
2020-04-10T17:00:49Z
2020-04-10T17:00:52Z
ENH: Add numba engine to groupby.aggregate
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index eb637c78806c0..c9ac275cc4ea7 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -660,4 +660,62 @@ def function(values): self.grouper.transform(function, engine="cython") +class AggEngine:...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry In the same spirit of #31845 and #32854, adding `engine` and `engine_kwargs` arguments to `groupby.aggreate`. This PR has some functionality that is waiting to be mer...
https://api.github.com/repos/pandas-dev/pandas/pulls/33388
2020-04-08T05:48:14Z
2020-04-26T00:02:57Z
2020-04-26T00:02:57Z
2020-04-26T04:21:57Z
REF: numeric index test_indexing
diff --git a/pandas/tests/indexes/numeric/test_indexing.py b/pandas/tests/indexes/numeric/test_indexing.py new file mode 100644 index 0000000000000..473e370c76f8b --- /dev/null +++ b/pandas/tests/indexes/numeric/test_indexing.py @@ -0,0 +1,237 @@ +import numpy as np +import pytest + +from pandas import Float64Index, In...
- [ ] closes #xxxx - [ ] 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/33387
2020-04-08T03:13:05Z
2020-04-08T13:39:40Z
2020-04-08T13:39:40Z
2020-04-08T15:09:18Z