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
Fix exception causes all over the code
diff --git a/doc/make.py b/doc/make.py index 024a748cd28ca..db729853e5834 100755 --- a/doc/make.py +++ b/doc/make.py @@ -83,8 +83,8 @@ def _process_single_doc(self, single_doc): obj = pandas # noqa: F821 for name in single_doc.split("."): obj = getattr(obj, name) ...
- [ ] 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/32322
2020-02-28T08:37:25Z
2020-02-28T10:22:52Z
2020-02-28T10:22:52Z
2020-06-24T08:34:18Z
BUG: parse_dates may have columns not in dataframe
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 035d8da74d1c1..84f8bd8e49fce 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -305,6 +305,7 @@ I/O timestamps with ``version="2.0"`` (:issue:`31652`). - Bug in :meth:`read_csv` was raising `TypeErro...
read_csv will raise ValueError when columnes used for parse_dates are found in the dataframe. - [x] closes #31251 - [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/32320
2020-02-28T03:28:41Z
2020-03-17T00:03:12Z
2020-03-17T00:03:12Z
2020-03-17T03:49:49Z
CLN: remove _igetitem_cache
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6f5aef4884ccd..b87cbdc532761 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2741,7 +2741,7 @@ def _set_value(self, index, col, value, takeable: bool = False): """ try: if takeable is True: - se...
Only used once (recent bugfixes got rid of the user uses IIRC) and its just an extra layer that isnt needed.
https://api.github.com/repos/pandas-dev/pandas/pulls/32319
2020-02-28T02:53:44Z
2020-03-03T01:34:31Z
2020-03-03T01:34:31Z
2020-03-03T01:52:52Z
REF: test_first_valid_index
diff --git a/pandas/tests/frame/test_timeseries.py b/pandas/tests/frame/test_timeseries.py index 5956f73bb11f0..d8eeed69d66e2 100644 --- a/pandas/tests/frame/test_timeseries.py +++ b/pandas/tests/frame/test_timeseries.py @@ -1,8 +1,7 @@ import numpy as np -import pytest import pandas as pd -from pandas import DataF...
For this one I went ahead and combined the two files, split tests, and parametrized. We end up covering a few more cases now than in the status quo (Series with index of strings, DataFrame with DTI)
https://api.github.com/repos/pandas-dev/pandas/pulls/32317
2020-02-28T01:33:24Z
2020-02-28T10:55:10Z
2020-02-28T10:55:10Z
2020-02-28T15:47:56Z
REGR: SeriesGroupby transform unique
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 1b6098e6b6ac1..ed1660cdbd859 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -24,7 +24,8 @@ Fixed regressions - Fixed regression in :class:`DataFrame` arithmetic operations with mis-matched columns (:...
- [x] closes #31849 - [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/32315
2020-02-27T22:46:27Z
2020-03-03T03:15:08Z
null
2020-10-10T14:14:56Z
REF/TST: misplaced MultiIndex tests
diff --git a/pandas/tests/indexes/multi/test_constructors.py b/pandas/tests/indexes/multi/test_constructors.py index 2c4b3ce04f96d..1157c7f8bb962 100644 --- a/pandas/tests/indexes/multi/test_constructors.py +++ b/pandas/tests/indexes/multi/test_constructors.py @@ -1,3 +1,6 @@ +from datetime import date, datetime +impor...
AFAICT this gets all of the tests currently in test_multilevel that are only testing MultiIndex.
https://api.github.com/repos/pandas-dev/pandas/pulls/32314
2020-02-27T22:45:40Z
2020-02-28T11:47:13Z
2020-02-28T11:47:13Z
2020-02-28T16:23:08Z
TST: Using more fixtures in of tests/base/test_ops.py
diff --git a/pandas/conftest.py b/pandas/conftest.py index be44e6c2b36da..834015371bb49 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -1047,6 +1047,16 @@ def series_with_simple_index(indices): for dtype in _narrow_dtypes } + +@pytest.fixture(params=_narrow_series.keys()) +def narrow_series(request...
part of #23877 - [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/32313
2020-02-27T22:29:52Z
2020-03-03T02:48:38Z
2020-03-03T02:48:38Z
2020-03-03T02:48:43Z
DOC: Add examples to the method MultiIndex.is_lexsorted()
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 4bd462e83a5bc..d6187819c2a2e 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -1625,6 +1625,30 @@ def is_lexsorted(self) -> bool: Returns ------- bool + + Examples + ---...
- [ ] xref #32179 - [ ] 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/32312
2020-02-27T22:26:43Z
2020-04-02T00:13:26Z
2020-04-02T00:13:26Z
2020-04-02T00:13:33Z
TST: refactored test_factorize
diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py index 8f48d0a3e8378..7ec617acc198e 100644 --- a/pandas/tests/base/test_ops.py +++ b/pandas/tests/base/test_ops.py @@ -533,66 +533,27 @@ def test_value_counts_datetime64(self, index_or_series): result2 = td2.value_counts() tm.as...
part of #23877 - [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/32311
2020-02-27T21:22:58Z
2020-03-07T18:35:21Z
2020-03-07T18:35:21Z
2020-03-07T18:35:35Z
BUG: PeriodIndex.asof_locs
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 35a5d99abf4e6..02d81b1b1396d 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -388,27 +388,26 @@ def __array_wrap__(self, result, context=None): # cannot pass _simple_new as it is return t...
https://api.github.com/repos/pandas-dev/pandas/pulls/32310
2020-02-27T21:04:06Z
2020-03-08T15:39:07Z
2020-03-08T15:39:07Z
2020-03-08T16:04:31Z
DOC: Reorder 1.0 releases in whatsnew/index.rst
diff --git a/doc/source/whatsnew/index.rst b/doc/source/whatsnew/index.rst index 68aabfe76d8de..cbfeb0352c283 100644 --- a/doc/source/whatsnew/index.rst +++ b/doc/source/whatsnew/index.rst @@ -7,7 +7,7 @@ Release Notes ************* This is the list of changes to pandas between each release. For full details, -see ...
- Reorders 1.x releases in descending chronological order (consistent with the other versions sections) - Hyperlinks `commit logs`
https://api.github.com/repos/pandas-dev/pandas/pulls/32309
2020-02-27T20:11:29Z
2020-02-28T00:09:16Z
2020-02-28T00:09:16Z
2020-02-28T00:09:20Z
BUG: set df.plot.area linewidth to 0
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2b64b85863def..ee11c69e5b414 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -233,6 +233,7 @@ Plotting - :func:`.plot` for line/bar now accepts color by dictonary (:issue:`8193`). - - Bug in :meth:`...
- [x] closes #32106 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry (`1.1.0`)
https://api.github.com/repos/pandas-dev/pandas/pulls/32305
2020-02-27T18:39:27Z
2020-04-07T15:47:10Z
null
2020-04-07T15:47:11Z
BUG: Fix __ne__ comparison for Categorical
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 0f18a1fd81815..7e6c817910476 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -198,6 +198,7 @@ Categorical - Bug where :func:`merge` was unable to join on non-unique categorical indices (:issue:`2818...
- [x] closes #32276 - [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/32304
2020-02-27T18:25:01Z
2020-03-03T03:28:43Z
2020-03-03T03:28:43Z
2020-09-09T01:01:00Z
TYP: Groupby sum|prod|min|max|first|last methods
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index b9b403ffdc69a..20da8ca3ec2b7 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...
This makes two things: * makes mypy know the signatures of the agg methods (``sum``, ``prod``, etc.) on Groupby * gives the agg methods on Groupby objects a return type This ensues that mypy and IDE's always know that the return type of e.g. ``df.groupby('a').sum()`` is a DataFrame, which is nice when chaining.
https://api.github.com/repos/pandas-dev/pandas/pulls/32302
2020-02-27T18:14:32Z
2020-05-15T21:20:59Z
null
2020-05-15T21:21:23Z
REF/TST: misplaced tests in test_timeseries, test_timezones
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 72fc0010cbbce..a42cfc6a214ad 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -7,6 +7,7 @@ import numpy.ma as ma import numpy.ma.mrecords as mrecords import pytest...
https://api.github.com/repos/pandas-dev/pandas/pulls/32300
2020-02-27T17:59:40Z
2020-02-27T18:45:19Z
2020-02-27T18:45:19Z
2020-02-27T20:05:29Z
CLN: Using sum instead of looping
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 7a18429f21a18..b66d67fedee33 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -120,13 +120,9 @@ def memory_usage_of_objects(arr: object[:]) -> int64_t: """ i: Py_ssize_t n: Py_ssize_t - size: int64_t - size = 0 n =...
- [ ] 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/32299
2020-02-27T17:32:41Z
2020-02-28T15:38:52Z
null
2020-02-29T10:28:28Z
fixed minor docstring typo
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b6b6a4fe74ed5..6f5aef4884ccd 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -832,7 +832,6 @@ def style(self) -> "Styler": Returns a Styler object. Contains methods for building a styled HTML representation of the DataFra...
- [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32298
2020-02-27T16:41:15Z
2020-02-27T17:53:35Z
2020-02-27T17:53:35Z
2020-02-27T17:53:49Z
TST: remove invalid internals tests
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 329bfdf543c62..e397167e4881f 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -711,16 +711,16 @@ def combine(self, blocks, copy=True): return type(self)(new_blocks, axes, do_integri...
Delay validation check in get_slice is also nice.
https://api.github.com/repos/pandas-dev/pandas/pulls/32297
2020-02-27T16:31:16Z
2020-02-28T11:49:24Z
2020-02-28T11:49:24Z
2020-02-28T16:16:32Z
ENH: Move corrwith from transformation to reduction kernels in groupby.base
diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py index 700d8d503d086..363286704ba95 100644 --- a/pandas/core/groupby/base.py +++ b/pandas/core/groupby/base.py @@ -98,6 +98,7 @@ def _gotitem(self, key, ndim, subset=None): [ "all", "any", + "corrwith", "count",...
- [x] closes #31270 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32294
2020-02-27T13:10:59Z
2020-03-12T04:47:13Z
2020-03-12T04:47:13Z
2020-05-29T10:47:56Z
TST: Use `sort` fixture in more places
diff --git a/pandas/tests/indexes/base_class/test_setops.py b/pandas/tests/indexes/base_class/test_setops.py index ec3ef8050967c..77b5e2780464d 100644 --- a/pandas/tests/indexes/base_class/test_setops.py +++ b/pandas/tests/indexes/base_class/test_setops.py @@ -91,7 +91,6 @@ def test_union_sort_other_incomparable_true(s...
- [x] closes #32183 - [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/32292
2020-02-27T12:55:54Z
2020-02-28T14:40:32Z
2020-02-28T14:40:31Z
2020-02-28T14:40:32Z
BUG: groupby with sort=False creates buggy MultiIndex
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 2b64b85863def..5709727f0db3d 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -215,6 +215,7 @@ MultiIndex # Common elements are now guaranteed to be ordered by the left side left.inter...
- [ ] closes #32259 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry EDIT ---- probably better/less invasive to make sure .groupby(, sort=False) returns an object where the index has codes which reflect the orderin...
https://api.github.com/repos/pandas-dev/pandas/pulls/32291
2020-02-27T12:28:04Z
2020-02-27T15:51:21Z
null
2020-02-27T15:51:21Z
TST/CLN: Follow-up to #32158
diff --git a/pandas/tests/window/test_window.py b/pandas/tests/window/test_window.py index 41b9d9e84f27e..c7c45f0e5e0de 100644 --- a/pandas/tests/window/test_window.py +++ b/pandas/tests/window/test_window.py @@ -29,11 +29,10 @@ def test_constructor(self, which): c(win_type="boxcar", window=2, min_periods=1, c...
xref #32158
https://api.github.com/repos/pandas-dev/pandas/pulls/32290
2020-02-27T12:23:25Z
2020-02-27T16:11:48Z
2020-02-27T16:11:47Z
2020-02-27T16:32:33Z
DOC: Fix errors in pandas.Series.argmin
diff --git a/pandas/core/base.py b/pandas/core/base.py index f55d9f905945d..508582540e169 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -927,16 +927,17 @@ def max(self, axis=None, skipna=True, *args, **kwargs): nv.validate_max(args, kwargs) return nanops.nanmax(self._values, skipna=ski...
- [x] closes https://github.com/pandanistas/pandanistas_sprint_jakarta2020/issues/19 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry output of `python scripts/validate_docstrings.py pandas.Series.argmin`: ``` #####...
https://api.github.com/repos/pandas-dev/pandas/pulls/32286
2020-02-27T07:53:20Z
2020-03-06T12:30:37Z
2020-03-06T12:30:36Z
2020-03-06T12:31:08Z
REF: move misplaced to_time tests
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py index ecfecfb414326..a91c837c9d9a2 100644 --- a/pandas/tests/indexes/datetimes/test_tools.py +++ b/pandas/tests/indexes/datetimes/test_tools.py @@ -2,7 +2,7 @@ import calendar from collections import deque -from...
https://api.github.com/repos/pandas-dev/pandas/pulls/32285
2020-02-27T02:45:33Z
2020-02-27T17:01:22Z
2020-02-27T17:01:22Z
2020-02-27T17:20:02Z
CI: nested DataFrames in npdev
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 14162bc433317..72fc0010cbbce 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -9,6 +9,7 @@ import pytest from pandas.compat import is_platform_little_endian +from...
xref #32289
https://api.github.com/repos/pandas-dev/pandas/pulls/32284
2020-02-27T02:10:08Z
2020-02-27T11:47:25Z
2020-02-27T11:47:24Z
2020-02-29T13:39:29Z
REF: make DatetimeIndex._simple_new actually simple
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 48a3886c20a3a..da59c635b5a18 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -114,7 +114,18 @@ def apply_index_wraps(func): # Note: normally we would use `@functools.wraps(func)`, but this doe...
https://api.github.com/repos/pandas-dev/pandas/pulls/32282
2020-02-27T00:37:35Z
2020-03-14T02:19:51Z
2020-03-14T02:19:51Z
2020-03-14T02:29:29Z
TST: Split and simplify test_value_counts_unique_nunique
diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py index 39dca1a9742df..8f48d0a3e8378 100644 --- a/pandas/tests/base/test_ops.py +++ b/pandas/tests/base/test_ops.py @@ -1,3 +1,4 @@ +import collections from datetime import datetime, timedelta from io import StringIO import sys @@ -15,7 +16,6 @...
closes #32205, closes #32220 - [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/32281
2020-02-26T22:19:03Z
2020-03-04T13:52:31Z
2020-03-04T13:52:30Z
2020-03-04T17:16:02Z
REF: simplify PeriodIndex._shallow_copy
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index b5e323fbd0fa4..a1681322a4a5f 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4234,6 +4234,9 @@ def putmask(self, mask, value): values = self.values.copy() try: np.putmask(values, ma...
Adds a test for incorrect behavior in DTI.where and TDI.where that is fixed in master.
https://api.github.com/repos/pandas-dev/pandas/pulls/32280
2020-02-26T22:18:02Z
2020-03-03T01:58:27Z
2020-03-03T01:58:27Z
2020-03-03T02:08:07Z
CI: Temporary fix to the docs build while we fix the ssh problems
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7493be34d10c7..a337ccbc98650 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -188,5 +188,5 @@ jobs: run: | cd pandas_web git remote add origin git@github.com:pandas-dev/pandas-dev.github.io.git - ...
Looks like the ssh key we have in the settings is not working as expected in #32074. While we fix it (I don't have access to the settings, so can't check much), this prevents master from failing for the publishing of the dev docs to GitHub pages.
https://api.github.com/repos/pandas-dev/pandas/pulls/32279
2020-02-26T22:08:46Z
2020-02-27T16:56:47Z
2020-02-27T16:56:47Z
2020-02-27T18:21:38Z
CLN: Use defaultdict for minor optimization
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3fc10444ee064..b6b6a4fe74ed5 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8446,9 +8446,8 @@ def isin(self, values) -> "DataFrame": def _from_nested_dict(data): # TODO: this should be seriously cythonized - new_data = {} + n...
Edit `_from_nested_dict()` by using defaultdict for optimization in performance - [ ] closes #32209 - [ ] 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/32278
2020-02-26T21:56:55Z
2020-02-27T12:39:49Z
2020-02-27T12:39:49Z
2020-03-02T15:34:15Z
TST: misplaced arithmetic tests
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 44ad55517dcea..e4be8a979a70f 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -4,6 +4,7 @@ import numpy as np import pytest +import pytz import pandas as pd import pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/32275
2020-02-26T18:25:37Z
2020-02-27T16:11:00Z
2020-02-27T16:11:00Z
2020-02-27T16:16:04Z
TST: implement test_first
diff --git a/pandas/tests/frame/methods/test_first_and_last.py b/pandas/tests/frame/methods/test_first_and_last.py new file mode 100644 index 0000000000000..73e4128ddebb9 --- /dev/null +++ b/pandas/tests/frame/methods/test_first_and_last.py @@ -0,0 +1,61 @@ +""" +Note: includes tests for `last` +""" +import pytest + +f...
cc @MomIsBestFriend there are three things about these tests that I think would make for good (separate) follow-ups if you're interested: 1) They are just begging to be parametrized 2) We don't have a systematic way of naming/organizing tests that are for two specific methods rather than one specific method, which ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32274
2020-02-26T18:09:49Z
2020-02-27T16:19:14Z
2020-02-27T16:19:14Z
2020-02-27T16:21:28Z
TST: move misplaced to_datetime test
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py index 0a774e9c0f008..ecfecfb414326 100644 --- a/pandas/tests/indexes/datetimes/test_tools.py +++ b/pandas/tests/indexes/datetimes/test_tools.py @@ -2,7 +2,7 @@ import calendar from collections import deque -from...
https://api.github.com/repos/pandas-dev/pandas/pulls/32273
2020-02-26T17:45:29Z
2020-02-27T04:44:57Z
2020-02-27T04:44:57Z
2020-03-02T17:06:55Z
TST: method-specific files for droplevel
diff --git a/pandas/tests/frame/methods/test_droplevel.py b/pandas/tests/frame/methods/test_droplevel.py new file mode 100644 index 0000000000000..517905cf23259 --- /dev/null +++ b/pandas/tests/frame/methods/test_droplevel.py @@ -0,0 +1,23 @@ +from pandas import DataFrame, Index, MultiIndex +import pandas._testing as t...
https://api.github.com/repos/pandas-dev/pandas/pulls/32272
2020-02-26T17:37:25Z
2020-02-27T12:35:36Z
2020-02-27T12:35:36Z
2020-02-27T14:55:37Z
TST: method-specific file for to_period
diff --git a/pandas/tests/series/methods/test_to_period.py b/pandas/tests/series/methods/test_to_period.py new file mode 100644 index 0000000000000..28c4aad3edf32 --- /dev/null +++ b/pandas/tests/series/methods/test_to_period.py @@ -0,0 +1,47 @@ +import numpy as np + +from pandas import ( + DataFrame, + DatetimeI...
https://api.github.com/repos/pandas-dev/pandas/pulls/32270
2020-02-26T16:12:01Z
2020-02-27T17:07:11Z
2020-02-27T17:07:11Z
2020-02-27T17:21:40Z
Backport PR #32166 on branch 1.0.x
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index d3b1442953e41..1b6098e6b6ac1 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -23,6 +23,7 @@ Fixed regressions - Fixed regression where :func:`read_pickle` raised a ``UnicodeDecodeError`` when reading ...
#32166
https://api.github.com/repos/pandas-dev/pandas/pulls/32269
2020-02-26T15:56:14Z
2020-02-27T12:25:22Z
2020-02-27T12:25:22Z
2020-02-27T14:57:25Z
Backport PR #32214 on branch 1.0.x (BUG: Cast pd.NA to pd.NaT in to_datetime)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index f491774991090..d3b1442953e41 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -62,6 +62,7 @@ Bug fixes **Datetimelike** - Bug in :meth:`DataFrame.reindex` and :meth:`Series.reindex` when reindexing ...
Backport PR #32214: BUG: Cast pd.NA to pd.NaT in to_datetime
https://api.github.com/repos/pandas-dev/pandas/pulls/32267
2020-02-26T12:40:34Z
2020-02-26T15:33:16Z
2020-02-26T15:33:16Z
2020-02-26T15:33:16Z
PERF: lazify blknos and blklocs
diff --git a/pandas/core/internals/concat.py b/pandas/core/internals/concat.py index 515e1bcd761b6..7570f6eddbd9c 100644 --- a/pandas/core/internals/concat.py +++ b/pandas/core/internals/concat.py @@ -48,8 +48,8 @@ def get_mgr_concatenation_plan(mgr, indexers): if 0 in indexers: ax0_indexer = indexers.p...
The benchmark I'm using for this is the same as for #32224, based on the asv that is most affected by removing `fast_apply` (see #32086) ``` import numpy as np from pandas import * %load_ext line_profiler def get_df(): N = 10 ** 4 labels = np.random.randint(0, 2000, size=N) labels2 = np.random...
https://api.github.com/repos/pandas-dev/pandas/pulls/32261
2020-02-26T04:58:26Z
2020-03-04T14:28:53Z
2020-03-04T14:28:53Z
2020-03-04T15:19:36Z
CLN: remove dtype kwarg from _simple_new
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 67f2f05c8af1e..c215fdb475ed8 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -451,7 +451,7 @@ def asi8(self): return None @classmethod - def _simple_new(cls, values, name=None, dtype=None): + ...
DatetimeIndex remains an outlier, upcoming PR
https://api.github.com/repos/pandas-dev/pandas/pulls/32260
2020-02-26T03:42:23Z
2020-02-26T12:27:25Z
2020-02-26T12:27:25Z
2020-02-26T16:08:13Z
TST: broken off from #32187
diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py index fff5ca03e80f4..18b9898e7d800 100644 --- a/pandas/tests/indexing/test_floats.py +++ b/pandas/tests/indexing/test_floats.py @@ -40,20 +40,7 @@ def check(self, result, original, indexer, getitem): tm.assert_almost_equ...
troubleshooting an apparently-unrelated Travis failure there
https://api.github.com/repos/pandas-dev/pandas/pulls/32258
2020-02-26T02:13:12Z
2020-03-03T01:56:51Z
2020-03-03T01:56:51Z
2020-03-03T01:59:38Z
PERF: pass through to numpy validation for iloc setitem
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 5adc65b488399..69283bc58799e 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -8,7 +8,6 @@ from pandas.util._decorators import Appender from pandas.core.dtypes.common import ( - is_float, is_integer, is_iterator, ...
We lose a little bit of ground on the range and slice (not really sure why), pick up a bigger amount of ground on list or ndarray. ``` In [3]: ser = pd.Series(range(10**5)) In [4]: key = range(100, 200) In [5]: key2 = list(key)...
https://api.github.com/repos/pandas-dev/pandas/pulls/32257
2020-02-26T02:00:45Z
2020-02-27T12:52:36Z
2020-02-27T12:52:36Z
2020-02-27T14:55:30Z
CLN tests.generic
diff --git a/pandas/tests/generic/test_generic.py b/pandas/tests/generic/test_generic.py index 8e54de771a3e4..1b6cb8447c76d 100644 --- a/pandas/tests/generic/test_generic.py +++ b/pandas/tests/generic/test_generic.py @@ -187,8 +187,10 @@ def test_constructor_compound_dtypes(self): def f(dtype): re...
Some of this is commented out or otherwise unneeded, other parts belong in test_internals.
https://api.github.com/repos/pandas-dev/pandas/pulls/32256
2020-02-26T00:28:31Z
2020-02-26T02:06:06Z
2020-02-26T02:06:06Z
2020-02-26T02:06:31Z
Implement __array__ on ExtensionIndex
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 44deab25db695..ff9655ab7f177 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -91,6 +91,8 @@ Backwards incompatible API changes now raise a ``TypeError`` if a not-accepted keyword argument is passed...
https://api.github.com/repos/pandas-dev/pandas/pulls/32255
2020-02-26T00:13:48Z
2020-03-07T11:26:55Z
2020-03-07T11:26:55Z
2020-03-07T15:18:39Z
REF: move misplaced Series.append tests
diff --git a/pandas/tests/series/methods/test_append.py b/pandas/tests/series/methods/test_append.py index 4d64b5b397981..4742d6ae3544f 100644 --- a/pandas/tests/series/methods/test_append.py +++ b/pandas/tests/series/methods/test_append.py @@ -2,7 +2,7 @@ import pytest import pandas as pd -from pandas import DataF...
https://api.github.com/repos/pandas-dev/pandas/pulls/32254
2020-02-25T23:53:10Z
2020-02-26T02:02:42Z
2020-02-26T02:02:42Z
2020-02-26T02:04:46Z
TST: method-specific file for combine
diff --git a/pandas/tests/frame/methods/test_combine.py b/pandas/tests/frame/methods/test_combine.py new file mode 100644 index 0000000000000..bc6a67e4e1f32 --- /dev/null +++ b/pandas/tests/frame/methods/test_combine.py @@ -0,0 +1,47 @@ +import numpy as np +import pytest + +import pandas as pd +import pandas._testing a...
https://api.github.com/repos/pandas-dev/pandas/pulls/32253
2020-02-25T23:43:02Z
2020-02-26T02:01:47Z
2020-02-26T02:01:47Z
2020-02-26T02:02:57Z
(wip) BUG: itertuples was retuning empty list if frame had no columns
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 705c335acfb48..b010b71abab3f 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -249,6 +249,7 @@ Other instead of ``TypeError: Can only append a Series if ignore_index=True or if the Series has a name`...
(currently not right) - [ ] closes #25408 - [ ] 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/32252
2020-02-25T22:01:03Z
2020-04-02T00:06:25Z
null
2020-10-10T14:14:57Z
TST: method-specific file for select_dtypes
diff --git a/pandas/tests/frame/methods/test_select_dtypes.py b/pandas/tests/frame/methods/test_select_dtypes.py new file mode 100644 index 0000000000000..fe7baebcf0cf7 --- /dev/null +++ b/pandas/tests/frame/methods/test_select_dtypes.py @@ -0,0 +1,329 @@ +from collections import OrderedDict + +import numpy as np +impo...
https://api.github.com/repos/pandas-dev/pandas/pulls/32250
2020-02-25T21:40:07Z
2020-02-26T02:00:50Z
2020-02-26T02:00:50Z
2020-02-26T02:03:42Z
REF: method-specific file for to_timestamp
diff --git a/pandas/tests/frame/methods/test_to_timestamp.py b/pandas/tests/frame/methods/test_to_timestamp.py new file mode 100644 index 0000000000000..ae7d2827e05a6 --- /dev/null +++ b/pandas/tests/frame/methods/test_to_timestamp.py @@ -0,0 +1,103 @@ +from datetime import timedelta + +import numpy as np +import pytes...
cc @MomIsBestFriend this is the only test we have for DataFrame.to_timestamp, but it was apparently written before the convention of "small, focused tests" took hold. It would be helpful if this could be split/modernized.
https://api.github.com/repos/pandas-dev/pandas/pulls/32248
2020-02-25T21:33:11Z
2020-02-26T02:03:30Z
2020-02-26T02:03:30Z
2020-02-26T02:04:08Z
REF: simplify IntervalIndex/IntervalArray _shallow_copy
diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py index b11736248c12a..f5167f470b056 100644 --- a/pandas/core/arrays/interval.py +++ b/pandas/core/arrays/interval.py @@ -725,45 +725,18 @@ def _concat_same_type(cls, to_concat): right = np.concatenate([interval.right for interval in to...
xref #32244
https://api.github.com/repos/pandas-dev/pandas/pulls/32247
2020-02-25T19:54:31Z
2020-02-26T03:59:06Z
2020-02-26T03:59:06Z
2020-02-26T04:08:01Z
Backport PR #32241 on branch 1.0.x (CI: troubleshoot 32bit build)
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index e5bee09fe2f79..ae39b0dda5d09 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -50,7 +50,7 @@ echo echo "update conda" conda config --set ssl_verify false conda config --set quiet true --set always_yes true --set changeps1 false -conda install pip # create co...
Backport PR #32241: CI: troubleshoot 32bit build
https://api.github.com/repos/pandas-dev/pandas/pulls/32245
2020-02-25T18:48:04Z
2020-02-25T19:52:54Z
2020-02-25T19:52:54Z
2020-02-26T12:37:30Z
CLN: simplify+annotate _shallow_copy
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index aa22527d8c2d7..67f2f05c8af1e 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -8,7 +8,7 @@ from pandas._libs import algos as libalgos, index as libindex, lib import pandas._libs.join as libjoin -from pandas._li...
IntervalIndex is still an outlier, will be handled separately
https://api.github.com/repos/pandas-dev/pandas/pulls/32244
2020-02-25T18:31:38Z
2020-02-26T02:10:40Z
2020-02-26T02:10:40Z
2020-02-26T02:17:31Z
BUG: Fixed bug, where pandas._libs.lib.maybe_convert_objects function improperly handled arrays with bools and NaNs
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 808e6ae709ce9..eec471f989037 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -24,6 +24,7 @@ Fixed regressions - Fixed regression in :class:`DataFrame` arithmetic operations with mis-matched columns (:...
- [x] closes #32146 - [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/32242
2020-02-25T17:42:41Z
2020-03-09T15:42:17Z
2020-03-09T15:42:16Z
2020-03-09T19:17:42Z
CI: troubleshoot 32bit build
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index e5bee09fe2f79..ae39b0dda5d09 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -50,7 +50,7 @@ echo echo "update conda" conda config --set ssl_verify false conda config --set quiet true --set always_yes true --set changeps1 false -conda install pip # create co...
closes #32229
https://api.github.com/repos/pandas-dev/pandas/pulls/32241
2020-02-25T16:57:42Z
2020-02-25T18:47:35Z
2020-02-25T18:47:35Z
2021-11-20T23:21:51Z
travis: enable bionic & multi-cpu testing
diff --git a/.travis.yml b/.travis.yml index 2c8533d02ddc1..02db18c52904c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,6 @@ language: python python: 3.7 +dist: bionic # To turn off cached cython files and compiler cache # set NOCACHE-true @@ -23,36 +24,28 @@ git: # for cloning depth: false -matri...
- [x] 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/32237
2020-02-25T11:46:40Z
2020-03-15T00:56:51Z
null
2020-03-15T00:56:51Z
Added message to pytest raises for test_constructor_dict
diff --git a/pandas/tests/frame/test_constructors.py b/pandas/tests/frame/test_constructors.py index 8c9b7cd060059..14162bc433317 100644 --- a/pandas/tests/frame/test_constructors.py +++ b/pandas/tests/frame/test_constructors.py @@ -316,7 +316,8 @@ def test_constructor_dict(self): # mix dict and array, wrong...
- [x] ref #30999 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] added message to pytest.raises for test_constructor_dict
https://api.github.com/repos/pandas-dev/pandas/pulls/32236
2020-02-25T11:26:39Z
2020-02-26T12:43:54Z
2020-02-26T12:43:54Z
2020-02-26T12:43:58Z
Fix exception causes in 14 modules
diff --git a/pandas/io/sql.py b/pandas/io/sql.py index e97872d880dee..9a53e7cd241e1 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -238,8 +238,8 @@ def read_sql_table( meta = MetaData(con, schema=schema) try: meta.reflect(only=[table_name], views=True) - except sqlalchemy.exc.InvalidReque...
- [ ] 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/32235
2020-02-25T10:21:12Z
2020-02-26T12:44:51Z
2020-02-26T12:44:51Z
2020-02-26T12:45:32Z
use ExtensionIndex._concat_same_dtype
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 1b3b6934aa53a..22836f4c8f08c 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -551,14 +551,6 @@ def _summary(self, name=None) -> str: result = result.replace("'", "") ...
DatetimelikeIndex._concat_same_dtpye is identical to ExtensionIndex version, so re-use that.
https://api.github.com/repos/pandas-dev/pandas/pulls/32232
2020-02-25T03:49:29Z
2020-02-26T02:31:37Z
2020-02-26T02:31:37Z
2020-02-26T02:35:19Z
DOC: Clean up of DataFrame.ewm
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index e045d1c2211d7..8231521d1414a 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -35,13 +35,13 @@ class EWM(_Rolling): ---------- com : float, optional Specify decay in terms of center of mass, - :ma...
- [ ] closes #31647 Though, I don't know what @MarcoGorelli meant in the 5'th issue. Didn't know how to expand my previous Pull Request: #32212, as I have already deleted the files on my machine. Here are the screenshots, @WillAyd: ![image](https://user-images.githubusercontent.com/12001304/75212620-caa16e00-...
https://api.github.com/repos/pandas-dev/pandas/pulls/32231
2020-02-25T03:30:52Z
2020-02-25T04:24:04Z
null
2020-02-25T04:24:04Z
REF/TST: method-specific files for DataFrame timeseries methods
diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py index 774eb443c45fe..03598b6bb5eca 100644 --- a/pandas/tests/frame/conftest.py +++ b/pandas/tests/frame/conftest.py @@ -1,3 +1,5 @@ +from itertools import product + import numpy as np import pytest @@ -5,6 +7,11 @@ import pandas._testing ...
xref #32226.
https://api.github.com/repos/pandas-dev/pandas/pulls/32230
2020-02-25T02:32:51Z
2020-02-25T20:40:23Z
2020-02-25T20:40:23Z
2020-02-25T20:51:01Z
REF/TST: method-specific files for combine, update; parametrize
diff --git a/pandas/tests/series/methods/test_combine.py b/pandas/tests/series/methods/test_combine.py new file mode 100644 index 0000000000000..75d47e3daa103 --- /dev/null +++ b/pandas/tests/series/methods/test_combine.py @@ -0,0 +1,17 @@ +from pandas import Series +import pandas._testing as tm + + +class TestCombine:...
https://api.github.com/repos/pandas-dev/pandas/pulls/32228
2020-02-25T00:46:02Z
2020-02-25T20:41:55Z
2020-02-25T20:41:55Z
2020-02-25T20:46:53Z
REF/TST: method-specific files for rename, reset_index
diff --git a/pandas/tests/frame/methods/test_rename.py b/pandas/tests/frame/methods/test_rename.py new file mode 100644 index 0000000000000..e69a562f8214d --- /dev/null +++ b/pandas/tests/frame/methods/test_rename.py @@ -0,0 +1,353 @@ +from collections import ChainMap + +import numpy as np +import pytest + +from pandas...
https://api.github.com/repos/pandas-dev/pandas/pulls/32227
2020-02-25T00:32:43Z
2020-02-25T20:41:13Z
2020-02-25T20:41:13Z
2020-02-25T20:47:36Z
REF/TST: method-specific files for Series timeseries methods
diff --git a/pandas/tests/series/methods/test_asfreq.py b/pandas/tests/series/methods/test_asfreq.py index 05ec56cf02182..d94b60384a07c 100644 --- a/pandas/tests/series/methods/test_asfreq.py +++ b/pandas/tests/series/methods/test_asfreq.py @@ -1,8 +1,13 @@ +from datetime import datetime + import numpy as np +import p...
cc @WillAyd @simonjayhawkins got the [go ahead](https://github.com/pandas-dev/pandas/pull/32110#issuecomment-589974610) the other day to take these off Jeff's plate
https://api.github.com/repos/pandas-dev/pandas/pulls/32226
2020-02-24T23:50:30Z
2020-02-25T21:49:52Z
2020-02-25T21:49:52Z
2020-02-25T23:23:59Z
PERF: lazify consolidation check
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index d4f9c15a9f73f..329bfdf543c62 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -141,7 +141,7 @@ def __init__( if do_integrity_check: self._verify_integrity() - ...
The benchmark I'm using for this (and upcoming related PRs) is based on the asv that is most affected by removing `fast_apply` (see #32086). ``` import numpy as np from pandas import * %load_ext line_profiler def get_df(): N = 10 ** 4 labels = np.random.randint(0, 2000, size=N) labels2 = np.ra...
https://api.github.com/repos/pandas-dev/pandas/pulls/32224
2020-02-24T21:58:32Z
2020-02-26T02:07:34Z
2020-02-26T02:07:34Z
2020-02-26T02:18:52Z
BUG: Fix DateFrameGroupBy.mean error for Int64 dtype
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 123dfa07f4331..621ce60e38dcc 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -89,6 +89,7 @@ Bug fixes - Fixed bug in :meth:`DataFrame.convert_dtypes` where ``BooleanDtype`` columns were converted to `...
- [x] closes #32219 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry It looks like this was due to the `TypeError` not being caught
https://api.github.com/repos/pandas-dev/pandas/pulls/32223
2020-02-24T20:55:12Z
2020-03-12T02:29:00Z
2020-03-12T02:28:59Z
2020-03-12T13:19:45Z
BUG: the sample skewness is wrong computed
diff --git a/pandas/core/nanops.py b/pandas/core/nanops.py index a5c609473760d..b683c25264f54 100644 --- a/pandas/core/nanops.py +++ b/pandas/core/nanops.py @@ -1017,7 +1017,7 @@ def nanskew( m3 = _zero_out_fperr(m3) with np.errstate(invalid="ignore", divide="ignore"): - result = (count * (count - 1)...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Right formula can be found here: https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.skew.html
https://api.github.com/repos/pandas-dev/pandas/pulls/32222
2020-02-24T20:48:21Z
2020-04-16T16:59:58Z
null
2020-04-16T16:59:58Z
CI: Remove float16 fixture value
diff --git a/pandas/tests/base/test_ops.py b/pandas/tests/base/test_ops.py index 625d559001e72..f85d823cb2fac 100644 --- a/pandas/tests/base/test_ops.py +++ b/pandas/tests/base/test_ops.py @@ -277,6 +277,12 @@ def test_value_counts_unique_nunique_null(self, null_obj, index_or_series_obj): pytest.skip(f"val...
- [x] xref #32220 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Hopefully, this fixes the flaky test
https://api.github.com/repos/pandas-dev/pandas/pulls/32221
2020-02-24T20:24:56Z
2020-02-25T18:51:26Z
2020-02-25T18:51:26Z
2020-02-25T18:51:35Z
REF: de-duplicate factorize and duplicated code
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 0f3b3838de1b2..1768e682b3db4 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -31,83 +31,62 @@ def time_maybe_convert_objects(self): class Factorize: - params = [[True, False], [...
https://api.github.com/repos/pandas-dev/pandas/pulls/32216
2020-02-24T01:13:36Z
2020-02-24T14:32:12Z
2020-02-24T14:32:12Z
2020-02-24T16:13:10Z
REF: include CategoricalIndex in index_cached parametrization
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index 6f43a6fd3fc9b..107b9b9edcd5d 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -258,9 +258,6 @@ def setup(self): def time_get_loc(self): self.index.get_loc(self.cate...
There is a lot of de-duplication to be done, but pytest-based habits dont quite work here. So baby steps.
https://api.github.com/repos/pandas-dev/pandas/pulls/32215
2020-02-24T01:05:07Z
2020-02-26T02:13:16Z
2020-02-26T02:13:16Z
2020-02-26T02:14:14Z
BUG: Cast pd.NA to pd.NaT in to_datetime
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index f491774991090..d3b1442953e41 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -62,6 +62,7 @@ Bug fixes **Datetimelike** - Bug in :meth:`DataFrame.reindex` and :meth:`Series.reindex` when reindexing ...
- [x] closes #32213 - [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/32214
2020-02-24T00:30:05Z
2020-02-26T12:39:57Z
2020-02-26T12:39:56Z
2020-02-26T21:25:40Z
DOC: DataFrame.ewm clean-up
diff --git a/pandas/core/window/ewm.py b/pandas/core/window/ewm.py index e045d1c2211d7..9da762d15dadd 100644 --- a/pandas/core/window/ewm.py +++ b/pandas/core/window/ewm.py @@ -29,19 +29,25 @@ class EWM(_Rolling): r""" - Provide exponential weighted functions. + Provide exponential weighted (EW) functions...
Cosmetic change.
https://api.github.com/repos/pandas-dev/pandas/pulls/32212
2020-02-23T22:56:41Z
2020-03-07T19:59:42Z
2020-03-07T19:59:42Z
2020-03-09T14:25:48Z
CLN/REF: Split up / clean Categorical constructor tests
diff --git a/pandas/tests/arrays/categorical/test_constructors.py b/pandas/tests/arrays/categorical/test_constructors.py index d5537359d6948..c6b4c4904735c 100644 --- a/pandas/tests/arrays/categorical/test_constructors.py +++ b/pandas/tests/arrays/categorical/test_constructors.py @@ -353,9 +353,9 @@ def test_constructo...
https://api.github.com/repos/pandas-dev/pandas/pulls/32211
2020-02-23T22:50:36Z
2020-02-25T23:44:06Z
2020-02-25T23:44:06Z
2020-02-25T23:44:53Z
REF: share benchmark code
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 0f3b3838de1b2..af4da5a0a1a5a 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -29,87 +29,39 @@ def time_maybe_convert_objects(self): lib.maybe_convert_objects(self.data) -cl...
Collapse 5 classes down to 1
https://api.github.com/repos/pandas-dev/pandas/pulls/32210
2020-02-23T22:10:27Z
2020-02-24T00:11:18Z
null
2020-04-21T23:02:14Z
CLN: Use defaultdict for minor optimization
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 0f3b3838de1b2..1768e682b3db4 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -31,83 +31,62 @@ def time_maybe_convert_objects(self): class Factorize: - params = [[True, False], [...
Edit `_from_nested_dict()` by using `defaultdict` for marginal optimization - [ ] 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/32209
2020-02-23T21:18:20Z
2020-02-26T22:02:22Z
null
2020-02-26T22:02:22Z
CLN: simplify CategoricalIndex._simple_new
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index caa6a9a93141f..8ca3427168577 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -17,7 +17,6 @@ is_scalar, ) from pandas.core.dtypes.dtypes import CategoricalDtype -from pandas.core.dtypes.gener...
https://api.github.com/repos/pandas-dev/pandas/pulls/32204
2020-02-23T17:30:58Z
2020-02-26T02:14:24Z
2020-02-26T02:14:24Z
2020-02-26T02:16:00Z
BUG: DataFrame fail to construct when data is list and columns is nested list for MI
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 7cb7db27ae603..2df732d67b5da 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -471,6 +471,7 @@ Other instead of ``TypeError: Can only append a Series if ignore_index=True or if the Series has a name`...
- [ ] closes #32173 - [ ] 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/32202
2020-02-23T15:35:13Z
2020-04-06T21:15:19Z
2020-04-06T21:15:19Z
2020-04-06T21:15:25Z
Backport PR #32175 on branch 1.0.x (BUG: groupby nunique changing values)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index affe019d0ac86..b6ac1a275a08b 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is...
Backport PR #32175: BUG: groupby nunique changing values
https://api.github.com/repos/pandas-dev/pandas/pulls/32201
2020-02-23T15:02:26Z
2020-02-23T16:59:31Z
2020-02-23T16:59:31Z
2020-02-23T16:59:31Z
Backport PR #31939 on branch 1.0.x (BUG: Fix construction of Categorical from pd.NA)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index affe019d0ac86..dc47e010dacdc 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -65,6 +65,7 @@ Bug fixes **Categorical** - Fixed bug where :meth:`Categorical.from_codes` improperly raised a ``ValueErr...
Backport PR #31939: BUG: Fix construction of Categorical from pd.NA
https://api.github.com/repos/pandas-dev/pandas/pulls/32200
2020-02-23T15:00:31Z
2020-02-23T16:02:55Z
2020-02-23T16:02:55Z
2020-02-23T16:02:55Z
Backport PR #32124 on branch 1.0.x (BUG: Avoid ambiguous condition in GroupBy.first / last)
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index affe019d0ac86..82d603cfb8c15 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -76,6 +76,7 @@ Bug fixes - Fix bug in :meth:`DataFrame.convert_dtypes` for columns that were already using the ``"string"...
Backport PR #32124: BUG: Avoid ambiguous condition in GroupBy.first / last
https://api.github.com/repos/pandas-dev/pandas/pulls/32199
2020-02-23T15:00:19Z
2020-02-23T15:45:54Z
2020-02-23T15:45:54Z
2020-02-23T15:45:54Z
DOC: add missing links to introduction to pandas
diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst index a635b5656bd2d..9994287c827e3 100644 --- a/doc/source/getting_started/10min.rst +++ b/doc/source/getting_started/10min.rst @@ -39,7 +39,7 @@ and labeled columns: df = pd.DataFrame(np.random.randn(6, 4), index=dates, column...
I noticed that there were some links missing in `10 minutes to pandas'.
https://api.github.com/repos/pandas-dev/pandas/pulls/32198
2020-02-23T14:35:26Z
2020-02-27T01:15:50Z
2020-02-27T01:15:50Z
2020-02-27T01:15:56Z
TYP: Add annotation for df.pivot
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index f1e1ebcaca1c4..dfb329b3ddbdf 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -387,7 +387,7 @@ def _verify_integrity( return new_codes @classmethod - def from_arrays(cls, arrays, sortorder=No...
- [ ] xref #30928 - [ ] 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/32197
2020-02-23T10:31:51Z
2020-05-18T22:53:35Z
2020-05-18T22:53:35Z
2020-05-18T22:53:40Z
TYP: annotations
diff --git a/pandas/core/internals/managers.py b/pandas/core/internals/managers.py index 69ceb95985140..d4f9c15a9f73f 100644 --- a/pandas/core/internals/managers.py +++ b/pandas/core/internals/managers.py @@ -8,6 +8,7 @@ import numpy as np from pandas._libs import Timedelta, Timestamp, internals as libinternals, li...
https://api.github.com/repos/pandas-dev/pandas/pulls/32193
2020-02-23T04:41:25Z
2020-02-23T15:23:40Z
2020-02-23T15:23:40Z
2020-02-23T17:04:04Z
Backport PR #31591 on branch 1.0.x
diff --git a/doc/source/user_guide/boolean.rst b/doc/source/user_guide/boolean.rst index 5276bc6142206..95f1931419d04 100644 --- a/doc/source/user_guide/boolean.rst +++ b/doc/source/user_guide/boolean.rst @@ -20,8 +20,9 @@ Nullable Boolean Data Type Indexing with NA values ----------------------- -pandas does not a...
xref #31591
https://api.github.com/repos/pandas-dev/pandas/pulls/32192
2020-02-23T03:09:40Z
2020-02-23T14:54:45Z
2020-02-23T14:54:45Z
2020-02-23T15:06:31Z
BLD: Init PyDateTimeAPI Warnings
diff --git a/pandas/_libs/src/ujson/python/ujson.c b/pandas/_libs/src/ujson/python/ujson.c index a40f2709c0c61..afdb44428169c 100644 --- a/pandas/_libs/src/ujson/python/ujson.c +++ b/pandas/_libs/src/ujson/python/ujson.c @@ -38,6 +38,7 @@ Numeric decoder derived from from TCL library #include "version.h" #define PY_S...
- Fixes below warning: ``` In file included from pandas/_libs/src/ujson/python/date_conversions.h:7:0, from pandas/_libs/src/ujson/python/date_conversions.c:4: /home/vsts/miniconda3/envs/pandas-dev/include/python3.7m/datetime.h:204:25: warning: ‘PyDateTimeAPI’ defined but not used [-Wunused-variabl...
https://api.github.com/repos/pandas-dev/pandas/pulls/32191
2020-02-23T01:55:35Z
2020-02-23T02:09:06Z
null
2020-05-01T22:02:02Z
CLN: F-string in pandas/tests/indexes/datetimes/test_to_period.py (#29547)
diff --git a/pandas/tests/indexes/datetimes/test_to_period.py b/pandas/tests/indexes/datetimes/test_to_period.py index 5567f98c52211..ddbb43787abb4 100644 --- a/pandas/tests/indexes/datetimes/test_to_period.py +++ b/pandas/tests/indexes/datetimes/test_to_period.py @@ -43,7 +43,7 @@ def test_dti_to_period(self): @p...
Issue #29547 - [x] tests passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32189
2020-02-22T22:50:16Z
2020-02-23T01:00:57Z
2020-02-23T01:00:57Z
2020-02-23T01:01:03Z
CLN/TST: parametrize some tests in tests.indexing.test_float
diff --git a/pandas/tests/indexing/test_floats.py b/pandas/tests/indexing/test_floats.py index 4d3f1b0539aee..87520f5ab2577 100644 --- a/pandas/tests/indexing/test_floats.py +++ b/pandas/tests/indexing/test_floats.py @@ -162,10 +162,9 @@ def test_scalar_non_numeric(self, index_func, klass): s2.loc[3.0] = 1...
https://api.github.com/repos/pandas-dev/pandas/pulls/32187
2020-02-22T21:27:38Z
2020-02-26T04:43:20Z
2020-02-26T04:43:20Z
2020-02-26T04:43:27Z
CLN: Removed class in pandas/tests/series/test_timezones.py
diff --git a/pandas/tests/series/test_timezones.py b/pandas/tests/series/test_timezones.py index a363f927d10a9..46c873e6a6095 100644 --- a/pandas/tests/series/test_timezones.py +++ b/pandas/tests/series/test_timezones.py @@ -15,352 +15,368 @@ from pandas.core.indexes.datetimes import date_range -class TestSeriesTi...
- [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/32186
2020-02-22T21:19:02Z
2020-02-23T16:15:29Z
null
2020-02-23T16:15:29Z
BUG: 2D DTA/TDA arithmetic with object-dtype
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index f637e16caa4c6..8c870c6255200 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -42,6 +42,7 @@ from pandas.core.algorithms import checked_add_with_arr, take, unique1d, value_counts from ...
The main motivation for this is that it is prerequisite for implementing frame-with-frame ops blockwise. It also fixes a few broken cases: - dta - dta.astype(object) currently raises TypeError - ditto dti - dti.astype(object) - tda + dta.astype(object) returns ndarray of timestamps instead of DatetimeArray
https://api.github.com/repos/pandas-dev/pandas/pulls/32185
2020-02-22T21:07:32Z
2020-03-03T01:50:02Z
2020-03-03T01:50:02Z
2020-03-09T17:45:22Z
CLN: Removed class in pandas/tests/series/test_validate.py
diff --git a/pandas/tests/series/test_validate.py b/pandas/tests/series/test_validate.py index c4311f507f7ee..511d24ca7fa29 100644 --- a/pandas/tests/series/test_validate.py +++ b/pandas/tests/series/test_validate.py @@ -1,20 +1,18 @@ import pytest -class TestSeriesValidate: +@pytest.mark.parametrize( + "func",...
I've seen quite a few test files that only use a class for historic reasons. As functions are easier to comprehend I think it makes sense to move in this direction. - [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/32184
2020-02-22T18:16:10Z
2020-02-22T20:59:05Z
2020-02-22T20:59:05Z
2020-02-22T20:59:11Z
DOC: Fix SA04 errors in docstrings #28792
diff --git a/pandas/core/base.py b/pandas/core/base.py index b9aeb32eea5c1..3560bc29869eb 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -1033,7 +1033,8 @@ def argmin(self, axis=None, skipna=True, *args, **kwargs): See Also -------- - numpy.ndarray.argmin + numpy.ndarray...
- [x] xref #28792 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32182
2020-02-22T17:54:49Z
2020-03-03T01:22:02Z
2020-03-03T01:22:02Z
2020-03-03T01:22:10Z
CLN: unnecessary kwargs for take_with_is_copy
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 40e59f04192a6..a6ab0d4034ddb 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3262,9 +3262,7 @@ class max_speed ) return self._constructor(new_data).__finalize__(self) - def _take_with_is_copy( - self: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32181
2020-02-22T17:21:25Z
2020-02-22T21:07:30Z
2020-02-22T21:07:30Z
2020-02-22T21:08:47Z
DOC: Fix SA04 errors in docstrings xref #28792
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 7201629cb086e..f9059054ba59f 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -313,8 +313,8 @@ def unique(values): See Also -------- - Index.unique - Series.unique + Index.unique : Return unique values...
- [x] xref #28792 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/32180
2020-02-22T15:40:10Z
2020-03-03T14:22:34Z
2020-03-03T14:22:34Z
2020-03-03T14:22:43Z
DOC: Added recommanded "msg" creation format
diff --git a/doc/source/development/code_style.rst b/doc/source/development/code_style.rst index 17f8783f71bfb..415ea49fdbcf3 100644 --- a/doc/source/development/code_style.rst +++ b/doc/source/development/code_style.rst @@ -41,6 +41,38 @@ For example: foo.__class__ +Error message capturing (in tests) +-------...
- [x] ref https://github.com/pandas-dev/pandas/pull/32158#discussion_r382710851 - [ ] 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/32178
2020-02-22T13:03:56Z
2020-02-22T21:21:04Z
null
2020-02-28T09:40:25Z
CLN: some code cleanups
diff --git a/pandas/_libs/hashtable.pyx b/pandas/_libs/hashtable.pyx index 884db9ee931d4..e80f134290a7e 100644 --- a/pandas/_libs/hashtable.pyx +++ b/pandas/_libs/hashtable.pyx @@ -86,7 +86,10 @@ cdef class Factorizer: self, ndarray[object] values, sort=False, na_sentinel=-1, na_value=None ): """...
- [ ] 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/32177
2020-02-22T12:34:09Z
2020-02-28T16:16:47Z
2020-02-28T16:16:47Z
2020-02-29T10:27:57Z
CLN: Some code cleanups
diff --git a/pandas/_libs/indexing.pyx b/pandas/_libs/indexing.pyx index cdccdb504571c..316943edee124 100644 --- a/pandas/_libs/indexing.pyx +++ b/pandas/_libs/indexing.pyx @@ -1,7 +1,6 @@ cdef class _NDFrameIndexerBase: """ - A base class for _NDFrameIndexer for fast instantiation and attribute - access. +...
- [ ] 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/32176
2020-02-22T12:10:07Z
2020-02-22T16:27:06Z
2020-02-22T16:27:06Z
2020-02-29T10:27:38Z
BUG: groupby nunique changing values
diff --git a/doc/source/whatsnew/v1.0.2.rst b/doc/source/whatsnew/v1.0.2.rst index 07afe60c9c22a..5f06188def4f2 100644 --- a/doc/source/whatsnew/v1.0.2.rst +++ b/doc/source/whatsnew/v1.0.2.rst @@ -19,6 +19,7 @@ Fixed regressions - Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is...
- [ ] closes #31950 - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry just reopening #31973 for now - this doesn't special-case NaT. Will think if there's a better way to do it, feel free to close / take over if it's ...
https://api.github.com/repos/pandas-dev/pandas/pulls/32175
2020-02-22T11:29:46Z
2020-02-23T15:02:17Z
2020-02-23T15:02:17Z
2020-02-25T17:10:59Z
DOC: Move pandas_development_faq from wiki to doc #30232
diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst index f8a6bb6deb52d..66d92a8788b71 100644 --- a/doc/source/development/index.rst +++ b/doc/source/development/index.rst @@ -20,4 +20,5 @@ Development developer policies roadmap + pandas_development_faq meeting diff -...
- [ ] 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/32172
2020-02-22T06:15:31Z
2020-02-27T19:08:04Z
null
2020-02-27T19:09:01Z
REF/TST: collect Index join tests
diff --git a/pandas/tests/indexes/datetimes/test_date_range.py b/pandas/tests/indexes/datetimes/test_date_range.py index 4d0beecbbf5d3..d33351fe94a8c 100644 --- a/pandas/tests/indexes/datetimes/test_date_range.py +++ b/pandas/tests/indexes/datetimes/test_date_range.py @@ -759,17 +759,6 @@ def test_constructor(self): ...
we get a little bit of parametrization out of the deal, not much
https://api.github.com/repos/pandas-dev/pandas/pulls/32171
2020-02-22T02:54:41Z
2020-02-22T15:40:55Z
2020-02-22T15:40:55Z
2020-02-22T15:42:16Z
DOC: Move testing and pandas_development_faq pages from wiki to doc #30232 & #20501
diff --git a/doc/source/development/index.rst b/doc/source/development/index.rst index f8a6bb6deb52d..5b4fcc5e74e83 100644 --- a/doc/source/development/index.rst +++ b/doc/source/development/index.rst @@ -14,10 +14,12 @@ Development contributing code_style + testing maintaining internals e...
- [ ] closes #20501 - [ ] 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/32170
2020-02-22T01:56:57Z
2020-02-22T02:30:55Z
null
2020-02-22T02:30:55Z
BUG: disallow invalid dtype to CategoricalDtype._from_values_or_dtype
diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index d93ad973ff02d..0730de934b56c 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -324,6 +324,8 @@ def _from_values_or_dtype( raise ValueError( "Cannot specify `categories` or ...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #32167. Together with that, this will allow us to simplify the CategoricalIndex constructor.
https://api.github.com/repos/pandas-dev/pandas/pulls/32169
2020-02-22T00:34:46Z
2020-02-22T16:31:17Z
2020-02-22T16:31:17Z
2020-02-22T16:33:38Z
REF: de-duplicate object-dtype handling
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 14ee21ea5614c..e102e4ae14d86 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -311,14 +311,7 @@ def __new__( # Delay import for perf. https://github.com/pandas-dev/pandas/pull/31423 from p...
We'll also use this for the categorical case following #32167.
https://api.github.com/repos/pandas-dev/pandas/pulls/32168
2020-02-22T00:26:58Z
2020-02-22T16:31:39Z
2020-02-22T16:31:39Z
2020-02-22T16:32:24Z