title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
ENH: Add progress_bar_type argument in read_gbq
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index db23bfdc8a5bd..6e1cf9ab66201 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -600,6 +600,7 @@ I/O - Bug in :meth:`DataFrame.to_clipboard` which did not work reliably in ipython (:issue:`22707`) - Bug...
- [x] closes #29857 - [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/29858
2019-11-26T14:12:35Z
2019-12-08T17:58:52Z
2019-12-08T17:58:52Z
2019-12-08T17:59:15Z
PERF: implement scalar ops blockwise
diff --git a/asv_bench/benchmarks/binary_ops.py b/asv_bench/benchmarks/binary_ops.py index 58e0db67d6025..64e067d25a454 100644 --- a/asv_bench/benchmarks/binary_ops.py +++ b/asv_bench/benchmarks/binary_ops.py @@ -1,3 +1,5 @@ +import operator + import numpy as np from pandas import DataFrame, Series, date_range @@ -...
Similar to #28583, but going through BlockManager.apply.
https://api.github.com/repos/pandas-dev/pandas/pulls/29853
2019-11-26T02:41:19Z
2019-12-27T19:28:53Z
2019-12-27T19:28:53Z
2020-03-28T09:25:00Z
STY: 'open()' and 'close()' to 'with' context manager
diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py index 4f690a57893d1..4cc81a22a60a4 100644 --- a/pandas/io/clipboard/__init__.py +++ b/pandas/io/clipboard/__init__.py @@ -270,14 +270,12 @@ def copy_dev_clipboard(text): if "\r" in text: warnings.warn("Pyperclip cannot ...
- [ ] 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/29851
2019-11-26T02:05:53Z
2019-11-27T14:38:07Z
2019-11-27T14:38:07Z
2019-11-27T15:09:39Z
TYP: Typing annotations in clipboard
diff --git a/pandas/io/clipboard/__init__.py b/pandas/io/clipboard/__init__.py index 4cc81a22a60a4..7d3dbaf6ee021 100644 --- a/pandas/io/clipboard/__init__.py +++ b/pandas/io/clipboard/__init__.py @@ -91,7 +91,7 @@ def __init__(self, message): super().__init__(message) -def _stringifyText(text): +def _stri...
- [ ] 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/29850
2019-11-26T01:54:02Z
2019-11-27T16:19:51Z
2019-11-27T16:19:51Z
2019-11-27T18:12:49Z
MAINT: Fix grammar in user_guide/scale.rst
diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index cff782678a4b3..ba213864ec469 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -94,7 +94,7 @@ Use efficient datatypes The default pandas data types are not the most memory efficient. This is espe...
Follow-up to: https://github.com/pandas-dev/pandas/pull/29811
https://api.github.com/repos/pandas-dev/pandas/pulls/29848
2019-11-26T01:07:54Z
2019-11-27T01:27:45Z
2019-11-27T01:27:45Z
2019-11-27T04:23:31Z
PERF: perform reductions block-wise
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fc39b264d1598..561cac67c3a6f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7662,6 +7662,26 @@ def _get_data(axis_matters): raise NotImplementedError(msg) return data + if numeric_only is not None and...
https://api.github.com/repos/pandas-dev/pandas/pulls/29847
2019-11-26T00:58:43Z
2020-01-01T17:18:21Z
2020-01-01T17:18:20Z
2020-01-01T23:33:51Z
BUG: fix datetimes.should_cache() error for deque (GH 29403)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 539649df05046..c288a008777cf 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -701,6 +701,7 @@ Datetimelike - Bug in :meth:`DatetimeIndex.strftime` and :meth:`Series.dt.strftime` where ``NaT`` was conv...
`itertools.islice()` should be used to get slice of a deque. `itertools.islice()` also can be used (and is efficient) for other collections. So `unique(arg[:check_count])` was replaced with `set(islice(arg, check_count))` which is also much faster on test data. - [x] closes #29403 - [x] tests added / passed - [x]...
https://api.github.com/repos/pandas-dev/pandas/pulls/29846
2019-11-26T00:44:22Z
2019-12-15T22:11:58Z
2019-12-15T22:11:57Z
2019-12-15T22:12:02Z
CLN: trim unnecessary code in indexing tests
diff --git a/pandas/tests/indexing/common.py b/pandas/tests/indexing/common.py index fea34f795bd03..db6dddfdca11b 100644 --- a/pandas/tests/indexing/common.py +++ b/pandas/tests/indexing/common.py @@ -9,10 +9,6 @@ from pandas import DataFrame, Float64Index, MultiIndex, Series, UInt64Index, date_range import pandas.ut...
The remaining roadblock to removing ix in #27620 involves a bunch of tests that call this check_result. This simplifies check_result in the hopes of making that roadblock easier.
https://api.github.com/repos/pandas-dev/pandas/pulls/29845
2019-11-25T23:38:55Z
2019-11-27T18:59:23Z
2019-11-27T18:59:23Z
2019-11-27T19:09:23Z
DOC: README.md wrong minimum versions
diff --git a/README.md b/README.md index 158d48898a7bd..cb3a966c08f74 100644 --- a/README.md +++ b/README.md @@ -164,12 +164,11 @@ pip install pandas ``` ## Dependencies -- [NumPy](https://www.numpy.org): 1.13.3 or higher -- [python-dateutil](https://labix.org/python-dateutil): 2.5.0 or higher -- [pytz](https://pyt...
- [ ] 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/29844
2019-11-25T23:35:17Z
2019-11-27T04:53:03Z
2019-11-27T04:53:03Z
2019-11-27T12:17:51Z
ENH: Implement Kleene logic for BooleanArray
diff --git a/asv_bench/benchmarks/boolean.py b/asv_bench/benchmarks/boolean.py new file mode 100644 index 0000000000000..71c422c641775 --- /dev/null +++ b/asv_bench/benchmarks/boolean.py @@ -0,0 +1,32 @@ +import numpy as np + +import pandas as pd + + +class TimeLogicalOps: + def setup(self): + N = 10_000 + ...
xref #29556 I have a few TODOs, and a few tests that I need to unxfail. Putting this up now so that @jorisvandenbossche can take a look.
https://api.github.com/repos/pandas-dev/pandas/pulls/29842
2019-11-25T21:58:26Z
2019-12-09T08:54:06Z
2019-12-09T08:54:06Z
2019-12-09T08:54:21Z
REF: use named funcs instead of lambdas
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2e2ae4e1dfa0a..046a9082e942e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10226,7 +10226,7 @@ def compound(self, axis=None, skipna=None, level=None): name2, axis_descr, "minimum", - ...
Working on #19296, having named functions instead of lambdas makes troubleshooting easier.
https://api.github.com/repos/pandas-dev/pandas/pulls/29841
2019-11-25T21:21:15Z
2019-11-27T20:48:32Z
2019-11-27T20:48:32Z
2019-11-27T21:20:26Z
DEPR: remove FrozenNDarray
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 14f36a808c468..1665d401e0f27 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -437,6 +437,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed previously deprecated :fun...
Reboots #29335.
https://api.github.com/repos/pandas-dev/pandas/pulls/29840
2019-11-25T19:02:52Z
2019-11-29T23:10:02Z
2019-11-29T23:10:02Z
2019-11-29T23:24:10Z
ENH: XLSB support
diff --git a/ci/deps/azure-37-locale.yaml b/ci/deps/azure-37-locale.yaml index 111ba6b020bc7..dc51597a33209 100644 --- a/ci/deps/azure-37-locale.yaml +++ b/ci/deps/azure-37-locale.yaml @@ -34,3 +34,6 @@ dependencies: - xlsxwriter - xlwt - pyarrow>=0.15 + - pip + - pip: + - pyxlsb diff --git a/ci/deps/azur...
Hey all, a moderately commonly requested feature is xlsb support. I thought I'd go ahead and make a PR for it, based on Pyxlsb. The library isn't very full-featured: datetimes are loaded in as floats without any indication they're datetimes. Would that be grounds for rejection? Alternative would be to implement xlsb...
https://api.github.com/repos/pandas-dev/pandas/pulls/29836
2019-11-25T16:26:33Z
2020-01-20T23:49:14Z
2020-01-20T23:49:14Z
2020-02-03T12:12:35Z
DEPR: Remove weekday_name
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index 17b02374050d2..08b2ae0a4a837 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -772,7 +772,6 @@ There are several time/date properties that one can access from ``Timestamp`` or ...
- [x] xref #18164 - [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/29831
2019-11-25T02:50:41Z
2019-11-28T01:44:48Z
2019-11-28T01:44:48Z
2019-11-28T02:14:47Z
REF: de-duplicate piece of DataFrame._reduce
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 46b213b25df49..d436385ba61ce 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7606,6 +7606,23 @@ def _reduce( def f(x): return op(x, axis=axis, skipna=skipna, **kwds) + def _get_data(axis_matters): + ...
This is in preparation for a PR that implements reductions block-wise, which should address a number of issues
https://api.github.com/repos/pandas-dev/pandas/pulls/29830
2019-11-25T02:37:56Z
2019-11-25T23:56:28Z
2019-11-25T23:56:28Z
2019-11-25T23:58:11Z
DEPR: Change raw kwarg in rolling/expanding.apply to False
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index f231c2b31abb1..2f9839a7fece8 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -414,6 +414,8 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - :func:`read_stata` and :meth:`Data...
- [x] xref #6581 - [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/29829
2019-11-25T01:55:16Z
2019-11-26T00:00:44Z
2019-11-26T00:00:44Z
2019-11-26T00:12:33Z
DOC: Corrected spelling mistakes
diff --git a/pandas/core/missing.py b/pandas/core/missing.py index fc54c03c042b7..41664db7f2b31 100644 --- a/pandas/core/missing.py +++ b/pandas/core/missing.py @@ -329,7 +329,7 @@ def _interpolate_scipy_wrapper( } if getattr(x, "is_all_dates", False): - # GH 5975, scipy.interp1d can't hande datetime...
Fixed few spelling mistakes while going through code.
https://api.github.com/repos/pandas-dev/pandas/pulls/29828
2019-11-25T00:12:42Z
2019-11-27T01:30:04Z
2019-11-27T01:30:04Z
2019-11-27T01:30:14Z
Fix mypy errors for pandas\tests\series\test_operators.py
diff --git a/pandas/core/series.py b/pandas/core/series.py index a9ecf97dad68b..46a65a3bc7000 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -168,6 +168,8 @@ class Series(base.IndexOpsMixin, generic.NDFrame): base.IndexOpsMixin.hasnans.func, doc=base.IndexOpsMixin.hasnans.__doc__ ) ...
part of #28926 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The errors were: ``` pandas/tests/series/test_operators.py:824: error: "Type[Series]" has no attribute "div" pandas/tests/series/test_operators.py:824: error: "Type[Serie...
https://api.github.com/repos/pandas-dev/pandas/pulls/29826
2019-11-24T21:39:41Z
2019-11-27T21:15:31Z
2019-11-27T21:15:31Z
2019-11-27T21:15:38Z
CLN: BlockManager.apply
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index b13aee238efb3..1996b2ada9999 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5609,7 +5609,7 @@ def _to_dict_of_blocks(self, copy=True): for k, v, in self._data.to_dict(copy=copy).items() } - def astype(sel...
Working on arithmetic, we're going to be sending some functions through BlockManager.apply. This is just cleaning that up a bit as a preliminary.
https://api.github.com/repos/pandas-dev/pandas/pulls/29825
2019-11-24T18:52:42Z
2019-12-01T23:29:54Z
2019-12-01T23:29:54Z
2019-12-01T23:37:55Z
DEPR: remove statsmodels/seaborn compat shims
diff --git a/pandas/core/api.py b/pandas/core/api.py index 04f2f84c92a15..7df2165201a99 100644 --- a/pandas/core/api.py +++ b/pandas/core/api.py @@ -10,7 +10,6 @@ ) from pandas.core.dtypes.missing import isna, isnull, notna, notnull -# TODO: Remove get_dummies import when statsmodels updates #18264 from pandas.cor...
xref #18264, #16971 Looks like seaborn updated their usage in https://github.com/mwaskom/seaborn/pull/1241 and statsmodels https://github.com/statsmodels/statsmodels/pull/3618 both in 2017.
https://api.github.com/repos/pandas-dev/pandas/pulls/29822
2019-11-24T01:46:56Z
2019-11-25T07:55:17Z
2019-11-25T07:55:17Z
2019-11-25T15:22:53Z
CLN:Added annotations to functions
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 80db081a4fc52..a6503c00a41bb 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -2201,7 +2201,7 @@ cdef class _Period: return self.days_in_month @property - def is_leap_year(self): + ...
- [ ] 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/29821
2019-11-24T01:09:43Z
2019-11-25T22:29:48Z
2019-11-25T22:29:48Z
2019-11-25T22:36:25Z
PERF: faster categorical ops for equal or larger than scalar
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index a299e688a13ed..43b1b31a0bfe8 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -14,21 +14,6 @@ pass -class Concat: - def setup(self): - N = 10 ** 5 - ...
np.nan is always encoded to -1 in a Categorical, so encoded smaller than all other possible values. So, if we're checking if a Categorical is equal or larger than a scalar, it is not necessary to find locations of -1, as those will always be False already. ### Performance ```python >>> n = 1_000_000 >>> c = ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29820
2019-11-23T23:03:34Z
2019-11-25T22:54:58Z
2019-11-25T22:54:58Z
2019-11-25T22:58:22Z
TYP: Added typing to __eq__ functions
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 68a0a4a403c81..327d1067dd17d 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -328,7 +328,7 @@ class _BaseOffset: def __setattr__(self, name, value): raise AttributeError("DateOffset o...
- [ ] 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/29818
2019-11-23T19:46:04Z
2019-11-27T15:42:09Z
2019-11-27T15:42:09Z
2019-11-27T15:55:44Z
REF: Create _lib/window directory
diff --git a/pandas/_libs/window/__init__.py b/pandas/_libs/window/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/_libs/window.pyx b/pandas/_libs/window/aggregations.pyx similarity index 100% rename from pandas/_libs/window.pyx rename to pandas/_libs/window/aggregations.pyx diff...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` xref https://github.com/pandas-dev/pandas/pull/29428#issuecomment-555882765 Puts `pandas/_libs/window.pyx` and `pandas/_libs/window_indexer.pyx` into their own directory as `pandas/_libs/...
https://api.github.com/repos/pandas-dev/pandas/pulls/29817
2019-11-23T19:18:26Z
2019-11-23T21:57:24Z
2019-11-23T21:57:24Z
2019-11-24T02:01:09Z
Added "f" to the f-string;)
diff --git a/pandas/_libs/tslibs/strptime.pyx b/pandas/_libs/tslibs/strptime.pyx index 71e5006761097..fda508e51e48f 100644 --- a/pandas/_libs/tslibs/strptime.pyx +++ b/pandas/_libs/tslibs/strptime.pyx @@ -110,7 +110,7 @@ def array_strptime(object[:] values, object fmt, f"in format '{fm...
- [ ] 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/29815
2019-11-23T16:58:26Z
2019-11-23T17:15:12Z
2019-11-23T17:15:12Z
2019-11-23T18:15:56Z
DEPR: deprecate truediv param in pd.eval
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index cd7c78112252d..3e5a083032dba 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -339,7 +339,7 @@ Deprecations value in ``idx`` of ``idx_val`` and a new value of ``val``, ``idx.set_value(arr, idx_val, v...
https://api.github.com/repos/pandas-dev/pandas/pulls/29812
2019-11-23T04:39:30Z
2019-11-25T23:52:14Z
2019-11-25T23:52:14Z
2019-11-25T23:55:58Z
DOC: Correct misuse of term high-cardinality in docs.
diff --git a/doc/source/user_guide/scale.rst b/doc/source/user_guide/scale.rst index 7b590a3a1fcc8..cff782678a4b3 100644 --- a/doc/source/user_guide/scale.rst +++ b/doc/source/user_guide/scale.rst @@ -93,9 +93,9 @@ Use efficient datatypes ----------------------- The default pandas data types are not the most memory...
- [ ] 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/29811
2019-11-23T02:45:16Z
2019-11-26T00:32:27Z
2019-11-26T00:32:27Z
2019-11-26T01:08:02Z
CLN: avoid catching Exception in io.pytables
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index b229e5b4e0f4e..9dc955d8dacf3 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -996,6 +996,8 @@ def remove(self, key: str, where=None, start=None, stop=None): # the key is not a valid store, re-raising KeyError ra...
Last one in this file for a bit, scout's honor.
https://api.github.com/repos/pandas-dev/pandas/pulls/29810
2019-11-23T01:57:12Z
2019-11-25T22:58:24Z
2019-11-25T22:58:24Z
2019-11-26T11:29:40Z
DEPR: Series.to_csv signature change
diff --git a/pandas/core/series.py b/pandas/core/series.py index 6045d6a654508..fe698eb64e250 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4417,101 +4417,6 @@ def between(self, left, right, inclusive=True): return lmask & rmask - @Appender(generic.NDFrame.to_csv.__doc__) - def t...
@toobaz you introduced this deprecation in #21896. Can you confirm this enforces the deprecation in the intended way?
https://api.github.com/repos/pandas-dev/pandas/pulls/29809
2019-11-23T01:41:21Z
2019-11-25T23:50:47Z
2019-11-25T23:50:47Z
2019-11-25T23:53:06Z
CLN: remove legacy datetime support in io.pytables
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index b229e5b4e0f4e..1eb386d2ee9a8 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -4,11 +4,10 @@ """ import copy -from datetime import date, datetime +from datetime import date import itertools import os import re -import time from ty...
also removed the `inferred_type == "unicode"` branch, as `lib.infer_dtype` never returns unicode anymore - [x] closes #19475 - [ ] 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/29808
2019-11-23T01:38:34Z
2019-11-25T23:08:22Z
2019-11-25T23:08:21Z
2019-11-25T23:16:43Z
DEPR: remove Index.summary
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 2b68ddf3d8918..bd48a9f504e99 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -376,6 +376,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. **Other removals** +- Removed th...
Broken off from #29725 since that has tricky mypy errors
https://api.github.com/repos/pandas-dev/pandas/pulls/29807
2019-11-23T00:11:15Z
2019-11-24T08:24:05Z
2019-11-24T08:24:05Z
2019-11-24T16:43:54Z
REF: make selection not a state variable in io.pytables
diff --git a/pandas/io/pytables.py b/pandas/io/pytables.py index 8afbd293a095b..c1341438f7efe 100644 --- a/pandas/io/pytables.py +++ b/pandas/io/pytables.py @@ -3218,7 +3218,6 @@ def __init__(self, *args, **kwargs): self.metadata = [] self.info = dict() self.nan_rep = None - self.selec...
https://api.github.com/repos/pandas-dev/pandas/pulls/29804
2019-11-22T21:44:27Z
2019-11-25T23:41:30Z
2019-11-25T23:41:30Z
2019-11-25T23:43:53Z
DEPR: loc with listlikes with missing elements
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index b52015b738c6e..10e8a3601bed5 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1174,18 +1174,12 @@ def _validate_read_indexer( # non-missing values), but a bit later in the # code, so we want to avoid war...
I'm less confident in this one than in others. Some of the affected tests seem to involve non-missing labels in duplicate-containing indexes. Did I conflate multiple issues/deprecations?
https://api.github.com/repos/pandas-dev/pandas/pulls/29802
2019-11-22T20:53:42Z
2019-11-29T23:31:46Z
2019-11-29T23:31:46Z
2019-11-29T23:35:38Z
DEPR: setting DTI.freq, DTI.offset, DTI.asobject
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 2b68ddf3d8918..5ec56018d7107 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -407,6 +407,9 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
I think asobject should have been done as part of #29720.
https://api.github.com/repos/pandas-dev/pandas/pulls/29801
2019-11-22T20:44:36Z
2019-11-25T23:13:59Z
2019-11-25T23:13:59Z
2019-11-25T23:17:16Z
API: Infer extension types in array
diff --git a/doc/source/user_guide/integer_na.rst b/doc/source/user_guide/integer_na.rst index f1f3d79eed61e..77568f3bcb244 100644 --- a/doc/source/user_guide/integer_na.rst +++ b/doc/source/user_guide/integer_na.rst @@ -25,8 +25,7 @@ numbers. Pandas can represent integer data with possibly missing values using :cl...
* string * integer Closes #29791 (though we'll want to add BooleanArray).
https://api.github.com/repos/pandas-dev/pandas/pulls/29799
2019-11-22T19:40:57Z
2019-12-02T17:38:49Z
2019-12-02T17:38:49Z
2020-11-17T18:07:53Z
minor cleanups in core/categorical.py
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 54640ff576338..6d83d6de26d3c 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -357,7 +357,7 @@ Performance improvements - Performance improvement in :meth:`DataFrame.replace` when provided a list of va...
Minor stuff: Cleanup for core/categorical.py, and makes the whatsnew for #29750 a bit better,
https://api.github.com/repos/pandas-dev/pandas/pulls/29798
2019-11-22T18:10:45Z
2019-11-22T19:41:00Z
2019-11-22T19:41:00Z
2019-11-22T19:41:05Z
DEPR: Timedelta.__rfloordiv__(int_dtype)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index f231c2b31abb1..6ce48b18b3fa1 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -376,6 +376,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. **Other removals** +- Floordiv o...
https://api.github.com/repos/pandas-dev/pandas/pulls/29797
2019-11-22T17:58:46Z
2019-11-25T23:42:27Z
2019-11-25T23:42:27Z
2019-11-25T23:44:18Z
Changed description of parse_dates in read_excel().
diff --git a/pandas/io/excel/_base.py b/pandas/io/excel/_base.py index e615507b4199d..c442f0d9bf66c 100644 --- a/pandas/io/excel/_base.py +++ b/pandas/io/excel/_base.py @@ -165,8 +165,9 @@ result 'foo' If a column or index contains an unparseable date, the entire column or - index will be returned unal...
- [ ] closes #29217 - [ ] 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/29796
2019-11-22T17:51:53Z
2019-11-23T23:02:53Z
2019-11-23T23:02:52Z
2019-11-25T13:33:06Z
DEPR: passing an int to read_excel use_cols
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index e302e209b56a1..f56426da848e1 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -324,6 +324,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29795
2019-11-22T17:51:34Z
2019-11-23T23:52:21Z
2019-11-23T23:52:21Z
2019-11-23T23:55:52Z
DEPR: passing td64 data to DTA or dt64 data to TDA
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index db23bfdc8a5bd..5d91b7dbed379 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -407,6 +407,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
https://api.github.com/repos/pandas-dev/pandas/pulls/29794
2019-11-22T17:45:48Z
2019-11-27T21:08:24Z
2019-11-27T21:08:24Z
2019-11-27T21:15:56Z
BUG: Fix melt with mixed int/str columns
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b015f439935cb..8a60fd2062b61 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -535,6 +535,7 @@ Reshaping - Bug :meth:`Series.pct_change` where supplying an anchored frequency would throw a ValueError (...
- [X] closes #29718 - [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/29792
2019-11-22T16:13:16Z
2019-11-23T23:10:01Z
2019-11-23T23:10:01Z
2019-12-20T01:03:10Z
ENH: Allow map with abc mapping
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index efea1fc1f525f..6a299bc415f49 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -223,6 +223,7 @@ Other enhancements - :meth:`DataFrame.to_markdown` and :meth:`Series.to_markdown` added (:issue:`11052`) ...
- [x] closes #29733 (partly, look at my issue comment for details on why it won't exactly work on the issue's example) - [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/29788
2019-11-22T07:58:44Z
2020-01-02T01:35:32Z
2020-01-02T01:35:32Z
2020-01-02T01:35:39Z
CLN: Assorted cleanups
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2d78ce7db8090..0b9aae6676710 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -122,7 +122,7 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then MSG='Check for non-standard imports' ; echo $MSG invgrep -R --include="*.py*" -E "from pandas.co...
By far the largest component of the diff is removing `from numpy import nan` imports and enabling the corresponding code-check. Other than that there are a handful of cleanups, typings, docstring, and error message improvements collected from orphan branches locally.
https://api.github.com/repos/pandas-dev/pandas/pulls/28848
2019-10-08T16:26:03Z
2019-10-08T21:23:31Z
2019-10-08T21:23:31Z
2019-10-08T21:26:05Z
Clean up Abstract and Naming Definitions for GroupBy
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index 0bd6f746e4f3a..41a5195008f0c 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -132,6 +132,9 @@ def pinner(cls): class SeriesGroupBy(GroupBy): _apply_whitelist = base.series_apply_whitelist + ...
Summary of changes: - Made `_iterate_slices` abstract in base class, moved pre-existing definition from Base -> Series where it was actually being called (DataFrame already overrides) - Made `_wrap_transformed_output` Abstract in base class, as both Series and DataFrame override this - Redefined `_wrap_appli...
https://api.github.com/repos/pandas-dev/pandas/pulls/28847
2019-10-08T16:03:25Z
2019-10-08T21:24:17Z
2019-10-08T21:24:17Z
2019-10-08T21:25:18Z
DOC: Fixed PR08 and PR09 docstring errors in pandas.Series
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index 2d4ded9e2e6ba..bce6c352ce480 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -71,7 +71,7 @@ def _add_delegate_accessors(cls, delegate, accessors, typ, overwrite=False): accessors : string list of accessors to add ...
Fixed all PR08 and PR09 issues in pandas.Series. - [x] closes [#28738](https://github.com/pandas-dev/pandas/issues/28738) - [x] passes `black pandas`
https://api.github.com/repos/pandas-dev/pandas/pulls/28845
2019-10-08T15:03:03Z
2019-10-14T02:39:00Z
2019-10-14T02:39:00Z
2022-03-29T09:45:43Z
TST: Improve compatibility with pypy error messages
diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py index 6f7222f523579..d239687a37757 100644 --- a/pandas/tests/arithmetic/test_datetime64.py +++ b/pandas/tests/arithmetic/test_datetime64.py @@ -887,7 +887,7 @@ def test_dt64arr_add_sub_td64ndarray(self, tz_naive_fixture...
This fixes a bunch of spurious errors when running the test suite on pypy3. - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/28844
2019-10-08T14:54:12Z
2019-10-08T21:00:23Z
2019-10-08T21:00:23Z
2019-10-08T21:00:23Z
BUG: use EA.astype in ExtensionBlock.to_native_types
diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst index 9789c9fce3541..fcb6fc8f347bd 100644 --- a/doc/source/whatsnew/v0.25.2.rst +++ b/doc/source/whatsnew/v0.25.2.rst @@ -64,7 +64,7 @@ I/O - Fix regression in notebook display where <th> tags not used for :attr:`DataFrame.index` (:issue:...
Closes https://github.com/pandas-dev/pandas/issues/28840 This implements a `ExtensionBlock.to_native_types` to override the base class which converts to a numpy array. To test this is a bit tricky. The current JSONArray we have in the extension tests does not have this issue. I would need to implement and add tes...
https://api.github.com/repos/pandas-dev/pandas/pulls/28841
2019-10-08T13:56:19Z
2019-10-14T23:33:48Z
2019-10-14T23:33:47Z
2019-10-15T02:38:40Z
DOC: fix code-block in the reshaping docs
diff --git a/doc/source/user_guide/reshaping.rst b/doc/source/user_guide/reshaping.rst index dd6d3062a8f0a..b2ee252495f23 100644 --- a/doc/source/user_guide/reshaping.rst +++ b/doc/source/user_guide/reshaping.rst @@ -728,14 +728,14 @@ Suppose we wanted to pivot ``df`` such that the ``col`` values are columns, ``row`` ...
- [x] closes #28819
https://api.github.com/repos/pandas-dev/pandas/pulls/28838
2019-10-08T08:38:48Z
2019-10-16T16:24:58Z
2019-10-16T16:24:58Z
2020-01-31T07:39:17Z
Remove NDFrameGroupBy Class
diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py index e556708dc9283..0bd6f746e4f3a 100644 --- a/pandas/core/groupby/generic.py +++ b/pandas/core/groupby/generic.py @@ -18,7 +18,6 @@ from pandas._libs import Timestamp, lib from pandas.compat import PY36 -from pandas.errors import Abstrac...
Was going to do a larger refactor but this diff looks more confusing than it actually is, so figured I'd stop here for readability. All I've done in this PR is: - Remove NDFrameGroupBy, consolidating it's methods into DataFrameGroupBy - Merge NDFrameGroupBy.aggregate into DataFrameGroupBy.aggregate (the latter ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28835
2019-10-08T05:35:22Z
2019-10-08T12:33:47Z
2019-10-08T12:33:47Z
2020-01-16T00:33:51Z
BUG: Appending empty list to DataFrame #28769
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 896ae91c68642..f1ed6f0844a29 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -465,6 +465,7 @@ Other - :meth:`Series.append` will no longer raise a ``TypeError`` when passed a tuple of ``Series`` (:iss...
- [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/28834
2019-10-08T05:26:25Z
2019-11-16T21:35:56Z
2019-11-16T21:35:55Z
2019-11-19T15:53:23Z
TST: fix 24 xfails in maybe_promote
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 4435b2518e90b..cd0946751d27e 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -365,16 +365,24 @@ def maybe_promote(dtype, fill_value=np.nan): except (TypeError, ValueError): dtype = np.dty...
Vague gameplan: I think I've got a handle on the `if not boxed` xfail tests that are left, will incrementally fix them over a few more steps. Then the `if boxed` cases all correspond to passing `ndarray` for `fill_value`, which never happens in the tests except for dedicated tests designed to do exactly that. If we c...
https://api.github.com/repos/pandas-dev/pandas/pulls/28833
2019-10-08T03:01:42Z
2019-10-08T21:21:50Z
2019-10-08T21:21:50Z
2019-10-08T21:24:12Z
TST: port tests from #23982
diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py index 8328f65518e02..da2b4c28a02a5 100644 --- a/pandas/tests/dtypes/cast/test_promote.py +++ b/pandas/tests/dtypes/cast/test_promote.py @@ -19,6 +19,7 @@ is_integer_dtype, is_object_dtype, is_scalar, + is_...
I think this finishes the porting of the tests commented "placeholder due to too many xfails". going to plow through existing (and newly added) xfails in separate branch(es)
https://api.github.com/repos/pandas-dev/pandas/pulls/28832
2019-10-08T02:10:39Z
2019-10-08T12:11:04Z
2019-10-08T12:11:03Z
2019-10-08T14:25:48Z
troubleshoot CI failing Linux py36_32bit
diff --git a/ci/deps/azure-36-32bit.yaml b/ci/deps/azure-36-32bit.yaml index 321cc203961d5..1e2e6c33e8c15 100644 --- a/ci/deps/azure-36-32bit.yaml +++ b/ci/deps/azure-36-32bit.yaml @@ -3,6 +3,7 @@ channels: - defaults - conda-forge dependencies: + - attrs=19.1.0 - gcc_linux-32 - gcc_linux-32 - gxx_linu...
closes #28829
https://api.github.com/repos/pandas-dev/pandas/pulls/28830
2019-10-07T23:00:15Z
2019-10-07T23:58:20Z
2019-10-07T23:58:20Z
2019-10-15T12:39:52Z
CLN: core.generic.NDFrame.astype
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index ddbdb48ab0441..a135f567fe6f4 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5899,7 +5899,7 @@ def astype(self, dtype, copy=True, errors="raise"): col.astype(dtype=dtype[col_name], copy=copy, errors=errors) ...
mypy error: `pandas\core\generic.py:5902: error: "append" of "list" does not return a value` This does not actually manifest as a bug with the current implementation since `pd.concat` ignores `None`. ```python >>> import pandas as pd >>> >>> pd.__version__ '0.26.0.dev0+498.gaf498fe8f' >>> >>> d = {'col1': [...
https://api.github.com/repos/pandas-dev/pandas/pulls/28828
2019-10-07T22:12:23Z
2019-10-08T12:44:05Z
2019-10-08T12:44:05Z
2019-10-08T12:58:09Z
TST: Update test in #28798 to use a Categorical
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index 490ecaab03dab..cb1da06b2ccc0 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -1195,9 +1195,12 @@ def test_groupby_categorical_axis_1(code): assert_frame_equ...
- [x] xref #28798 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I merged #28798 too fast, as the column "Name" wasn't a Categorical, which was to be tested. I've made it a Categorical and for good measure I've adde...
https://api.github.com/repos/pandas-dev/pandas/pulls/28824
2019-10-07T18:13:09Z
2019-10-08T06:23:10Z
2019-10-08T06:23:10Z
2019-10-08T06:23:15Z
TST: Allow for multiple variables on the same line in docstring validation
diff --git a/pandas/core/series.py b/pandas/core/series.py index 97e8a2dbac7f5..19d201917f3c8 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -2076,12 +2076,12 @@ def idxmin(self, axis=0, skipna=True, *args, **kwargs): Parameters ---------- - skipna : bool, default True - ...
Allow for multiple variables to share the same type and description in documentation. For example, `i, j, k : int` Would be three variables, i, j, and k, which are all ints. - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28811
2019-10-07T03:34:20Z
2019-10-11T21:45:14Z
2019-10-11T21:45:14Z
2019-10-12T00:05:59Z
TST: Dataframe KeyError when getting nonexistent category (#28799)
diff --git a/pandas/tests/groupby/test_categorical.py b/pandas/tests/groupby/test_categorical.py index 490ecaab03dab..d46eeb35311ee 100644 --- a/pandas/tests/groupby/test_categorical.py +++ b/pandas/tests/groupby/test_categorical.py @@ -1207,3 +1207,14 @@ def test_groupby_cat_preserves_structure(observed): ) ...
- [x] closes #28799 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Added test to check for correct exception when accessing a nonexistent category in a DataFrame.
https://api.github.com/repos/pandas-dev/pandas/pulls/28809
2019-10-06T22:10:13Z
2019-10-08T12:53:57Z
2019-10-08T12:53:57Z
2019-10-08T12:54:01Z
DOC: PR06 docstring fixes
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index bab1127e6e539..6f56d0be1adc5 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -636,7 +636,7 @@ def from_codes(cls, codes, categories=None, ordered=None, dtype=None): Parameters ...
- This PR contains doctrine PR06 fixes mostly doing the conversion below: - boolean to bool - string to str - integer to int - Tests unchanged - black pandas ran successfully
https://api.github.com/repos/pandas-dev/pandas/pulls/28807
2019-10-06T10:44:49Z
2019-10-11T20:08:24Z
2019-10-11T20:08:23Z
2019-10-11T20:09:16Z
API: Add various deprecated attributes to ._deprecated
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 751db2b88069d..13a043a4f89b6 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -151,6 +151,8 @@ Other API changes - :meth:`pandas.api.types.infer_dtype` will now return "integer-na" for integer and ``...
- [x] xref #28772 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This add various deprecated attributes to their respective types' ``_deprecated``. The effect is that these are now also hidden when tab-completing, m...
https://api.github.com/repos/pandas-dev/pandas/pulls/28805
2019-10-06T08:07:59Z
2019-10-12T17:30:03Z
2019-10-12T17:30:03Z
2019-10-14T20:12:05Z
DOC/BLD: remove old sphinx pin
diff --git a/environment.yml b/environment.yml index 43d4647927125..163bd08b93c9e 100644 --- a/environment.yml +++ b/environment.yml @@ -27,8 +27,7 @@ dependencies: # documentation - gitpython # obtain contributors from git for whatsnew - # some styling is broken with sphinx >= 2 (https://github.com/pandas-de...
xref https://github.com/pandas-dev/pandas/issues/26058 and https://github.com/pandas-dev/pandas-sphinx-theme/issues/25 We need a newer sphinx version for the new theme. There were some styling issues with the parameter listings on the docstring API pages, but those probably need to redesigned anyway with the new the...
https://api.github.com/repos/pandas-dev/pandas/pulls/28804
2019-10-06T07:36:04Z
2019-10-07T13:50:13Z
2019-10-07T13:50:13Z
2019-10-07T13:50:16Z
TST: Test pivot_table() with categorical data
diff --git a/pandas/tests/reshape/test_pivot.py b/pandas/tests/reshape/test_pivot.py index 582084e3bfb5a..a8386d21ba27f 100644 --- a/pandas/tests/reshape/test_pivot.py +++ b/pandas/tests/reshape/test_pivot.py @@ -1656,6 +1656,51 @@ def test_categorical_margins_category(self, observed): table = df.pivot_table("...
- [x] closes #21370 - [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/28803
2019-10-06T03:32:19Z
2019-10-12T17:38:20Z
2019-10-12T17:38:19Z
2019-10-12T17:38:25Z
BUG: Coercing bool types to int in qcut
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 53041441ba040..605b9fd916348 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -337,6 +337,7 @@ Reshaping - Bug in :meth:`DataFrame.stack` not handling non-unique indexes correctly when creating MultiIn...
- [x] closes #20303 - [x] tests added / passed: `pytest pandas/tests/reshape/test_qcut.py pandas/tests/reshape/test_cut.py -v` - [x] passes `black pandas` - [x] passes `git diff upstream/master --name-only -- "*.py" | xargs flake8` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/28802
2019-10-05T21:16:51Z
2019-10-08T12:17:15Z
2019-10-08T12:17:14Z
2019-10-08T12:17:18Z
TST: Move datetime specific test from common tests
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index 0e74c87388682..793992d311502 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -96,14 +96,6 @@ def test_to_frame(self, name): df = idx.to_frame(index=False, name=idx_name) assert df.ind...
This test gets rerun multiple times unnecessarily since it is included in the common tests but is actually datetime specific. Moved it to the more appropriate `datetimes/test_datetime.py` file. Did a quick audit of the other common tests and the rest look fine.
https://api.github.com/repos/pandas-dev/pandas/pulls/28801
2019-10-05T21:13:11Z
2019-10-05T22:25:32Z
2019-10-05T22:25:32Z
2019-10-08T18:21:09Z
TST: Reorganize IntervalIndex tests
diff --git a/pandas/tests/indexes/interval/test_base.py b/pandas/tests/indexes/interval/test_base.py new file mode 100644 index 0000000000000..b2cb29dafac09 --- /dev/null +++ b/pandas/tests/indexes/interval/test_base.py @@ -0,0 +1,82 @@ +import numpy as np +import pytest + +from pandas import IntervalIndex, Series, dat...
There shouldn't be any behavioral changes here: mostly just moved things around and created new files for better organization. I tried to do separate granular commits, so looking at each commit individually might make things a little more obvious if there are concerns. Summary: - Removed `test_interval_new.py` - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28800
2019-10-05T20:13:37Z
2019-10-07T00:17:53Z
2019-10-07T00:17:52Z
2019-10-08T18:21:16Z
BUG: Keep categorical name in groupby
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 2b147f948adb1..cbbbfff797ac4 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -284,6 +284,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.rolling` not allowing for rolling over datetimes when `...
- [x] closes #28787 - [x] tests added / passed - [x] passes `black pandas` - [x] whatsnew entry Fixes an issue where column name information was getting dropped when grouping by a categorical column. I had to change a couple existing tests which I think were incorrect since they were implicitly assuming this beh...
https://api.github.com/repos/pandas-dev/pandas/pulls/28798
2019-10-05T15:32:59Z
2019-10-07T13:50:39Z
2019-10-07T13:50:38Z
2019-10-07T13:51:14Z
PERF: improve perf. of Categorical.searchsorted
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index 559aa7050a640..4384ccb7fa8b3 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -282,4 +282,18 @@ def time_sort_values(self): self.index.sort_values(ascending=False) +...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Improves performance of ``Categorical.searchsorted`` by avoiding expensive data convertions. ```python >>> n = 100_000 >>> c = pd.Categorical(['...
https://api.github.com/repos/pandas-dev/pandas/pulls/28795
2019-10-04T21:28:34Z
2019-10-06T22:13:29Z
2019-10-06T22:13:29Z
2019-10-06T22:33:20Z
DOC: Fix PR06 docstring errors in pandas.merge_asof
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 62a30073a53fd..910c7ea561929 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -99,7 +99,7 @@ def _groupby_and_merge(by, on, left, right, _merge_pieces, check_duplicates=True left: left frame right: ri...
- [x] xref #28724 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/28794
2019-10-04T16:17:33Z
2019-10-04T20:09:25Z
2019-10-04T20:09:25Z
2019-10-04T20:09:33Z
DOC: Reference level name as Term of HDFStore.select query (#28791)
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index ee097c1f4d5e8..6b23c814843e1 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3811,6 +3811,8 @@ storing/selecting from homogeneous index ``DataFrames``. # the levels are automatically included as data...
Add documentation for default level name with HDFStore MultiIndex. - [x] closes #28791 - [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/28793
2019-10-04T16:14:24Z
2019-10-16T12:11:17Z
2019-10-16T12:11:16Z
2020-03-16T19:31:31Z
TST: Added SA01, SA02, and SA03 error checks to the Travis CI Build
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index b03c4f2238445..9a2914b5c43dc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -267,8 +267,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS04,...
These error types no longer show errors on master, so they're ready to be turned on for builds. - [x] closes #23630 - [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/28789
2019-10-04T15:03:40Z
2019-10-06T22:14:44Z
2019-10-06T22:14:44Z
2019-10-06T23:50:35Z
DOC: Misc typos fixed in docs and code comments
diff --git a/ci/setup_env.sh b/ci/setup_env.sh index 382491a947488..1be35e933eb0d 100755 --- a/ci/setup_env.sh +++ b/ci/setup_env.sh @@ -118,8 +118,8 @@ conda list pandas echo "[Build extensions]" python setup.py build_ext -q -i -# XXX: Some of our environments end up with old verisons of pip (10.x) -# Adding a new...
Fix some typo
https://api.github.com/repos/pandas-dev/pandas/pulls/28785
2019-10-04T07:32:03Z
2019-10-29T14:45:59Z
2019-10-29T14:45:59Z
2019-10-29T14:48:25Z
TST: port more maybe_promote tests, adds 260 xfails
diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py index 7acff3477ce0f..31c45373c3bb3 100644 --- a/pandas/tests/dtypes/cast/test_promote.py +++ b/pandas/tests/dtypes/cast/test_promote.py @@ -163,9 +163,160 @@ def _assert_match(result_fill_value, expected_fill_value): a...
Currently working on a branch that fixes (some of) these new xfails.
https://api.github.com/repos/pandas-dev/pandas/pulls/28777
2019-10-03T20:45:25Z
2019-10-05T22:32:52Z
2019-10-05T22:32:52Z
2019-10-06T13:36:41Z
TST: fix maybe_promote float dtype xfails
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 5801384bf8db9..7e3e9432be6ee 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -375,7 +375,9 @@ def maybe_promote(dtype, fill_value=np.nan): if issubclass(dtype.type, np.bool_): dtype = np.object_ ...
fixes 9 xfails
https://api.github.com/repos/pandas-dev/pandas/pulls/28776
2019-10-03T20:20:01Z
2019-10-05T22:31:37Z
2019-10-05T22:31:37Z
2019-10-06T13:37:14Z
TST: Remove maybe_promote tests for iNaT as an NA value
diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py index 7acff3477ce0f..208a688167b2b 100644 --- a/pandas/tests/dtypes/cast/test_promote.py +++ b/pandas/tests/dtypes/cast/test_promote.py @@ -7,7 +7,7 @@ import numpy as np import pytest -from pandas._libs.tslibs import N...
These are left over from a time when maybe_promote treated iNaT as an NA value, which we stopped doing because it is ambiguous. Removes 22 xfails (leaving 317 in this file)
https://api.github.com/repos/pandas-dev/pandas/pulls/28775
2019-10-03T19:56:15Z
2019-10-05T22:30:42Z
2019-10-05T22:30:42Z
2019-10-06T13:40:44Z
hide Index.get_values in docs and IPython tab completion
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index afa4f1a5a8c76..86692ed602651 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -206,7 +206,7 @@ class Index(IndexOpsMixin, PandasObject): # tolist is not actually deprecated, just suppressed in the __dir__ ...
In #28621 I hid the deprecated method ``Index.set_value`` in the docs (in ``indexing.rst``) and in the REPL/Ipython (by adding it to ``Index._deprecations``). I like that as it hides not-recommended parts of the pandas API and guides users away from deprecated methods. I've given the already deprecated method ``Inde...
https://api.github.com/repos/pandas-dev/pandas/pulls/28772
2019-10-03T17:18:48Z
2019-10-05T23:00:35Z
2019-10-05T23:00:35Z
2019-10-06T06:58:29Z
CLN: Exception*2 in groupby wrapper
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index cb56f7b8d535b..61a04431f99cb 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -11,6 +11,8 @@ class providing the base-class of operations. from contextlib import contextmanager import datetime from f...
Gets rid of two `except Exception`s in the same function, which is also one of the more heavily-nested functions in there.
https://api.github.com/repos/pandas-dev/pandas/pulls/28771
2019-10-03T16:44:41Z
2019-10-08T18:59:08Z
2019-10-08T18:59:08Z
2019-10-08T19:00:24Z
BUG: Partial fix for docstring validation for parameters
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index b1b5be6d4faeb..1506acc95edf9 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -1,3 +1,4 @@ +import functools import io import random import string @@ -68,6...
This PR addresses #20298, does not close. - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This changes the method used to find arguments from `inspect.getfullargspec` to `inspect.signature` and changes the handling accordingly. It also no...
https://api.github.com/repos/pandas-dev/pandas/pulls/28765
2019-10-03T04:04:31Z
2019-10-14T16:05:37Z
2019-10-14T16:05:37Z
2019-10-15T20:43:16Z
TST: port maybe_promote tests from #23982
diff --git a/pandas/tests/dtypes/cast/test_promote.py b/pandas/tests/dtypes/cast/test_promote.py index 1b7de9b20f42f..7acff3477ce0f 100644 --- a/pandas/tests/dtypes/cast/test_promote.py +++ b/pandas/tests/dtypes/cast/test_promote.py @@ -227,9 +227,72 @@ def test_maybe_promote_float_with_int(float_dtype, any_int_dtype, ...
Not all of them, but whittling them down. The tests are copied almost verbatim. The only change is updating the datetime64/timedelta64 expected results to be datetime64/timedelta64 instead of iNaT.
https://api.github.com/repos/pandas-dev/pandas/pulls/28764
2019-10-03T02:19:02Z
2019-10-03T17:50:42Z
2019-10-03T17:50:42Z
2019-10-03T18:42:32Z
BUG: Allow cast from cat to extension dtype
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index d8dc8ae68c347..f83aa0ce87d3b 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -217,6 +217,8 @@ Categorical - Added test to assert the :func:`fillna` raises the correct ValueError message when the val...
- [x] closes #28668 - [x] tests added / passed - [x] passes `black pandas` - [x] whatsnew entry Modifies `categorical.astype` to allow for casting to extension dtypes. Also fixes the merge issue identified in #28668.
https://api.github.com/repos/pandas-dev/pandas/pulls/28762
2019-10-02T23:01:39Z
2019-10-08T12:40:09Z
2019-10-08T12:40:09Z
2019-10-08T12:52:52Z
CLN: Fix typo in contributing.rst
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index 3cdf9b83e96f3..10d702808606a 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -952,7 +952,7 @@ the expected correct result:: Transitioning to ``pytest`` ~~~~~~~~~~~...
Fixes a typo in the contributing guidelines.
https://api.github.com/repos/pandas-dev/pandas/pulls/28761
2019-10-02T22:37:35Z
2019-10-02T23:55:32Z
2019-10-02T23:55:32Z
2019-10-02T23:57:13Z
DOC: Fixed PR06 docstring errors in pandas.interval_range & pandas.util.hash_array
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 29e297cb28a3b..2cc15f7650ac1 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1410,7 +1410,7 @@ def interval_range( Left bound for generating intervals end : numeric or datetime-like,...
DOC: Fixed PR06 docstring errors in pandas.interval_range - [ ] xref #28724 - [ ] 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/28760
2019-10-02T21:11:48Z
2019-10-07T00:32:06Z
2019-10-07T00:32:06Z
2019-10-07T00:33:25Z
Fixed docstring errors in pandas.period range and pandas.PeriodIndex
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index ee85b0fb91acb..0fc74f4e78c9f 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -85,11 +85,11 @@ class PeriodIndex(DatetimeIndexOpsMixin, Int64Index, PeriodDelegateMixin): Parameters ---------- - ...
- [x] addresses #28724 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff
https://api.github.com/repos/pandas-dev/pandas/pulls/28756
2019-10-02T17:58:37Z
2019-10-02T22:50:17Z
2019-10-02T22:50:17Z
2019-10-02T22:50:22Z
TST: Fix maybe_promote xfails
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 7e3e9432be6ee..4435b2518e90b 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -348,12 +348,22 @@ def maybe_promote(dtype, fill_value=np.nan): dtype = np.dtype(np.object_) fill_value = np.n...
Fix a handful of these, clean up a bunch of others.
https://api.github.com/repos/pandas-dev/pandas/pulls/28754
2019-10-02T16:33:39Z
2019-10-06T21:38:23Z
2019-10-06T21:38:23Z
2019-10-06T22:21:22Z
Eliminated _WriterBase class, removed unused fixtures from methods in pandas/io/excel/test_writers.py
diff --git a/pandas/tests/io/excel/test_writers.py b/pandas/tests/io/excel/test_writers.py index 9feec424389e7..793f11c62f9f5 100644 --- a/pandas/tests/io/excel/test_writers.py +++ b/pandas/tests/io/excel/test_writers.py @@ -24,6 +24,32 @@ ) +@pytest.fixture +def path(ext): + """ + Fixture to open file for u...
- xref #26784 - passes `black pandas` - passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/28753
2019-10-02T15:53:02Z
2019-10-13T22:34:36Z
2019-10-13T22:34:36Z
2019-10-13T22:34:57Z
DOC: Minor fixes in pandas/testing.py docstring.
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 1c0a8dbc19ccd..32f88b13ac041 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -294,7 +294,7 @@ def assert_almost_equal( ---------- left : object right : object - check_dtype : bool / string {'equiv'}, default 'equiv'...
- [x] addresses #28724 - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/28752
2019-10-02T15:50:30Z
2019-10-04T02:02:16Z
2019-10-04T02:02:16Z
2019-10-04T02:02:16Z
reenable codecov
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 57f1ecf1e56f7..d1a9447c97d4e 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -43,10 +43,9 @@ do # if no tests are found (the case of "single and slow"), pytest exits with code 5, and would make the script fail, if not for the below code sh -c "$PYTEST...
Let's see if this can be re-enabled. cc @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/28750
2019-10-02T15:36:59Z
2019-10-03T17:19:37Z
2019-10-03T17:19:36Z
2019-10-03T17:21:49Z
DOC: Fixed doctring errors PR08, PR09 in pandas.io
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index c1af3f93f44eb..9c4746f4d68e3 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -642,16 +642,16 @@ def apply(self, func, axis=0, subset=None, **kwargs): ``func`` should take a Series or DataFrame (depending ...
- closes #28747 - passes `black pandas` - passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/28748
2019-10-02T10:54:34Z
2019-10-02T14:35:28Z
2019-10-02T14:35:28Z
2019-10-02T14:35:45Z
Test pytables refactor
diff --git a/pandas/tests/io/pytables/common.py b/pandas/tests/io/pytables/common.py new file mode 100644 index 0000000000000..d06f467760518 --- /dev/null +++ b/pandas/tests/io/pytables/common.py @@ -0,0 +1,82 @@ +from contextlib import contextmanager +import os +import tempfile + +import pytest + +from pandas.io.pytab...
- precursor to #18498 and continuation of #28715 - No new tests added - black pandas ran successfully - This PR is the next step reference in #28715. @simonjayhawkins and @jreback as promised, this PR contains the following new and EXCITING changes: 1. Created a contest.py in the pytables sub directory conta...
https://api.github.com/repos/pandas-dev/pandas/pulls/28746
2019-10-02T10:05:57Z
2019-10-05T22:35:08Z
2019-10-05T22:35:08Z
2019-10-05T22:35:25Z
Backport PR #28680 on branch 0.25.x (BUG: Fix RangeIndex.get_indexer for decreasing RangeIndex)
diff --git a/doc/source/whatsnew/v0.25.2.rst b/doc/source/whatsnew/v0.25.2.rst index cc072c6ee2491..0fea95710d638 100644 --- a/doc/source/whatsnew/v0.25.2.rst +++ b/doc/source/whatsnew/v0.25.2.rst @@ -50,6 +50,7 @@ Indexing ^^^^^^^^ - Fix regression in :meth:`DataFrame.reindex` not following ``limit`` argument (:is...
Backport PR #28680: BUG: Fix RangeIndex.get_indexer for decreasing RangeIndex
https://api.github.com/repos/pandas-dev/pandas/pulls/28745
2019-10-02T06:51:26Z
2019-10-02T09:50:42Z
2019-10-02T09:50:42Z
2019-10-02T09:50:42Z
Various docstring fixes
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 79e941f262931..eb59684663439 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2614,12 +2614,9 @@ def transpose(self, *args, **kwargs): Parameters ---------- - copy : bool, default False - If True, the un...
- [x] xref #27976 - [x] tests added / passed - Didn't run all tests, only those concerning the issue (`./scripts/validate_docstrings.py pandas.Series.drop --errors=PR02`) - [x] passes `black pandas` - Only docstrings were edited, so there were no major changes - [x] passes `git diff upstream/master -u -- "*.py" |...
https://api.github.com/repos/pandas-dev/pandas/pulls/28744
2019-10-02T04:34:18Z
2019-11-08T16:41:09Z
2019-11-08T16:41:09Z
2019-11-08T16:41:18Z
DOC: Styler errors PR08 and PR09
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 95e1084747aa3..c1af3f93f44eb 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -54,14 +54,18 @@ class Styler: Parameters ---------- data : Series or DataFrame + Data to be styled - either a Series ...
- closes #28656 - tests added/ passed - Checked with ``` ./scripts/validate_docstrings.py pandas.io.formats.style.Styler --errors=PR08,PR09 ``` - passes `black pandas` - passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - whatsnew entry - not needed
https://api.github.com/repos/pandas-dev/pandas/pulls/28743
2019-10-02T02:52:30Z
2019-10-02T06:29:51Z
2019-10-02T06:29:51Z
2019-10-02T22:11:03Z
DOC: Pandas.Series.drop docstring PR02 (#27976)
diff --git a/pandas/core/series.py b/pandas/core/series.py index b0616c053df6d..8c1bda47b0112 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -4154,9 +4154,13 @@ def drop( Index labels to drop. axis : 0, default 0 Redundant for application on Series. - index, ...
- [x] addresses, but **does not fully close**, #27976 - [x] tests added / passed - I didn't run the full `pytest` suite on the actual code, but rather re-ran: ``` ./scripts/validate_docstrings.py pandas.Series.drop --errors=PR02 ``` to confirm that the docstring formatting passed - [x] passes `black pandas` - [...
https://api.github.com/repos/pandas-dev/pandas/pulls/28742
2019-10-02T01:29:08Z
2019-10-02T15:47:13Z
2019-10-02T15:47:13Z
2019-10-02T16:31:05Z
BUG: Fix DataFrame logical ops Series inconsistency
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 16d23d675a8bb..5244047899bff 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -210,6 +210,7 @@ Numeric ^^^^^^^ - Bug in :meth:`DataFrame.quantile` with zero-column :class:`DataFrame` incorrectly raisi...
closes #5284 closes #5035 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Will need to look and see if this closes anything else. This will have a merge conflict with #28638, that is a slightly higher priority. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/28741
2019-10-02T01:18:56Z
2019-10-05T23:03:30Z
2019-10-05T23:03:29Z
2019-10-06T13:43:32Z
DOC: fix PR09,PR08 errors for pandas.Timestamp
diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index 328fc26e4fef6..0bd4b78d51e4e 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -396,7 +396,7 @@ class NaTType(_NaT): Parameters ---------- locale : string, default None (En...
Alright, trying this again. Note: for `Timestamp.tz_localize` , the `deprecated:: 0.24.0` was in the wrong place. the indentation implied it was only deprecating the `coerce` argument of the `errors` parameter, but if you read both of the arguments for `errors`, it implies the entire parameter is deprecated in favo...
https://api.github.com/repos/pandas-dev/pandas/pulls/28739
2019-10-01T19:27:20Z
2019-10-04T15:33:29Z
2019-10-04T15:33:29Z
2019-10-04T17:58:34Z
Backport PR #28400 on branch 0.25.x (Fix a typo in "computation.rst" in document.)
diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index 4f44fcaab63d4..385db1a296d61 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -182,7 +182,7 @@ assigned the mean of the ranks (by default) for the group: .. ipython:: pyth...
Manually backporting #28400 since the bot isn't responding; did a cherry-pick of 6d47fabaf94d7427b48b30a3808545738cd778c6. This should fix the failing doc builds on the 0.25.x branch.
https://api.github.com/repos/pandas-dev/pandas/pulls/28737
2019-10-01T18:49:27Z
2019-10-02T02:04:40Z
2019-10-02T02:04:40Z
2019-10-02T02:37:37Z
TST: add test to confirm adding 'm' to a Series of strings does not error
diff --git a/pandas/tests/series/test_arithmetic.py b/pandas/tests/series/test_arithmetic.py index 89557445cafb4..68d6169fa4f34 100644 --- a/pandas/tests/series/test_arithmetic.py +++ b/pandas/tests/series/test_arithmetic.py @@ -66,6 +66,21 @@ def test_add_series_with_period_index(self): with pytest.raises(Inc...
adds a test to check for regressions later. Replacement PR for #28732 - [ X ] closes #28658 - [ 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/28736
2019-10-01T18:02:39Z
2019-10-02T06:43:10Z
2019-10-02T06:43:09Z
2019-10-02T06:43:10Z
Issue 28518 multiindex interesection
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index b075a9d8b5e8b..3b55901ec4740 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -247,6 +247,7 @@ Missing MultiIndex ^^^^^^^^^^ +- Constructior for :class:`MultiIndex` verifies that the given ``sortord...
MultiIndex lexsort_depth now return sortorder if sortorder is not set to None At first the error come from the intersection of the two indexes, that resulted in an unsorted index with an invalid lexsort_depth value. Then when looking at the lexsort_depth function I found the deeper error, where the returned lexsort_...
https://api.github.com/repos/pandas-dev/pandas/pulls/28735
2019-10-01T17:53:11Z
2019-10-05T23:09:55Z
2019-10-05T23:09:55Z
2019-10-06T09:06:14Z
BUG: fix renaming in requirements generation script
diff --git a/requirements-dev.txt b/requirements-dev.txt index 698e4f3aea094..e677d835b56a5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -17,7 +17,7 @@ numpydoc>=0.9.0 nbconvert>=5.4.1 nbsphinx pandoc -dask-core +dask toolz>=0.7.3 fsspec>=0.5.1 partd>=0.3.10 diff --git a/scripts/generate_pip_de...
- [x] closes #28714 - [ ] 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/28734
2019-10-01T17:52:29Z
2019-10-02T11:44:27Z
2019-10-02T11:44:27Z
2019-10-02T16:59:08Z
Inconsistent indexes for tick label plotting
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index b93f98ab0274f..bc5229d4b4296 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -668,6 +668,7 @@ Plotting - Bug in :meth:`DataFrame.plot` was rotating xticklabels when ``subplots=True``, even if the x-...
The tick position for BarPlot can be define using the convert tool from matplotlib. The main advantage is that it will reuse the same position when you have text as axis values. Previously, the tick position was determined by the order of the given element, so that ['A', 'B'] where given label [0, 1], and if updatin...
https://api.github.com/repos/pandas-dev/pandas/pulls/28733
2019-10-01T17:08:33Z
2020-11-21T12:37:21Z
2020-11-21T12:37:19Z
2021-01-18T15:21:15Z
TST: return pytest MarkDecorator from td.skip_if_no #26735
diff --git a/pandas/tests/io/test_gcs.py b/pandas/tests/io/test_gcs.py index 05d86d2c8aa5b..8313b85d75ca7 100644 --- a/pandas/tests/io/test_gcs.py +++ b/pandas/tests/io/test_gcs.py @@ -108,9 +108,7 @@ def mock_get_filepath_or_buffer(*args, **kwargs): assert_frame_equal(df1, df2) -@pytest.mark.skipif( - td.s...
- [x] xref https://github.com/pandas-dev/pandas/pull/26735#issuecomment-500156276 - [x] tests added / passed - [ ] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] I've replaced `safe_import` function with a corresponding test decorator. I've also investigated whether...
https://api.github.com/repos/pandas-dev/pandas/pulls/28731
2019-10-01T16:10:14Z
2019-10-02T08:50:19Z
2019-10-02T08:50:19Z
2019-10-02T09:02:45Z
CI: 3.8 build
diff --git a/.travis.yml b/.travis.yml index 79fecc41bec0d..b9fa06304d387 100644 --- a/.travis.yml +++ b/.travis.yml @@ -30,6 +30,12 @@ matrix: - python: 3.5 include: + - dist: bionic + # 18.04 + python: 3.8-dev + env: + - JOB="3.8-dev" PATTERN="(not slow and not network)" + ...
Travis config is a mystery to me, so this is trial-and-error until I get the hang of it. Closes https://github.com/pandas-dev/pandas/issues/26626
https://api.github.com/repos/pandas-dev/pandas/pulls/28730
2019-10-01T15:59:34Z
2019-10-15T11:38:53Z
2019-10-15T11:38:53Z
2019-10-15T15:27:40Z