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: de-duplicate methods calling get_dst_info
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index f6034a1347f90..c7d7a5f56b21d 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -44,8 +44,14 @@ from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime from pandas._libs.tslibs.parsing import parse_datetime_string from panda...
We have a 8ish functions that all do something like: ``` def do_thing_vectorized(values, tz): if is_utc(tz): for i in range(n): local_val = values[n] do_thing(local_val) elif is_tzlocal(tz); for i in range(n): local_val = get_local_val_for_tzloca...
https://api.github.com/repos/pandas-dev/pandas/pulls/34202
2020-05-15T22:30:59Z
2020-05-16T15:53:02Z
null
2021-11-20T23:21:42Z
ENH: Implement __iter__ for Rolling and Expanding
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index d371f6d5f273c..cf630a9671013 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -648,6 +648,24 @@ from present information back to past information. This allows the rolling win...
- [x] closes #11704 - [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/34201
2020-05-15T21:33:29Z
2020-05-17T22:17:52Z
2020-05-17T22:17:51Z
2020-06-09T18:17:49Z
CLN/TYP: Groupby agg methods
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index d9b65f92ac0e1..55b9c28c74cb2 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -36,7 +36,6 @@ class providing the base-class of operations. from pandas._libs import Timestamp import pandas._libs.groupb...
Same as #34178. I had some trouble rebasing that PR, so just made a new PR instead. This takes care of the comment in #34178 about staticmethod.
https://api.github.com/repos/pandas-dev/pandas/pulls/34200
2020-05-15T21:20:41Z
2020-05-17T22:10:31Z
2020-05-17T22:10:31Z
2020-08-08T08:30:55Z
PERF: Fixes performance regression in DataFrame[bool_indexer] (#33924)
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 7f3c24d5a2732..836d3ca8602ec 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -158,9 +158,9 @@ def time_boolean_rows_boolean(self): class DataFrameNumericIndexing: def setup(self): ...
- [x] closes #33924 - [x] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Insted of calling `construction.array` in `check_array_indexer`, creates array with `dtype=bool` before calling `check_array_indexer`. Fixes performance ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34199
2020-05-15T20:25:45Z
2020-06-01T01:42:31Z
2020-06-01T01:42:30Z
2020-06-01T01:51:04Z
CLN: let Index use general concat machinery - remove Index._concat_same_dtype
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index b8a9827b5effd..1604139b36848 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4101,37 +4101,13 @@ def append(self, other): return self._concat(to_concat, name) def _concat(self, to_concat, name): -...
Following up on the recent changes in the `concat_compat` machinery (to use the `_get_common_dtype` protocol for EAs), we can also use this in the Index class. Doing this also makes the `_concat_same_dtype` method unnecessary (as this is handled in `concat_compat` to use `EA._concat_same_type` when appropriate) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34198
2020-05-15T20:20:25Z
2020-05-17T22:13:09Z
2020-05-17T22:13:09Z
2020-05-18T06:42:04Z
REF: remove redundant get_freq function
diff --git a/pandas/_libs/tslibs/frequencies.pxd b/pandas/_libs/tslibs/frequencies.pxd index 1b7efb8c5dfdf..d6bae78576f50 100644 --- a/pandas/_libs/tslibs/frequencies.pxd +++ b/pandas/_libs/tslibs/frequencies.pxd @@ -1,7 +1,6 @@ cpdef str get_rule_month(object source, str default=*) cpdef get_freq_code(freqstr) -cp...
We have multiple functions named get_freq/get_freq_group, trying to de-duplicate these
https://api.github.com/repos/pandas-dev/pandas/pulls/34196
2020-05-15T19:38:12Z
2020-05-17T22:14:43Z
2020-05-17T22:14:43Z
2020-05-17T22:28:26Z
CLN: tslibs typing, avoid private funcs
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index f6034a1347f90..aad5be7ad99a8 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -44,8 +44,12 @@ from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime from pandas._libs.tslibs.parsing import parse_datetime_string from panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/34195
2020-05-15T19:36:20Z
2020-05-20T14:54:32Z
2020-05-20T14:54:32Z
2020-05-20T15:15:08Z
DOC: Add note about columns parameter not relevant for Series in rename_axis()
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 85b6a8431617a..c1c659ffdc17f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1012,6 +1012,9 @@ def rename_axis(self, mapper=lib.no_default, **kwargs): index, columns : scalar, list-like, dict-like or function, optional ...
- [x] closes #33564 - [ ] 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/34194
2020-05-15T18:26:59Z
2020-05-19T14:57:52Z
2020-05-19T14:57:52Z
2020-05-19T15:15:05Z
DEPR: deprecate Index.__getitem__ with float key
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 41d519e0765dc..bfe2dcee40d5e 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -590,6 +590,9 @@ Deprecations - :func:`pandas.api.types.is_categorical` is deprecated and will be removed in a future versi...
See #34191 for motivation Closes #34191
https://api.github.com/repos/pandas-dev/pandas/pulls/34193
2020-05-15T15:53:17Z
2020-05-23T13:17:29Z
2020-05-23T13:17:29Z
2020-05-23T13:17:33Z
PERF: Remove unnecessary copies in sorting functions (#33917)
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index 25312b180dba1..da9cbe1023599 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -385,7 +385,7 @@ def ensure_key_mapped(values, key: Optional[Callable], levels=None): from pandas.core.indexes.api import Index if not key: - ...
- [x] closes #33917 - [x] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This PR fixes pereformance regression after commit `dec736f3f` by removing unnecessary copies if `key=None` in sorting functions. ``` setup = """ impor...
https://api.github.com/repos/pandas-dev/pandas/pulls/34192
2020-05-15T15:43:10Z
2020-06-03T09:04:43Z
2020-06-03T09:04:42Z
2020-06-03T09:04:54Z
Backport PR #33983 on branch 1.0.x (BUG: Use args and kwargs in Rolling.apply)
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index 88b4ba748fd63..95007f4dd1caf 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -25,6 +25,7 @@ Fixed regressions - Fix to preserve the ability to index with the "nearest" method with xarray's CFTimeIndex...
xref #33983, #33433 fixes regression in 1.0.0
https://api.github.com/repos/pandas-dev/pandas/pulls/34190
2020-05-15T14:32:12Z
2020-05-15T15:01:21Z
2020-05-15T15:01:21Z
2020-05-15T15:01:26Z
CLN: deduplicate __setitem__ and _reduce on masked arrays
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 95bc334905891..9bc3d1276c79d 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -18,16 +18,13 @@ is_integer_dtype, is_list_like, is_numeric_dtype, - is_scalar, pandas_dtype, ) from pa...
For `__setitem__`, the only difference was that they both call to their own "coercing" function, so I made this available as a helper method, so it the rest of the implementation of `__setitem__` can be shared. For `_reduce`, everything was the same, BooleanArray just has an additional check for `any` and `all`.
https://api.github.com/repos/pandas-dev/pandas/pulls/34187
2020-05-15T14:08:30Z
2020-05-20T20:54:37Z
2020-05-20T20:54:37Z
2020-05-21T14:02:29Z
REF: inherit BaseOffset in WeekOfMonthMixin
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 3a9639a700953..1dd1565b066ef 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -23,7 +23,7 @@ from pandas._libs.tslibs.util cimport is_integer_object from pandas._libs.tslibs.base cimport ABCTick,...
Analogous to #34181
https://api.github.com/repos/pandas-dev/pandas/pulls/34184
2020-05-14T21:45:13Z
2020-05-17T22:15:58Z
2020-05-17T22:15:58Z
2020-05-17T22:27:08Z
BUG/ENH: Fix apply to only call `func` once on the first column/row
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5ef1f9dea5091..86b97dad8ad10 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -630,6 +630,45 @@ Using :meth:`DataFrame.groupby` with ``as_index=False`` and the function ``idxma df.groupby("a", as_...
closes #33879 closes #30815 closes #31620 - [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/34183
2020-05-14T21:08:49Z
2020-06-02T21:04:15Z
2020-06-02T21:04:14Z
2020-06-02T21:04:27Z
TST: add explicit csr explicit zero tests for GH28992
diff --git a/pandas/tests/arrays/sparse/test_array.py b/pandas/tests/arrays/sparse/test_array.py index f1e5050fa8a2e..d48e24cbee6fe 100644 --- a/pandas/tests/arrays/sparse/test_array.py +++ b/pandas/tests/arrays/sparse/test_array.py @@ -221,6 +221,18 @@ def test_from_spmatrix_including_explicit_zero(self, format): ...
simple test case to check that explicitly setting a value to zero in a matrix with csr representation does not cause other values to change, specifically to be set to zero erroneously - [ ] closes #xxxx - [*] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | fl...
https://api.github.com/repos/pandas-dev/pandas/pulls/34182
2020-05-14T20:44:35Z
2020-07-24T12:43:37Z
null
2020-07-24T12:43:37Z
REF: inherit BaseOffset in BusinessMixin
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 3a9639a700953..8d86c5e53eb9b 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -788,10 +788,13 @@ cdef class _Tick(ABCTick): object.__setattr__(self, "n", state["n"]) -class BusinessMixi...
Cython's cdef classes dont play nicely with multiple inheritance, so we're going to have to turn our mixins into a chain of base classes. This does that for BusinessMixin and BusinessHourMixin, de-duplicating some `__init__` methods along the way.
https://api.github.com/repos/pandas-dev/pandas/pulls/34181
2020-05-14T20:37:09Z
2020-05-17T22:23:51Z
2020-05-17T22:23:51Z
2020-05-17T22:27:35Z
CLN/TST: Remove Base Class and all subclasses and fixturize data
diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py index 5dca26df49930..7e0be331ec8d5 100644 --- a/pandas/tests/window/common.py +++ b/pandas/tests/window/common.py @@ -1,28 +1,8 @@ -from datetime import datetime - import numpy as np -from numpy.random import randn -from pandas import DataFra...
- [x] closes #30486 This PR will be able to finally close 30486 in my opinion (even a little beyond the scope ^^), and after this, all classes adhered to Base in `tests/window` folder is removed. Although the PR is huge, it actually is quite simple, basically it does: 1. Turn needed data from `_create_data()` in...
https://api.github.com/repos/pandas-dev/pandas/pulls/34179
2020-05-14T19:00:01Z
2020-05-15T12:53:25Z
2020-05-15T12:53:24Z
2020-05-19T08:11:25Z
PERF: avoid creating numpy array in groupby.first|last
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 57dad5a080358..e92673728e469 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -606,6 +606,8 @@ Performance improvements sparse values from ``scipy.sparse`` matrices using the :meth:`DataFrame.spar...
A unneeded numpy array is created for each group when calling ``groupby.first`` and ``groupby.last`` on ExtensionArrays. This avoids that. ```python >>> cat = pd.Categorical(["a"] * 1_000_000 + ["b"] * 1_000_000) >>> ser = pd.Series(cat) >>> %timeit ser.groupby(cat).first() 210 ms ± 3.03 ms per loop # master 7...
https://api.github.com/repos/pandas-dev/pandas/pulls/34178
2020-05-14T18:36:35Z
2020-05-15T12:54:41Z
2020-05-15T12:54:41Z
2020-05-24T16:56:36Z
CLN: update cimports
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 53e66c4b8723d..d5d706650bb34 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -9,11 +9,9 @@ cimport numpy as cnp from numpy cimport (ndarray, int8_t, int16_t, int32_t, int64_t, uint8_t, uint16_t, ...
some cosmetic, some ordering conventions, some using cimportable classes instead of py-classes
https://api.github.com/repos/pandas-dev/pandas/pulls/34176
2020-05-14T16:45:40Z
2020-05-15T12:57:09Z
2020-05-15T12:57:09Z
2020-05-15T15:13:17Z
Update test_period_range.py
diff --git a/pandas/tests/indexes/period/test_period_range.py b/pandas/tests/indexes/period/test_period_range.py index 2c3d22198df9f..68b48a55957ff 100644 --- a/pandas/tests/indexes/period/test_period_range.py +++ b/pandas/tests/indexes/period/test_period_range.py @@ -1,3 +1,4 @@ +import numpy as np import pytest f...
Attempting to implement test for resolved issue #21793 - [x] closes #21793
https://api.github.com/repos/pandas-dev/pandas/pulls/34175
2020-05-14T14:43:32Z
2020-05-15T12:58:18Z
2020-05-15T12:58:18Z
2020-05-15T12:58:21Z
Backport PR #33645, #33632 and #34087 on branch 1.0.x
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index 4f122b0dea5f4..714bcfb8720db 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -31,6 +31,10 @@ Bug fixes ~~~~~~~~~ - Bug in :meth:`SeriesGroupBy.first`, :meth:`SeriesGroupBy.last`, :meth:`SeriesGroupBy...
xref #33645, #33632 and #34087 fix test_s3_roundtrip failure on branch 1.0.x https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=35271&view=logs&j=98c84d08-34d8-513e-80be-2c581992dd5a&t=f75024c1-aff0-57fb-4f0e-35923b654e09
https://api.github.com/repos/pandas-dev/pandas/pulls/34173
2020-05-14T10:10:42Z
2020-05-14T11:34:12Z
2020-05-14T11:34:12Z
2020-05-14T11:42:02Z
DEPR: DateOffset.__call__
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 5c74965bffdd7..274d38b78dc35 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -584,6 +584,7 @@ Deprecations - :func:`pandas.api.types.is_categorical` is deprecated and will be removed in a future ver...
- [ ] 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/34171
2020-05-14T01:26:28Z
2020-05-14T16:32:03Z
2020-05-14T16:32:03Z
2020-05-14T16:43:22Z
TST: Added test for json containing the key "last_status_change_at"
diff --git a/pandas/tests/frame/methods/test_describe.py b/pandas/tests/frame/methods/test_describe.py index b61d0d28e2fba..d448151961dcc 100644 --- a/pandas/tests/frame/methods/test_describe.py +++ b/pandas/tests/frame/methods/test_describe.py @@ -298,3 +298,14 @@ def test_describe_percentiles_integer_idx(self): ...
- [x] closes #32409 - [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/34169
2020-05-14T01:08:47Z
2020-07-12T09:17:35Z
null
2020-07-12T09:17:36Z
DOC: Fix comment
diff --git a/.travis.yml b/.travis.yml index 7943ca370af1a..c5dbddacc6a43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -75,8 +75,7 @@ matrix: before_install: - echo "before_install" - # set non-blocking IO on travis - # https://github.com/travis-ci/travis-ci/issues/8920#issuecomment-352661024 + # Use blocking...
The code clears the O_NONBLOCK flag (that is, makes IO blocking), so make the comment match. - [ ] 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/34168
2020-05-14T00:30:16Z
2020-05-17T22:24:19Z
2020-05-17T22:24:19Z
2020-05-17T22:24:23Z
REF: make BaseOffset a cdef class
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 9b2753ca02495..fb262af1e63f6 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -25,6 +25,7 @@ Properties DateOffset.nanos DateOffset.normalize D...
@jreback i could use help here with one last stubborn pickle/pytables test `test_read_py2_hdf_file_in_py3` Within this legacy file we have the substring (sub-bytes?) `blob = b"ccopy_reg\n_reconstructor\np1\n(cpandas.tseries.offsets\nBusinessDay\np2\nc__builtin__\nobject\np3\nNtRp4\n(dp5\nS'normalize'\np6\nI00\ns...
https://api.github.com/repos/pandas-dev/pandas/pulls/34167
2020-05-13T23:24:00Z
2020-05-18T18:00:35Z
2020-05-18T18:00:35Z
2020-05-18T18:04:15Z
CLN: remove methods of ExtensionIndex that duplicate base Index
diff --git a/pandas/core/base.py b/pandas/core/base.py index 309b6e0ad5e1a..a8a736b6aafdf 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1257,8 +1257,7 @@ def value_counts( def unique(self): values = self._values - if hasattr(values, "unique"): - + if not isinstance(values,...
xref https://github.com/pandas-dev/pandas/pull/34159 cc @jbrockmendel
https://api.github.com/repos/pandas-dev/pandas/pulls/34163
2020-05-13T21:05:59Z
2020-05-15T07:58:11Z
2020-05-15T07:58:11Z
2020-05-15T07:58:24Z
ENH: enable mul, div on Index by dispatching to Series
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index b16ca0a80c5b4..cb5f43aa8d00a 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -17,7 +17,7 @@ Enhancements Other enhancements ^^^^^^^^^^^^^^^^^^ - +- :class:`Index` with object dtype supports divisio...
One of the last remaining inconsistencies between Index and Series arithmetic is that division and multiplication is entirely disabled for object-dtype Index, while for Series we operate pointwise. This PR makes Index behave the same way, and simplifies the code by using existing Series-op-wrapping code to do so. -...
https://api.github.com/repos/pandas-dev/pandas/pulls/34160
2020-05-13T18:08:12Z
2020-08-06T15:49:07Z
2020-08-06T15:49:07Z
2020-08-06T15:52:14Z
ENH: allow storing ExtensionArrays in the Index
diff --git a/pandas/conftest.py b/pandas/conftest.py index 35affa62ccf68..213b29384e2db 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -479,6 +479,7 @@ def _create_mi_with_dt64tz_level(): "mi-with-dt64tz-level": _create_mi_with_dt64tz_level(), "multi": _create_multiindex(), "repeats": Index(...
I started experimenting with allowing EAs to be used in the Index (so we can put nullable int/bool, string dtype etc in the Index). My approach is to use the base `Index` class for this (and not a custom subclass): - We use a similar approach for Series, which can also hold either ndarray or EA as underlying valu...
https://api.github.com/repos/pandas-dev/pandas/pulls/34159
2020-05-13T16:12:01Z
2021-10-31T00:31:52Z
null
2022-01-21T08:16:17Z
REGR: use dtype.fill_value in ExtensionBlock.fill_value where available
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e427116f8225e..dc76135a99dc0 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -867,6 +867,7 @@ Sparse - Creating a :class:`SparseArray` from timezone-aware dtype will issue a warning before dropping ti...
- [X] closes #27781, closes #29563 - [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/34158
2020-05-13T15:50:08Z
2020-06-01T01:46:31Z
2020-06-01T01:46:30Z
2020-06-04T12:02:27Z
DOC: add black badge
diff --git a/README.md b/README.md index 33dfbf10ff743..7edee8d3feeed 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,7 @@ [![Downloads](https://anaconda.org/conda-forge/pandas/badges/downloads.svg)](https://pandas.pydata.org) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pydata/pandas) ...
IMO pandas benefits greatly from `black`, so I thought I'd add their badge to the readme - [x] passes `black pandas`
https://api.github.com/repos/pandas-dev/pandas/pulls/34154
2020-05-13T11:03:30Z
2020-05-17T22:26:26Z
2020-05-17T22:26:25Z
2020-05-18T06:46:53Z
CI: Address linting errors in flake8 >= 3.8.1
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 32c170ba29ef1..cf15f36cb03a3 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -1049,6 +1049,7 @@ def mid(self): points) and is either monotonic increasing or monotonic decreasing, else...
xref #34150 This partially addresses the above issue by: - Ignoring E741 - Fixing other linting errors The issue with flake8-rst is handled temporarily in #34151, and the build here will fail the flake8-rst part until that is merged in.
https://api.github.com/repos/pandas-dev/pandas/pulls/34152
2020-05-13T08:52:07Z
2020-05-13T14:30:32Z
2020-05-13T14:30:32Z
2020-06-16T10:01:31Z
CI: Pin flake8 < 3.8.0
diff --git a/environment.yml b/environment.yml index bc7c715104ce5..b81404094fa4c 100644 --- a/environment.yml +++ b/environment.yml @@ -17,7 +17,7 @@ dependencies: # code checks - black=19.10b0 - cpplint - - flake8 + - flake8<3.8.0 # temporary pin, GH#34150 - flake8-comprehensions>=3.1.0 # used by flak...
xref #34150 This handles multiple issues: - flake8 >= 3.8.1 introduces a new version of pycodestyle which introduces extra checking - flake8-rst is broken with the newest version of flake8 - See kataev/flake8-rst#22 A follow-up PR handling the first of these is forth-coming
https://api.github.com/repos/pandas-dev/pandas/pulls/34151
2020-05-13T08:47:20Z
2020-05-13T12:30:23Z
2020-05-13T12:30:22Z
2020-05-27T08:23:30Z
REF: move more of Tick into liboffsets._Tick
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 6240181708f97..9b2753ca02495 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -1044,6 +1044,7 @@ Properties Tick.nanos Tick.normalize Tick.rule...
https://api.github.com/repos/pandas-dev/pandas/pulls/34148
2020-05-13T04:21:03Z
2020-05-15T14:40:38Z
2020-05-15T14:40:38Z
2020-05-15T15:53:02Z
INT: take DateOffset out of the inheritance tree for BaseOffset subclasses
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index f2860fad75428..5efb9b3534f14 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -733,6 +733,11 @@ class _BaseOffset: ) return self.is_anchored() + def is_anchored(self) -> bool:...
Use a `__instancecheck__` override to keep isinstance checks working. This will allow us to start moving other BaseOffset subclasses up into liboffsets without having to get DateOffset (which will be one of the trickiest) first.
https://api.github.com/repos/pandas-dev/pandas/pulls/34147
2020-05-13T03:39:56Z
2020-05-13T15:13:28Z
2020-05-13T15:13:28Z
2020-06-02T11:37:32Z
REF: move generate_range from offsets to the one place it is used
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index dc17f13da068b..897c53c5c75d1 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -48,7 +48,7 @@ import pandas.core.common as com from pandas.tseries.frequencies import get_period_alias, to_offset -...
https://api.github.com/repos/pandas-dev/pandas/pulls/34146
2020-05-13T01:40:15Z
2020-05-13T14:53:01Z
2020-05-13T14:53:01Z
2020-05-13T15:39:31Z
REF: separate to_time, avoid runtime imports
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index a12d5b64bb06c..2a7cd0eac04a6 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -8,6 +8,7 @@ from pandas._libs import NaT, Timedelta, iNaT, join as libjoin, lib from pandas._libs.t...
https://api.github.com/repos/pandas-dev/pandas/pulls/34145
2020-05-12T22:31:35Z
2020-05-18T15:21:37Z
2020-05-18T15:21:37Z
2020-05-18T15:23:52Z
REF: Implement NullFrequencyError in pd.errors
diff --git a/doc/source/reference/general_utility_functions.rst b/doc/source/reference/general_utility_functions.rst index 6d43ceb74ab7c..993107dc09756 100644 --- a/doc/source/reference/general_utility_functions.rst +++ b/doc/source/reference/general_utility_functions.rst @@ -40,6 +40,7 @@ Exceptions and warnings e...
https://api.github.com/repos/pandas-dev/pandas/pulls/34144
2020-05-12T21:56:48Z
2020-05-13T21:45:49Z
2020-05-13T21:45:49Z
2020-05-13T22:24:10Z
CLN: avoid hasattr check in Timestamp.__richcmp__
diff --git a/pandas/_libs/tslibs/timestamps.pyx b/pandas/_libs/tslibs/timestamps.pyx index e656d654461c9..52ff3d6a11b5f 100644 --- a/pandas/_libs/tslibs/timestamps.pyx +++ b/pandas/_libs/tslibs/timestamps.pyx @@ -37,7 +37,7 @@ from pandas._libs.tslibs.fields import get_start_end_field, get_date_name_field from pandas....
The only behavior change should be comparison against zero-dim ndarray, which now lo longer un-packs so ends up returning an np.bool_ object instead of a bool object.
https://api.github.com/repos/pandas-dev/pandas/pulls/34143
2020-05-12T21:54:50Z
2020-05-13T15:22:02Z
2020-05-13T15:22:02Z
2020-05-13T15:40:13Z
CLN: Splits Moments and MomentsConsistency tests into separate files
diff --git a/pandas/tests/window/moments/test_moments_consistency_ewm.py b/pandas/tests/window/moments/test_moments_consistency_ewm.py new file mode 100644 index 0000000000000..3b3a9d59cb6e7 --- /dev/null +++ b/pandas/tests/window/moments/test_moments_consistency_ewm.py @@ -0,0 +1,284 @@ +import numpy as np +from numpy...
Due to previous cleaning as well as the large size of those files, we could now split the `Moments` and `MomentsConsistency` test classes into two different files for `rolling` and `ewm`. And since current `test_moments_expanding` is actually MomentsConsistencyExpanding class, so rename it to `test_moments_consistency_...
https://api.github.com/repos/pandas-dev/pandas/pulls/34140
2020-05-12T18:05:06Z
2020-05-13T20:43:45Z
2020-05-13T20:43:45Z
2020-05-13T20:43:49Z
REF: move mixins, repr_attrs to liboffsets
diff --git a/doc/source/reference/offset_frequency.rst b/doc/source/reference/offset_frequency.rst index 17544cb7a1225..6240181708f97 100644 --- a/doc/source/reference/offset_frequency.rst +++ b/doc/source/reference/offset_frequency.rst @@ -1056,6 +1056,7 @@ Methods Tick.is_anchored Tick.is_on_offset Tic...
https://api.github.com/repos/pandas-dev/pandas/pulls/34139
2020-05-12T17:04:14Z
2020-05-12T23:32:38Z
2020-05-12T23:32:38Z
2020-05-13T00:45:49Z
Revert: REF: do length-checks in boilerplate decorator
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 737c130161246..2a01ab3802e62 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -64,6 +64,10 @@ def _cat_compare_op(op): @unpack_zerodim_and_defer(opname) def func(self, other): + ...
closes #34123 As discussed in #34123 let's revert this PR34081 first since it has potentially big impact on some cases in ops. cc @jbrockmendel @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/34137
2020-05-12T16:05:52Z
2020-05-17T21:16:52Z
2020-05-17T21:16:51Z
2020-05-19T08:08:40Z
CI: Fix expected for 32-bit platform
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index d6228d031bfd5..6008b4f9f4e33 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -331,25 +331,25 @@ def test_factorize_na_sentinel(self, sort, na_sentinel, data, uniques): ( ["a", None, "b", ...
Closes https://github.com/pandas-dev/pandas/issues/34130
https://api.github.com/repos/pandas-dev/pandas/pulls/34135
2020-05-12T13:51:32Z
2020-05-12T14:52:21Z
2020-05-12T14:52:21Z
2020-05-12T15:27:04Z
TST:Make test faster
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 0cb1f4aabf352..dbd1046656d5a 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -20,7 +20,7 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then XVFB="xvfb-run " fi -PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n auto --dist=loadfile -s --strict --durations=...
- [x] Part of #34131 - [x] 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/34134
2020-05-12T12:59:12Z
2020-05-12T13:52:11Z
2020-05-12T13:52:11Z
2020-05-12T13:58:52Z
TST: DataFrame.interpolate axis name for axis argument
diff --git a/pandas/tests/frame/methods/test_interpolate.py b/pandas/tests/frame/methods/test_interpolate.py index 3b8fa0dfbb603..291a46cf03216 100644 --- a/pandas/tests/frame/methods/test_interpolate.py +++ b/pandas/tests/frame/methods/test_interpolate.py @@ -284,3 +284,15 @@ def test_interp_time_inplace_axis(self, ax...
- [ ] closes #25190 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #31566
https://api.github.com/repos/pandas-dev/pandas/pulls/34132
2020-05-12T12:18:24Z
2020-05-12T13:30:48Z
2020-05-12T13:30:47Z
2020-12-12T11:37:22Z
BUG/ENH: Improve categorical construction when using the iterator in StataReader
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 6e8cbc34be062..d11c3699dc86d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -905,6 +905,7 @@ I/O - Bug in :meth:`~DataFrame.read_feather` was raising an `ArrowIOError` when reading an s3 or http file...
- [X] closes #31544 - [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/34128
2020-05-12T10:04:26Z
2020-06-04T11:38:49Z
2020-06-04T11:38:48Z
2020-10-20T19:52:21Z
CLN: Move _convert_to_list_like to common
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index dd5ff7781e463..737c130161246 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -26,11 +26,9 @@ is_dtype_equal, is_extension_array_dtype, is_integer_dtype, - is_iterator, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34127
2020-05-12T01:13:24Z
2020-05-13T15:47:42Z
2020-05-13T15:47:42Z
2020-11-25T14:54:37Z
DOC: Add clarifications and link to tutorials in the getting started page
diff --git a/web/pandas/getting_started.md b/web/pandas/getting_started.md index 4195cc00b2419..d4f40a1153fb4 100644 --- a/web/pandas/getting_started.md +++ b/web/pandas/getting_started.md @@ -7,9 +7,14 @@ environment to use pandas. Other installation options can be found in the [advanced installation page]({{ base_ur...
Some people are having problems following our getting started instructions. The notes added here should help. Also, adding missing link to the tutorials.
https://api.github.com/repos/pandas-dev/pandas/pulls/34126
2020-05-11T21:53:56Z
2020-05-12T13:25:36Z
2020-05-12T13:25:36Z
2020-05-12T13:25:39Z
Fix #23055 Change pd.to_datetime and pd.to_timedelta to always convert null-like argument into pd.NaT
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 57dad5a080358..244106053cb16 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -687,6 +687,7 @@ Conversion - Bug in :class:`Series` construction from NumPy array with big-endian ``datetime64`` dtype (:i...
I've tried to address the bug in `to_datetime` and `to_timedelta` functions. Please let me know if there're some other places worth to be changed. - [x] closes #23055 - [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/34124
2020-05-11T20:31:48Z
2020-07-10T19:43:17Z
null
2020-07-10T19:43:17Z
API: remove dropped multilevel index from levels (GH: #34097)
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index f1e1ebcaca1c4..013b037dfbc74 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2072,8 +2072,9 @@ def drop(self, codes, level=None, errors="raise"): except KeyError: if errors != "i...
- [x] closes #34097 - [ ] 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/34122
2020-05-11T18:36:34Z
2020-06-14T22:41:03Z
null
2023-05-11T01:19:41Z
Fix typo in core/accessor.py
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index f970cefe15527..2caf1f75f3da1 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -270,7 +270,7 @@ def decorator(accessor): if hasattr(cls, name): warnings.warn( f"registration of accessor {repr(...
This is just a typo fix.
https://api.github.com/repos/pandas-dev/pandas/pulls/34121
2020-05-11T17:54:48Z
2020-05-11T19:18:18Z
2020-05-11T19:18:17Z
2020-05-11T19:18:22Z
TST/REF: Deprivate check_pairwise_moment and remove ConsistencyBase
diff --git a/pandas/tests/window/common.py b/pandas/tests/window/common.py index 25989191ae657..5dca26df49930 100644 --- a/pandas/tests/window/common.py +++ b/pandas/tests/window/common.py @@ -24,20 +24,16 @@ def _create_data(self): self.frame = DataFrame(randn(N, K), index=self.rng, columns=np.arange(K)) ...
the `check_pairwise_moment` function will be the last function moving out of big `ConsistencyBase` class, and after this, `ConsistencyBase` class only has the `_create_data` function which creates some mock data, so we could entirely remove `ConsistencyBase` and use `Base` instead. cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/34119
2020-05-11T17:27:59Z
2020-05-11T21:43:38Z
2020-05-11T21:43:38Z
2020-05-11T21:43:43Z
PERF: use fast-paths for dtype checks
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index 8cac909b70802..32c170ba29ef1 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -149,9 +149,16 @@ class IntervalArray(IntervalMixin, ExtensionArray): can_hold_na = True _na_value = _fill_value =...
https://api.github.com/repos/pandas-dev/pandas/pulls/34118
2020-05-11T16:51:55Z
2020-05-11T18:51:50Z
2020-05-11T18:51:50Z
2020-05-11T18:53:16Z
MAINT: Clarify supported Stata dta versions
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e56014ed866ca..efbdab206222c 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -226,7 +226,8 @@ Other enhancements - :meth:`~pandas.core.resample.Resampler.interpolate` now supports SciPy interpolation ...
Test against old Stata versions and remove text indicating support for versions which do not work reliably closes #26667 - [x] closes #26667 - [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/34116
2020-05-11T15:07:53Z
2020-05-12T14:54:10Z
2020-05-12T14:54:09Z
2020-07-28T14:41:35Z
Backport PR #34048 on branch 1.0.x (Bug in DataFrame.replace casts columns to ``object`` dtype if items in ``to_replace`` not in values)
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index 714bcfb8720db..2d73cbd72c67a 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -23,6 +23,7 @@ Fixed regressions - Bug where an ordered :class:`Categorical` containing only ``NaN`` values would raise rat...
xref #34048, #32988 fixes regression in 1.0.0
https://api.github.com/repos/pandas-dev/pandas/pulls/34115
2020-05-11T14:29:38Z
2020-05-14T12:26:42Z
2020-05-14T12:26:42Z
2020-05-14T12:26:47Z
REGR: exceptions not caught in _call_map_locations
diff --git a/doc/source/whatsnew/v1.0.4.rst b/doc/source/whatsnew/v1.0.4.rst index 2d73cbd72c67a..88b4ba748fd63 100644 --- a/doc/source/whatsnew/v1.0.4.rst +++ b/doc/source/whatsnew/v1.0.4.rst @@ -23,6 +23,7 @@ Fixed regressions - Bug where an ordered :class:`Categorical` containing only ``NaN`` values would raise rat...
- [ ] xref #32409 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry # NOTE: issue 'fixed' on master. This PR against 1.0.x branch cc @jbrockmendel Could there still be issue on master with the exceptions not being c...
https://api.github.com/repos/pandas-dev/pandas/pulls/34113
2020-05-11T10:38:47Z
2020-05-15T09:33:13Z
2020-05-15T09:33:13Z
2020-05-15T09:33:18Z
PERF: use is_foo_dtype fastpaths
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index d07a6db43e3a6..dd5ff7781e463 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -134,7 +134,7 @@ def func(self, other): "use 'np.asarray(cat) <op> other'." ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34111
2020-05-10T22:31:03Z
2020-05-11T17:19:01Z
2020-05-11T17:19:01Z
2020-05-11T18:02:44Z
CLN: Don't use astype_nansafe after to_numpy
diff --git a/pandas/core/arrays/boolean.py b/pandas/core/arrays/boolean.py index 9bc3d1276c79d..6b7b282bfd940 100644 --- a/pandas/core/arrays/boolean.py +++ b/pandas/core/arrays/boolean.py @@ -9,7 +9,6 @@ from pandas.compat import set_function_name from pandas.compat.numpy import function as nv -from pandas.core.dt...
I'm not 100% sure about the change in the tests, but it seems to align with numpy: ```python [ins] In [1]: np.array([1, 2]).astype(str) Out[1]: array(['1'...
https://api.github.com/repos/pandas-dev/pandas/pulls/34110
2020-05-10T21:27:06Z
2020-06-01T01:48:28Z
2020-06-01T01:48:28Z
2020-06-01T13:22:42Z
CLN: make sure we do no-copy ravel()
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 0721f4cdbf911..c18425f7bb270 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -105,10 +105,10 @@ def ensure_datetime64ns(arr: ndarray, copy: bool=True): dtype = arr.dtype ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34108
2020-05-10T20:36:40Z
2020-05-11T18:54:33Z
2020-05-11T18:54:33Z
2020-05-11T18:55:40Z
CLN: avoid ndim checks in _libs
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index e52474e233510..657a2798f7267 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -355,25 +355,12 @@ cdef class Interval(IntervalMixin): (key < self.right if self.open_right else key <= self.right)) def...
These checks go through python-space
https://api.github.com/repos/pandas-dev/pandas/pulls/34107
2020-05-10T20:02:32Z
2020-05-11T18:50:52Z
2020-05-11T18:50:52Z
2020-05-11T18:54:03Z
REF: make ccalendar objects cimportable
diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd index 68ad1d1e68133..b55780fe7d5b9 100644 --- a/pandas/_libs/tslibs/ccalendar.pxd +++ b/pandas/_libs/tslibs/ccalendar.pxd @@ -10,3 +10,7 @@ cpdef int32_t get_days_in_month(int year, Py_ssize_t month) nogil cpdef int32_t get_week_of_year...
xref #34105
https://api.github.com/repos/pandas-dev/pandas/pulls/34106
2020-05-10T19:54:37Z
2020-05-11T19:21:50Z
2020-05-11T19:21:50Z
2020-05-11T19:39:44Z
REF: make nat_strings cimport-able
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 458e58b52270b..f6034a1347f90 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -50,8 +50,11 @@ from pandas._libs.tslibs.conversion cimport ( _TSObject, convert_datetime_to_tsobject, get_datetime64_nanos) -from pandas._libs....
Shouldn't make a real impact, mostly makes the imports easier to read
https://api.github.com/repos/pandas-dev/pandas/pulls/34105
2020-05-10T19:05:40Z
2020-05-11T21:12:00Z
2020-05-11T21:12:00Z
2020-05-11T21:34:25Z
REF: put PeriodArray-specific method in PeriodArray
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 973fdbdc4014c..16cb771d0f642 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -5,8 +5,7 @@ import numpy as np -from pandas._libs import NaT, NaTType, Timestamp, algos, iNaT, lib -fr...
https://api.github.com/repos/pandas-dev/pandas/pulls/34103
2020-05-10T18:22:33Z
2020-05-12T15:41:53Z
2020-05-12T15:41:53Z
2020-05-12T16:10:42Z
DOC: timezone warning for dates beyond TODAY
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index a03ba6c775e68..0bfe9d9b68cdb 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -2319,13 +2319,18 @@ you can use the ``tz_convert`` method. Instead, the datetime needs to be l...
introducing a suggestion discussed in PR #33863 : Added a warning in the user guide that timezone conversion on future dates is inherently unreliable. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew ent...
https://api.github.com/repos/pandas-dev/pandas/pulls/34100
2020-05-10T16:47:28Z
2020-08-21T17:16:30Z
2020-08-21T17:16:30Z
2020-08-21T17:16:40Z
REF: implement general case DateOffset methods on BaseOffset
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 712d124f1ab4d..0e8210c7565f5 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -408,7 +408,7 @@ class _BaseOffset: _day_opt = None _attributes = frozenset(['n', 'normalize']) _use_rela...
https://api.github.com/repos/pandas-dev/pandas/pulls/34099
2020-05-10T16:31:45Z
2020-05-12T15:29:28Z
2020-05-12T15:29:28Z
2020-05-12T16:12:23Z
TST: Mark groupby.nunique test as slow
diff --git a/pandas/tests/groupby/test_nunique.py b/pandas/tests/groupby/test_nunique.py index 427a8accf7e7a..952443e0ad23b 100644 --- a/pandas/tests/groupby/test_nunique.py +++ b/pandas/tests/groupby/test_nunique.py @@ -9,6 +9,7 @@ import pandas._testing as tm +@pytest.mark.slow @pytest.mark.parametrize("n", 10 ...
This test takes about 40 seconds to run for me while shrinking the size of the data brings the runtime down to 2 seconds, presumably without changing coverage (do we even need to parametrize over n and m here?).
https://api.github.com/repos/pandas-dev/pandas/pulls/34096
2020-05-09T22:29:37Z
2020-05-10T15:04:41Z
2020-05-10T15:04:41Z
2020-05-10T15:05:30Z
CLN: Change old string formatting syntax into f-strings
diff --git a/pandas/core/sorting.py b/pandas/core/sorting.py index 69d55978724af..25312b180dba1 100644 --- a/pandas/core/sorting.py +++ b/pandas/core/sorting.py @@ -406,10 +406,8 @@ def ensure_key_mapped(values, key: Optional[Callable], levels=None): result = type_of_values(result) # try to revert to orig...
- [x] xref #29547 - [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/34094
2020-05-09T17:11:58Z
2020-05-09T19:20:42Z
2020-05-09T19:20:42Z
2020-05-10T10:00:58Z
CLN, TYP: Factor out part of info
diff --git a/pandas/io/formats/info.py b/pandas/io/formats/info.py index d2d5fdc7ab8a2..b1dcafa7a7a8f 100644 --- a/pandas/io/formats/info.py +++ b/pandas/io/formats/info.py @@ -1,18 +1,65 @@ import sys -from typing import IO, Optional, Union +from typing import IO, TYPE_CHECKING, Optional, Tuple, Union from pandas....
Precursor to #31796, which still has a rather large diff. This should help make it easier to read. On master, `cols` holds the DataFrame's columns. If we were to use this method on a Series, then it would hold an Index containing the Series' name (`Index([data.name])`). Is there a good name for a variable that could...
https://api.github.com/repos/pandas-dev/pandas/pulls/34092
2020-05-09T11:30:37Z
2020-05-11T21:44:28Z
2020-05-11T21:44:27Z
2020-05-17T09:17:58Z
DOC: use new numpy doc url
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 1073959de4456..d02896f777348 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -110,7 +110,7 @@ version control to allow many people to work together on the project. ...
- [ ] xref #33953 - [ ] 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/34091
2020-05-09T11:24:47Z
2020-05-11T07:46:32Z
2020-05-11T07:46:32Z
2020-05-11T08:45:52Z
Add regression test for nested meta path in json_normalize
diff --git a/pandas/tests/io/json/test_normalize.py b/pandas/tests/io/json/test_normalize.py index 4a32f3809c82b..8d93fbcc063f4 100644 --- a/pandas/tests/io/json/test_normalize.py +++ b/pandas/tests/io/json/test_normalize.py @@ -284,6 +284,26 @@ def test_shallow_nested(self): expected = DataFrame(ex_data, colu...
We want to add regression test for #27220 and make sure that this kind of issues will not be present in the future. Thanks to @yanglinlee [code](https://github.com/pandas-dev/pandas/pull/27667) I created test that works with current `master` branch. - [x] closes #27220 - [x] tests added / passed - [x] passes `b...
https://api.github.com/repos/pandas-dev/pandas/pulls/34090
2020-05-09T10:53:05Z
2020-05-09T19:50:47Z
2020-05-09T19:50:47Z
2020-05-09T19:50:51Z
ENH: make Tick comparisons match Timedelta behavior
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index e56014ed866ca..1008faf29e5a7 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -866,6 +866,7 @@ Other - Bug in :meth:`DataFrame.__dir__` caused a segfault when using unicode surrogates in a column name ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34088
2020-05-09T03:25:25Z
2020-05-12T13:14:39Z
2020-05-12T13:14:39Z
2020-05-12T14:24:55Z
CI: Fix botocore Error
diff --git a/pandas/tests/io/parser/test_network.py b/pandas/tests/io/parser/test_network.py index 000fc605dd5b1..e0dee878006b8 100644 --- a/pandas/tests/io/parser/test_network.py +++ b/pandas/tests/io/parser/test_network.py @@ -172,17 +172,28 @@ def test_read_s3_fails(self): def test_write_s3_csv_fails(self, tips...
- [x] closes #34086 AWS Service Exceptions are not statically defined in boto3. Easiest to just catch a ClientError here. Ref Docs: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/error-handling.html#parsing-error-responses-and-catching-exceptions-from-aws-services
https://api.github.com/repos/pandas-dev/pandas/pulls/34087
2020-05-09T03:06:07Z
2020-05-09T12:43:08Z
2020-05-09T12:43:08Z
2020-05-26T09:31:59Z
CLN: avoid _typ checks in _libs
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index f844ad45c7026..658f7fb202531 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -75,7 +75,7 @@ from pandas._libs.tslibs.nattype cimport ( from pandas._libs.tslibs.conversion cimport convert_to_tsobject from pandas._libs.tslibs.timedeltas cimp...
Sits on top of #34072
https://api.github.com/repos/pandas-dev/pandas/pulls/34084
2020-05-08T22:58:06Z
2020-05-09T19:14:53Z
2020-05-09T19:14:53Z
2020-05-09T19:30:30Z
CLN: .values -> ._values
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index cf15f36cb03a3..c5366884fbdfe 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -27,7 +27,6 @@ from pandas.core.dtypes.dtypes import IntervalDtype from pandas.core.dtypes.generic import ( ABCDateti...
https://api.github.com/repos/pandas-dev/pandas/pulls/34083
2020-05-08T22:51:37Z
2020-05-19T20:54:00Z
2020-05-19T20:54:00Z
2020-05-19T21:32:32Z
CLN: Delete no-op check
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index dc807f467f65e..6749811e41b39 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2658,11 +2658,8 @@ def _convert_to_list_like(list_like): return list_like if is_sequence(list_lik...
Maybe the note is somehow useful, otherwise I think this can be cleaned?
https://api.github.com/repos/pandas-dev/pandas/pulls/34082
2020-05-08T21:46:34Z
2020-05-10T17:14:22Z
2020-05-10T17:14:22Z
2020-05-10T17:48:50Z
REF: do length-checks in boilerplate decorator
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index dc807f467f65e..0d53ac3a5a56c 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -66,10 +66,6 @@ def _cat_compare_op(op): @unpack_zerodim_and_defer(opname) def func(self, other): - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/34081
2020-05-08T21:37:36Z
2020-05-10T15:07:41Z
2020-05-10T15:07:41Z
2020-05-10T15:56:15Z
Simplify Reducer.get_result
diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx index 0988cd7ff0dde..b2db2a2934e16 100644 --- a/pandas/_libs/reduction.pyx +++ b/pandas/_libs/reduction.pyx @@ -7,11 +7,8 @@ from libc.stdlib cimport malloc, free import numpy as np cimport numpy as cnp -from numpy cimport (ndarray, - ...
by using nditer this makes some progress towards #34014 Benchmarks for frame_apply looks as follows: ```sh before after ratio [3ed7dff4] [5e77e1ed] <master> <reduce-simplify> ! 9.39±0.3ms failed n/a frame_methods.Apply.time_apply_ref_by_na...
https://api.github.com/repos/pandas-dev/pandas/pulls/34080
2020-05-08T21:19:13Z
2020-06-05T23:05:32Z
null
2023-04-12T20:16:55Z
CLN: de-duplicate ops code
diff --git a/pandas/core/ops/__init__.py b/pandas/core/ops/__init__.py index 57ca582384f39..da1caea13b598 100644 --- a/pandas/core/ops/__init__.py +++ b/pandas/core/ops/__init__.py @@ -504,37 +504,31 @@ def _combine_series_frame(left, right, func, axis: int, str_rep: str): Returns ------- - result : Data...
https://api.github.com/repos/pandas-dev/pandas/pulls/34079
2020-05-08T19:57:48Z
2020-05-09T19:52:16Z
2020-05-09T19:52:16Z
2020-05-09T20:12:10Z
REF: share code for scalar validation in datetimelike array methods
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 973fdbdc4014c..62bc9bf0fda22 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, S...
The user-facing effect here is in the exception messages we show to users, where we may want to be more verbose than this. Thoughts @gfyoung?
https://api.github.com/repos/pandas-dev/pandas/pulls/34076
2020-05-08T18:32:29Z
2020-05-12T15:31:46Z
2020-05-12T15:31:46Z
2020-05-12T16:16:38Z
BUG: Fixed __join_multi always returning indexers (#34074)
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9c424f70b1ee0..66558bcf9b592 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -665,7 +665,7 @@ MultiIndex # Common elements are now guaranteed to be ordered by the left side left.inter...
- [x] closes #34074 - [x] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/34075
2020-05-08T17:25:19Z
2020-05-11T18:57:17Z
2020-05-11T18:57:16Z
2020-05-11T18:57:21Z
TST/CLN: Break out groupby function tests
diff --git a/pandas/tests/groupby/test_counting.py b/pandas/tests/groupby/test_counting.py index 56a18757da6e7..997d9b006c802 100644 --- a/pandas/tests/groupby/test_counting.py +++ b/pandas/tests/groupby/test_counting.py @@ -1,9 +1,20 @@ from itertools import product +from string import ascii_lowercase import numpy...
tests/groupby/test_function.py is still huge (1000+ lines) but this breaks out a few pieces (all copy / paste with no logic changes)
https://api.github.com/repos/pandas-dev/pandas/pulls/34073
2020-05-08T16:53:10Z
2020-05-09T19:37:03Z
2020-05-09T19:37:03Z
2020-05-09T21:51:36Z
CLN: update imports, avoid hasattr checks
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index f844ad45c7026..658f7fb202531 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -75,7 +75,7 @@ from pandas._libs.tslibs.nattype cimport ( from pandas._libs.tslibs.conversion cimport convert_to_tsobject from pandas._libs.tslibs.timedeltas cimp...
https://api.github.com/repos/pandas-dev/pandas/pulls/34072
2020-05-08T16:36:38Z
2020-05-09T19:14:10Z
2020-05-09T19:14:10Z
2020-05-09T19:29:58Z
add test for setitem from duplicate axis
diff --git a/pandas/tests/indexing/test_loc.py b/pandas/tests/indexing/test_loc.py index d1f67981b1ec5..30416985f2020 100644 --- a/pandas/tests/indexing/test_loc.py +++ b/pandas/tests/indexing/test_loc.py @@ -107,6 +107,19 @@ def test_loc_getitem_label_slice(self): "loc", slice(2, 4, 2), typs=["mixed"], ax...
- [x] closes #34034 - [ ] 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/34071
2020-05-08T15:08:06Z
2020-05-11T00:33:39Z
2020-05-11T00:33:39Z
2020-05-11T07:38:44Z
DOC: clarify boxplot whiskers extension
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 748b83aec88f4..287b0b4475d77 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -216,9 +216,9 @@ def hist_frame( groups of numerical data through their quartiles. The box extends from the Q1 to Q3 quartile values of the data, ...
As I'm getting started with box plots, I found confusing that the `DataFrame.boxplot` docstring didn't mention that whiskers extend _at most_ to 1.5 * IQR away from the box's edges. - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry -> is it requir...
https://api.github.com/repos/pandas-dev/pandas/pulls/34070
2020-05-08T14:49:49Z
2020-05-21T18:17:36Z
2020-05-21T18:17:36Z
2020-05-21T18:17:42Z
ENH: Implement groupby.sample
diff --git a/doc/source/reference/groupby.rst b/doc/source/reference/groupby.rst index 5f6bef2579d27..76cb53559f334 100644 --- a/doc/source/reference/groupby.rst +++ b/doc/source/reference/groupby.rst @@ -116,6 +116,7 @@ application to columns of a specific data type. DataFrameGroupBy.quantile DataFrameGroupBy....
- [x] closes #31775 - [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/34069
2020-05-08T14:23:50Z
2020-06-14T15:22:16Z
2020-06-14T15:22:16Z
2020-06-14T19:05:08Z
BUG : Series.to_timestamp and Series.to_period raise user-facing AssertionError
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 4605c14643fa2..a3499f857d158 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -339,6 +339,8 @@ Backwards incompatible API changes - Combining a ``Categorical`` with integer categories and which contain...
- [X] closes #33327 - [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/34067
2020-05-08T12:52:34Z
2020-05-20T14:05:37Z
2020-05-20T14:05:36Z
2020-05-20T14:05:42Z
DOC: use the sphinx-panels extension for cards instead of raw html
diff --git a/doc/source/_static/css/getting_started.css b/doc/source/_static/css/getting_started.css index bb24761cdb159..84eafa308175c 100644 --- a/doc/source/_static/css/getting_started.css +++ b/doc/source/_static/css/getting_started.css @@ -131,20 +131,30 @@ ul.task-bullet > li > p:first-child { /* Getting start...
This is an alternative for https://github.com/pandas-dev/pandas/pull/32065, using the https://sphinx-panels.readthedocs.io/en/latest/ extension (which was created inspired on how we are using this in our docs, but then nicely packaged in a sphinx extension to avoid the use of raw html).
https://api.github.com/repos/pandas-dev/pandas/pulls/34065
2020-05-08T10:45:46Z
2021-04-09T06:53:56Z
2021-04-09T06:53:56Z
2021-04-09T06:54:00Z
REF: move apply_wraps up into liboffstes
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 3647669cbafe9..712d124f1ab4d 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -6,7 +6,7 @@ import warnings from cpython.datetime cimport (PyDateTime_IMPORT, PyDateTi...
https://api.github.com/repos/pandas-dev/pandas/pulls/34062
2020-05-08T04:10:18Z
2020-05-10T15:08:16Z
2020-05-10T15:08:16Z
2020-05-10T15:36:24Z
DOC:GH34026
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index 72d778524a364..80abf0483c9a5 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -2977,7 +2977,7 @@ def encode(self, encoding, errors="strict"): _shared_docs[ "str_strip" ] = r""" - Remove leading and trailing chara...
- [x] closes #34026 - [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/34059
2020-05-07T21:53:34Z
2020-05-16T19:13:46Z
2020-05-16T19:13:46Z
2020-05-19T20:54:34Z
DOC: Examples for DataFrame.from_records
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 4e86b3710a1bd..7171a02fb5aa4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1233,8 +1233,8 @@ def from_dict(cls, data, orient="columns", dtype=None, columns=None) -> "DataFra See Also -------- - DataFrame.from_re...
This PR adds examples to the documentation for `pandas.DataFrame.from_records`. It also rewords a couple sentences to clarify that the input data can be a sequence of dicts or sequence of tuples (but not a sequence of DataFrames). - [x] closes #34057 - [x] tests added / passed - [x] passes `black pandas` - [x] pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/34058
2020-05-07T21:49:59Z
2020-05-12T11:08:25Z
2020-05-12T11:08:25Z
2020-05-12T16:40:38Z
BUG: Make nullable booleans numeric
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index a723983590650..f50041dcef466 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -846,6 +846,7 @@ ExtensionArray - Fixed bug that caused :meth:`Series.__repr__()` to crash for extension types whose elemen...
- [x] closes #34051 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Also a decent speedup since this is now going through Cython space: ```python df = pd.DataFrame({"a": [1] * 50_000 + [2] * 50_000, "b": pd.array([...
https://api.github.com/repos/pandas-dev/pandas/pulls/34056
2020-05-07T20:54:09Z
2020-05-11T18:53:16Z
2020-05-11T18:53:16Z
2020-05-11T18:59:57Z
Standardize datetimelike casting behavior where/setitem/searchsorted/comparison
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index efb53e5a89314..59ae2dc171cf8 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -45,7 +45,12 @@ from pandas.core.algorithms import _get_data_algo, factorize, take_1d, unique1d from pandas.co...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Addresses #30699 for eq/ne, but not for inequalities.
https://api.github.com/repos/pandas-dev/pandas/pulls/34055
2020-05-07T20:36:58Z
2020-05-07T21:44:59Z
2020-05-07T21:44:59Z
2020-05-08T17:16:06Z
REF: implement ABCTimestamp, ABCTimedelta, ABCTick
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index c7b774ad08673..245c554570ce4 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -23,7 +23,7 @@ cimport pandas._libs.util as util from pandas._libs.tslibs import Period, Timedelta from pandas._libs.tslibs.nattype cimport c_NaT as NaT...
Motivation: to make more progress on getting DateOffset into cython, we need to be able to import Timestamp into liboffsets. ATM that would induce circular dependencies. This allows us to merge c_timestamp back into timestamps.pyx; the initial motivation for that was to be able to cimport _Timestamp into libconvers...
https://api.github.com/repos/pandas-dev/pandas/pulls/34054
2020-05-07T20:17:41Z
2020-05-07T21:44:46Z
2020-05-07T21:44:46Z
2020-05-07T22:46:42Z
more informative error message with np.min or np.max on unordered Categorical
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 3b60085e9fa66..9d0047f734c92 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -883,6 +883,7 @@ Other - Bug in :meth:`DataFrame.__dir__` caused a segfault when using unicode surrogates in a column name ...
- [ ] closes #33115 - [ ] 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/34053
2020-05-07T18:44:23Z
2020-05-19T08:41:32Z
2020-05-19T08:41:32Z
2020-05-26T09:27:21Z
PERF: Use Indexers to implement groupby rolling
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index e3c9c7ccdc51c..b1f6d052919bd 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -186,4 +186,27 @@ def peakmem_rolling(self, constructor, window_size, dtype, method): getattr(self.roll, method...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Currently, `grouby.rolling` is implemented essentially as `groupby.apply(lambda x: x.rolling())` which can be potentially slow. This PR implements `groupby.rolling` by calculating bounds w...
https://api.github.com/repos/pandas-dev/pandas/pulls/34052
2020-05-07T18:26:48Z
2020-05-25T17:26:20Z
2020-05-25T17:26:20Z
2020-08-04T16:40:50Z
CI: check_freq=False
diff --git a/pandas/_testing.py b/pandas/_testing.py index 6424a8097fbf1..0180169973e0c 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -1104,6 +1104,7 @@ def assert_series_equal( check_datetimelike_compat=False, check_categorical=True, check_category_order=True, + check_freq=True, ob...
Aimed at a test that has been periodically failing in the CI for a week or so.
https://api.github.com/repos/pandas-dev/pandas/pulls/34050
2020-05-07T16:36:37Z
2020-05-09T19:54:21Z
2020-05-09T19:54:21Z
2020-08-05T14:25:51Z
Bug in Series.groupby would raise ValueError when grouping by PeriodIndex level
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 3b60085e9fa66..818a0cccae184 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -816,6 +816,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby` where a ``ValueError`` would be raised when gr...
- [ ] closes #34010 - [ ] 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/34049
2020-05-07T14:42:41Z
2020-05-19T08:43:05Z
2020-05-19T08:43:05Z
2020-05-26T09:27:53Z
Bug in DataFrame.replace casts columns to ``object`` dtype if items in ``to_replace`` not in values
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 9c424f70b1ee0..2da257bd6abc2 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -744,6 +744,7 @@ Reshaping - Bug in :meth:`DataFrame.unstack` when MultiIndexed columns and MultiIndexed rows were used (:i...
- [ ] closes #32988 - [ ] 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/34048
2020-05-07T13:55:54Z
2020-05-09T20:07:43Z
2020-05-09T20:07:43Z
2020-05-26T09:29:43Z
PERF: cdef UTC
diff --git a/pandas/_libs/tslibs/c_timestamp.pyx b/pandas/_libs/tslibs/c_timestamp.pyx index 86979fa7946d9..1e48f5445c1f6 100644 --- a/pandas/_libs/tslibs/c_timestamp.pyx +++ b/pandas/_libs/tslibs/c_timestamp.pyx @@ -37,8 +37,9 @@ from pandas._libs.tslibs.np_datetime import OutOfBoundsDatetime from pandas._libs.tslibs...
This won't make a big difference, but it will avoid needing to go to python-space for these lookups.
https://api.github.com/repos/pandas-dev/pandas/pulls/34043
2020-05-07T02:13:31Z
2020-05-07T16:07:40Z
2020-05-07T16:07:40Z
2020-05-07T16:17:25Z
REF: use unpack_zerodim_and_defer on EA methods
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 2553a65aed07b..921927325a144 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -22,7 +22,7 @@ from pandas.core.dtypes.cast import maybe_cast_to_extension_array from pandas.core.dtypes.common import is_array_like, is_l...
https://api.github.com/repos/pandas-dev/pandas/pulls/34042
2020-05-07T01:46:43Z
2020-08-07T19:35:20Z
2020-08-07T19:35:20Z
2021-11-20T23:22:41Z
CLN: remove normalize_date, but really this time
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index 6dd5b4b2fa798..60e93b3824b37 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -682,37 +682,6 @@ cpdef inline datetime localize_pydatetime(datetime dt, object tz): # Normalization -d...
#34016 removed all the references to it, but I forgot the actual function
https://api.github.com/repos/pandas-dev/pandas/pulls/34041
2020-05-07T00:41:29Z
2020-05-07T02:52:40Z
2020-05-07T02:52:39Z
2020-05-07T03:01:41Z