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
CLN: remove cmath, closes #23209
diff --git a/pandas/_libs/src/headers/cmath b/pandas/_libs/src/headers/cmath deleted file mode 100644 index 632e1fc2390d0..0000000000000 --- a/pandas/_libs/src/headers/cmath +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _PANDAS_MATH_H_ -#define _PANDAS_MATH_H_ - -// MSVC 2017 has a bug where `x == x` can be true for NaNs. -/...
cc @chris-b1
https://api.github.com/repos/pandas-dev/pandas/pulls/29491
2019-11-08T19:19:29Z
2019-11-08T23:51:20Z
null
2019-11-21T19:59:35Z
CLN: annotation in reshape.merge
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index bc23d50c634d5..2674b7ee95088 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -6,6 +6,7 @@ import datetime from functools import partial import string +from typing import TYPE_CHECKING, Optional, Tuple, Unio...
This will need multiple passes, trying to keep a moderately-sized diff.
https://api.github.com/repos/pandas-dev/pandas/pulls/29490
2019-11-08T17:06:10Z
2019-11-12T23:43:05Z
2019-11-12T23:43:05Z
2019-11-13T14:29:10Z
ENH: Support arrow/parquet roundtrip for nullable integer / string extension dtypes
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index e341dcb8318bc..89d43e8a43825 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -251,6 +251,48 @@ To use a test, subclass it: See https://github.com/pandas-dev/pandas/blob/master/...
xref https://github.com/pandas-dev/pandas/issues/20612 This implements the `__from_arrow__` method for integer/string extension types, so roundtripping to arrow/parquet fully works.
https://api.github.com/repos/pandas-dev/pandas/pulls/29483
2019-11-08T13:42:47Z
2019-11-19T15:17:45Z
2019-11-19T15:17:45Z
2019-11-19T15:19:03Z
TYPING: change to FrameOrSeries Alias in pandas._typing
diff --git a/pandas/_typing.py b/pandas/_typing.py index 445eff9e19e47..df2d327af92a3 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -21,8 +21,8 @@ from pandas.core.arrays.base import ExtensionArray # noqa: F401 from pandas.core.dtypes.dtypes import ExtensionDtype # noqa: F401 from pandas.co...
@WillAyd I think we should discuss reverting #28173 and only use `TypeVar("FrameOrSeries", bound="NDFrame")` in `core.generic`. perhaps call it `_NDFrameT` to avoid confusion. This PR is to show the changes required to keep mypy green if we wanted to revert. It also reverts the change in #29458, see https://g...
https://api.github.com/repos/pandas-dev/pandas/pulls/29480
2019-11-08T10:24:34Z
2019-12-02T14:20:22Z
null
2019-12-02T14:20:23Z
CLN: annotations in core.apply
diff --git a/pandas/core/apply.py b/pandas/core/apply.py index d9f6bdae288ed..9c5806a3fe945 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -1,4 +1,6 @@ +import abc import inspect +from typing import TYPE_CHECKING, Iterator, Type import numpy as np @@ -13,14 +15,17 @@ ) from pandas.core.dtypes.g...
make `apply_broadcast` have consistent signature. After this I plan to do a pass to make these classes much less stateful
https://api.github.com/repos/pandas-dev/pandas/pulls/29477
2019-11-08T04:21:41Z
2019-11-12T23:44:19Z
2019-11-12T23:44:19Z
2019-11-13T00:02:06Z
TYPES: __len__, is_all_dates, inferred_type
diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in index c39d6d60d4ea5..b207fcb66948d 100644 --- a/pandas/_libs/hashtable_class_helper.pxi.in +++ b/pandas/_libs/hashtable_class_helper.pxi.in @@ -100,7 +100,7 @@ cdef class {{name}}Vector: PyMem_Free(self.dat...
Operation Get This Over With, part 2
https://api.github.com/repos/pandas-dev/pandas/pulls/29475
2019-11-08T03:05:20Z
2019-11-11T23:08:30Z
2019-11-11T23:08:30Z
2019-11-11T23:11:29Z
CLN: simplify _shallow_copy
diff --git a/pandas/core/base.py b/pandas/core/base.py index 8c8037091559d..f236fea93278c 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -634,20 +634,19 @@ def _is_builtin_func(self, arg): class ShallowMixin: _attributes = [] # type: List[str] - def _shallow_copy(self, obj=None, obj_type=None...
The class hierarchy of in/around groupby is really tough, this simplifies it a little bit
https://api.github.com/repos/pandas-dev/pandas/pulls/29474
2019-11-07T23:50:22Z
2019-11-08T14:39:32Z
2019-11-08T14:39:32Z
2019-11-08T15:18:41Z
AreaPlot: add support for step drawstyle
diff --git a/pandas/plotting/_matplotlib/core.py b/pandas/plotting/_matplotlib/core.py index 541dca715e814..9fa531bef859b 100644 --- a/pandas/plotting/_matplotlib/core.py +++ b/pandas/plotting/_matplotlib/core.py @@ -1257,6 +1257,11 @@ def _plot( # need to remove label, because subplots uses mpl legend as it i...
- [ ] closes #29451 - [ ] 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/29473
2019-11-07T23:48:26Z
2020-01-01T20:54:16Z
null
2020-03-04T11:06:41Z
API: Rename BaseGrouper.recons_codes to BaseGrouper.reconstructed_codes
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 3b8c3148f5177..3ef726e569970 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -655,7 +655,7 @@ def value_counts( rep = partial(np.repeat, repeats=np.add.reduceat(inc, idx)) # multi-i...
Rename ``BaseGrouper.recons_codes`` to ``BaseGrouper.reconstructed_codes``. This is an internal attribute, so ok to rename. Also adds some typing.
https://api.github.com/repos/pandas-dev/pandas/pulls/29471
2019-11-07T19:26:23Z
2019-11-08T04:41:07Z
2019-11-08T04:41:06Z
2019-11-08T04:41:11Z
CLN: remove dead code, closes #28898
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 40efc4c65476a..c9111812e42b0 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2731,38 +2731,6 @@ def transpose(self, *args, **kwargs): T = property(transpose) - # ------------------------------------------------------------------...
- [x] closes #28898
https://api.github.com/repos/pandas-dev/pandas/pulls/29470
2019-11-07T18:59:27Z
2019-11-07T21:21:44Z
2019-11-07T21:21:43Z
2019-11-07T21:57:36Z
PERF: MultiIndex.get_loc
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index fe91a588c7dde..19769d5b029a1 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1981,11 +1981,11 @@ def remove_unused_levels(self): return result @property - def nlevels(self): + def nlevel...
- [x] closes #29311 ``` In [4]: mi_med = pd.MultiIndex.from_product( ...: [np.arange(1000), np.arange(10), list("A")], names=["one", "two", "three"] ...: ) In [5]: %timeit mi_med.get_loc((999, 9, "A")) master --> 42.6 µs ± 411 ns per loop (mean ± std. dev. of 7 runs, 10000 loops each) PR ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29469
2019-11-07T18:40:15Z
2019-11-07T21:20:57Z
2019-11-07T21:20:57Z
2019-11-07T21:56:53Z
CLN: annotate __str__ and __repr__ methods
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index ff143fea892ae..db9f16d46e48c 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -53,7 +53,7 @@ cdef class BlockPlacement: self._as_array = arr self._has_array = True - def __str__(self): + ...
Operation: Get This Over With
https://api.github.com/repos/pandas-dev/pandas/pulls/29467
2019-11-07T18:16:09Z
2019-11-07T21:01:52Z
2019-11-07T21:01:52Z
2019-11-07T21:07:21Z
PR09 batch 4
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 40efc4c65476a..301cfa53e3e0b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5881,13 +5881,13 @@ def pivot(self, index=None, columns=None, values=None): hierarchical columns whose top level are the function names (...
chunk of #28602
https://api.github.com/repos/pandas-dev/pandas/pulls/29466
2019-11-07T15:58:25Z
2019-11-08T15:49:14Z
2019-11-08T15:49:14Z
2020-01-06T16:47:00Z
Pin dateutil to 2.8.0 in requirements
diff --git a/environment.yml b/environment.yml index e9ac76f5bc52c..6d95fbc1a017e 100644 --- a/environment.yml +++ b/environment.yml @@ -5,7 +5,7 @@ dependencies: # required - numpy>=1.15 - python=3.7 - - python-dateutil>=2.6.1 + - python-dateutil>=2.6.1,<=2.8.0 - pytz # benchmarks diff --git a/requi...
botocore has pinned dateutil to <=2.8.0, which conflicts with our dateutil here and leads to ``` ERROR: botocore 1.13.12 has requirement python-dateutil<2.8.1,>=2.1; python_version >= "2.7", but you'll have python-dateutil 2.8.1 which is incompatible. ``` See https://github.com/boto/botocore/commit/e87e7a745fd...
https://api.github.com/repos/pandas-dev/pandas/pulls/29464
2019-11-07T15:29:45Z
2019-12-01T01:02:29Z
null
2019-12-01T01:02:30Z
CLN: type up core.groupby.grouper.get_grouper
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 31d6e2206f569..e73be29d5b104 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -379,9 +379,9 @@ def __init__( self.mutated = kwargs.pop("mutated", False) if grouper is None: - ...
Add types + make some minor cleanups.
https://api.github.com/repos/pandas-dev/pandas/pulls/29458
2019-11-07T07:33:28Z
2019-11-08T08:54:52Z
2019-11-08T08:54:52Z
2019-11-08T14:58:58Z
DEPR: is_extension_type
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 370e1c09d33aa..8c2b140cc2311 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -213,7 +213,8 @@ Deprecations - ``Index.set_value`` has been deprecated. For a given index ``idx``, array ``arr``, value...
It is mostly redundant with `is_extension_array_dtype`, and having both is confusing. xref #23179.
https://api.github.com/repos/pandas-dev/pandas/pulls/29457
2019-11-07T05:24:40Z
2019-11-08T14:37:45Z
2019-11-08T14:37:45Z
2023-12-11T23:50:52Z
CLN: type annotations in groupby.grouper, groupby.ops
diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py index 370abe75e1327..e6e3ee62459ca 100644 --- a/pandas/core/groupby/grouper.py +++ b/pandas/core/groupby/grouper.py @@ -119,7 +119,7 @@ def __init__(self, key=None, level=None, freq=None, axis=0, sort=False): def ax(self): return...
@simonjayhawkins mypy is still giving a couple of complaints I could use your help sorting out: ``` pandas/core/groupby/ops.py:791: error: Signature of "groupings" incompatible with supertype "BaseGrouper" pandas/core/groupby/ops.py:872: error: Argument 1 of "_chop" is incompatible with supertype "DataSplitter"; s...
https://api.github.com/repos/pandas-dev/pandas/pulls/29456
2019-11-07T05:18:19Z
2019-11-13T00:39:19Z
2019-11-13T00:39:19Z
2019-11-13T12:12:10Z
TST: add test for empty frame groupby dtypes consistency
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 79c9fe2b60bd9..a535fcc511daa 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -1490,6 +1490,20 @@ def test_frame_dict_constructor_empty_series(self): DataFrame({"foo": s1, "bar": s2, "baz":...
- [x] closes #20888 - [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/29455
2019-11-07T02:12:32Z
2019-11-08T04:17:29Z
2019-11-08T04:17:28Z
2019-11-08T04:17:35Z
TST: add test for df.where() with category dtype
diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py index 68844aeeb081e..c29f5e78b033f 100644 --- a/pandas/tests/frame/test_dtypes.py +++ b/pandas/tests/frame/test_dtypes.py @@ -815,6 +815,22 @@ def test_astype_extension_dtypes_duplicate_col(self, dtype): expected = concat([a1.as...
- [x] xref #16979 - [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/29454
2019-11-07T01:45:46Z
2019-11-08T19:57:37Z
2019-11-08T19:57:37Z
2019-11-08T19:57:37Z
CLN: remove is_datetimelike
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 23ba0ac1c737e..26099a94834e8 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -29,7 +29,6 @@ is_complex_dtype, is_datetime64_any_dtype, is_datetime64_ns_dtype, - is_datetimelike, is_extension_array_d...
- [x] closes #23914 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` AFAICT this is strictly dominated by needs_i8_conversion
https://api.github.com/repos/pandas-dev/pandas/pulls/29452
2019-11-07T00:28:50Z
2019-11-07T21:23:32Z
2019-11-07T21:23:31Z
2019-11-07T21:56:05Z
CLN: remove is_stringlike
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 3f4ebc88c1c8a..2a46d335ff512 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -45,7 +45,6 @@ is_re_compilable, is_scalar, is_sequence, - is_string_like, ) from pandas._typing import ArrayL...
its now just an alias for `isinstance(obj, str)`
https://api.github.com/repos/pandas-dev/pandas/pulls/29450
2019-11-06T22:23:54Z
2019-11-07T07:34:28Z
2019-11-07T07:34:28Z
2019-11-07T17:18:30Z
DOC: Improving (hopefully) the documintation
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 2d6c8e1008ce1..c2d6a3bc4906d 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -84,8 +84,8 @@ cpdef ndarray[int64_t, ndim=1] unique_deltas(const int64_t[:] arr): Returns ------- - result : ndarray[int64_t] - resul...
- [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29449
2019-11-06T22:13:18Z
2019-11-07T16:10:39Z
2019-11-07T16:10:39Z
2019-11-07T20:52:15Z
TST: add test for indexing with single/double tuples
diff --git a/pandas/tests/frame/indexing/test_indexing.py b/pandas/tests/frame/indexing/test_indexing.py index 24a431fe42cf8..9a7cd4ace686f 100644 --- a/pandas/tests/frame/indexing/test_indexing.py +++ b/pandas/tests/frame/indexing/test_indexing.py @@ -2624,6 +2624,17 @@ def test_index_namedtuple(self): result...
- [x] closes #20991 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29448
2019-11-06T21:56:29Z
2019-11-20T17:14:29Z
2019-11-20T17:14:29Z
2019-11-20T17:15:58Z
ENH: Add ORC reader
diff --git a/doc/source/getting_started/install.rst b/doc/source/getting_started/install.rst index 9f3ab22496ae7..14530a9010a1c 100644 --- a/doc/source/getting_started/install.rst +++ b/doc/source/getting_started/install.rst @@ -258,7 +258,7 @@ matplotlib 2.2.2 Visualization openpyxl ...
- [x] closes #25229 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added an ORC reader following the `read_parquet` API. Still need to give some additional love to the docstrings but this is at least ready for some ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29447
2019-11-06T21:54:14Z
2019-12-11T08:11:52Z
2019-12-11T08:11:52Z
2019-12-23T20:57:03Z
DOC: Remove errant backslashes from the Ecosystem tab on new website.
diff --git a/web/pandas/community/ecosystem.md b/web/pandas/community/ecosystem.md index cf242e86f879f..af6fd1ac77605 100644 --- a/web/pandas/community/ecosystem.md +++ b/web/pandas/community/ecosystem.md @@ -86,12 +86,12 @@ models to emphasize patterns in a dataset. ### [yhat/ggpy](https://github.com/yhat/ggpy) -...
Pandas Sprint at PyData NYC :-) Fixed at the direction of @datapythonista The only file touched is a markdown file. - [ ] 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/29446
2019-11-06T21:11:17Z
2019-11-07T16:31:50Z
2019-11-07T16:31:50Z
2019-11-07T16:31:52Z
fixup pip env
diff --git a/requirements-dev.txt b/requirements-dev.txt index e7df704925485..13e2c95126f0c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,5 +1,4 @@ numpy>=1.15 -python==3.7 python-dateutil>=2.6.1 pytz asv diff --git a/scripts/generate_pip_deps_from_conda.py b/scripts/generate_pip_deps_from_cond...
Closes https://github.com/pandas-dev/pandas/issues/29443 cc @MomIsBestFriend
https://api.github.com/repos/pandas-dev/pandas/pulls/29445
2019-11-06T21:07:27Z
2019-11-07T14:28:18Z
2019-11-07T14:28:17Z
2019-11-07T14:28:22Z
Adding more documentation for upsampling with replacement and error m…
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b40a64420a0be..1cb1f745fb61b 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -333,6 +333,7 @@ Numeric - :class:`DataFrame` flex inequality comparisons methods (:meth:`DataFrame.lt`, :meth:`DataFrame.l...
…essage in case replacement is set to False - [X] closes #27451 - [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/29444
2019-11-06T20:41:21Z
2019-11-08T01:03:24Z
2019-11-08T01:03:24Z
2019-11-08T01:03:38Z
TST: Add docstrings to arithmetic fixtures
diff --git a/pandas/tests/arithmetic/conftest.py b/pandas/tests/arithmetic/conftest.py index 774ff14398bdb..1f8fdfd671856 100644 --- a/pandas/tests/arithmetic/conftest.py +++ b/pandas/tests/arithmetic/conftest.py @@ -21,7 +21,24 @@ def id_func(x): @pytest.fixture(params=[1, np.array(1, dtype=np.int64)]) def one(req...
Relates to #19159 - [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/29441
2019-11-06T20:27:23Z
2019-11-18T01:40:48Z
2019-11-18T01:40:48Z
2019-11-18T01:40:59Z
add unit tests for issue #19351
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 79c9fe2b60bd9..a1f58922ea0ca 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -358,6 +358,49 @@ def test_unstack(self): # test that int32 work self.ymd.astype(np.int32).unstack() ...
- [x] closes #19351 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is a unit test for an already fixed problem.
https://api.github.com/repos/pandas-dev/pandas/pulls/29438
2019-11-06T19:33:12Z
2019-11-06T21:23:27Z
2019-11-06T21:23:27Z
2019-11-06T21:23:33Z
CLN: remove unnecessary check in MultiIndex
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 2e3f440573a0f..fe91a588c7dde 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2164,6 +2164,7 @@ def drop(self, codes, level=None, errors="raise"): codes : array-like Must be a list of tup...
We raise a ValueError and immediately ignore it.
https://api.github.com/repos/pandas-dev/pandas/pulls/29437
2019-11-06T19:06:28Z
2019-11-06T21:22:46Z
2019-11-06T21:22:46Z
2019-11-06T21:30:26Z
CLN: core.computation, mostly typing
diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py index 3e1e5ed89d877..92374caa29b10 100644 --- a/pandas/core/computation/align.py +++ b/pandas/core/computation/align.py @@ -33,7 +33,7 @@ def _zip_axes_from_type(typ, new_axes): return axes -def _any_pandas_objects(terms): +def _a...
cc @simonjayhawkins Largely using annotations as an excuse to put eyeballs on parts of the code that would otherwise be left alone.
https://api.github.com/repos/pandas-dev/pandas/pulls/29436
2019-11-06T18:03:15Z
2019-11-11T15:38:34Z
null
2019-11-21T19:59:49Z
Pr09 batch 3
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 328b67b6722f1..a14efd3313eaf 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -125,7 +125,7 @@ def is_scalar(val: object) -> bool: - Interval - DateOffset - Fraction - - Number + - Number. Retur...
part of #28602
https://api.github.com/repos/pandas-dev/pandas/pulls/29434
2019-11-06T17:03:42Z
2019-11-06T20:36:34Z
2019-11-06T20:36:34Z
2020-01-06T16:47:00Z
CI: workaround numpydev bug
diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index 281107559a38c..62b15bae6d2ce 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -45,13 +45,16 @@ jobs: PATTERN: "not slow and not network" LOCALE_OVERRIDE: "zh_CN.UTF-8" - py37_np_dev: - ENV_FILE: ci/deps/azure-3...
We don't want this long-term. But there's no easy way to skip this for numpydev, since it errors in setup. xref #29432 (keep open till numpydev is fixed)
https://api.github.com/repos/pandas-dev/pandas/pulls/29433
2019-11-06T16:31:35Z
2019-11-06T19:10:04Z
2019-11-06T19:10:03Z
2019-11-06T21:21:01Z
Cleanup env
diff --git a/environment.yml b/environment.yml index 443dc483aedf8..e9ac76f5bc52c 100644 --- a/environment.yml +++ b/environment.yml @@ -1,11 +1,10 @@ name: pandas-dev channels: - - defaults - conda-forge dependencies: # required - numpy>=1.15 - - python=3 + - python=3.7 - python-dateutil>=2.6.1 - ...
Closes #29330 This was most likely due to inconsistent constraints between conda-forge & defaults. Also, pinning to 3.7 for now until the 3.8 buildout is done to make the solver's life a bit easier.
https://api.github.com/repos/pandas-dev/pandas/pulls/29431
2019-11-06T16:09:15Z
2019-11-06T18:12:52Z
2019-11-06T18:12:51Z
2019-11-06T18:13:05Z
CLN: Replaced '%' string formating to '.format' formatting
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 8b9842ba087a5..aed1ee1c6f6e5 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -638,18 +638,19 @@ cdef class TextReader: elif len(zip_names) == 0: raise ValueError('Zero files found in co...
REF issue #16130 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` P.S **Need code review**
https://api.github.com/repos/pandas-dev/pandas/pulls/29430
2019-11-06T10:47:11Z
2019-11-06T15:20:35Z
null
2019-11-11T08:49:32Z
BUG: Styling user guide points to a wrong nbviewer link
diff --git a/doc/source/user_guide/style.ipynb b/doc/source/user_guide/style.ipynb index 006f928c037bd..e0dc2e734e660 100644 --- a/doc/source/user_guide/style.ipynb +++ b/doc/source/user_guide/style.ipynb @@ -6,7 +6,7 @@ "source": [ "# Styling\n", "\n", - "This document is written as a Jupyter Notebook...
Just missing the 'user_guide' part => one line change. - [ ] closes #xxxx (NOT THAT I KNOW) - [ ] tests added / passed (NO CODE CHANGE) - [ ] passes `black pandas` (NO CODE CHANGE) - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` (NO CODE CHANGE) - [ ] whatsnew entry (NO CHANGE)
https://api.github.com/repos/pandas-dev/pandas/pulls/29429
2019-11-06T09:13:30Z
2019-11-06T16:45:13Z
2019-11-06T16:45:13Z
2019-11-06T16:45:18Z
REF: Separate window bounds calculation from aggregation functions
diff --git a/pandas/_libs/window.pyx b/pandas/_libs/window.pyx index d6bad0f20d760..303b4f6f24eac 100644 --- a/pandas/_libs/window.pyx +++ b/pandas/_libs/window.pyx @@ -96,280 +96,20 @@ def _check_minp(win, minp, N, floor=None) -> int: # Physical description: 366 p. # Series: Prentice-Hall Series in Aut...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Pre-req for https://github.com/pandas-dev/pandas/issues/28987 Currently many of the aggregation functions in `window.pyx` follow the form: ``` def roll_func(values, window, minp, N, cl...
https://api.github.com/repos/pandas-dev/pandas/pulls/29428
2019-11-06T07:30:05Z
2019-11-21T12:59:31Z
2019-11-21T12:59:31Z
2019-11-26T14:22:18Z
REF: separate out ShallowMixin
diff --git a/pandas/core/base.py b/pandas/core/base.py index 1a2f906f97152..65e531f96614a 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -4,7 +4,7 @@ import builtins from collections import OrderedDict import textwrap -from typing import Dict, FrozenSet, Optional +from typing import Dict, FrozenSet, L...
- [x] closes #28938 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Stops catching DataError in the 1D case for _aggregate_multiple_funcs. This change is mostly unrelated, but shares the process of reasoning about what cases need _shallow_copy/DataError.
https://api.github.com/repos/pandas-dev/pandas/pulls/29427
2019-11-06T03:11:19Z
2019-11-06T19:11:31Z
2019-11-06T19:11:30Z
2019-11-06T19:24:46Z
BUG: fix TypeErrors raised within _python_agg_general
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 873a31e658625..fa4a184e8f7a4 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -899,10 +899,21 @@ def _python_agg_general(self, func, *args, **kwargs): output = {} for name, obj in self...
cc @jreback @WillAyd There are a few ways in which we incorrectly raise TypeError within _python_agg_general that this fixes. A lot of the complexity in this code comes from the fact that we drop columns on which a function is invalid instead of requiring the user to subset columns.
https://api.github.com/repos/pandas-dev/pandas/pulls/29425
2019-11-06T01:24:04Z
2019-11-06T21:25:07Z
2019-11-06T21:25:07Z
2019-11-06T21:33:09Z
TST: consistent result in dropping NA from CSV
diff --git a/pandas/tests/io/parser/test_na_values.py b/pandas/tests/io/parser/test_na_values.py index f154d09358dc1..f52c6b8858fd3 100644 --- a/pandas/tests/io/parser/test_na_values.py +++ b/pandas/tests/io/parser/test_na_values.py @@ -536,3 +536,31 @@ def test_cast_NA_to_bool_raises_error(all_parsers, data, na_values...
Closes https://github.com/pandas-dev/pandas/issues/21131
https://api.github.com/repos/pandas-dev/pandas/pulls/29424
2019-11-05T23:10:16Z
2019-11-06T21:11:44Z
2019-11-06T21:11:44Z
2019-11-06T21:43:39Z
TST: Test nLargest with MI grouper
diff --git a/pandas/tests/groupby/test_function.py b/pandas/tests/groupby/test_function.py index 2d7dfe49dc038..18c4d7ceddc65 100644 --- a/pandas/tests/groupby/test_function.py +++ b/pandas/tests/groupby/test_function.py @@ -607,6 +607,51 @@ def test_nlargest(): tm.assert_series_equal(gb.nlargest(3, keep="last"), ...
Closes https://github.com/pandas-dev/pandas/issues/21411
https://api.github.com/repos/pandas-dev/pandas/pulls/29423
2019-11-05T22:36:02Z
2019-11-06T19:10:35Z
2019-11-06T19:10:35Z
2019-11-06T19:28:04Z
TST: ignore _version.py
diff --git a/setup.cfg b/setup.cfg index d4657100c1291..c7a71222ac91f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -80,6 +80,7 @@ branch = False omit = */tests/* pandas/_typing.py + pandas/_version.py plugins = Cython.Coverage [coverage:report]
- [x] closes #26877 The file is auto-generated, not something for us to worry about
https://api.github.com/repos/pandas-dev/pandas/pulls/29421
2019-11-05T22:14:11Z
2019-11-06T19:27:15Z
2019-11-06T19:27:15Z
2019-11-06T20:03:02Z
Correct type inference for UInt64Index during access
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 30a828064f812..950b8db373eef 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -345,7 +345,8 @@ Numeric - Improved error message when using `frac` > 1 and `replace` = False (:issue:`27451`) - Bug in nu...
- [x] closes #28023 and closes #28279 - [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/29420
2019-11-05T21:28:23Z
2019-11-27T20:47:44Z
2019-11-27T20:47:43Z
2019-11-28T12:21:18Z
CLN: assorted, mostly typing
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index a08ae66865e20..2d6c8e1008ce1 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -1150,6 +1150,77 @@ def rank_2d(rank_t[:, :] in_arr, axis=0, ties_method='average', return ranks +ctypedef fused diff_t: + float64_t + fl...
diff_2d no longer needs to be in the pxi.in file, so moved it to the pyx A couple of recently-identified bugs in the groupby code are caused by passing incorrect types, so im getting more motivated to add annotations in/around the affected code.
https://api.github.com/repos/pandas-dev/pandas/pulls/29419
2019-11-05T19:46:33Z
2019-11-06T18:11:04Z
2019-11-06T18:11:04Z
2019-11-06T18:19:32Z
maybe_promote: Restrict fill_value to scalar for non-object dtype
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 542618e332f7b..fad80d6bf5745 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -339,6 +339,11 @@ def changeit(): def maybe_promote(dtype, fill_value=np.nan): + if not is_scalar(fill_value) and not is_object_dtyp...
Partially reverts #29362 by allowing non-scalar fill_value for _object_ dtypes. i.e. in 0.25.3 `pd.Series(range(3), dtype=object).shift(1, fill_value={})` would work, #29362 broke that, and this restores it. Added `test_shift_object_non_scalar_fill` for this. With the new restriction on `maybe_promote` in place, w...
https://api.github.com/repos/pandas-dev/pandas/pulls/29416
2019-11-05T17:45:37Z
2019-11-06T19:29:03Z
2019-11-06T19:29:03Z
2020-04-05T17:44:46Z
Fixed SS03 errors
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 1a712d0c4efa8..b13ce7c294f37 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -94,7 +94,7 @@ cdef class IntervalMixin: @property def mid(self): """ - Return the midpoint of the Interval + R...
Fixed SS03 errors for: `pandas.Timestamp.combine`; `pandas.Timestamp.fromordinal`; `pandas.Period.strftime`; `pandas.Interval.closed`; `pandas.Interval.left`; `pandas.Interval.length`; `pandas.Interval.mid`; `pandas.Interval.right`. - [x] xref to #29315 - [ ] tests added / passed - [x] passes `black pandas` - [x...
https://api.github.com/repos/pandas-dev/pandas/pulls/29410
2019-11-05T08:24:51Z
2019-11-05T15:19:21Z
2019-11-05T15:19:21Z
2019-11-06T06:37:57Z
CLN: assorted cleanups
diff --git a/pandas/_libs/sparse.pyx b/pandas/_libs/sparse.pyx index 4906e45c884e9..6abaaca010b00 100644 --- a/pandas/_libs/sparse.pyx +++ b/pandas/_libs/sparse.pyx @@ -597,7 +597,7 @@ cdef class BlockIndex(SparseIndex): result = np.empty(other.npoints, dtype=np.float64) - for 0 <= i < other.nblocks...
https://api.github.com/repos/pandas-dev/pandas/pulls/29406
2019-11-04T23:26:44Z
2019-11-05T15:14:55Z
2019-11-05T15:14:54Z
2019-11-07T18:36:53Z
API: Use object dtype for empty Series
diff --git a/doc/source/user_guide/missing_data.rst b/doc/source/user_guide/missing_data.rst index 11957cfa265f5..1cc485a229123 100644 --- a/doc/source/user_guide/missing_data.rst +++ b/doc/source/user_guide/missing_data.rst @@ -190,7 +190,7 @@ The sum of an empty or all-NA Series or column of a DataFrame is 0. p...
- [x] closes #17261 - [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/29405
2019-11-04T23:20:57Z
2019-12-05T19:00:16Z
2019-12-05T19:00:15Z
2019-12-05T22:29:50Z
BUG: GH29310 HDF file compression not working
diff --git a/pandas/_testing.py b/pandas/_testing.py index 631d550c60534..55b0c8eda8e11 100644 --- a/pandas/_testing.py +++ b/pandas/_testing.py @@ -842,7 +842,7 @@ def assert_categorical_equal( if check_category_order: assert_index_equal(left.categories, right.categories, obj=f"{obj}.categories") ...
- [x] closes #29310 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Re #29310, the complib and complevel parameters were not being passed down all the way previously, hence HDF compression not working. I noticed that the implementation of to_hdf() specifies th...
https://api.github.com/repos/pandas-dev/pandas/pulls/29404
2019-11-04T23:06:06Z
2020-02-07T07:55:30Z
null
2020-02-07T07:55:31Z
API: rename labels to codes in core/groupby
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 8512b6c3ae530..511b87dab087e 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -655,16 +655,17 @@ def value_counts( rep = partial(np.repeat, repeats=np.add.reduceat(inc, idx)) # multi...
This PR renames the various ``*label*`` names in core/groupby to like-named ``*codes*``. I think the name ``label`` can be confused by the single values in a index, and ``codes`` sound smore like an array of ints, so by renaming we get a cleaner nomenclature, IMO. All these attributes/methods are internal, so no ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29402
2019-11-04T22:24:21Z
2019-11-07T01:34:47Z
2019-11-07T01:34:47Z
2019-11-07T01:34:51Z
removing kendall tests
diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py index ed5ebfa61594e..ec67394e55a1e 100644 --- a/asv_bench/benchmarks/stat_ops.py +++ b/asv_bench/benchmarks/stat_ops.py @@ -7,20 +7,14 @@ class FrameOps: - params = [ops, ["float", "int"], [0, 1], [True, False]] - param_names = ...
closes #29270 Following is the output after removing "kendall" ``` · Creating environments · Discovering benchmarks ·· Uninstalling from conda-py3.6-Cython-matplotlib-numexpr-numpy-odfpy-openpyxl-pytables-pytest-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt ·· Building cd59acf5 <fix-kendall-issues> for conda-py3.6-C...
https://api.github.com/repos/pandas-dev/pandas/pulls/29401
2019-11-04T22:02:52Z
2019-12-05T16:35:46Z
2019-12-05T16:35:45Z
2019-12-05T16:35:52Z
REF: implement first_valid_index in core.missing
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index cbeee88d75b51..bafc37d478fdb 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -83,6 +83,7 @@ from pandas.core.indexes.period import Period, PeriodIndex import pandas.core.indexing as indexing from pandas.core.internals import Block...
The implementation here operates on the values (ndarray or EA) instead of on the Series/DataFrame. This lets us avoid a runtime import of Series, so core.missing joins the Simple Dependencies Club.
https://api.github.com/repos/pandas-dev/pandas/pulls/29400
2019-11-04T21:43:44Z
2019-11-05T17:13:17Z
2019-11-05T17:13:16Z
2019-11-05T17:47:01Z
PR09 Batch 2
diff --git a/pandas/core/base.py b/pandas/core/base.py index 2fb552af717fc..1a2f906f97152 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1073,7 +1073,7 @@ def argmax(self, axis=None, skipna=True, *args, **kwargs): Parameters ---------- axis : {None} - Dummy argument...
Another batch of commits for #28602. Also fixes a few summary formatting errors and PR08 capitalization errors.
https://api.github.com/repos/pandas-dev/pandas/pulls/29396
2019-11-04T14:58:19Z
2019-11-04T16:11:23Z
2019-11-04T16:11:23Z
2020-01-06T16:47:02Z
DOC: remove okwarning once pyarrow 0.12 is released
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 173bcf7537154..f9fbc33cba966 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -4685,7 +4685,6 @@ Write to a feather file. Read from a feather file. .. ipython:: python - :okwarning: result = pd.read...
- [x] closes #24617 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29395
2019-11-04T14:05:01Z
2019-11-04T14:53:10Z
2019-11-04T14:53:09Z
2019-11-04T14:53:10Z
BUG: GH25495 incorrect dtype when using .loc to set Categorical value for column in 1-row DataFrame
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index f0ba1250b7f8d..c9e2e7e133133 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -1086,6 +1086,7 @@ Indexing - Bug when indexing with ``.loc`` where the index was a :class:`CategoricalIndex` with non-stri...
- [x] closes https://github.com/pandas-dev/pandas/issues/25495 - [x] 1 test added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29393
2019-11-04T09:25:45Z
2020-01-27T12:34:43Z
2020-01-27T12:34:43Z
2020-01-28T15:29:45Z
TST: Test DataFrame.rolling with window as string
diff --git a/pandas/tests/window/test_rolling.py b/pandas/tests/window/test_rolling.py index 70ba85120af3c..72b72b31d8faa 100644 --- a/pandas/tests/window/test_rolling.py +++ b/pandas/tests/window/test_rolling.py @@ -1,4 +1,4 @@ -from datetime import timedelta +from datetime import datetime, timedelta import numpy a...
Closes https://github.com/pandas-dev/pandas/issues/22590
https://api.github.com/repos/pandas-dev/pandas/pulls/29392
2019-11-04T02:51:56Z
2019-11-04T22:10:32Z
2019-11-04T22:10:32Z
2019-11-04T23:56:07Z
Fix: DataFrame.append with empty list raises IndexError
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 101c5ec9137fc..19bba71edf7f2 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -233,7 +233,7 @@ Removal of prior version deprecations/changes Previously, pandas would register converters with matplotl...
- [x] closes #28769 - [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/29391
2019-11-04T00:17:03Z
2019-11-04T00:22:31Z
null
2019-11-04T00:22:31Z
changing docstring for to_csv compression to 1.0.0
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f88c26c7bc782..cbeee88d75b51 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3221,7 +3221,7 @@ def to_csv( and mode is 'zip' or inferred as 'zip', other entries passed as additional compression options. -...
- closes #29328 - Just updating doc-string for to_csv() compression.
https://api.github.com/repos/pandas-dev/pandas/pulls/29390
2019-11-04T00:06:07Z
2019-11-04T13:50:14Z
2019-11-04T13:50:14Z
2019-11-04T13:50:14Z
CLN core.groupby
diff --git a/pandas/core/base.py b/pandas/core/base.py index 9586d49c555ff..2fb552af717fc 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -586,9 +586,16 @@ def _aggregate_multiple_funcs(self, arg, _level, _axis): new_res = colg.aggregate(arg) except (TypeError, DataEr...
Broken off from local branches doing non-CLN work. Foreshadowing: some of the TypeErrors we are catching are being caused by `self.axis` not being an Index instead of an int in some cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/29389
2019-11-03T22:18:33Z
2019-11-04T13:38:04Z
2019-11-04T13:38:04Z
2019-11-04T14:55:19Z
API: drop kwargs from Series.dropna, add explicit `how` parameter
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 101c5ec9137fc..8a481f194d408 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -192,6 +192,8 @@ Other API changes Now, pandas custom formatters will only be applied to plots created by pandas, through...
Using ``**kwargs`` gave false type hints on what the dropna method could take for arguments, and supplying anything but ``how`` raised a TypeError already.
https://api.github.com/repos/pandas-dev/pandas/pulls/29388
2019-11-03T21:54:23Z
2019-11-04T19:58:48Z
2019-11-04T19:58:48Z
2019-11-04T19:58:52Z
DOC: Added the flag "--no-use-pep517" to contrib guide.
diff --git a/README.md b/README.md index c299241722b7e..158d48898a7bd 100644 --- a/README.md +++ b/README.md @@ -190,7 +190,7 @@ or for installing in [development mode](https://pip.pypa.io/en/latest/reference/ ```sh -python -m pip install --no-build-isolation -e . +python -m pip install -e . --no-build-isolation -...
- [x] closes #28633
https://api.github.com/repos/pandas-dev/pandas/pulls/29387
2019-11-03T21:19:14Z
2019-11-04T13:42:42Z
2019-11-04T13:42:42Z
2019-11-04T13:42:42Z
DOC: Added --no-use-pep517 flag to the developer guide.
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 56fac1cb6852a..f66cc65774f6b 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -255,7 +255,7 @@ You'll need to have at least python3.5 installed on your system. ...
- [x] closes #28633 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29386
2019-11-03T20:28:49Z
2019-11-03T21:08:15Z
null
2019-11-03T21:08:19Z
REF: simplify core.algorithms, reshape.cut
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 06ba2a7e0ccfb..ceec0652b7ce2 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -8,7 +8,7 @@ import numpy as np -from pandas._libs import algos, hashtable as htable, lib +from pandas._libs import Timestamp, algos, hasht...
https://api.github.com/repos/pandas-dev/pandas/pulls/29385
2019-11-03T19:34:03Z
2019-11-04T13:40:47Z
2019-11-04T13:40:47Z
2019-11-04T14:59:54Z
REF: move safe_sort to algos to avoid private/circular dependencies
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 06ba2a7e0ccfb..fc55bfbae0900 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -14,6 +14,7 @@ from pandas.core.dtypes.cast import ( construct_1d_object_array_from_listlike, + infer_dtype_from_array, maybe_pr...
safe_sort uses private functions from core.algorithms and is runtime-imported into core.algorithms. It also doesn't use _anything_ else defined in core.sorting. This move cleans up the dependency structure, in particular is a step towards getting #29133 working.
https://api.github.com/repos/pandas-dev/pandas/pulls/29384
2019-11-03T17:22:08Z
2019-11-04T16:21:26Z
2019-11-04T16:21:25Z
2019-11-04T16:46:38Z
Series repr html only
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index cb68bd0e762c4..4ef773fa3fe24 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -113,6 +113,7 @@ Other enhancements - Implemented :meth:`pandas.core.window.Window.var` and :meth:`pandas.core.window.Windo...
- [x] closes #5563 - [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/29383
2019-11-03T15:31:41Z
2020-09-10T18:56:28Z
null
2020-09-11T17:22:03Z
CLN: Remove unused _isfinite, make_axis_dummies
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index 070891c4acb5e..7e50348962fc5 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -16,7 +16,6 @@ is_any_int_dtype, is_bool_dtype, is_complex, - is_complex_dtype, is_datetime64_dtype, is_datetime64tz_dtype, is_...
https://api.github.com/repos/pandas-dev/pandas/pulls/29380
2019-11-03T04:35:44Z
2019-11-03T14:54:47Z
2019-11-03T14:54:47Z
2019-11-03T15:34:09Z
Fixes typo
diff --git a/web/pandas/getting_started.md b/web/pandas/getting_started.md index 9682cf90cad6f..4195cc00b2419 100644 --- a/web/pandas/getting_started.md +++ b/web/pandas/getting_started.md @@ -9,7 +9,7 @@ the [advanced installation page]({{ base_url}}/docs/getting_started/install.html 1. Download [Anaconda](https://ww...
https://api.github.com/repos/pandas-dev/pandas/pulls/29379
2019-11-03T03:33:15Z
2019-11-03T14:53:47Z
2019-11-03T14:53:47Z
2019-11-03T14:53:51Z
TST: new test for incorrect series assignment
diff --git a/pandas/tests/series/indexing/test_indexing.py b/pandas/tests/series/indexing/test_indexing.py index 4673dabca811b..5aba2920999d5 100644 --- a/pandas/tests/series/indexing/test_indexing.py +++ b/pandas/tests/series/indexing/test_indexing.py @@ -391,6 +391,22 @@ def test_setslice(datetime_series): asser...
- [x] closes #14525 - [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/29378
2019-11-03T00:41:52Z
2019-11-07T22:13:28Z
2019-11-07T22:13:28Z
2019-11-07T22:13:43Z
CLN: deprivatize factorize_from_iterable
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 612e54ba426f3..ce174baa66a97 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2678,7 +2678,7 @@ def _convert_to_list_like(list_like): return [list_like] -def _factorize_from_it...
Deprivatize ``_factorize_from_iterable`` and ``_factorize_from_iterables``
https://api.github.com/repos/pandas-dev/pandas/pulls/29377
2019-11-02T21:26:57Z
2019-11-03T22:11:43Z
2019-11-03T22:11:43Z
2019-11-03T22:11:47Z
TST: new test for sort index when Nan in other axis.
diff --git a/pandas/tests/frame/test_sorting.py b/pandas/tests/frame/test_sorting.py index 9ea78b974fcbb..422d1b0239a4e 100644 --- a/pandas/tests/frame/test_sorting.py +++ b/pandas/tests/frame/test_sorting.py @@ -735,3 +735,12 @@ def test_sort_index_na_position_with_categories_raises(self): with pytest.raise...
closes #12261 test added / passed passes black pandas
https://api.github.com/repos/pandas-dev/pandas/pulls/29376
2019-11-02T20:45:37Z
2020-01-01T18:33:42Z
null
2020-01-01T18:33:43Z
Deprecate using `xlrd` engine
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 920919755dc23..e1b99bfcbaaf6 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -68,7 +68,8 @@ Backwards incompatible API changes Deprecations ~~~~~~~~~~~~ - +- :func:`read_excel` engine argument "xlr...
- [x] closes #28547 - [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/29375
2019-11-02T20:20:11Z
2020-04-22T03:56:00Z
null
2020-04-22T03:56:01Z
Updated index links for 0.25.3
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index 09d18d6f96197..cbdbbda7e530d 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -39,7 +39,7 @@ See the :ref:`overview` for more detail about what's in the library. :hidden: {% endif %} {% if not single...
I think this was supposed to be updated for the release. Might need to retag after repush docs after this @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/29374
2019-11-02T19:44:11Z
2019-11-08T16:27:25Z
2019-11-08T16:27:25Z
2019-11-14T16:20:20Z
Add documentation linking to sqlalchemy
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f88c26c7bc782..cfbd125b7445e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2645,7 +2645,11 @@ def to_sql( Name of SQL table. con : sqlalchemy.engine.Engine or sqlite3.Connection Using SQLAlchemy ...
- [x] closes #23086 - [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/29373
2019-11-02T19:16:28Z
2019-11-22T16:19:28Z
2019-11-22T16:19:27Z
2019-11-22T16:19:34Z
TST: new test for str to small float conversion dtype
diff --git a/pandas/tests/frame/test_dtypes.py b/pandas/tests/frame/test_dtypes.py index 68844aeeb081e..07accdb47d252 100644 --- a/pandas/tests/frame/test_dtypes.py +++ b/pandas/tests/frame/test_dtypes.py @@ -1063,6 +1063,18 @@ def test_asarray_homogenous(self): expected = np.array([[1, 1], [2, 2]], dtype="obj...
- [x] closes #20388 - [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/29372
2019-11-02T18:40:16Z
2019-11-03T21:22:19Z
2019-11-03T21:22:19Z
2019-11-03T21:22:30Z
Update setup.py to https
diff --git a/setup.py b/setup.py index c75ad5896a439..3dd38bdb6adbb 100755 --- a/setup.py +++ b/setup.py @@ -165,7 +165,7 @@ def build_extensions(self): (2-dimensional), handle the vast majority of typical use cases in finance, statistics, social science, and many areas of engineering. For R users, DataFrame provide...
Avoids a redirect in browser when clicking these links.
https://api.github.com/repos/pandas-dev/pandas/pulls/29371
2019-11-02T18:08:06Z
2019-11-02T19:49:01Z
2019-11-02T19:49:01Z
2019-11-02T19:49:06Z
TST: Adding merge test for non-string columns [Ref 17962]
diff --git a/pandas/tests/reshape/merge/test_merge.py b/pandas/tests/reshape/merge/test_merge.py index 37c0b57bc7581..dd51a1a6c8359 100644 --- a/pandas/tests/reshape/merge/test_merge.py +++ b/pandas/tests/reshape/merge/test_merge.py @@ -134,6 +134,18 @@ def test_merge_common(self): exp = merge(self.df, self.df...
- [x] closes #17962 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29370
2019-11-02T17:55:39Z
2019-11-03T21:23:01Z
2019-11-03T21:23:01Z
2019-11-03T21:23:12Z
GH:11670: possible bug when calculating mean of DataFrame?
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index e99208ac78e15..f694689fa9dfb 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -1,4 +1,5 @@ from datetime import timedelta +from decimal import Decimal import operator from str...
- [x] closes #11670 - [x] tests added / passed - [x] passes `black pandas` - [x] added test test_mean_mixed_string_float
https://api.github.com/repos/pandas-dev/pandas/pulls/29369
2019-11-02T17:39:28Z
2019-11-03T14:59:06Z
2019-11-03T14:59:06Z
2019-11-03T14:59:10Z
Fix pipe docs
diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 9b97aa25a9240..125990f7cadcd 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -753,28 +753,51 @@ on an entire ``DataFrame`` or ``Series``, row- or column-wise, or elementwise...
- [x] closes #27054 See the image below which highlights what i've done here ![image](https://user-images.githubusercontent.com/16733618/68074732-4f5e1b80-fd96-11e9-96ea-d2f40e07ee3e.png) `flake8-rst doc/source --filename=/getting_started/basics.rst` runs clean cc. @datapythonista to review
https://api.github.com/repos/pandas-dev/pandas/pulls/29368
2019-11-02T17:30:12Z
2019-11-06T17:51:05Z
2019-11-06T17:51:05Z
2019-11-07T01:48:17Z
TST: Adding map test for dict with np.nan key [Ref 17648]
diff --git a/pandas/tests/series/test_apply.py b/pandas/tests/series/test_apply.py index e56294669a546..971ce5b18c323 100644 --- a/pandas/tests/series/test_apply.py +++ b/pandas/tests/series/test_apply.py @@ -581,6 +581,14 @@ def test_map_defaultdict(self): expected = Series(["stuff", "blank", "blank"], index=...
- [x] closes #17648 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29367
2019-11-02T17:18:17Z
2019-11-03T01:57:00Z
2019-11-03T01:57:00Z
2019-11-03T01:57:09Z
29213: Dataframe Constructor from List of List and non-iterables
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 40efc4c65476a..d753ebc2c78ea 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -460,21 +460,29 @@ def __init__( data = list(data) if len(data) > 0: if is_list_like(data[0]) and getattr(data[0], "n...
- [x] closes https://github.com/pandas-dev/pandas/issues/29213 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` --- ## What Whilst the original issue is from the factory method `DataFrame.from_dict(d, orient='index')`, the main issue is ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29366
2019-11-02T17:13:35Z
2020-02-02T01:24:19Z
null
2020-02-03T10:12:57Z
Test added: uint64 multicolumn sort
diff --git a/pandas/tests/frame/test_sorting.py b/pandas/tests/frame/test_sorting.py index 9ea78b974fcbb..6ed245b6ebb98 100644 --- a/pandas/tests/frame/test_sorting.py +++ b/pandas/tests/frame/test_sorting.py @@ -735,3 +735,26 @@ def test_sort_index_na_position_with_categories_raises(self): with pytest.raise...
- [x] closes #9918 - [x] tests added / passed - [x] passes `black pandas` - [x] added test test_sort_multicolumn_uint64
https://api.github.com/repos/pandas-dev/pandas/pulls/29365
2019-11-02T17:02:53Z
2019-11-03T15:05:47Z
2019-11-03T15:05:46Z
2019-11-03T15:05:51Z
26302 add typing to assert star equal funcs
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index af9fe4846b27d..af7330bda4d4e 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -10,3 +10,853 @@ FutureWarning, stacklevel=2, ) + + +# def assert_almost_equal( +# left, right, check_dtype="equiv", check_less_precise=False...
- [X] closes #26302 - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29364
2019-11-02T16:40:07Z
2020-03-11T03:14:08Z
null
2020-03-11T03:14:08Z
Add documentation linking to sqlalchemy
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index f88c26c7bc782..3ba805fa71e8a 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2646,6 +2646,10 @@ def to_sql( con : sqlalchemy.engine.Engine or sqlite3.Connection Using SQLAlchemy makes it possible to use any DB ...
- [x] closes #23086 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ n/a] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/29363
2019-11-02T16:35:15Z
2019-11-02T19:15:52Z
null
2019-11-02T19:17:05Z
Disallow non-scalar fill_value in maybe_upcast
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 304eeac87f64d..69c2e7fef365f 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -686,6 +686,8 @@ def maybe_upcast(values, fill_value=np.nan, dtype=None, copy=False): dtype : if None, then use the dtype of the values...
Along with #29331 and #29332 this allows us to rule out non-scalar fill_value being passed to maybe_promote for _almost_ all cases, the last few of which we'll have to address individually. The restriction in `Block.shift` could be an API change if you squint and tilt your head. The assertion in masked_rec_array_...
https://api.github.com/repos/pandas-dev/pandas/pulls/29362
2019-11-02T16:27:26Z
2019-11-04T14:41:06Z
2019-11-04T14:41:06Z
2019-11-04T14:59:25Z
CLN: requested follow-ups
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index e3c7fef6f048f..a08ae66865e20 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -380,6 +380,18 @@ ctypedef fused algos_t: def _validate_limit(nobs: int, limit=None) -> int: + """ + Check that the `limit` argument is a positiv...
Also use the new _validate_limit in two places in the non-cython code
https://api.github.com/repos/pandas-dev/pandas/pulls/29360
2019-11-02T16:10:56Z
2019-11-02T19:48:23Z
2019-11-02T19:48:23Z
2019-11-02T20:58:25Z
GH 16051: DataFrame.replace() overwrites when values are non-numeric
diff --git a/pandas/tests/frame/test_replace.py b/pandas/tests/frame/test_replace.py index 5eb2416d0dcd7..c30efa121262f 100644 --- a/pandas/tests/frame/test_replace.py +++ b/pandas/tests/frame/test_replace.py @@ -1295,3 +1295,30 @@ def test_replace_method(self, to_replace, method, expected): result = df.replac...
- [x] closes #16051 - [x] tests added and passed - [x] passes `black pandas` - [x] added new test test_replace_commutative
https://api.github.com/repos/pandas-dev/pandas/pulls/29359
2019-11-02T15:36:33Z
2019-11-04T16:54:55Z
2019-11-04T16:54:55Z
2019-11-04T16:55:03Z
TST: Apply method broken for empty integer series with datetime index
diff --git a/pandas/tests/series/test_apply.py b/pandas/tests/series/test_apply.py index e56294669a546..8eac79ae826c3 100644 --- a/pandas/tests/series/test_apply.py +++ b/pandas/tests/series/test_apply.py @@ -170,6 +170,12 @@ def test_apply_categorical_with_nan_values(self, series): expected = expected.astype(...
I added a unit test for an edge case that was failing. Using the apply method on an empty integer series with a datetime index would throw an error. - [x] closes #21245 - [x] 1 test added - [x] passes pandas and flake8
https://api.github.com/repos/pandas-dev/pandas/pulls/29358
2019-11-02T15:23:05Z
2019-11-02T19:51:08Z
2019-11-02T19:51:08Z
2019-11-02T19:51:13Z
ensure consistent structure for groupby on index and column
diff --git a/pandas/tests/groupby/test_grouping.py b/pandas/tests/groupby/test_grouping.py index e1fd8d7da6833..979e7b2dd7ffc 100644 --- a/pandas/tests/groupby/test_grouping.py +++ b/pandas/tests/groupby/test_grouping.py @@ -14,6 +14,7 @@ date_range, ) from pandas.core.groupby.grouper import Grouping +from panda...
- [x] closes #17681 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29357
2019-11-02T15:18:30Z
2019-12-17T17:26:40Z
null
2019-12-17T17:26:41Z
TST: new test for subset of a MultiIndex dtype
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 79c9fe2b60bd9..4430628ce3d92 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -1932,6 +1932,15 @@ def test_repeat(self): m_df = Series(data, index=m_idx) assert m_df.repeat(3).shap...
Tried unsuccessfully reproducing Issue #20757 on pandas: 0.23.0 and 0.26.0.dev0+734.g0de99558b.dirty. That's why I decided to keep the input data from Issue #20757 unchanged. - [x] closes #20757 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --d...
https://api.github.com/repos/pandas-dev/pandas/pulls/29356
2019-11-02T15:11:47Z
2019-11-16T22:06:10Z
2019-11-16T22:06:09Z
2019-11-16T22:06:14Z
TST: Test type issue fix in empty groupby from DataFrame with categorical
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index 22a23407b2521..a187781ea214c 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -781,6 +781,22 @@ def test_categorical_no_compress(): tm.assert_numpy_array_equ...
TST: Test type issue fix in empty groupby from DataFrame with categorical closes #9614
https://api.github.com/repos/pandas-dev/pandas/pulls/29355
2019-11-02T14:58:13Z
2019-11-13T01:57:20Z
2019-11-13T01:57:19Z
2019-11-13T01:57:24Z
Pv feature2
diff --git a/pandas/tests/series/test_replace.py b/pandas/tests/series/test_replace.py index e9d5a4b105a35..86a54922fcf86 100644 --- a/pandas/tests/series/test_replace.py +++ b/pandas/tests/series/test_replace.py @@ -305,3 +305,15 @@ def test_replace_with_no_overflowerror(self): result = s.replace(["1000000000...
- [x] closes #9113 - [x] tests added / passed - [x] passes `black pandas` - [x] new test added: test_replace_no_cast()
https://api.github.com/repos/pandas-dev/pandas/pulls/29354
2019-11-02T14:50:34Z
2019-11-03T01:42:18Z
2019-11-03T01:42:18Z
2019-11-03T01:42:36Z
BUG: Issue #29128 Series.var not returning the correct result
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 664fcc91bacc4..2ae3379a6a23c 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -335,6 +335,7 @@ Numeric - :class:`DataFrame` flex inequality comparisons methods (:meth:`DataFrame.lt`, :meth:`DataFrame.l...
- [ x ] closes #29128 - [ x ] tests added / passed - [ x ] passes `black pandas` - [ x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ x ] whatsnew entry This PR closes https://github.com/pandas-dev/pandas/issues/29128
https://api.github.com/repos/pandas-dev/pandas/pulls/29353
2019-11-02T14:48:42Z
2019-11-19T04:23:55Z
2019-11-19T04:23:55Z
2019-11-19T04:24:04Z
TST: Add test to check category dtype remains unchanged after concat.
diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py index b537200dd7664..46dafbc4e1ec8 100644 --- a/pandas/tests/reshape/test_concat.py +++ b/pandas/tests/reshape/test_concat.py @@ -2747,6 +2747,22 @@ def test_concat_categorical_tz(): tm.assert_series_equal(result, expected) ...
- closes #12007 - 1 tests added / passed
https://api.github.com/repos/pandas-dev/pandas/pulls/29352
2019-11-02T14:22:46Z
2019-11-12T23:07:55Z
2019-11-12T23:07:55Z
2019-11-12T23:07:59Z
pin black, xref gh-29341
diff --git a/environment.yml b/environment.yml index 163bd08b93c9e..4c96ab815dc90 100644 --- a/environment.yml +++ b/environment.yml @@ -16,7 +16,7 @@ dependencies: - cython>=0.29.13 # code checks - - black + - black<=19.3b0 - cpplint - flake8 - flake8-comprehensions # used by flake8, linting of unn...
xref #29341 pinning until we can update the codebase
https://api.github.com/repos/pandas-dev/pandas/pulls/29351
2019-11-02T13:57:20Z
2019-11-02T15:02:06Z
2019-11-02T15:02:06Z
2019-11-04T16:28:05Z
Stable python 3.8.0
diff --git a/.travis.yml b/.travis.yml index b9fa06304d387..398dd07089ef9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,7 +32,7 @@ matrix: include: - dist: bionic # 18.04 - python: 3.8-dev + python: 3.8.0 env: - JOB="3.8-dev" PATTERN="(not slow and not network)"
Python 3.8.0 stable release is now available on travis https://travis-ci.community/t/add-python-3-8-support/5463 we can use it? The 3.8-dev snapshot seemed to cause some issues here: https://travis-ci.org/pandas-dev/pandas/jobs/606411398?utm_medium=notification&utm_source=github_status related - https://github.c...
https://api.github.com/repos/pandas-dev/pandas/pulls/29350
2019-11-02T13:40:57Z
2019-11-02T15:51:27Z
2019-11-02T15:51:27Z
2019-11-02T16:09:16Z
GH14422: BUG: to_numeric doesn't work uint64 numbers
diff --git a/pandas/tests/tools/test_numeric.py b/pandas/tests/tools/test_numeric.py index 55f83e492e2cc..082277796e602 100644 --- a/pandas/tests/tools/test_numeric.py +++ b/pandas/tests/tools/test_numeric.py @@ -567,6 +567,24 @@ def test_downcast_limits(dtype, downcast, min_max): assert series.dtype == dtype ...
-closes #14422 -passes `black pandas` -added test test_downcast_uint64_exception()
https://api.github.com/repos/pandas-dev/pandas/pulls/29348
2019-11-02T13:07:14Z
2019-11-05T17:19:53Z
2019-11-05T17:19:53Z
2019-11-05T17:19:56Z
Update contributing.rst
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 1f77c19f02301..56fac1cb6852a 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -482,7 +482,7 @@ reducing the turn-around time for checking your changes. python ma...
Correct Docs path
https://api.github.com/repos/pandas-dev/pandas/pulls/29347
2019-11-02T13:06:48Z
2019-11-02T14:15:51Z
2019-11-02T14:15:51Z
2019-11-02T14:15:55Z
TST: Adding styler applymap multindex & code test [Ref: #25858]
diff --git a/pandas/tests/io/formats/test_style.py b/pandas/tests/io/formats/test_style.py index 0f1402d7da389..0e88f5433c33b 100644 --- a/pandas/tests/io/formats/test_style.py +++ b/pandas/tests/io/formats/test_style.py @@ -376,6 +376,25 @@ def color_negative_red(val): (df.style.applymap(color_negative_red,...
- [x] closes #25858 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29346
2019-11-02T12:44:13Z
2019-11-05T20:57:40Z
2019-11-05T20:57:39Z
2019-11-05T20:57:49Z
ensure consistency between columns aggregates with missing values present
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index 16d17b04423b7..a1172610b847e 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -1359,3 +1359,14 @@ def test_apply_datetime_tz_issue(self): expected = pd.Series(index=timestamps, data=tim...
- [x] closes #16832 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29345
2019-11-02T12:35:00Z
2019-11-02T14:09:40Z
2019-11-02T14:09:40Z
2019-11-02T14:09:44Z
TST: Test for Boolean Series with missing to Categorical dtype
diff --git a/pandas/tests/series/test_dtypes.py b/pandas/tests/series/test_dtypes.py index 6ee120f3bec64..8f628d045a7f4 100644 --- a/pandas/tests/series/test_dtypes.py +++ b/pandas/tests/series/test_dtypes.py @@ -377,6 +377,15 @@ def test_astype_categorical_to_categorical( result = s.astype("category") ...
- [x] closes #19182 - [x] 1 test added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/29344
2019-11-02T12:30:06Z
2019-11-02T20:12:28Z
2019-11-02T20:12:28Z
2019-11-04T01:00:44Z