title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
CLN: Deduplicate show_versions
diff --git a/doc/source/install.rst b/doc/source/install.rst index 1c1f0c1d4cf8e..ee4b36f898e31 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -286,6 +286,7 @@ psycopg2 PostgreSQL engine for sqlalchemy pyarrow 0.9.0 Parquet and fea...
Closes #26814 The old version had special cases for numpy, scipy, and pytz. All those now provide a standard `__version__`. xlrd and xlwt are the only special ones now (`__version__`) I messed up the minimum xlwt version in the last PR. I copied openpyxl's rather than xlwt's. That's now fixed. I prettied up...
https://api.github.com/repos/pandas-dev/pandas/pulls/26816
2019-06-12T19:00:35Z
2019-06-21T01:48:37Z
2019-06-21T01:48:37Z
2019-06-21T01:48:48Z
DEPR: deprecate notebook argument in DataFrame.to_html()
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 83beec5607986..1542350bea85a 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -54,7 +54,7 @@ Other API changes Deprecations ~~~~~~~~~~~~ -- +- The ``notebook`` argument of :meth:`DataFrame.to_html` ...
- [ ] closes #23820 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26815
2019-06-12T18:12:48Z
2019-10-07T12:36:49Z
null
2019-10-07T12:36:50Z
CLN: compat.to_str -> core.dtypes.common.ensure_str
diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py index 7036d0e1428fe..4459e66540dac 100644 --- a/pandas/compat/__init__.py +++ b/pandas/compat/__init__.py @@ -24,17 +24,6 @@ # found at https://bitbucket.org/gutworth/six -def to_str(s): - """ - Convert bytes and non-string into Python 3 str ...
``compat.to_str`` is useful to have in cases where an object might be a ``bytes`` object, so it's moved to ``core.dtypes.common`` and renamed to ``ensure_str``.
https://api.github.com/repos/pandas-dev/pandas/pulls/26811
2019-06-12T13:50:30Z
2019-06-12T14:56:56Z
2019-06-12T14:56:56Z
2019-06-12T14:57:01Z
DOC: Fixing some more warnings
diff --git a/doc/source/user_guide/advanced.rst b/doc/source/user_guide/advanced.rst index 0e68cddde8bc7..3235e3c2a8b2e 100644 --- a/doc/source/user_guide/advanced.rst +++ b/doc/source/user_guide/advanced.rst @@ -703,6 +703,8 @@ faster than fancy indexing. %timeit arr[indexer] %timeit arr.take(indexer, axis=0) ...
- [X] closes #26788, xref #24173 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fixing some more warnings in the doc build, and small improvements to the interpolation doc. CC: @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/26810
2019-06-12T13:13:20Z
2019-06-14T06:45:13Z
2019-06-14T06:45:13Z
2019-06-14T06:48:32Z
REF: Consistent optional dependency handling
diff --git a/doc/source/development/contributing.rst b/doc/source/development/contributing.rst index ba0558cff07eb..135fb55cfce50 100644 --- a/doc/source/development/contributing.rst +++ b/doc/source/development/contributing.rst @@ -499,6 +499,21 @@ as possible to avoid mass breakages. Additional standards are outline...
Standardizes how we do our optional dependency checking. 1. Adds a new `import_optional_dependency` helper that handles optional importing, raising with a nice message, and warning / raising if the version is not correct. 2. Changes inline `try / except ImportError` to use `import_optional_dependency` 3. Documents...
https://api.github.com/repos/pandas-dev/pandas/pulls/26802
2019-06-12T03:16:04Z
2019-06-12T17:56:54Z
2019-06-12T17:56:54Z
2019-06-12T18:59:01Z
REF: remove unreachable code in core.internals
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f86ef40a97299..f9178959d8272 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -417,17 +417,14 @@ def split_and_operate(self, mask, f, inplace): new_values = self.values def make_...
@TomAugspurger it looks like _sparse_blockify is never hit. Is that no longer reachable?
https://api.github.com/repos/pandas-dev/pandas/pulls/26800
2019-06-12T02:27:29Z
2019-06-12T11:13:53Z
2019-06-12T11:13:53Z
2019-06-12T14:08:25Z
TST/REF: parametrize arithmetic tests, simplify parts of core.ops
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 86a255321f827..0b9e56fd19556 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -1077,7 +1077,7 @@ def fill_binop(left, right, fill_value): return left, right -def mask_cmp_op(x, y, op, allowed_types): +def mask_cmp_op(x, y, op): """ ...
Parametrization is straightforward. Fixing xfailed test in test_properties is straightforward In core.ops: ATM we have a nested closure that wraps all of na_op in a try/except, but there is really only one line we want to catch. This simplifies the closure and catches only the relevant line.
https://api.github.com/repos/pandas-dev/pandas/pulls/26799
2019-06-12T00:29:02Z
2019-06-25T16:11:51Z
2019-06-25T16:11:51Z
2019-06-25T18:00:19Z
DOC: Document existing functionality of pandas.DataFrame.to_sql() #11886
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 6ade69fb4ca9d..1a5b36b07e93c 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2594,13 +2594,14 @@ def to_sql( `index` is True, then the index names are used. A sequence should be given if the DataFrame uses ...
- [x] Adds documentation for #11886 - [ ] doc build fails (may be related to #26723) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] **What's new?** Adds documentation to an existing functionality. In fact, the functionality is documented at `pandas.io.sql.to_sql` but it's not visible [he...
https://api.github.com/repos/pandas-dev/pandas/pulls/26795
2019-06-11T20:36:35Z
2019-08-30T17:09:04Z
2019-08-30T17:09:04Z
2019-08-31T19:15:42Z
DOC: Fix rolling doc with win_type triang (#22268)
diff --git a/pandas/core/window.py b/pandas/core/window.py index f332075380c79..ab1f49aec2ad1 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -530,8 +530,8 @@ class Window(_Window): >>> df.rolling(2, win_type='triang').sum() B 0 NaN - 1 1.0 - 2 2.5 + 1 0.5 + 2 1.5 ...
- [x] closes #22268 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/26794
2019-06-11T19:38:13Z
2019-06-12T01:42:51Z
2019-06-12T01:42:50Z
2019-07-11T15:47:51Z
TST/CLN: use float_frame fixture to remove use of tm.getSeriesData()
diff --git a/pandas/tests/arithmetic/test_numeric.py b/pandas/tests/arithmetic/test_numeric.py index 172c29b951001..256ee930b4cda 100644 --- a/pandas/tests/arithmetic/test_numeric.py +++ b/pandas/tests/arithmetic/test_numeric.py @@ -712,10 +712,9 @@ def test_datetime64_with_index(self): tm.assert_series_equal(...
this PR removes 2 unnecessary fixtures from `pandas\tests\groupby\conftest.py` and a few small changes to remove use of `tm.getSeriesData()` with a couple of exceptions: - conftest files: `pandas\conftest.py` and `pandas\tests\frame\conftest.py` (needed for fixtures) - `pandas\tests\frame\common.py` (this modul...
https://api.github.com/repos/pandas-dev/pandas/pulls/26787
2019-06-11T15:42:21Z
2019-06-11T18:31:24Z
2019-06-11T18:31:24Z
2019-06-12T13:59:30Z
DOC: Fixing some doc warnings
diff --git a/doc/source/reference/series.rst b/doc/source/reference/series.rst index 79beeb0022307..92f62a812d23b 100644 --- a/doc/source/reference/series.rst +++ b/doc/source/reference/series.rst @@ -472,6 +472,7 @@ strings and apply several methods to it. These can be accessed like Series.str Series.c...
- [x] xref #24173 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fixing some docs warnings, still many more, but will open few PRs with fixes, try to get a clean build and start failing the CI for doc warnings.
https://api.github.com/repos/pandas-dev/pandas/pulls/26786
2019-06-11T14:39:57Z
2019-06-12T09:02:14Z
2019-06-12T09:02:14Z
2019-06-12T09:02:14Z
DOC: clean-up numpydoc patches now numpydoc 0.9 is released
diff --git a/doc/source/conf.py b/doc/source/conf.py index 971aa04ba866a..2484a9d592e09 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -18,7 +18,7 @@ import jinja2 from sphinx.ext.autosummary import _import_by_name from numpydoc.docscrape import NumpyDocString -from numpydoc.docscrape_sphinx import Sphi...
Since numpydoc is released, we can do some cleanup of what was introduced in https://github.com/pandas-dev/pandas/pull/24098 cc @FHaase
https://api.github.com/repos/pandas-dev/pandas/pulls/26785
2019-06-11T14:38:21Z
2019-06-11T19:23:24Z
2019-06-11T19:23:24Z
2019-06-11T19:23:30Z
Change Scope of xlrd Import Attempt
diff --git a/pandas/io/excel/_xlrd.py b/pandas/io/excel/_xlrd.py index 18e751274dab9..f01207bbebcf8 100644 --- a/pandas/io/excel/_xlrd.py +++ b/pandas/io/excel/_xlrd.py @@ -6,36 +6,26 @@ from pandas.io.excel._base import _BaseExcelReader -class _XlrdReader(_BaseExcelReader): - - def __init__(self, filepath_or_b...
Moved attempt to import xlrd to global scope of module. Simplifies code a bit and keeps xlrd relevant imports within one block
https://api.github.com/repos/pandas-dev/pandas/pulls/26782
2019-06-11T13:17:05Z
2019-06-12T18:09:54Z
null
2020-01-16T00:34:51Z
DOC: pin sphinx to 1.8.5
diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml index a3c9f27f72d7e..9419543e601e2 100644 --- a/ci/deps/travis-36-doc.yaml +++ b/ci/deps/travis-36-doc.yaml @@ -33,8 +33,8 @@ dependencies: - pytz - scipy - seaborn - # recursion error with sphinx 2.1.0. https://github.com/pandas-dev/pandas/...
xref https://github.com/pandas-dev/pandas/issues/26058
https://api.github.com/repos/pandas-dev/pandas/pulls/26781
2019-06-11T12:10:08Z
2019-06-12T15:12:14Z
2019-06-12T15:12:13Z
2019-10-06T07:37:26Z
DOC: fix old whatsnew examples + few sphinx warnings
diff --git a/doc/source/whatsnew/v0.11.0.rst b/doc/source/whatsnew/v0.11.0.rst index c919698d15689..0dfcfca9a7464 100644 --- a/doc/source/whatsnew/v0.11.0.rst +++ b/doc/source/whatsnew/v0.11.0.rst @@ -105,27 +105,54 @@ Conversion Mixed Conversion -.. ipython:: python - :okwarning: +.. code-block:: ipython - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26780
2019-06-11T11:52:04Z
2019-06-11T15:47:40Z
2019-06-11T15:47:39Z
2019-06-11T15:55:32Z
PERF: avoid printing object in Dtype.construct_from_string message
diff --git a/pandas/core/dtypes/base.py b/pandas/core/dtypes/base.py index 0a0ba69659570..d1d48f9810419 100644 --- a/pandas/core/dtypes/base.py +++ b/pandas/core/dtypes/base.py @@ -214,6 +214,8 @@ def construct_from_string(cls, string: str): ... raise TypeError("Cannot construct a '{}' from " ...
xref https://github.com/pandas-dev/pandas/pull/26562#issuecomment-500120556
https://api.github.com/repos/pandas-dev/pandas/pulls/26776
2019-06-11T07:34:05Z
2019-06-12T14:44:22Z
2019-06-12T14:44:22Z
2019-06-12T14:44:29Z
fix typo
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c4e08f50958f7..dd6a680ab1a4e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -7476,7 +7476,7 @@ def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True, aligned; see ``.align()`` method). If an ndarray is...
- [N/A] closes #xxxx - [none] tests added / passed - [no (online Github minor change)] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [probably not necessary either?] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26775
2019-06-10T22:39:04Z
2019-06-10T23:32:39Z
2019-06-10T23:32:39Z
2019-06-10T23:32:45Z
PERF: 5x speedup for read_json() with orient='index' by avoiding transpose
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 68ecb4c487a1e..23c56f8b78043 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -939,6 +939,7 @@ Performance improvements - Improved performance by removing the need for a garbage collect when checki...
The `.T` operator can be quite slow on mixed-type `DataFrame`s due to the creation of `object` dtype columns. In comparison to direct construction with `DataFrame.from_dict()` can generally be much more efficient. Making that swap inside `pd.read_json()` yields a `~5-6x` speedup for the `orient='index'` case: ``` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26773
2019-06-10T19:11:37Z
2019-07-17T11:49:29Z
2019-07-17T11:49:29Z
2019-07-17T11:49:32Z
BENCH: fix noisy asv benchmarks that were running on exhausted generators
diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py index 1c6841a296377..42adede631a01 100644 --- a/asv_bench/benchmarks/ctors.py +++ b/asv_bench/benchmarks/ctors.py @@ -55,7 +55,14 @@ class SeriesConstructors: [False, True], ['float', 'int']] + # Generators get...
Generators get consumed on first use, yielding abnormally fast benchmark times on the `n>1` iterations. Fortunately we can instruct `asv` to call `setup()` prior to every sample by setting `number = 1` and `repeat` appropriately. My local runs suggest the typical number of samples is `~150-250`, so an upper limit of `2...
https://api.github.com/repos/pandas-dev/pandas/pulls/26772
2019-06-10T19:01:43Z
2019-06-21T02:03:03Z
2019-06-21T02:03:03Z
2019-08-14T07:00:54Z
Fix matplotlib converter registering warning
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 81f5b5cb0f74c..78c7082c69b6b 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -5,19 +5,16 @@ from pandas.core.dtypes.common import is_integer, is_list_like from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries -im...
Closes #26760 Tests were being skipped, because the module name changed in https://github.com/pandas-dev/pandas/pull/18307/files.
https://api.github.com/repos/pandas-dev/pandas/pulls/26770
2019-06-10T17:11:09Z
2019-06-21T02:06:35Z
2019-06-21T02:06:35Z
2019-06-21T02:06:57Z
BLD: fix py37 build warnings
diff --git a/pandas/io/msgpack/_unpacker.pyx b/pandas/io/msgpack/_unpacker.pyx index 8734990c44da0..c2e2dfc521a51 100644 --- a/pandas/io/msgpack/_unpacker.pyx +++ b/pandas/io/msgpack/_unpacker.pyx @@ -5,15 +5,13 @@ from cython cimport Py_ssize_t from cpython cimport ( PyCallable_Check, - PyBUF_SIMPLE, PyObje...
Not at all sure this is the optimal way to do this, cc @WillAyd for suggestions
https://api.github.com/repos/pandas-dev/pandas/pulls/26769
2019-06-10T17:02:38Z
2019-06-27T21:59:49Z
2019-06-27T21:59:49Z
2019-06-27T22:05:10Z
[26660] compare int with double by subtracting during describe percen…
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 844e062b20ca3..21e75d5d1ad07 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -97,7 +97,7 @@ Other Enhancements - :func:`merge_asof` now gives a more clear error message when merge keys are categor...
- [x] closes #26660 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I am not sure whether I had put my issue in whatsnew entry in appropriate place.
https://api.github.com/repos/pandas-dev/pandas/pulls/26768
2019-06-10T14:33:19Z
2019-06-11T00:16:58Z
2019-06-11T00:16:58Z
2019-06-11T05:35:28Z
BUG: fix IntervalIndex for pivot table raise type error
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 76ee21b4c9a50..0ea022e83ea08 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -720,6 +720,7 @@ Reshaping - Bug in :func:`pandas.cut` where large bins could incorrectly raise an error due to an inte...
Close (#25814). When use IntervalIndex for pivot table, raise TypeError: cannot determine next label for type <class 'str'> - [x] closes #25814 - [x] tets added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26765
2019-06-10T10:55:26Z
2019-06-13T20:41:45Z
2019-06-13T20:41:44Z
2019-06-14T02:06:04Z
TST/CLN: declass smaller test files in tests\io\excel
diff --git a/pandas/tests/io/excel/test_openpyxl.py b/pandas/tests/io/excel/test_openpyxl.py index 8be96a771f3aa..6815d2aa079f8 100644 --- a/pandas/tests/io/excel/test_openpyxl.py +++ b/pandas/tests/io/excel/test_openpyxl.py @@ -1,124 +1,123 @@ import pytest -import pandas.util._test_decorators as td - from pandas ...
xref https://github.com/pandas-dev/pandas/pull/26755#pullrequestreview-247416090 the larger files `pandas/tests/io/excel/test_readers.py` and `pandas/tests/io/excel/test_writers.py` have been left for separate PRs any idiom changes other than required to declass are also omitted to make the diff easier to check.
https://api.github.com/repos/pandas-dev/pandas/pulls/26764
2019-06-10T10:15:53Z
2019-06-10T17:32:01Z
2019-06-10T17:32:01Z
2019-06-11T14:49:29Z
TST/CLN: reuse float_frame fixture in tests\reshape\test_concat.py
diff --git a/pandas/tests/reshape/test_concat.py b/pandas/tests/reshape/test_concat.py index ecd62380d8c65..1420d4420e430 100644 --- a/pandas/tests/reshape/test_concat.py +++ b/pandas/tests/reshape/test_concat.py @@ -39,15 +39,7 @@ def sort_with_none(request): return request.param -class ConcatenateBase: - - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26763
2019-06-10T08:26:17Z
2019-06-10T21:52:41Z
2019-06-10T21:52:41Z
2019-06-11T14:50:52Z
BLD: use unsigned instead of signed for lengths, avoid build warnings
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 88b918e9cc515..b73b70caf1597 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -119,24 +119,24 @@ cdef extern from "parser/tokenizer.h": # where to write out tokenized data char *stream - int64_t stre...
I'm much more confident about the other two BLD PRs (#26757, #26758) than this, largely because: - [ ] in a couple of comments here I wrote that a certain term should always be non-negative. I haven't actually confirmed that this is always the case - [ ] This changed things from int64_t to uint64_t, but could also...
https://api.github.com/repos/pandas-dev/pandas/pulls/26759
2019-06-10T03:30:26Z
2019-06-22T17:19:03Z
2019-06-22T17:19:03Z
2019-06-22T18:07:48Z
BLD: fix build warnings in tslib by casting explicitly to object
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 3ea70541382de..0eb3e3c79aa47 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -127,7 +127,7 @@ def ints_to_pydatetime(int64_t[:] arr, object tz=None, object freq=None, for i in range(n): value = arr[i] ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26758
2019-06-10T03:20:47Z
2019-06-10T12:30:42Z
2019-06-10T12:30:42Z
2019-06-10T13:56:20Z
BLD: fix build warnings
diff --git a/pandas/_libs/join.pyx b/pandas/_libs/join.pyx index faa7ab95fd28b..f9e1ebb11116b 100644 --- a/pandas/_libs/join.pyx +++ b/pandas/_libs/join.pyx @@ -119,7 +119,8 @@ def left_outer_join(const int64_t[:] left, const int64_t[:] right, right_indexer = _get_result_indexer(right_sorter, right_indexer) ...
xref #25995, #17936 AFAICT these warnings are caused by cython casting `len(some_ndarray)` to `int` or `Py_ssize_t` but casting `len(some_memoryview)` to `size_t`. Easiest fix is to declare the affected len variables as `size_t` since we know they'll never be negative.
https://api.github.com/repos/pandas-dev/pandas/pulls/26757
2019-06-10T01:58:04Z
2019-06-12T15:44:56Z
2019-06-12T15:44:56Z
2019-06-12T16:52:48Z
TST/CLN: reuse float_frame fixture in tests\io\formats\test_format.py
diff --git a/pandas/tests/io/formats/test_format.py b/pandas/tests/io/formats/test_format.py index 2779e3f56f923..bae2470459f62 100644 --- a/pandas/tests/io/formats/test_format.py +++ b/pandas/tests/io/formats/test_format.py @@ -11,7 +11,6 @@ from shutil import get_terminal_size import sys import textwrap -import wa...
follow-on from #26603
https://api.github.com/repos/pandas-dev/pandas/pulls/26756
2019-06-09T21:17:33Z
2019-06-09T21:58:23Z
2019-06-09T21:58:23Z
2019-06-10T07:59:54Z
Split test_excel into submodule
diff --git a/pandas/tests/io/excel/__init__.py b/pandas/tests/io/excel/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/io/excel/conftest.py b/pandas/tests/io/excel/conftest.py new file mode 100644 index 0000000000000..935db254bd2e5 --- /dev/null +++ b/pandas/tests/io/excel/...
- [X] closes #24472 @simonjayhawkins Just moved everything as is. Some of the class structures are unnecessary now but leaving for follow ups
https://api.github.com/repos/pandas-dev/pandas/pulls/26755
2019-06-09T15:18:50Z
2019-06-09T21:51:12Z
2019-06-09T21:51:12Z
2019-06-10T02:27:44Z
DOC: warning on look-ahead bias with resampling
diff --git a/doc/source/user_guide/timeseries.rst b/doc/source/user_guide/timeseries.rst index f559b0d073320..f27e9c677d925 100644 --- a/doc/source/user_guide/timeseries.rst +++ b/doc/source/user_guide/timeseries.rst @@ -761,34 +761,6 @@ regularity will result in a ``DatetimeIndex``, although frequency is lost: t...
- [x] closes #11123 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26754
2019-06-09T14:03:32Z
2019-06-12T18:52:30Z
2019-06-12T18:52:30Z
2019-06-12T18:52:34Z
PLOT: Add option to specify the plotting backend
diff --git a/doc/source/user_guide/options.rst b/doc/source/user_guide/options.rst index 4b466c2c44d49..4d0def435cb1e 100644 --- a/doc/source/user_guide/options.rst +++ b/doc/source/user_guide/options.rst @@ -431,6 +431,12 @@ compute.use_bottleneck True Use the bottleneck library ...
- [x] closes #14130 - [x] tets added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Adding option to specify the plotting backend. This does not change the plotting API, so for now backends are expected to implement the existing methods in the matplotlib API. Th...
https://api.github.com/repos/pandas-dev/pandas/pulls/26753
2019-06-09T11:33:34Z
2019-06-21T09:37:18Z
2019-06-21T09:37:18Z
2019-06-21T09:37:18Z
DOC: Skip creating redirects if docs build fails
diff --git a/doc/make.py b/doc/make.py index 6ffbd3ef86e68..496b3cfd4ee45 100755 --- a/doc/make.py +++ b/doc/make.py @@ -220,10 +220,11 @@ def html(self): if os.path.exists(zip_fname): os.remove(zip_fname) - if self.single_doc_html is not None: - self._open_browser(self.single_...
When the doc build fails, we still try to create the redirected pages, which fails, and adds to the log a misleading error (it looks in the logs like the problem is not the original error but that something is failing in the redirects). See for example https://travis-ci.org/pandas-dev/pandas/jobs/542714631: ``` Re...
https://api.github.com/repos/pandas-dev/pandas/pulls/26752
2019-06-09T10:00:01Z
2019-06-09T21:51:39Z
2019-06-09T21:51:39Z
2019-06-09T21:51:58Z
Deprecated Series.ftype, Series.ftypes and DataFrame.ftypes features
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 19d093dd29457..8849bd767c8c6 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5525,6 +5525,9 @@ def ftypes(self): """ Return the ftypes (indication of sparse/dense and dtype) in DataFrame. + .. deprecated::...
Deprecation of `Series.ftype`, `Series.ftypes` and `DataFrame.ftypes` closes #26705 - [x] Updated the docstrings for the sphinx documentation - [x] Updated the unit tests for testing deprecation warnings - [x] Added Git Issue Number to unit tests
https://api.github.com/repos/pandas-dev/pandas/pulls/26751
2019-06-09T08:54:22Z
2019-06-09T11:39:24Z
null
2019-06-09T11:39:24Z
move late imports to top
diff --git a/pandas/plotting/_matplotlib/boxplot.py b/pandas/plotting/_matplotlib/boxplot.py index c1a48ad5ca08b..b8a7da5270fc0 100644 --- a/pandas/plotting/_matplotlib/boxplot.py +++ b/pandas/plotting/_matplotlib/boxplot.py @@ -2,11 +2,14 @@ import warnings from matplotlib import pyplot as plt +from matplotlib.art...
- [x] closes #26748 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26750
2019-06-09T01:09:33Z
2019-06-11T18:46:38Z
2019-06-11T18:46:38Z
2019-06-11T18:46:45Z
STYLE: Isort __init__ files
diff --git a/pandas/_libs/__init__.py b/pandas/_libs/__init__.py index 1f6042389416e..fcf5ffbfcad92 100644 --- a/pandas/_libs/__init__.py +++ b/pandas/_libs/__init__.py @@ -1,4 +1,4 @@ # flake8: noqa from .tslibs import ( - iNaT, NaT, NaTType, Timestamp, Timedelta, OutOfBoundsDatetime, Period) + NaT, NaTType,...
- [x] related to #23334 - [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff
https://api.github.com/repos/pandas-dev/pandas/pulls/26749
2019-06-09T00:33:27Z
2019-06-28T15:37:40Z
2019-06-28T15:37:40Z
2019-12-25T20:35:28Z
Read from HDF with empty `where` throws an error
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 7c7112bae0ff3..0f716dad9a2f2 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -666,6 +666,7 @@ I/O - Added ``cache_dates=True`` parameter to :meth:`read_csv`, which allows to cache unique dates whe...
- [x] closes #26610 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26746
2019-06-09T00:05:52Z
2019-06-11T00:14:59Z
2019-06-11T00:14:59Z
2019-06-11T12:20:37Z
Deprecated Series.ftype, Series.ftypes and DataFrame.ftypes features
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index a21e9773243da..8a8f0594f0d3e 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -478,6 +478,8 @@ Other Deprecations - The :meth:`DataFrame.compound` and :meth:`Series.compound` methods are deprecated...
Deprecation of `Series.ftype`, `Series.ftypes` and `DataFrame.ftypes` closes #26705 - [x] Updated the docstrings for the sphinx documentation - [x] Updated the unit tests for testing deprecation warnings
https://api.github.com/repos/pandas-dev/pandas/pulls/26744
2019-06-08T22:21:44Z
2019-06-11T00:18:58Z
2019-06-11T00:18:58Z
2019-06-11T00:19:03Z
Remove isort dep
diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml index 8f7556e6b47ad..a3c9f27f72d7e 100644 --- a/ci/deps/travis-36-doc.yaml +++ b/ci/deps/travis-36-doc.yaml @@ -44,4 +44,3 @@ dependencies: # universal - pytest>=4.0.2 - pytest-xdist - - isort
- Follow up from #26732 ( i missed a file )
https://api.github.com/repos/pandas-dev/pandas/pulls/26741
2019-06-08T20:43:36Z
2019-06-08T21:44:11Z
2019-06-08T21:44:11Z
2019-12-25T20:32:50Z
Move ExcelWriter Tests
diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py index 6860afa710c4a..1f6839fa5dc52 100644 --- a/pandas/tests/io/test_excel.py +++ b/pandas/tests/io/test_excel.py @@ -56,7 +56,24 @@ def ignore_xlrd_time_clock_warning(): yield -@pytest.mark.parametrize("ext", ['.xls', '.xlsx', '.xl...
Because read_excel and ExcelWriter have different parametrization requirements it makes things clearer for now to separate these out. Maybe longer term they can be more intelligently combined but for now I think this still helps clean up requirements for adding new engines @simonjayhawkins
https://api.github.com/repos/pandas-dev/pandas/pulls/26740
2019-06-08T19:56:05Z
2019-06-08T21:25:20Z
2019-06-08T21:25:20Z
2019-06-09T01:06:17Z
TST/CLN: remove TestData from tests\frame\test_rank.py
diff --git a/pandas/tests/frame/test_rank.py b/pandas/tests/frame/test_rank.py index 1e600ea8cd878..c93defe7c64a6 100644 --- a/pandas/tests/frame/test_rank.py +++ b/pandas/tests/frame/test_rank.py @@ -4,12 +4,11 @@ import pytest from pandas import DataFrame, Series -from pandas.tests.frame.common import TestData i...
follow-on from #26733
https://api.github.com/repos/pandas-dev/pandas/pulls/26739
2019-06-08T15:15:58Z
2019-06-08T17:03:15Z
2019-06-08T17:03:15Z
2019-06-08T17:04:06Z
CLN: remove Panel-specific parts of core.generic
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 19d093dd29457..c4e08f50958f7 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -1570,11 +1570,6 @@ def _is_level_reference(self, key, axis=0): """ axis = self._get_axis_number(axis) - if self.ndim > 2: - ...
xref #25632 removed small amount of code related to self.ndim > 2 also a few changes to make the NotImplemented errors for self.ndim>2 more consistent and added test for these. (might be worth having a decorator for these)
https://api.github.com/repos/pandas-dev/pandas/pulls/26738
2019-06-08T14:58:14Z
2019-06-09T18:42:52Z
2019-06-09T18:42:52Z
2019-06-10T08:00:40Z
TST: Fix mpl 3.0.3 grid settings test failure
diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index 7b108157096b3..73fc59389181a 100644 --- a/pandas/tests/plotting/common.py +++ b/pandas/tests/plotting/common.py @@ -446,7 +446,7 @@ def is_grid_on(): # for mpl 2.2.2, gridOn and gridline.get_visible disagree. ...
- [ ] closes #26734 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26737
2019-06-08T14:27:11Z
2019-06-08T15:06:47Z
2019-06-08T15:06:47Z
2019-06-08T15:08:04Z
read_excel and Excel File Engine conflict
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 844e062b20ca3..7c7112bae0ff3 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -665,6 +665,7 @@ I/O - Bug in :func:`read_json` where date strings with ``Z`` were not converted to a UTC timezone (:is...
- [x] closes #26566 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry cc. @WillAyd Note I only decided to raise an error when the engine specified to `read_excel` was different to that of the ExcelFile - otherwise around 15 test cases would n...
https://api.github.com/repos/pandas-dev/pandas/pulls/26736
2019-06-08T14:02:54Z
2019-06-10T21:55:10Z
2019-06-10T21:55:09Z
2019-12-25T20:35:17Z
TST: return pytest MarkDecorator from td.skip_if_no
diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index 225503cddceee..bd6fc6f57c496 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -77,10 +77,8 @@ def test_same_ordering(datapath): @pytest.mark.parametrize("flavor", [ - pytest.param('bs4', marks=pytest.ma...
`skip_if_no` returns a decorator that applies a pytest mark. pytest marks are decorators and can be applied directly to test functions. This PR changes `skip_if_no` to return just the pytest mark. `skip_if_no` can then be used in (pytest.param(... , marks=) situations. eg. pandas/tests/io/test_html.py could...
https://api.github.com/repos/pandas-dev/pandas/pulls/26735
2019-06-08T14:01:56Z
2019-06-08T19:51:09Z
2019-06-08T19:51:09Z
2019-06-09T17:48:35Z
[TST] Fixturize frame/test_rank.py
diff --git a/pandas/tests/frame/test_rank.py b/pandas/tests/frame/test_rank.py index eed91850888fc..1e600ea8cd878 100644 --- a/pandas/tests/frame/test_rank.py +++ b/pandas/tests/frame/test_rank.py @@ -29,19 +29,19 @@ def method(self, request): """ return request.param - def test_rank(self): + ...
xref #22471
https://api.github.com/repos/pandas-dev/pandas/pulls/26733
2019-06-08T13:49:08Z
2019-06-08T14:31:50Z
2019-06-08T14:31:50Z
2019-06-08T14:36:08Z
Remove isort dep
diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml index e55a4fbdf3fa9..6643f804eb6f7 100644 --- a/ci/deps/azure-35-compat.yaml +++ b/ci/deps/azure-35-compat.yaml @@ -22,7 +22,6 @@ dependencies: - hypothesis>=3.58.0 - pytest-xdist - pytest-mock - - isort - pip - pip: # for pyt...
#LondonPythonSprints - [x] closes #26661 - [x] tests added / passed - [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff cc @datapythonista
https://api.github.com/repos/pandas-dev/pandas/pulls/26732
2019-06-08T11:21:01Z
2019-06-08T19:52:20Z
2019-06-08T19:52:20Z
2019-12-25T20:36:04Z
TST: troubleshot numexpr test
diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py index b99f0336fa4c5..34ad981893e85 100644 --- a/pandas/tests/io/test_excel.py +++ b/pandas/tests/io/test_excel.py @@ -32,18 +32,17 @@ def frame(float_frame): return float_frame[:10] -@pytest.fixture -def frame2(float_frame): - float_...
seemingly unrelated test failure to changes in PR #26662 https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=12414 ``` _______ TestAlignment.test_basic_series_frame_alignment[numexpr-python] ________ [gw0] linux -- Python 3.6.8 /home/vsts/miniconda3/envs/pandas-dev/bin/python self = <pandas.tests....
https://api.github.com/repos/pandas-dev/pandas/pulls/26729
2019-06-08T06:56:51Z
2019-06-08T08:35:22Z
null
2019-08-24T12:01:35Z
CI: pin to sphinx 2.0.1
diff --git a/ci/deps/travis-36-doc.yaml b/ci/deps/travis-36-doc.yaml index 9d6cbd82fdc05..8f7556e6b47ad 100644 --- a/ci/deps/travis-36-doc.yaml +++ b/ci/deps/travis-36-doc.yaml @@ -33,7 +33,8 @@ dependencies: - pytz - scipy - seaborn - - sphinx + # recursion error with sphinx 2.1.0. https://github.com/pandas...
xref https://github.com/pandas-dev/pandas/issues/26723 (leaving open, to unpin).
https://api.github.com/repos/pandas-dev/pandas/pulls/26727
2019-06-08T03:33:45Z
2019-06-08T04:24:53Z
2019-06-08T04:24:53Z
2019-06-08T04:24:56Z
Fix broken np_dev CI
diff --git a/pandas/tests/arithmetic/test_timedelta64.py b/pandas/tests/arithmetic/test_timedelta64.py index 56f47324967a1..ead9876e7c2a8 100644 --- a/pandas/tests/arithmetic/test_timedelta64.py +++ b/pandas/tests/arithmetic/test_timedelta64.py @@ -1537,7 +1537,8 @@ def test_td64arr_div_nat_invalid(self, box_with_array...
- [X] closes #26725 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26726
2019-06-08T00:46:21Z
2019-06-08T02:05:35Z
2019-06-08T02:05:35Z
2019-06-08T02:13:13Z
Set index with prepend
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 48dfa57c47bf6..826f105eeca1e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4065,8 +4065,8 @@ def shift(self, periods=1, freq=None, axis=0, fill_value=None): return super().shift(periods=periods, freq=freq, axis=axis, ...
Associated issue: https://github.com/pandas-dev/pandas/issues/26742 This PR adds the ability to _prepend_ indices to existing ones using `.set_index()`, in the same vein as the `append` argument. This avoid having to do the awkward alternatives: - `.reset_index().set_index(...)` - `.set_index(append=True).swapl...
https://api.github.com/repos/pandas-dev/pandas/pulls/26724
2019-06-07T23:55:57Z
2019-06-10T12:57:08Z
null
2019-06-10T12:57:08Z
REF: Refactor signature of RangeIndex._simple_new
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index fd47ca14dc788..64175c9d9892c 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -525,7 +525,7 @@ Performance Improvements - Improved performance of :meth:`Series.searchsorted`. The speedup is especia...
This PR refactors ``RangeIndex._simple_new``, so its signature is the same as ``Index._simple_new``. This will help typing later on, as currently mypy complains about the different signatures. In short a ``_simple_new`` now expects a ``range`` as its input. As a ``range`` is immutable, the code is easy to reason about....
https://api.github.com/repos/pandas-dev/pandas/pulls/26722
2019-06-07T22:25:36Z
2019-06-14T12:42:00Z
2019-06-14T12:42:00Z
2019-06-14T15:54:47Z
PERF: building MultiIndex with categorical levels
diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py index ca2bdc45dc2cb..c979ba6d53a08 100644 --- a/asv_bench/benchmarks/multiindex_object.py +++ b/asv_bench/benchmarks/multiindex_object.py @@ -2,7 +2,7 @@ import numpy as np import pandas.util.testing as tm -from panda...
- [x] closes #22044 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ```python df = pd.DataFrame({ 'a': np.arange(1_000_000, dtype=np.int32), 'b': np.arange(1_000_000, dtype=np.int64), 'c': np.arange(1_000_000, dtype=float), }).a...
https://api.github.com/repos/pandas-dev/pandas/pulls/26721
2019-06-07T22:15:10Z
2019-06-08T21:04:28Z
2019-06-08T21:04:28Z
2019-06-08T21:22:31Z
WIP: debug CI
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index ee46da9f52eab..3c0c5c34f5e4f 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -45,7 +45,7 @@ do NUM_JOBS=2 fi - PYTEST_CMD="pytest -m \"$TYPE_PATTERN$PATTERN\" -n $NUM_JOBS -s --strict --durations=10 --junitxml=test-data-$TYPE.xml $TEST_ARGS $...
closes #26716
https://api.github.com/repos/pandas-dev/pandas/pulls/26718
2019-06-07T21:21:50Z
2019-06-07T21:33:35Z
null
2019-06-07T21:33:39Z
BUG: Check for duplicate names columns and index in crosstab
diff --git a/pandas/core/reshape/pivot.py b/pandas/core/reshape/pivot.py index 6374dd1b463f3..75f8691320d0c 100644 --- a/pandas/core/reshape/pivot.py +++ b/pandas/core/reshape/pivot.py @@ -496,6 +496,17 @@ def crosstab(index, columns, values=None, rownames=None, colnames=None, common_idx = _get_objs_combined_axis(...
- [ ] closes #22529 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26717
2019-06-07T20:45:19Z
2019-08-28T16:14:39Z
null
2019-09-17T02:11:42Z
TST: skip assert for mpl 3.1+
diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml index 606b5bac8306d..afd9877afdf84 100644 --- a/ci/deps/travis-36-cov.yaml +++ b/ci/deps/travis-36-cov.yaml @@ -20,7 +20,8 @@ dependencies: # https://github.com/pydata/pandas-gbq/issues/271 - google-cloud-bigquery<=1.11 - psycopg2 - - pyarro...
Closes #26714 xref https://github.com/pandas-dev/pandas/issues/26716
https://api.github.com/repos/pandas-dev/pandas/pulls/26715
2019-06-07T20:36:34Z
2019-06-08T04:22:44Z
2019-06-08T04:22:44Z
2019-06-08T04:22:48Z
ASV: remove large IntervalIndex benchmark
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index de72f08515246..d0aced87c54c6 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -188,7 +188,7 @@ def time_get_loc(self): class IntervalIndexMethod: # GH 24813 - params =...
Closes #26709 The `setup` for that `N` took 30s+ on my machine. I doubt that was intended.
https://api.github.com/repos/pandas-dev/pandas/pulls/26712
2019-06-07T19:17:00Z
2019-06-07T20:34:08Z
2019-06-07T20:34:08Z
2019-06-07T20:37:18Z
PERF: perform a unique intersection with IntervalIndex if at least one side is unique
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index d0aced87c54c6..1eedc1a2b3021 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -196,6 +196,9 @@ def setup(self, N): self.intv = IntervalIndex.from_arrays(left, right) ...
Resolves https://github.com/pandas-dev/pandas/issues/26709 ``` before after ratio [3ff4f38f] [30bd5369] <datetime_iter~1> - 749±100μs 365±70μs 0.49 index_object.IntervalIndexMethod.time_intersection_duplicate(1000) - 59.6±3ms 8.04±0.2ms ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26711
2019-06-07T19:08:56Z
2019-06-10T22:20:53Z
2019-06-10T22:20:53Z
2019-07-20T09:39:54Z
set eval(engine="python") for python2
diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py index b768ed6df303e..1a4c12af04c4e 100644 --- a/pandas/core/computation/eval.py +++ b/pandas/core/computation/eval.py @@ -37,8 +37,12 @@ def _check_engine(engine): from pandas.core.computation.check import _NUMEXPR_INSTALLED if e...
see issue https://github.com/pandas-dev/pandas/issues/26549 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26708
2019-06-07T14:37:59Z
2019-06-08T21:52:53Z
null
2019-06-08T21:52:54Z
BUG: TDI/PI comparison with zero-dim array
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 1890d7b31bed2..5150532c8ce7f 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -539,6 +539,7 @@ Datetimelike - Bug in adding :class:`DateOffset` with nonzero month to :class:`DatetimeIndex` would ra...
- [x] closes #26689 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The long-term solution to problems of this kind will be #23853.
https://api.github.com/repos/pandas-dev/pandas/pulls/26707
2019-06-07T14:30:53Z
2019-06-07T15:14:35Z
2019-06-07T15:14:35Z
2019-06-07T16:03:10Z
Convert Sparse ASVs
diff --git a/asv_bench/benchmarks/sparse.py b/asv_bench/benchmarks/sparse.py index ca4469e64c335..281e81f21ba9c 100644 --- a/asv_bench/benchmarks/sparse.py +++ b/asv_bench/benchmarks/sparse.py @@ -1,9 +1,8 @@ -import itertools - import numpy as np import scipy.sparse -from pandas import (SparseSeries, SparseDataFrame...
https://api.github.com/repos/pandas-dev/pandas/pulls/26704
2019-06-07T11:28:42Z
2019-06-16T14:32:13Z
2019-06-16T14:32:13Z
2019-06-16T14:32:18Z
Renaming asv setting build_cache_size
diff --git a/asv_bench/asv.conf.json b/asv_bench/asv.conf.json index fa098e2455683..571ede1a21134 100644 --- a/asv_bench/asv.conf.json +++ b/asv_bench/asv.conf.json @@ -107,7 +107,7 @@ // `asv` will cache wheels of the recent builds in each // environment, making them faster to install next time. This is ...
The CI job that is checking that the benchmarks don't break is reporting that an `asv` setting has been renamed. I think we've got a server where we run the benchmarks, not sure if we replicate the environment there at every run from `environment.yml`. Otherwise I guess we should do it manually before merging this. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26703
2019-06-07T10:44:44Z
2019-06-10T22:28:16Z
2019-06-10T22:28:16Z
2019-06-10T22:28:20Z
PERF: restore DatetimeIndex.__iter__ performance by using non-EA implementation
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 5150532c8ce7f..a21e9773243da 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -513,6 +513,7 @@ Performance Improvements - Improved performance of :meth:`IntervalIndex.intersection` (:issue:`24813`)...
The `timeseries.TimeIteration.time_iter` benchmark shows a `6.4x` regression here: https://qwhelan.github.io/pandas/#timeseries.Iteration.time_iter?p-time_index=%3Cfunction%20date_range%3E&commits=08395af4-fc24c2cd . An iteration of `asv find` blames https://github.com/pandas-dev/pandas/commit/1fc76b80#diff-26a6d2ca7ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/26702
2019-06-07T08:46:53Z
2019-06-07T19:01:02Z
2019-06-07T19:01:02Z
2019-06-07T19:35:04Z
DOC: Not running clipboard examples in the doc
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 4aacb6fa1e278..9d272ccc34893 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -3249,11 +3249,12 @@ And then import the data directly to a ``DataFrame`` by calling: .. code-block:: python - clipdf = pd.re...
- [X] xref #26648, #26103 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry The clipboard example in the docs is failing when building in azure (#26648), and had to be previously fixed in travis (#26103). I don't think there is any need to run tho...
https://api.github.com/repos/pandas-dev/pandas/pulls/26700
2019-06-07T07:56:12Z
2019-06-08T23:07:30Z
null
2019-06-09T12:07:27Z
CI: Add print skipped tests into azure step
diff --git a/.travis.yml b/.travis.yml index ce8817133a477..fd59544d9b3c6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -103,10 +103,5 @@ script: after_script: - echo "after_script start" - source activate pandas-dev && pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd - - if [ -e test-da...
- [x] closes #26695 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26698
2019-06-07T01:44:49Z
2019-06-10T15:48:05Z
2019-06-10T15:48:04Z
2019-06-10T23:09:33Z
PERF: use python int in RangeIndex.get_loc
diff --git a/pandas/core/indexes/range.py b/pandas/core/indexes/range.py index 14ebc3c7e8e2a..7daeb9b644a9b 100644 --- a/pandas/core/indexes/range.py +++ b/pandas/core/indexes/range.py @@ -346,8 +346,9 @@ def __contains__(self, key: Union[int, np.integer]) -> bool: @Appender(_index_shared_docs['get_loc']) def...
Follow-up to #26565. I didn't ensure a python int in ``RangeIndex.get_loc`` in the original PR, causing a slow performance when using a key with a wrong type: ```python In [1]: rng = pd.RangeIndex(1_000_000) In [2]: %timeit rng.get_loc(np.int64(900_000)) 156 ms ± 1.03 ms per loop # master 478 ns ± 6.3 ns per l...
https://api.github.com/repos/pandas-dev/pandas/pulls/26697
2019-06-06T21:18:16Z
2019-06-07T11:35:18Z
2019-06-07T11:35:18Z
2019-10-15T20:09:12Z
Add Sponsors Button to GitHub Repo
diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000000000..6912d15abf3d6 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: https://pandas.pydata.org/donate.html
While discussion on other support avenues are still ongoing, I think it would still be beneficial to add the a Sponsors Button to the repo that points to https://pandas.pydata.org/donate.html Note: https://www.flipcause.com/secure/cause_pdetails/MzA3OA== is the direct page to donate but this link doesn't appear as "...
https://api.github.com/repos/pandas-dev/pandas/pulls/26694
2019-06-06T18:47:36Z
2019-06-07T17:01:59Z
2019-06-07T17:01:59Z
2019-06-07T17:24:15Z
DEPS: Using cpplint from conda-forge
diff --git a/environment.yml b/environment.yml index e5d62d53d86a5..897fd34ebb803 100644 --- a/environment.yml +++ b/environment.yml @@ -16,14 +16,13 @@ dependencies: - cython>=0.28.2 # code checks + - cpplint - flake8 - flake8-comprehensions # used by flake8, linting of unnecessary comprehensions - ...
Follow up of #26691. `cpplint` was installed from pip, but it's now available in conda-forge. CC: @TomAugspurger
https://api.github.com/repos/pandas-dev/pandas/pulls/26693
2019-06-06T15:52:05Z
2019-06-07T11:29:24Z
2019-06-07T11:29:24Z
2019-06-07T11:29:27Z
DEPS: Grouping deps and adding information to environment.yml
diff --git a/environment.yml b/environment.yml index 91ea26eef4b61..e5d62d53d86a5 100644 --- a/environment.yml +++ b/environment.yml @@ -9,59 +9,73 @@ dependencies: - python-dateutil>=2.5.0 - pytz - # development + # benchmarks - asv + + # building - cython>=0.28.2 + + # code checks - flake8 - - f...
- [X] closes #26659 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I didn't add or remove any dependency here. I think it makes more sense to keep exactly the same here that the diff is not so clear, and make changes in a follow up PR if needed...
https://api.github.com/repos/pandas-dev/pandas/pulls/26691
2019-06-06T14:19:50Z
2019-06-06T15:46:22Z
2019-06-06T15:46:22Z
2019-06-07T07:42:20Z
Defer Series.str.get_dummies to pandas.get_dummies
diff --git a/pandas/core/strings.py b/pandas/core/strings.py index bd756491abd2f..79d940182912a 100644 --- a/pandas/core/strings.py +++ b/pandas/core/strings.py @@ -999,23 +999,21 @@ def str_get_dummies(arr, sep='|'): 1 0 0 0 2 1 0 1 """ - arr = arr.fillna('') - try: - arr = sep + arr ...
- [x] closes #19618 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26686
2019-06-06T08:59:59Z
2019-09-08T16:41:12Z
null
2019-12-26T15:13:10Z
ERR: include original error message for missing required dependencies
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index f61c8bfbd782e..7d123697d3d20 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -96,7 +96,8 @@ Other Enhancements - :meth:`DataFrame.query` and :meth:`DataFrame.eval` now supports quoting column name...
closes #23868 Resubmit of PR #26665, which was merged in a bit too eagerly! Change to test hopefully avoids recursion, although like others, it doesn't reproduce locally for me.
https://api.github.com/repos/pandas-dev/pandas/pulls/26685
2019-06-06T07:42:15Z
2019-06-11T08:27:05Z
2019-06-11T08:27:05Z
2019-06-11T08:27:06Z
DEPR: Deprecate Series/Dataframe.to_dense/to_sparse
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 2b1a61186dca6..54462728dc38a 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -503,6 +503,7 @@ Other Deprecations - The :meth:`Series.ftype`, :meth:`Series.ftypes` and :meth:`DataFrame.ftypes` meth...
- [x] closes #26557 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] add whatsnew entry - [x] add tests Marks the methods mentioned in #26557 as deprecated, with proper messages.
https://api.github.com/repos/pandas-dev/pandas/pulls/26684
2019-06-06T03:49:53Z
2019-06-19T00:41:04Z
2019-06-19T00:41:03Z
2019-06-19T00:41:11Z
DOC: Fixed warning about convert_objects in doc build
diff --git a/doc/example.feather b/doc/example.feather new file mode 100644 index 0000000000000..38dbf087a1590 Binary files /dev/null and b/doc/example.feather differ diff --git a/doc/source/whatsnew/v0.11.0.rst b/doc/source/whatsnew/v0.11.0.rst index c919698d15689..3aca85e846baa 100644 --- a/doc/source/whatsnew/v0.11....
`convert_objects` doesn't exist anymore, and the example in the release notes when it was added is failing and generating a warning in the doc build: ``` Exception in /home/travis/build/pandas-dev/pandas/doc/source/whatsnew/v0.11.0.rst at block ending on line None Specify :okexcept: as an option in the ipython:: blo...
https://api.github.com/repos/pandas-dev/pandas/pulls/26679
2019-06-05T19:55:46Z
2019-06-14T13:58:17Z
null
2019-07-31T11:49:59Z
TST: avoid matplotlib warnings in tests
diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py index f42f86540e46b..9a2b87558b869 100644 --- a/pandas/tests/plotting/test_frame.py +++ b/pandas/tests/plotting/test_frame.py @@ -800,7 +800,10 @@ def test_line_area_stacked(self): with pytest.raises(ValueError): ...
In master we get the following warnings in this file: ``` $ pytest pandas/tests/plotting/test_frame.py --skip-slow [...] pandas/tests/plotting/test_frame.py::TestDataFramePlots::test_mpl2_color_cycle_str pandas/pandas/plotting/_style.py:60: MatplotlibDeprecationWarning: Support for uppercase single-letter co...
https://api.github.com/repos/pandas-dev/pandas/pulls/26678
2019-06-05T19:44:38Z
2019-06-07T19:45:00Z
2019-06-07T19:45:00Z
2019-06-07T19:58:18Z
BUG: .isin on datetimelike indexes do not validate input of level parameter
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 3096a13ac0767..df22a21196dab 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -540,6 +540,7 @@ Datetimelike - Bug in :func:`to_datetime` which does not replace the invalid argument with ``NaT`` whe...
#LondonPythonSprints - [x] closes #26675 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26677
2019-06-05T19:41:28Z
2019-06-09T21:59:57Z
2019-06-09T21:59:56Z
2019-06-10T07:57:50Z
Fix deletion of temp variables in main namespace (left-over from GH26665)
diff --git a/pandas/__init__.py b/pandas/__init__.py index 11ea3047bb62a..eba67884d5037 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -10,12 +10,13 @@ try: __import__(dependency) except ImportError as e: - missing_dependencies.append((dependency, e)) + missing_dependencies...
Fixing my merge of https://github.com/pandas-dev/pandas/pull/26665
https://api.github.com/repos/pandas-dev/pandas/pulls/26674
2019-06-05T19:32:26Z
2019-06-05T20:34:24Z
null
2019-06-05T20:34:25Z
DO NOT MERGE Marc/docs azure
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 85325c52e7e6d..b4eea66ce302a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -116,3 +116,65 @@ jobs: fi displayName: 'Running benchmarks' condition: true + +- job: 'Docs' + pool: + vmImage: ubuntu-16.04 + timeoutInMinutes: ...
#LondonPythonSprints - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26672
2019-06-05T19:11:20Z
2019-06-05T23:24:33Z
null
2019-06-05T23:24:38Z
WIP: isort init files
diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml index e55a4fbdf3fa9..6643f804eb6f7 100644 --- a/ci/deps/azure-35-compat.yaml +++ b/ci/deps/azure-35-compat.yaml @@ -22,7 +22,6 @@ dependencies: - hypothesis>=3.58.0 - pytest-xdist - pytest-mock - - isort - pip - pip: # for pyt...
#LondonPythonSprints - [x] closes #26661 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/26671
2019-06-05T18:50:41Z
2019-06-08T13:30:35Z
null
2019-06-08T13:30:35Z
WIP: environment.yml encounters import error with pyarrow
#LondonPythonSprints - [X] closes #26656 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This issue seems to be ubiquitous, and below link suggest solution: https://github.com/apache/arrow/issues/2213
https://api.github.com/repos/pandas-dev/pandas/pulls/26670
2019-06-05T18:27:50Z
2019-06-12T21:10:20Z
null
2019-06-13T13:29:49Z
Filter warning in sparse repr
diff --git a/pandas/core/sparse/frame.py b/pandas/core/sparse/frame.py index 0320da6d9a48d..67ecbcbea67f9 100644 --- a/pandas/core/sparse/frame.py +++ b/pandas/core/sparse/frame.py @@ -242,6 +242,11 @@ def _init_spmatrix(self, data, index, columns, dtype=None, def to_coo(self): return SparseFrameAccessor(...
xref https://github.com/pandas-dev/pandas/issues/26555
https://api.github.com/repos/pandas-dev/pandas/pulls/26669
2019-06-05T17:26:42Z
2019-06-05T21:48:47Z
2019-06-05T21:48:47Z
2019-06-05T21:48:53Z
Deprecate Series/Dataframe.to_dense/to_sparse
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5957b23535350..1b3b0df1f2c29 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1887,6 +1887,8 @@ def from_csv(cls, path, header=0, sep=',', index_col=0, parse_dates=True, def to_sparse(self, fill_value=None, kind='block'): """...
- [x] closes #26557 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Marks the methods mentioned in #26557 as deprecated, with proper messages.
https://api.github.com/repos/pandas-dev/pandas/pulls/26668
2019-06-05T15:54:16Z
2019-06-05T16:50:50Z
null
2019-06-07T06:55:11Z
ERR: include original error message for missing required dependencies
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 4018418294963..8fd9f07442810 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -82,7 +82,7 @@ Other Enhancements - :meth:`DataFrame.query` and :meth:`DataFrame.eval` now supports quoting column name...
- [x] closes #23868 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Modifies the try-catch for imports of required dependencies (`numpy`, `pytz`, and `dateutil`) to record any exceptions raised, and then to include the message from these when r...
https://api.github.com/repos/pandas-dev/pandas/pulls/26665
2019-06-05T14:07:17Z
2019-06-05T18:44:39Z
2019-06-05T18:44:39Z
2019-06-05T20:33:37Z
Excel Tests Continued Fixture Cleanup
diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py index b99f0336fa4c5..6860afa710c4a 100644 --- a/pandas/tests/io/test_excel.py +++ b/pandas/tests/io/test_excel.py @@ -32,18 +32,16 @@ def frame(float_frame): return float_frame[:10] -@pytest.fixture -def frame2(float_frame): - float_...
Follow up to #26579 Removing the frame2 fixture which is sparsely used. I've also removed inheritance of `ReadingTestsBase` and made that it's own discoverable class. Previously these tests were only being generated when `TestXlrdReader` was being run which tightly couples reading with xlrd. The goal here in sub...
https://api.github.com/repos/pandas-dev/pandas/pulls/26662
2019-06-05T13:49:22Z
2019-06-08T16:15:58Z
2019-06-08T16:15:58Z
2019-06-08T16:16:13Z
DEPS: Adding missing doc dependencies to environment.yml
diff --git a/environment.yml b/environment.yml index cf17dc1281ec9..91ea26eef4b61 100644 --- a/environment.yml +++ b/environment.yml @@ -17,10 +17,17 @@ dependencies: - flake8-rst>=0.6.0,<=0.7.0 - gitpython - hypothesis>=3.82 + - ipywidgets - isort - moto - mypy + - nbconvert>=5.4.1 + - nbformat + ...
In #26648 we detected that `environment.yml` didn't contain some of the dependencies required to build the documentation. `environment.yml` is what we use to build the documentation locally. Adding them here. CC: @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/26657
2019-06-05T11:13:22Z
2019-06-05T12:46:38Z
2019-06-05T12:46:38Z
2019-06-05T13:36:09Z
Remove redundant check arr_or_dtype is None
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index b5cd73a81962b..8e67ef1c14cdf 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -1902,8 +1902,6 @@ def _is_dtype_type(arr_or_dtype, condition): if issubclass(arr_or_dtype, ExtensionDtype): a...
- [ X ] tests passed - [ X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Checking whether `if arr_or_dtype is None` is done in the beginning of the function so the following check is redundant and can be safely removed. This issue (among a few others) were flagged up by LGTM.com website: https...
https://api.github.com/repos/pandas-dev/pandas/pulls/26655
2019-06-05T09:35:43Z
2019-06-05T21:37:55Z
2019-06-05T21:37:55Z
2019-06-05T21:53:15Z
DEPR: Deprecate NDFrame.swapaxes
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 4018418294963..f68ab78f78bca 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -478,6 +478,8 @@ Other Deprecations - The :meth:`DataFrame.compound` and :meth:`Series.compound` methods are deprecated...
- [x] xref #18262 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``.swapaxes`` are not needed, now that ``Panel`` is being removed.
https://api.github.com/repos/pandas-dev/pandas/pulls/26654
2019-06-05T09:16:18Z
2019-06-05T23:47:57Z
null
2019-06-05T23:47:57Z
Update Accessors URL for PdVega package.
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index e232bd2157611..b1a5430752558 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -363,4 +363,5 @@ Library Accessor Classes ============== ========== ========================= .. _cyberpandas: https://cyberpandas.read...
See altair-viz/pdvega@7476a8a26b for details.
https://api.github.com/repos/pandas-dev/pandas/pulls/26653
2019-06-05T06:34:50Z
2019-06-05T11:53:41Z
2019-06-05T11:53:40Z
2019-06-05T11:53:41Z
Allow operator overloading for custom classes to return custom objects
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 86a255321f827..07c47880bec27 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -1667,6 +1667,11 @@ def safe_na_op(lvalues, rvalues): raise def wrapper(left, right): + if hasattr(right, '__pandas_ufunc__'): + resul...
Uses a similar convention as numpy's ufunc overriding mechanism (https://docs.scipy.org/doc/numpy-1.13.0/neps/ufunc-overrides.html) to fix #22255 - [x] closes #22255 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26652
2019-06-05T02:50:15Z
2019-07-11T16:11:57Z
null
2019-07-11T16:11:58Z
BUG: avoid overflow in Bday generate_range, closes #24252
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index e6bc422b52e89..56095ed014c4b 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -600,6 +600,7 @@ Datetimelike - Bug in :meth:`isin` for datetimelike indexes; :class:`DatetimeIndex`, :class:`Timedelta...
- [x] closes #24252 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26651
2019-06-04T21:05:19Z
2019-06-21T02:02:00Z
2019-06-21T02:02:00Z
2019-06-21T02:13:48Z
CI/DOC: Building the documentation with azure-pipelines
diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 85325c52e7e6d..b40d46bdebe02 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -24,7 +24,6 @@ jobs: # XXX next command should avoid redefining the path in every step, but # made the process crash as it couldn't find deactivate ...
- [X] xref #22766, #26574 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Looks like the problem in #26591 was that the `HostName` input of the azure task that installs the key, is not the host name, but the `know_hosts` line for the host name w...
https://api.github.com/repos/pandas-dev/pandas/pulls/26648
2019-06-04T16:29:15Z
2019-06-13T08:54:38Z
2019-06-13T08:54:38Z
2019-06-13T10:07:14Z
catch iterator input in io.json.json_normalize
diff --git a/pandas/io/json/normalize.py b/pandas/io/json/normalize.py index fa4e35b08bf6e..4c3312bd892ee 100644 --- a/pandas/io/json/normalize.py +++ b/pandas/io/json/normalize.py @@ -190,6 +190,10 @@ def _pull_field(js, spec): return result + if data is iter(data): + raise ValueError("Argument ...
The data argument in json_normalize should be an dictionary or list of dictionaries. If an iterator is passed, unexpected behavior can occur. In particular, this will result in the loss of the first row. See https://stackoverflow.com/questions/56362810/missing-first-document-when-loading-multi-document-yaml-file-in-pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/26646
2019-06-04T14:49:14Z
2019-06-04T17:24:14Z
null
2019-06-04T17:24:15Z
MyPy.ini Make Import Machinery Explicit
diff --git a/mypy.ini b/mypy.ini index eea6a3b551677..e3d4700fb823f 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,6 +1,217 @@ [mypy] -ignore_missing_imports=True -follow_imports=silent + +[mypy-blosc] +ignore_missing_imports = True + +[mypy-botocore.exceptions] +ignore_missing_imports = True + +[mypy-bottleneck] +ignore_...
Now that we've wound down a lot of the mistyped annotations in the code base the next logical review point is our import machinery. Previously we used `ignore_missing_imports` for everything in the code base, but this is suggested by Mypy only as a last resort: https://mypy.readthedocs.io/en/latest/running_mypy.html...
https://api.github.com/repos/pandas-dev/pandas/pulls/26645
2019-06-04T11:56:04Z
2019-07-02T15:09:04Z
null
2020-01-16T00:34:50Z
PLEASE IGNORE: Testing CI of plot refactoring #26414
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index eea1df35c7711..7de1c42246ad5 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -5,7 +5,7 @@ from pandas import to_datetime, date_range, Series, DataFrame, period_range from pandas.tseri...
This PR is not intended to be merged. The refactoring of plotting #26414 (splitting matplotlib specific code from the rest) is generating some weird errors in the CI that can't be reproduced locally. Will be pushing here some tests to try to understand what's going on.
https://api.github.com/repos/pandas-dev/pandas/pulls/26644
2019-06-04T11:02:17Z
2019-06-06T10:14:10Z
null
2019-06-06T10:14:10Z
DOC: Small whatsnew cleanups
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 0e8cd95084a8d..267e34efc946f 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -72,7 +72,7 @@ Other Enhancements - :meth:`DataFrame.pivot_table` now accepts an ``observed`` parameter which is passed...
Some small fixes I noticed reading over the whatsnew
https://api.github.com/repos/pandas-dev/pandas/pulls/26643
2019-06-04T00:27:07Z
2019-06-04T01:23:50Z
2019-06-04T01:23:50Z
2019-06-04T02:22:47Z
Remove NDFrame.select
diff --git a/doc/source/reference/frame.rst b/doc/source/reference/frame.rst index b4fb85c028b3e..7d5cd5d245631 100644 --- a/doc/source/reference/frame.rst +++ b/doc/source/reference/frame.rst @@ -204,7 +204,6 @@ Reindexing / Selection / Label manipulation DataFrame.rename_axis DataFrame.reset_index DataFra...
- [x] xref #17633 - [x] whatsnew entry Removes ``NDFrame.select``, that was deprecated in 0.21.
https://api.github.com/repos/pandas-dev/pandas/pulls/26641
2019-06-03T23:56:09Z
2019-06-04T23:59:02Z
2019-06-04T23:59:02Z
2019-06-05T09:06:32Z
DOC: Minor doc cleanup because of Panel removal
diff --git a/doc/source/getting_started/basics.rst b/doc/source/getting_started/basics.rst index 80e334054a986..5ec0094de0a91 100644 --- a/doc/source/getting_started/basics.rst +++ b/doc/source/getting_started/basics.rst @@ -1455,9 +1455,8 @@ Iteration The behavior of basic iteration over pandas objects depends on t...
"Other data structures..." is not usuful anymore, as ``Panel`` and ``Panel4D`` are have been removed for the code base, Plus other small stuff.
https://api.github.com/repos/pandas-dev/pandas/pulls/26638
2019-06-03T21:22:48Z
2019-06-03T22:17:41Z
2019-06-03T22:17:41Z
2019-06-03T22:17:46Z
CLN/API: clean-up of level argument of isin for indexes
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 8538687ca3e91..cd72e942144d4 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -4649,7 +4649,7 @@ def map(self, mapper, na_action=None): return Index(new_values, **attributes) - def isin(self, values...
The docstring for Index.isin() states: ``` level : str or int, optional Name or position of the index level to use (if the index is a `MultiIndex`). ``` But the keyword is accepted by the other indexes, validated and raises if the level parameter does not match the only level i...
https://api.github.com/repos/pandas-dev/pandas/pulls/26635
2019-06-03T16:55:43Z
2019-06-03T19:59:48Z
null
2019-06-09T17:51:30Z
#26545 Fix: same .tsv file, get different data-frame structure using engine 'python' and 'c'
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index f61c8bfbd782e..7d95c0122aae0 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -667,6 +667,7 @@ I/O - Bug in :func:`read_json` where date strings with ``Z`` were not converted to a UTC timezone (:is...
- [x] closes #26545 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry BugFix: When using `engine='python'`, columns were handled incorrectly if the first header had in the bom. Bug: ``` In [1]: import pandas as pd ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26634
2019-06-03T14:46:46Z
2019-06-12T18:40:48Z
2019-06-12T18:40:47Z
2019-06-13T18:08:53Z
[TST] Fix test_quantile_interpolation_int
diff --git a/pandas/tests/frame/test_quantile.py b/pandas/tests/frame/test_quantile.py index 9ccbd290923ba..097477c42d249 100644 --- a/pandas/tests/frame/test_quantile.py +++ b/pandas/tests/frame/test_quantile.py @@ -160,8 +160,7 @@ def test_quantile_interpolation_int(self, int_frame): assert q['A'] == np.perc...
Follow up https://github.com/pandas-dev/pandas/pull/26556#discussion_r289056741
https://api.github.com/repos/pandas-dev/pandas/pulls/26633
2019-06-03T14:38:45Z
2019-06-05T07:22:09Z
2019-06-05T07:22:09Z
2019-06-05T07:22:31Z
ENH: Added stride/offset aliases in to_datetime
diff --git a/pandas/_libs/tslibs/frequencies.pyx b/pandas/_libs/tslibs/frequencies.pyx index b29c841896072..bd1256647dda1 100644 --- a/pandas/_libs/tslibs/frequencies.pyx +++ b/pandas/_libs/tslibs/frequencies.pyx @@ -1,5 +1,3 @@ -import re - cimport numpy as cnp cnp.import_array() @@ -7,14 +5,6 @@ from pandas._libs...
Added support for stride and offset aliases to the 'unit' keyword in 'to_datetime'. Documented support for additional 'unit' intervals that were available. - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26631
2019-06-03T14:17:30Z
2019-10-06T23:45:16Z
null
2019-10-06T23:45:16Z