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 return_inverse to cython-unique; unify unique/factorize-code
diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in index a71023ed34f44..7f4c2a6410870 100644 --- a/pandas/_libs/hashtable_class_helper.pxi.in +++ b/pandas/_libs/hashtable_class_helper.pxi.in @@ -356,11 +356,12 @@ cdef class {{name}}HashTable(HashTable): @cython.b...
This is a continuation/split-off from #22986, where I tried to deduplicate the cython code for `unique`/`factorize`, and add a `return_inverse` kwarg to `unique` at the same time. This didn't fully work because there was a performance impact that was deemed unacceptable. I've opened cython/cython#2660 to figure out why...
https://api.github.com/repos/pandas-dev/pandas/pulls/23400
2018-10-28T17:55:35Z
2018-11-29T17:21:25Z
2018-11-29T17:21:25Z
2018-11-29T20:54:57Z
ENH: Use flake8 to check for PEP8 violations in doctests
diff --git a/scripts/tests/test_validate_docstrings.py b/scripts/tests/test_validate_docstrings.py index aa8a1500d9d3d..a3feee6552178 100644 --- a/scripts/tests/test_validate_docstrings.py +++ b/scripts/tests/test_validate_docstrings.py @@ -225,8 +225,9 @@ def good_imports(self): Examples -------- ...
- [x] tests added - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Improvement to PR #23381 regarding issue #23154 Enables `--doctests` flag, resulting in doctests being checked by flake8 Uses [flake8.api.legacy](http://flake8.pycqa.org/en/latest/user/python-api.html) to invoke the tests. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23399
2018-10-28T17:51:57Z
2018-11-04T18:42:47Z
2018-11-04T18:42:47Z
2018-11-04T19:29:50Z
ENH: to_list as alias for tolist
diff --git a/doc/source/api.rst b/doc/source/api.rst index 49c89a53e7b17..9586483d44bdf 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -323,7 +323,7 @@ Conversion Series.bool Series.to_period Series.to_timestamp - Series.tolist + Series.to_list Series.get_values @@ -1534,7 +1534,7 @...
- [x] closes #8826 - [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/23398
2018-10-28T13:28:52Z
2018-12-13T01:47:43Z
2018-12-13T01:47:43Z
2018-12-13T01:47:47Z
DEPR: Deprecate FrozenNDArray
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 89acd1a14a412..58c4a9ad4e13d 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -930,6 +930,7 @@ Deprecations - :func:`DatetimeIndex.shift` and :func:`PeriodIndex.shift` now accept ``periods`` argume...
Rationale can be found [here](https://github.com/pandas-dev/pandas/issues/9031#issuecomment-306658765). Closes #9031. xref #14565 (potentially can close this given how central `FrozenNDArray` was to discussion)
https://api.github.com/repos/pandas-dev/pandas/pulls/23396
2018-10-28T08:23:41Z
2018-10-30T12:29:32Z
2018-10-30T12:29:31Z
2018-10-30T16:52:04Z
DOC: Remove Series.sortlevel from api.rst
diff --git a/doc/source/api.rst b/doc/source/api.rst index 6e8eb83577c46..8f0f5fa7610eb 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -515,7 +515,6 @@ Reshaping, sorting Series.repeat Series.squeeze Series.view - Series.sortlevel Combining / joining / merging
https://travis-ci.org/pandas-dev/pandas/jobs/447288079#L1918 Was dropped in #15099 but accidentally added back in #18202. Follow-up to #23375.
https://api.github.com/repos/pandas-dev/pandas/pulls/23395
2018-10-28T07:46:12Z
2018-10-28T13:34:44Z
2018-10-28T13:34:44Z
2018-10-28T18:45:29Z
ENH: Add FrozenList.union and .difference
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index fecc336049a40..0a896bac0f2d7 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -125,6 +125,16 @@ We could naturally group by either the ``A`` or ``B`` columns, or both: grouped = df.groupby('A') grouped = df.groupby(['A', 'B'])...
Re-attempt of #15506. Hopefully no doc slowdowns on Travis this time 🙏 ! (xref #15559) Closes #15475. No deprecation of `__add__` and `__iadd__` because we rely on overloading `+` internally when operating on array-likes (in general) in some cases (e.g. [here](https://github.com/pandas-dev/pandas/blob/62a15fa...
https://api.github.com/repos/pandas-dev/pandas/pulls/23394
2018-10-28T06:47:55Z
2018-11-03T13:56:53Z
2018-11-03T13:56:52Z
2018-11-05T10:27:01Z
API: Disallow dtypes w/o frequency when casting
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 51c398518c153..3fcdb82e39964 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -942,6 +942,7 @@ Removal of prior version deprecations/changes - Removal of the previously deprecated module ``pandas.c...
Previously deprecated for `Series` constructor and the `.astype` method. Now being enforced. xref #15987.
https://api.github.com/repos/pandas-dev/pandas/pulls/23392
2018-10-28T00:46:00Z
2018-10-28T13:34:22Z
2018-10-28T13:34:22Z
2018-10-28T23:56:34Z
CLN: Remove some dtype methods from API
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 51c398518c153..863a29f68d3ee 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -954,6 +954,7 @@ Removal of prior version deprecations/changes - :meth:`DataFrame.sortlevel` and :meth:`Series.sortleve...
Removes the following from the public API: * `pandas.api.types.is_sequence` * `pandas.api.types.is_any_int_dtype` * `pandas.api.types.is_floating_dtype` xref #16163. xref #16189.
https://api.github.com/repos/pandas-dev/pandas/pulls/23390
2018-10-27T23:52:34Z
2018-10-28T13:41:18Z
2018-10-28T13:41:18Z
2018-10-28T18:47:20Z
style: fix import format at pandas/core/computation
diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py index 22c8b641cf974..f7f40a66af9c6 100644 --- a/pandas/core/computation/align.py +++ b/pandas/core/computation/align.py @@ -1,15 +1,16 @@ """Core eval alignment algorithms """ -import warnings from functools import partial, wraps -fro...
- [ ] xref #23334 - [x] passes `git diff master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23388
2018-10-27T23:27:24Z
2018-11-01T00:04:45Z
2018-11-01T00:04:45Z
2018-11-01T00:04:49Z
style: fix import format at pandas/core/reshape
diff --git a/pandas/core/reshape/api.py b/pandas/core/reshape/api.py index 7ac1c0cb52fe3..3c76eef809c7a 100644 --- a/pandas/core/reshape/api.py +++ b/pandas/core/reshape/api.py @@ -1,8 +1,8 @@ # flake8: noqa from pandas.core.reshape.concat import concat -from pandas.core.reshape.melt import melt, lreshape, wide_to_...
- [ ] xref #23334 - [x] passes `git diff master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23387
2018-10-27T23:16:56Z
2018-11-01T01:10:13Z
2018-11-01T01:10:13Z
2018-11-01T01:10:16Z
CLN: Cleanup toplevel namespace shims
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 51c398518c153..3841b3c924724 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -943,6 +943,7 @@ Removal of prior version deprecations/changes - Strings passed into :meth:`DataFrame.groupby` that ref...
Removes the following: * `pandas.types` * `pandas.computation` * `pandas.util.decorators` xref #16157. xref #16250.
https://api.github.com/repos/pandas-dev/pandas/pulls/23386
2018-10-27T23:05:57Z
2018-10-28T13:40:23Z
2018-10-28T13:40:23Z
2018-10-28T18:46:06Z
DOC: Update DateOffset intro in timeseries.rst
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index cc377f45c4b8d..7bb00f9b9aa7d 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -4,7 +4,7 @@ .. ipython:: python :suppress: - from datetime import datetime, timedelta, time + import datetime import numpy as np...
Updated `timeseries.rst` introduction to DateOffsets * Explain relationship with `Timedelta` * Clarify explanation of rollforward/back * Bring all the offsets and their aliases to the front Misc fixes: * Period dtypes are preserved in Series & DataFrames * Rendering for timezone nonexistent examples
https://api.github.com/repos/pandas-dev/pandas/pulls/23385
2018-10-27T22:52:27Z
2018-12-01T23:37:34Z
2018-12-01T23:37:34Z
2018-12-02T02:09:02Z
ENH: Add Styler.pipe() method (#23229)
diff --git a/doc/source/api.rst b/doc/source/api.rst index 81bb420c47a99..415a8dfa029c4 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -2482,6 +2482,7 @@ Style Application Styler.set_properties Styler.set_uuid Styler.clear + Styler.pipe Builtin Styles ~~~~~~~~~~~~~~ diff --git a/doc/sourc...
Added `Styler.pipe()` method. This allows users to easily apply and compose functions that operate on Styler objects, just like the `DataFrame.pipe()` method does for dataframes. - [x] closes #23229 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew ent...
https://api.github.com/repos/pandas-dev/pandas/pulls/23384
2018-10-27T20:52:18Z
2018-11-28T14:48:33Z
2018-11-28T14:48:33Z
2018-11-28T14:48:33Z
Integrate flake8_rst into ./ci/code_check.sh
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 330901ba56fbd..c4b483a794c21 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -44,6 +44,13 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then flake8 pandas/_libs --filename=*.pxi.in,*.pxd --select=E501,E302,E203,E111,E114,E221,E303,E231,E126,F403 ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Integrated [flake8-rst](https://github.com/kataev/flake8-rst) into `code_check.sh` in order to check code in .. code-blocks:: python directives * fixed all issues found with version v0.4.1 - F821 undefined name i...
https://api.github.com/repos/pandas-dev/pandas/pulls/23381
2018-10-27T11:16:45Z
2018-11-09T16:26:35Z
2018-11-09T16:26:35Z
2018-11-09T16:27:06Z
CLN: Cleanup top-level pandas namespace
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 768868d585721..9eb2350322a81 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -943,6 +943,7 @@ Removal of prior version deprecations/changes - :meth:`Index.repeat` and :meth:`MultiIndex.repeat` hav...
Drops the following: * `pd.pnow` * `pd.match` * `pd.groupby` * `pd.get_store` As well as: * `pd.Expr` * `pd.Term` xref #15538. xref #15940.
https://api.github.com/repos/pandas-dev/pandas/pulls/23380
2018-10-27T10:40:45Z
2018-10-28T02:40:51Z
2018-10-28T02:40:51Z
2018-10-28T05:20:52Z
CLN: Remove pd.parser, lib, and tslib
diff --git a/ci/travis-27.yaml b/ci/travis-27.yaml index f079ac309b97c..8955bea1fc010 100644 --- a/ci/travis-27.yaml +++ b/ci/travis-27.yaml @@ -35,7 +35,7 @@ dependencies: - s3fs - scipy - sqlalchemy=0.9.6 - - xarray=0.8.0 + - xarray=0.9.6 - xlrd=0.9.2 - xlsxwriter=0.5.2 - xlwt=0.7.5 diff --git a/d...
Title is self-explanatory. xref #15537.
https://api.github.com/repos/pandas-dev/pandas/pulls/23378
2018-10-27T09:25:47Z
2018-10-28T02:33:58Z
2018-10-28T02:33:58Z
2018-10-28T05:19:32Z
CLN: Remove the .consolidate method
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 768868d585721..14244fb2fa7b7 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -945,6 +945,7 @@ Removal of prior version deprecations/changes - Removed the ``pandas.formats.style`` shim for :class:`...
Title is self-explanatory. xref #15501.
https://api.github.com/repos/pandas-dev/pandas/pulls/23377
2018-10-27T08:39:00Z
2018-10-28T02:42:05Z
2018-10-28T02:42:05Z
2018-10-28T05:21:20Z
CLN: Remove pandas.tools module
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 51c398518c153..bf6a07f52e59d 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -950,6 +950,7 @@ Removal of prior version deprecations/changes - :meth:`TimedeltaIndex.searchsorted`, :meth:`DatetimeIn...
Title is self-explanatory. xref #15358. xref #16005.
https://api.github.com/repos/pandas-dev/pandas/pulls/23376
2018-10-27T07:46:12Z
2018-10-28T13:42:56Z
2018-10-28T13:42:56Z
2018-10-28T18:47:57Z
CLN: Drop .sortlevel method
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 768868d585721..89c9dc17f5311 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -947,6 +947,7 @@ Removal of prior version deprecations/changes - :meth:`TimedeltaIndex.searchsorted`, :meth:`DatetimeIn...
Title is self-explanatory. xref #15099.
https://api.github.com/repos/pandas-dev/pandas/pulls/23375
2018-10-27T06:39:46Z
2018-10-28T02:43:35Z
2018-10-28T02:43:35Z
2018-10-28T05:21:55Z
CLN: Rename raise_on_error to errors for .dtype
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 768868d585721..1056d200a7e63 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -948,6 +948,7 @@ Removal of prior version deprecations/changes - Removal of the previously deprecated module ``pandas.j...
Title is self-explanatory. xref #14967.
https://api.github.com/repos/pandas-dev/pandas/pulls/23374
2018-10-27T05:56:47Z
2018-10-28T02:44:16Z
2018-10-28T02:44:16Z
2018-10-28T05:22:24Z
STYLE: Specify bare exceptions in pandas/tests
diff --git a/.pep8speaks.yml b/.pep8speaks.yml index ae1c92832bb15..cbcb098c47125 100644 --- a/.pep8speaks.yml +++ b/.pep8speaks.yml @@ -13,7 +13,6 @@ pycodestyle: - W503, # line break before binary operator - W504, # line break after binary operator - E402, # module level import not at to...
- [x] closes #22872 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The empty `except` statements now capture specific exceptions. Following warnings are fixed: ``` pandas/tests/test_panel.py:338:13: E722 do not use bare 'except' pandas/tests/test_panel.py:344:13: E722 do not use bare 'ex...
https://api.github.com/repos/pandas-dev/pandas/pulls/23370
2018-10-27T02:32:16Z
2018-11-19T01:25:28Z
2018-11-19T01:25:28Z
2018-11-19T05:34:12Z
Fix import format at pandas/tests/io/parser directory
diff --git a/pandas/tests/io/parser/c_parser_only.py b/pandas/tests/io/parser/c_parser_only.py index 9dc7b070f889d..7769b62dc0206 100644 --- a/pandas/tests/io/parser/c_parser_only.py +++ b/pandas/tests/io/parser/c_parser_only.py @@ -11,14 +11,14 @@ import sys import tarfile -import pytest import numpy as np +impor...
- [x] partial #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Ran `isort --recursive pandas/tests/io/parser` and then checked imports using `isort --recursive --check-only pandas/tests/io/parser` This PR also exceeded 20 file limit (22 files with setup.cfg), but I think it's acceptabl...
https://api.github.com/repos/pandas-dev/pandas/pulls/23367
2018-10-26T20:01:30Z
2018-10-28T02:07:57Z
2018-10-28T02:07:57Z
2018-10-28T02:08:01Z
STY: proposed isort settings [ci skip] [skip ci] [ciskip] [skipci]
diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py index 08c961935a990..a63b3fb53625f 100644 --- a/pandas/core/arrays/sparse.py +++ b/pandas/core/arrays/sparse.py @@ -10,35 +10,35 @@ import numpy as np -import pandas._libs.sparse as splib -import pandas.core.algorithms as algos -import pandas...
(not sure which tag(s) skip the CI) I propose we change the isort settings to arrange within-pandas imports by dependency structure. i.e. - `pandas._libs`, `pandas.compat`, `pandas.util._*`, `pandas.errors` are for the most part not dependent on pandas.core, so get their own section(s) - `pandas.core.dtypes` f...
https://api.github.com/repos/pandas-dev/pandas/pulls/23366
2018-10-26T19:42:01Z
2018-10-29T12:09:38Z
2018-10-29T12:09:38Z
2018-10-30T22:48:13Z
Fix import format at pandas/tests/extension directory
diff --git a/pandas/tests/extension/arrow/bool.py b/pandas/tests/extension/arrow/bool.py index d595879e3cb7d..e6f997b01aad2 100644 --- a/pandas/tests/extension/arrow/bool.py +++ b/pandas/tests/extension/arrow/bool.py @@ -10,9 +10,10 @@ import numpy as np import pyarrow as pa + import pandas as pd from pandas.api....
- [x] partial #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` PR includes 21 files, but I think it's acceptable and unnecessary to divide it to two separate PRs.
https://api.github.com/repos/pandas-dev/pandas/pulls/23365
2018-10-26T19:39:17Z
2018-10-28T13:38:51Z
2018-10-28T13:38:51Z
2018-10-30T18:49:52Z
Isort contributing guide
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index 66d545a0de6e9..3ec505998fde0 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -612,6 +612,54 @@ Alternatively, you can install the ``grep`` and ``xargs`` commands via the `MinGW <http://www.mingw.org/>`__ toolchai...
- [x] follow up from #23096 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23364
2018-10-26T16:54:43Z
2018-11-04T15:30:44Z
2018-11-04T15:30:44Z
2018-11-04T15:30:47Z
COMPAT: update for latest flake8
diff --git a/pandas/core/groupby/__init__.py b/pandas/core/groupby/__init__.py index 6f90fd1cff7e6..9c15a5ebfe0f2 100644 --- a/pandas/core/groupby/__init__.py +++ b/pandas/core/groupby/__init__.py @@ -1,4 +1,4 @@ -from pandas.core.groupby.groupby import GroupBy # flake8: noqa -from pandas.core.groupby.generic import (...
https://api.github.com/repos/pandas-dev/pandas/pulls/23363
2018-10-26T15:10:45Z
2018-10-28T02:46:07Z
2018-10-28T02:46:07Z
2018-10-28T02:46:12Z
unpin openpyxl
diff --git a/ci/azure-36-locale_slow.yaml b/ci/azure-36-locale_slow.yaml index 14b23dd6f3e4c..7e40bd1a9979e 100644 --- a/ci/azure-36-locale_slow.yaml +++ b/ci/azure-36-locale_slow.yaml @@ -14,7 +14,7 @@ dependencies: - nomkl - numexpr - numpy - - openpyxl=2.5.5 + - openpyxl - psycopg2 - pymysql - py...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - Follow up from #22601. - Confirmed with openpyxl this bug was fixed in version 2.5.7 see [bitbucket issue here](https://bitbucket.org/openpyxl/openpyxl/issues/1093/newly-introduced-keyerror-problem-in) This was release 13th Sept -> https://...
https://api.github.com/repos/pandas-dev/pandas/pulls/23361
2018-10-26T14:02:04Z
2018-10-28T20:14:13Z
2018-10-28T20:14:13Z
2018-11-01T21:59:30Z
TST: Fix test assertion
diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py index 6ebe3cb7487ab..029a77acb121f 100644 --- a/pandas/tests/extension/base/setitem.py +++ b/pandas/tests/extension/base/setitem.py @@ -27,6 +27,7 @@ def test_setitem_sequence(self, data, box_in_series): @pytest.mark.param...
xref https://github.com/pandas-dev/pandas/pull/23304#discussion_r228458689 cc @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/23357
2018-10-26T11:14:58Z
2018-10-26T12:24:38Z
2018-10-26T12:24:38Z
2018-10-26T21:39:43Z
DOC: fixup whatsnew note for GH21394
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 51c398518c153..1b17b654e2130 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -201,7 +201,6 @@ Other Enhancements - :func:`~DataFrame.to_csv`, :func:`~Series.to_csv`, :func:`~DataFrame.to_json`, an...
xref https://github.com/pandas-dev/pandas/pull/21394 (also moved from enhancements to api changes)
https://api.github.com/repos/pandas-dev/pandas/pulls/23355
2018-10-26T08:34:33Z
2018-10-28T13:39:26Z
2018-10-28T13:39:26Z
2018-10-28T17:44:06Z
BUG: Fix IntervalTree handling of NaN
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 768868d585721..b6c9ef52c1abe 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1094,6 +1094,7 @@ Interval - Bug in the ``IntervalIndex`` repr where a trailing comma was missing after the list of in...
- [X] closes #23352 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry xref #23327 : As far as I can tell the only reason that PR is failing is because of tests raising a `RuntimeWarning` due to this bug.
https://api.github.com/repos/pandas-dev/pandas/pulls/23353
2018-10-26T04:37:12Z
2018-10-30T12:52:24Z
2018-10-30T12:52:24Z
2018-10-31T22:44:55Z
Fix import format pandas/tests/indexing
diff --git a/pandas/tests/indexing/common.py b/pandas/tests/indexing/common.py index 127548bdaf106..1fd9bf86ff6ee 100644 --- a/pandas/tests/indexing/common.py +++ b/pandas/tests/indexing/common.py @@ -2,15 +2,18 @@ import itertools from warnings import catch_warnings, filterwarnings -import pytest + import numpy a...
- [x] xref #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Ran `isort --recursive pandas` and then checked imports using `isort --recursive --check-only pandas` PR capped at 20 files, but 21 files changed because it includes setup.cfg which has also been changed.
https://api.github.com/repos/pandas-dev/pandas/pulls/23351
2018-10-26T01:53:26Z
2018-10-28T02:55:11Z
2018-10-28T02:55:11Z
2018-10-28T02:55:11Z
BUG: Handle Period in combine
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 56bf394729773..46c8126f65fec 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -6,7 +6,7 @@ import warnings from pandas._libs import tslib, lib, tslibs -from pandas._libs.tslibs import iNaT, OutOfBoundsDatetime +fro...
Followup to #23079 to unxfail a period test.
https://api.github.com/repos/pandas-dev/pandas/pulls/23350
2018-10-26T01:33:38Z
2018-10-26T12:24:03Z
2018-10-26T12:24:03Z
2018-10-26T12:24:03Z
API/TST: make hasnans always return python booleans
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 768868d585721..9a781eda0e397 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -910,6 +910,7 @@ Other API Changes has an improved ``KeyError`` message, and will not fail on duplicate column names ...
- [x] xref #23294 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ``Index.hasnans`` currently returns either a python or a numpy boolean, depending on circumstances. This PR ensures that only python booleans ae returned and makes the tests for h...
https://api.github.com/repos/pandas-dev/pandas/pulls/23349
2018-10-26T00:33:04Z
2018-10-27T15:47:26Z
2018-10-27T15:47:26Z
2018-10-27T15:54:05Z
Run Isort on tests/util single PR
diff --git a/pandas/tests/util/test_hashing.py b/pandas/tests/util/test_hashing.py index 403fed418cae2..49f8fa30ecb6a 100644 --- a/pandas/tests/util/test_hashing.py +++ b/pandas/tests/util/test_hashing.py @@ -1,13 +1,13 @@ -import pytest import datetime import numpy as np -import pandas as pd +import pytest -from...
- [x] partial #23334 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Run `isort -rc pandas/tests/util/`
https://api.github.com/repos/pandas-dev/pandas/pulls/23347
2018-10-25T23:30:59Z
2018-10-28T03:16:40Z
2018-10-28T03:16:40Z
2019-01-02T20:26:20Z
Run Isort on tests/arrays single PR
diff --git a/pandas/tests/arrays/categorical/test_algos.py b/pandas/tests/arrays/categorical/test_algos.py index d4a70e9a1ec2e..e7dc67c5d6a5b 100644 --- a/pandas/tests/arrays/categorical/test_algos.py +++ b/pandas/tests/arrays/categorical/test_algos.py @@ -1,5 +1,5 @@ -import pytest import numpy as np +import pytest ...
- [x] partial #23334 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Run `isort -rc pandas/tests/arrays/`
https://api.github.com/repos/pandas-dev/pandas/pulls/23346
2018-10-25T22:17:07Z
2018-10-28T03:09:21Z
2018-10-28T03:09:21Z
2019-01-02T20:26:19Z
BUG: Fix date_range overflow
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 70725a347c9d0..b8d63e03e3318 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1027,6 +1027,7 @@ Datetimelike - Bug in :class:`PeriodIndex` where adding or subtracting a :class:`timedelta` or :clas...
- [x] closes #14187 - [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/23345
2018-10-25T22:09:13Z
2018-10-28T03:14:14Z
2018-10-28T03:14:14Z
2018-10-28T05:12:34Z
Run Isort on tests/series single pr
diff --git a/pandas/tests/series/common.py b/pandas/tests/series/common.py index 0c25dcb29c3b2..ec7558e41ab40 100644 --- a/pandas/tests/series/common.py +++ b/pandas/tests/series/common.py @@ -1,6 +1,6 @@ -from pandas.util._decorators import cache_readonly -import pandas.util.testing as tm import pandas as pd +import ...
- [x] partial #23334 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Run `isort -rc pandas/tests/series/`
https://api.github.com/repos/pandas-dev/pandas/pulls/23344
2018-10-25T22:04:05Z
2018-10-28T03:06:31Z
2018-10-28T03:06:31Z
2019-01-02T20:26:23Z
Run Isort on tests/indexes P4/Final
diff --git a/pandas/tests/indexes/period/test_arithmetic.py b/pandas/tests/indexes/period/test_arithmetic.py index d9cbb3ea27d7b..5864bc0cefcbc 100644 --- a/pandas/tests/indexes/period/test_arithmetic.py +++ b/pandas/tests/indexes/period/test_arithmetic.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- -import pytest impo...
- [x] partial #23334 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Run `isort -rc pandas/tests/indexes/` PR is capped at 20 files. So this is not all the files modified from `pandas/tests/indexes/`. So this is Part Four ( last pr) of this directory `pandas/tests/...
https://api.github.com/repos/pandas-dev/pandas/pulls/23343
2018-10-25T21:48:11Z
2018-10-28T02:07:11Z
2018-10-28T02:07:11Z
2019-01-02T20:26:21Z
Fix+Test Timedelta.__mul__(nan)
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index b5b3abd01328c..41925139e41ae 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -1213,6 +1213,12 @@ class Timedelta(_Timedelta): return other.delta * self ret...
Specifically, `np.float64("NAN")` which in master gets caught by the `hasattr(other, "dtype")` branch and incorrectly returns `np.timedelta64("NaT", "ns")` instead of `NaT` - [ ] closes #xxxx - [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/23342
2018-10-25T21:46:23Z
2018-10-28T02:30:26Z
2018-10-28T02:30:26Z
2018-10-28T05:12:52Z
Partialy fix issue #23334 - isort pandas/core/groupby directory
diff --git a/pandas/core/groupby/base.py b/pandas/core/groupby/base.py index ac84971de08d8..9ef30b8fd021f 100644 --- a/pandas/core/groupby/base.py +++ b/pandas/core/groupby/base.py @@ -5,8 +5,9 @@ """ import types + +from pandas.core.dtypes.common import is_list_like, is_scalar from pandas.util._decorators import ...
The imports have been sorted with isort in the pandas/core/groupby directory. - [x] partially 23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23341
2018-10-25T21:45:48Z
2018-10-26T01:51:07Z
2018-10-26T01:51:07Z
2018-10-26T17:12:20Z
Run Isort on tests/indexes part three
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index e8eaca2b61dd7..bec969020559c 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -1,24 +1,21 @@ # -*- coding: utf-8 -*- +import numpy as np import pytest -from pandas import compat +import pandas as ...
- [x] partial #23334 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Run `isort -rc pandas/tests/indexes/` PR is capped at 20 files. So this is not all the files modified from `pandas/tests/indexes/`. So this is Part Three of this directory `pandas/tests/indexes/`. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23340
2018-10-25T21:42:09Z
2018-10-28T02:19:25Z
2018-10-28T02:19:25Z
2019-01-02T20:26:19Z
Fix import format tests/indexes/multi Part Two
diff --git a/pandas/tests/indexes/interval/test_astype.py b/pandas/tests/indexes/interval/test_astype.py index 6bbc938c346f7..4389a22641b72 100644 --- a/pandas/tests/indexes/interval/test_astype.py +++ b/pandas/tests/indexes/interval/test_astype.py @@ -1,17 +1,14 @@ from __future__ import division -import pytest im...
- [x] partial #23334 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Run `isort -rc pandas/tests/indexes/` PR is capped at 20 files. So this is not all the files modified from `pandas/tests/indexes/`. So this is Part Two of this directory `pandas/tests/indexes/`. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23339
2018-10-25T21:33:08Z
2018-10-28T02:23:46Z
2018-10-28T02:23:46Z
2019-01-02T20:26:22Z
DOC: Added MultiIndex Example for Series Min
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c1a53e1e97803..63d9b5265cdc7 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9905,16 +9905,16 @@ def _add_numeric_operations(cls): cls.any = _make_logical_function( cls, 'any', name, name2, axis_descr, _any_d...
Corollary to #23298 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23338
2018-10-25T21:27:04Z
2018-12-25T00:41:23Z
2018-12-25T00:41:23Z
2018-12-31T15:14:47Z
Partialy fix issue #23334 - isort pandas/core/dtypes directory
diff --git a/pandas/core/dtypes/api.py b/pandas/core/dtypes/api.py index 7bf3912b05b1d..76021705563bf 100644 --- a/pandas/core/dtypes/api.py +++ b/pandas/core/dtypes/api.py @@ -1,59 +1,14 @@ # flake8: noqa -from .common import (pandas_dtype, - is_dtype_equal, - is_extension_ty...
The imports have been sorted with isort in the pandas/core/dtypes directory. Moving onto sorting the pandas/core/groupby directory. - [x] partly #23334 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23336
2018-10-25T20:57:52Z
2018-10-31T13:04:50Z
2018-10-31T13:04:50Z
2018-10-31T13:04:54Z
CLN: isort imports - io dir
diff --git a/pandas/io/api.py b/pandas/io/api.py index f542a8176dce7..496a00126de87 100644 --- a/pandas/io/api.py +++ b/pandas/io/api.py @@ -4,20 +4,21 @@ # flake8: noqa -from pandas.io.parsers import read_csv, read_table, read_fwf from pandas.io.clipboards import read_clipboard from pandas.io.excel import Excel...
Signed-off-by: alimcmaster1 <alimcmaster1@gmail.com> Files in `pandas/io/*` ( 1 of 2) - [x] xref #23334 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23332
2018-10-25T16:49:28Z
2018-10-25T23:59:30Z
2018-10-25T23:59:30Z
2018-10-26T00:00:03Z
CLN: isort imports- util dir
diff --git a/pandas/_version.py b/pandas/_version.py index f4c8938c683da..036c927df45d3 100644 --- a/pandas/_version.py +++ b/pandas/_version.py @@ -12,6 +12,7 @@ import re import subprocess import sys + from pandas.compat import PY3 diff --git a/pandas/conftest.py b/pandas/conftest.py index b8ba347651ae6..6142...
Signed-off-by: alimcmaster1 <alimcmaster1@gmail.com> util directory/.py files in pandas directory. - [x] xref #23334 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23331
2018-10-25T16:46:52Z
2018-10-30T12:24:16Z
2018-10-30T12:24:16Z
2018-10-30T12:26:14Z
REF: SparseArray imports
diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py index 72527cfa5d12e..08c961935a990 100644 --- a/pandas/core/arrays/sparse.py +++ b/pandas/core/arrays/sparse.py @@ -2,57 +2,47 @@ SparseArray data structure """ from __future__ import division -# pylint: disable=E1101,E1103,W0231 -import re -...
arrays/sparse.py was doing an `import pandas as pd`, which is prone to cause circular imports. I've eliminated that import and updated the namespaces appropriately (NaT, isna, algos.unique / factorize). Also updated `setup.cfg` to check the import order in `arrays/sparse.py`.
https://api.github.com/repos/pandas-dev/pandas/pulls/23329
2018-10-25T15:33:49Z
2018-10-26T12:23:40Z
2018-10-26T12:23:40Z
2018-10-26T20:48:44Z
ENH: Implement IntervalIndex.is_overlapping
diff --git a/doc/source/api.rst b/doc/source/api.rst index 81bb420c47a99..bf86204fe0fef 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1671,6 +1671,7 @@ IntervalIndex Components IntervalIndex.length IntervalIndex.values IntervalIndex.is_non_overlapping_monotonic + IntervalIndex.is_overlappin...
- [X] closes #23309 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry This is needed in the `get_indexer` implementation for the new `IntervalIndex` behavior, as an overlapping `IntervalIndex` may return non-unique indices for a given query; seems...
https://api.github.com/repos/pandas-dev/pandas/pulls/23327
2018-10-25T07:18:13Z
2018-11-29T17:22:45Z
2018-11-29T17:22:45Z
2018-11-29T17:26:27Z
TST: Update sparse data generation
diff --git a/pandas/tests/extension/test_sparse.py b/pandas/tests/extension/test_sparse.py index ca0435141c2e2..6946da6fdc36d 100644 --- a/pandas/tests/extension/test_sparse.py +++ b/pandas/tests/extension/test_sparse.py @@ -12,7 +12,7 @@ def make_data(fill_value): if np.isnan(fill_value): data = np.rando...
There's a spurious failure on master when the first is randomly chosen to be 0, since type(arr.fill_value) doesn't match arr.dtype.type https://github.com/pandas-dev/pandas/issues/23124 will fix the underlying issue, but this works around it so we don't have tests failing randomly. Closes https://github.com/pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/23323
2018-10-24T19:42:20Z
2018-10-25T11:06:32Z
2018-10-25T11:06:32Z
2018-10-25T11:06:36Z
CI: pin CPython to 3.6.6
diff --git a/ci/azure-windows-36.yaml b/ci/azure-windows-36.yaml index 656a6a31d92b4..d03a6cbbd662c 100644 --- a/ci/azure-windows-36.yaml +++ b/ci/azure-windows-36.yaml @@ -16,7 +16,7 @@ dependencies: - pyarrow - pytables - python-dateutil - - python=3.6.* + - python=3.6.6 - pytz - scipy - thrift=0....
ref #23319
https://api.github.com/repos/pandas-dev/pandas/pulls/23322
2018-10-24T18:20:38Z
2018-10-24T18:50:02Z
2018-10-24T18:50:02Z
2018-10-25T01:08:42Z
Support for partition_cols in to_parquet
diff --git a/doc/source/io.rst b/doc/source/io.rst index 68faefa872c88..13828200f61cd 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4668,6 +4668,43 @@ Passing ``index=True`` will *always* write the index, even if that's not the underlying engine's default behavior. +Partitioning Parquet files +'''''''...
- [x] closes [#23283](https://github.com/pandas-dev/pandas/issues/23283) - [x] tests passed - [x] passes git diff upstream/master -u -- "*.py" | flake8 --diff - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/23321
2018-10-24T18:17:23Z
2018-11-10T12:11:53Z
2018-11-10T12:11:53Z
2018-11-10T12:11:54Z
BUG/TST: timedelta-like with Index/Series/DataFrame ops
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a58d34574d28d..f3fd924ee7e6e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4944,7 +4944,7 @@ def _combine_match_columns(self, other, func, level=None): assert left.columns.equals(right.index) return ops.dispatch_to_serie...
Broken off from #23308, with additional fixes for problems found along the way. ``` val = np.timedelta64(4*10**9, 'ns') ser = pd.Series([val]) * 1.5 >>> ser % val # <-- raises TypeError in master 0 00:00:02 dtype: timedelta64[ns] ``` ``` ri = pd.RangeIndex(1) di = pd.DataFrame(ri) >>> ri + df ...
https://api.github.com/repos/pandas-dev/pandas/pulls/23320
2018-10-24T17:49:35Z
2018-10-30T16:18:52Z
2018-10-30T16:18:52Z
2018-10-30T16:56:33Z
BUG: GroupBy return EA dtype
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index fc7019c486d9a..62069dfcb2262 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -850,6 +850,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your - :func:`ExtensionArray.i...
- [x] closes #23227 - [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/23318
2018-10-24T17:13:19Z
2018-11-06T14:48:45Z
2018-11-06T14:48:45Z
2018-11-06T14:48:50Z
BUG: Handle Datetimelike data in DataFrame.combine
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 4f17133ef4a8c..bc0198bb8960a 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1001,6 +1001,7 @@ Datetimelike - Bug in :func:`to_datetime` with an :class:`Index` argument that would drop the ``name...
Closes https://github.com/pandas-dev/pandas/issues/23079
https://api.github.com/repos/pandas-dev/pandas/pulls/23317
2018-10-24T16:29:46Z
2018-10-26T00:21:24Z
2018-10-26T00:21:23Z
2018-10-26T00:21:30Z
Switched references of App veyor to azure pipelines in the contributing CI section
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index f898ef54e4101..67b8d287d5d1a 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -657,12 +657,12 @@ Testing With Continuous Integration ----------------------------------- The *pandas* test suite will run automati...
- Related to #22829 #22760 #22690 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23311
2018-10-24T09:08:00Z
2018-10-26T00:14:02Z
2018-10-26T00:14:02Z
2018-10-26T09:47:30Z
BUG-23224 Fix PR 23237 / Integer NA creation from None
diff --git a/pandas/core/arrays/integer.py b/pandas/core/arrays/integer.py index 17e92c3976e2c..9e045a7785660 100644 --- a/pandas/core/arrays/integer.py +++ b/pandas/core/arrays/integer.py @@ -173,7 +173,7 @@ def coerce_to_array(values, dtype, mask=None, copy=False): values = np.array(values, copy=copy) if is...
Followup PR to fix an oversight in PR #23237 as discussed in its thread
https://api.github.com/repos/pandas-dev/pandas/pulls/23310
2018-10-24T03:32:57Z
2018-10-25T11:26:14Z
2018-10-25T11:26:14Z
2018-10-25T11:26:17Z
TST: Use __tracebackhide__ to suppress unnecessary parts of tm assertions
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index b5ec0912c5c26..a20f75b74c115 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -480,8 +480,8 @@ def get_locales(prefix=None, normalize=True, if prefix is None: return _valid_locales(out_locales, normalize) - found = ...
Makes test output much more to the point. Also gets rid of some backslashes, both for prettiness and to get rid of deprecation warnings in test logs.
https://api.github.com/repos/pandas-dev/pandas/pulls/23307
2018-10-24T01:01:29Z
2018-10-24T11:45:46Z
2018-10-24T11:45:46Z
2018-10-24T16:09:49Z
Add base test for extensionarray setitem #23300
diff --git a/pandas/tests/extension/base/setitem.py b/pandas/tests/extension/base/setitem.py index 307543eca2b3e..6ebe3cb7487ab 100644 --- a/pandas/tests/extension/base/setitem.py +++ b/pandas/tests/extension/base/setitem.py @@ -9,18 +9,20 @@ class BaseSetitemTests(BaseExtensionTests): - def test_setitem_scalar...
- [x] closes #23300 - [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/23304
2018-10-23T19:17:42Z
2018-10-26T01:38:18Z
2018-10-26T01:38:18Z
2018-10-26T12:20:36Z
TST: re-enable gbq tests
diff --git a/pandas/tests/io/test_gbq.py b/pandas/tests/io/test_gbq.py index bc604e066a3e8..345af7c8f056a 100644 --- a/pandas/tests/io/test_gbq.py +++ b/pandas/tests/io/test_gbq.py @@ -16,6 +16,9 @@ import pandas.util.testing as tm +api_exceptions = pytest.importorskip("google.api_core.exceptions") +bigquery = pyt...
Fix clean-up steps to use the google.cloud.bigquery client library directly, since some of the _Dataset and _Table logic was removed from pandas-gbq. Follow-up to #23281 - [x] tests added / passed ``` $ pytest pandas/tests/io/test_gbq.py ====== test session starts ====== platform darwin -- Python 3.6.4, p...
https://api.github.com/repos/pandas-dev/pandas/pulls/23303
2018-10-23T18:10:24Z
2018-10-26T00:18:57Z
2018-10-26T00:18:57Z
2018-10-26T00:34:55Z
fix and test incorrect case in delta_to_nanoseconds
diff --git a/pandas/_libs/tslibs/fields.pyx b/pandas/_libs/tslibs/fields.pyx index 684344ceb9002..1af9cd619c5f9 100644 --- a/pandas/_libs/tslibs/fields.pyx +++ b/pandas/_libs/tslibs/fields.pyx @@ -40,7 +40,7 @@ def get_time_micros(ndarray[int64_t] dtindex): return micros -def build_field_sarray(ndarray[int64_t...
Some minor cython cleanup along the way
https://api.github.com/repos/pandas-dev/pandas/pulls/23302
2018-10-23T17:55:15Z
2018-10-26T00:22:32Z
2018-10-26T00:22:32Z
2018-10-26T00:25:24Z
DOC: Added Examples for Series max
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 31b700abcfdb3..0dcd46fc11475 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9362,7 +9362,7 @@ def compound(self, axis=None, skipna=None, level=None): """This method returns the maximum of the values in the object. ...
- [X] tests passed locally (to the same extent as master) - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23298
2018-10-23T15:05:03Z
2018-10-25T16:54:24Z
2018-10-25T16:54:24Z
2018-10-26T09:47:48Z
Categorical take fill value
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 7a10e8d1073d0..a41b0c9521f99 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -973,6 +973,7 @@ Categorical - Bug in :meth:`Categorical.sort_values` where ``NaN`` values were always positioned in fr...
Closes https://github.com/pandas-dev/pandas/issues/23296
https://api.github.com/repos/pandas-dev/pandas/pulls/23297
2018-10-23T14:04:23Z
2018-10-23T19:52:36Z
2018-10-23T19:52:36Z
2018-10-23T19:52:39Z
TST: stricter monotonicity/uniqueness tests (part 2)
diff --git a/pandas/tests/indexes/common.py b/pandas/tests/indexes/common.py index 49a247608ab0b..ee91b3075b0a1 100644 --- a/pandas/tests/indexes/common.py +++ b/pandas/tests/indexes/common.py @@ -353,8 +353,8 @@ def test_has_duplicates(self, indices): pytest.skip('Skip check for empty Index and MultiIndex...
- [x] xref #23256 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Continuation of #23256. By making the uniqueness tests stricter (i.e. testing for actual True/False rather than truthy/Falsy values) I think we get better ensurance that some P...
https://api.github.com/repos/pandas-dev/pandas/pulls/23294
2018-10-23T10:06:12Z
2018-10-24T12:34:51Z
2018-10-24T12:34:51Z
2018-10-27T08:15:45Z
Add __array_ufunc__ to Series / Array
diff --git a/doc/source/development/extending.rst b/doc/source/development/extending.rst index 363ec10d58bb6..12af80f1bce80 100644 --- a/doc/source/development/extending.rst +++ b/doc/source/development/extending.rst @@ -208,6 +208,25 @@ will 2. call ``result = op(values, ExtensionArray)`` 3. re-box the result in a `...
This PR: * adds a basic (but incomplete) `__array_ufunc__` implementation for `IntegerArray` (to be able to check it is correctly used from Series for ExtensionArrays) * adds `Series.__array_ufunc__` (not yet for `Index`) --- @TomAugspurger revived my branch, will try to work on it a bit further this afternoo...
https://api.github.com/repos/pandas-dev/pandas/pulls/23293
2018-10-23T09:05:32Z
2019-07-01T21:20:05Z
2019-07-01T21:20:05Z
2019-07-02T14:12:14Z
BUG: Let MultiIndex.set_levels accept any iterable (#23273)
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index d0aa156cf5059..de36e1d0794b4 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1004,6 +1004,7 @@ Indexing - Bug in :meth:`DataFrame.loc` when indexing with an :class:`IntervalIndex` (:issue:`19977`...
- [x] closes #23273 - [x] tests added and passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Quite surprisingly, `is_list_like` accepts a wide range of iterables including non-subscriptable objects. Later in the code `set_levels` implicitly supposes that passed instan...
https://api.github.com/repos/pandas-dev/pandas/pulls/23291
2018-10-23T08:35:35Z
2018-10-25T11:33:42Z
2018-10-25T11:33:42Z
2018-10-25T20:09:20Z
Revert "implement TimedeltaArray asm8, to_timedelta64 (#23205)"
diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py index b0b1397086e02..ac90483513af5 100644 --- a/pandas/core/arrays/datetimes.py +++ b/pandas/core/arrays/datetimes.py @@ -707,22 +707,6 @@ def tz_localize(self, tz, ambiguous='raise', errors='raise'): # ---------------------------------...
This reverts commit 6e507133916fc5a8434e21eb267043fc9a3ba8d7 (https://github.com/pandas-dev/pandas/pull/23205)
https://api.github.com/repos/pandas-dev/pandas/pulls/23290
2018-10-23T06:04:02Z
2018-10-23T06:04:20Z
2018-10-23T06:04:20Z
2018-10-23T06:04:30Z
BUG GH23282 calling min on series of NaT returns NaT
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 768868d585721..31952ea19a1ba 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -1020,6 +1020,7 @@ Datetimelike - Bug in :func:`to_datetime` with an :class:`Index` argument that would drop the ``name...
- [X] closes #23282 - [X] tests passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry For `max`, `NaT` values are filled with the lowest possible value. For `min`, they are filled with the highest possible value. The problem is that only the lowest possible value is rec...
https://api.github.com/repos/pandas-dev/pandas/pulls/23289
2018-10-23T03:38:54Z
2018-10-28T22:31:14Z
2018-10-28T22:31:14Z
2018-10-28T22:31:19Z
CLN: simplify try_coerce_args
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index f89d4c51c9a6f..5ce8a9103f008 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -418,7 +418,7 @@ def fillna(self, value, limit=None, inplace=False, downcast=None): # fillna, but if we canno...
Small simplication available following #23132.
https://api.github.com/repos/pandas-dev/pandas/pulls/23288
2018-10-23T03:22:49Z
2018-10-23T21:42:26Z
2018-10-23T21:42:26Z
2018-10-23T21:46:28Z
Preserve EA dtype in DataFrame.stack
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index fd7d88bd52383..0c2a176869829 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -853,6 +853,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your - Updated the ``.type`` a...
closes #23077 There were two bugs in master (not present in 0.23.4), probably from the SparseArray PR 1. We need to unbox the EA values from Series before passing to `EA._concat_same_type` 2. We need to followup with a `take` to get the correct order.
https://api.github.com/repos/pandas-dev/pandas/pulls/23285
2018-10-22T20:38:21Z
2018-11-08T13:17:19Z
2018-11-08T13:17:19Z
2018-11-08T13:17:20Z
ENH: Support EAs in Series.unstack
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index bda486dba3b0f..67fdfb82e72c0 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -49,21 +49,33 @@ def time_unstack(self): class Unstack(object): - def setup(self): + params = ['int', 'catego...
Closes https://github.com/pandas-dev/pandas/issues/23077 This prevents ExtensionArray-backed series from being converted to object-dtype in unstack. The strategy is to do a dummy unstack on an ndarray of integers, which provides the `indices` to `take` later on. We then concat together at the end. This provided d...
https://api.github.com/repos/pandas-dev/pandas/pulls/23284
2018-10-22T20:09:06Z
2018-11-07T15:34:58Z
2018-11-07T15:34:58Z
2018-11-07T15:35:04Z
TST: xfail gbq & feather tests for now as version incompat
diff --git a/pandas/tests/io/test_common.py b/pandas/tests/io/test_common.py index 73e29e6eb9a6a..88a2fded3500c 100644 --- a/pandas/tests/io/test_common.py +++ b/pandas/tests/io/test_common.py @@ -135,7 +135,9 @@ def test_iterator(self): (pd.read_csv, 'os', FileNotFoundError, 'csv'), (pd.read_fwf, 'os...
need to revert these when fixed https://travis-ci.org/pandas-dev/pandas/builds/444265455
https://api.github.com/repos/pandas-dev/pandas/pulls/23281
2018-10-22T18:06:24Z
2018-10-23T02:54:45Z
2018-10-23T02:54:45Z
2018-10-23T18:11:16Z
DOC: Added a Multi Index example for the Series.sum method
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index c24872d7c89e9..e273fd020a011 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -10185,6 +10185,40 @@ def _doc_parms(cls): _sum_examples = """\ Examples -------- +``MultiIndex`` series example of monthly rainfall + +>>> index = pd.Mu...
Added a simple example of using the sum method on a multi-indexed series. - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/23279
2018-10-22T17:38:40Z
2018-10-25T23:37:37Z
2018-10-25T23:37:37Z
2018-10-26T09:47:25Z
CLN: collected cleanups, warning suppression in tests
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 5056b5b82755c..2aa8395053b5c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5400,9 +5400,7 @@ def _cmp_method(self, other, op): with np.errstate(all="ignore"): result = ops.comparis...
- [ ] 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/37021
2020-10-10T03:57:18Z
2020-10-10T16:51:17Z
2020-10-10T16:51:17Z
2020-10-10T17:01:09Z
CLN/REF: de-duplicate DatetimeTZBlock.setitem
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index be105f0035447..54ac1a3fd52c2 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -1758,6 +1758,14 @@ def setitem(self, indexer, value): `indexer` is a direct slice/positional indexer. `value` ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Move towards avoiding special treatment for pandas-internal EAs. xref #24020
https://api.github.com/repos/pandas-dev/pandas/pulls/37019
2020-10-10T02:41:27Z
2020-10-10T16:27:02Z
2020-10-10T16:27:02Z
2020-10-10T16:29:24Z
CLN: require td64 in TimeDeltaBlock
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index be105f0035447..0a4aa6d0a203a 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -2377,7 +2377,11 @@ class TimeDeltaBlock(DatetimeLikeBlockMixin, IntBlock): def _maybe_coerce_values(self, values...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry only one place where the check currently fails, fixed in core.missing
https://api.github.com/repos/pandas-dev/pandas/pulls/37018
2020-10-10T02:36:55Z
2020-10-10T16:33:48Z
2020-10-10T16:33:48Z
2020-10-10T16:35:10Z
REF/TYP: define NDFrame numeric methods non-dynamically
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ebe5185ce4488..ac6b2e87a4f3c 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -8625,7 +8625,7 @@ def _reduce( "will include datetime64 and datetime64tz columns in a " "future version.", Futur...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @simonjayhawkins along with #36989 this gets most of the generic.py mypy complaints (notwithstanding complaints about `cls.foo = foo` that can be ...
https://api.github.com/repos/pandas-dev/pandas/pulls/37017
2020-10-10T01:42:41Z
2020-10-10T16:28:38Z
2020-10-10T16:28:38Z
2020-10-10T16:31:15Z
ERR: Better error message for MultiIndex.astype
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 0604f70316cfb..9942ac35b1c8c 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -3606,8 +3606,8 @@ def astype(self, dtype, copy=True): raise NotImplementedError(msg) elif not is_object_dtype...
Error message could be nicer I think ```python TypeError: Setting <class 'pandas.core.indexes.multi.MultiIndex'> dtype to anything other than object is not supported ```
https://api.github.com/repos/pandas-dev/pandas/pulls/37016
2020-10-09T22:48:18Z
2020-10-10T02:30:05Z
2020-10-10T02:30:05Z
2020-10-10T02:36:19Z
Call finalize in Series.str
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 0ab95dd260a9c..4bff94fd8476b 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -473,7 +473,7 @@ Other - Bug in :meth:`DataFrame.replace` and :meth:`Series.replace` incorrectly raising ``AssertionError...
xref #28283
https://api.github.com/repos/pandas-dev/pandas/pulls/37015
2020-10-09T20:56:04Z
2020-10-10T22:25:59Z
2020-10-10T22:25:59Z
2020-10-11T20:09:39Z
DOC: Clean merging.rst
diff --git a/doc/source/user_guide/merging.rst b/doc/source/user_guide/merging.rst index eeac0ed4837dd..f1a28dc30dd68 100644 --- a/doc/source/user_guide/merging.rst +++ b/doc/source/user_guide/merging.rst @@ -76,9 +76,8 @@ a simple example: :suppress: @savefig merging_concat_basic.png - p.plot(frames, resul...
Closes #36777
https://api.github.com/repos/pandas-dev/pandas/pulls/37014
2020-10-09T20:45:44Z
2020-10-10T22:24:29Z
2020-10-10T22:24:28Z
2020-10-10T22:46:54Z
DOC: pandas.Index.astype says it raises ValueError instead of TypeError
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 539f5515a2f8b..5056b5b82755c 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -652,7 +652,7 @@ def astype(self, dtype, copy=True): Create an Index with values cast to dtypes. The class of a new ...
- [X] closes #37012 - [X] passes pytest - [X] passes `black pandas` - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/37013
2020-10-09T20:36:34Z
2020-10-10T07:40:53Z
2020-10-10T07:40:52Z
2020-10-10T07:41:00Z
REF/TYP: consistent return type for Block.replace
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index fcc923c97cf83..ffd6de53e2120 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -705,7 +705,7 @@ def replace( inplace: bool = False, regex: bool = False, convert: bool = Tru...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry move some convert logic out of _replace_coerce to avoid an otherwise-duplicated method
https://api.github.com/repos/pandas-dev/pandas/pulls/37010
2020-10-09T19:13:07Z
2020-10-10T17:42:31Z
2020-10-10T17:42:31Z
2020-10-10T18:08:15Z
CLN: standardize values coercion in Blocks
diff --git a/pandas/core/internals/blocks.py b/pandas/core/internals/blocks.py index fcc923c97cf83..be105f0035447 100644 --- a/pandas/core/internals/blocks.py +++ b/pandas/core/internals/blocks.py @@ -124,7 +124,7 @@ def _simple_new( def __init__(self, values, placement, ndim=None): self.ndim = self._chec...
- [x] closes #19492 - [ ] 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/37009
2020-10-09T16:39:36Z
2020-10-09T21:13:01Z
2020-10-09T21:13:01Z
2020-10-09T21:25:54Z
Add pandas-genomics to the ecosystem list
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index 8f04d05cfcb04..25ca77627ef39 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -435,6 +435,11 @@ found in NumPy or pandas, which work well with pandas' data containers. Cyberpandas provides an extension type for storing arrays...
- [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Added [as suggested here](https://github.com/pandas-dev/pandas/pull/36987#pullrequestreview-505157583).
https://api.github.com/repos/pandas-dev/pandas/pulls/37008
2020-10-09T16:31:31Z
2020-10-10T17:45:43Z
2020-10-10T17:45:42Z
2020-10-10T17:45:46Z
Backport PR #36950 on branch 1.1.x (REGR: Allow positional arguments in DataFrame.agg)
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index f9127ee8d13e7..3ad8d981be2c9 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression where attemptin...
Backport PR #36950: REGR: Allow positional arguments in DataFrame.agg
https://api.github.com/repos/pandas-dev/pandas/pulls/37005
2020-10-09T13:35:24Z
2020-10-09T14:35:07Z
2020-10-09T14:35:07Z
2020-10-09T14:35:07Z
CI: isort fixup on 1.1.x
diff --git a/pandas/_libs/hashtable.pxd b/pandas/_libs/hashtable.pxd index 0499eabf708af..eebf89d9650e5 100644 --- a/pandas/_libs/hashtable.pxd +++ b/pandas/_libs/hashtable.pxd @@ -1,8 +1,16 @@ -from pandas._libs.khash cimport ( - kh_int64_t, kh_uint64_t, kh_float64_t, kh_pymap_t, kh_str_t, uint64_t, - int64_t, f...
isort-5.6.1
https://api.github.com/repos/pandas-dev/pandas/pulls/37004
2020-10-09T12:03:56Z
2020-10-09T14:36:25Z
2020-10-09T14:36:25Z
2020-10-09T14:36:31Z
Backport PR #36753 on branch 1.1.x: BUG: Segfault with string Index when using Rolling after Groupby
diff --git a/pandas/core/window/rolling.py b/pandas/core/window/rolling.py index f7bcd1e795fd3..617c43e0a59ed 100644 --- a/pandas/core/window/rolling.py +++ b/pandas/core/window/rolling.py @@ -409,7 +409,7 @@ def _wrap_results(self, results, blocks, obj, exclude=None) -> FrameOrSeries: if self.on is not None a...
Backport PR #36753 on branch 1.1.x
https://api.github.com/repos/pandas-dev/pandas/pulls/37003
2020-10-09T11:54:20Z
2020-10-09T13:12:10Z
2020-10-09T13:12:10Z
2020-10-09T13:12:16Z
Backport PR #36911: BUG: RollingGroupby not respecting sort=False
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index d0d03021629c6..f9127ee8d13e7 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -15,6 +15,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ - Fixed regression where attemptin...
Backport PR #36911
https://api.github.com/repos/pandas-dev/pandas/pulls/37002
2020-10-09T11:29:48Z
2020-10-09T12:19:46Z
2020-10-09T12:19:46Z
2020-10-09T12:19:52Z
CLN: Move _aggregate and _aggregate_multiple_funcs to core.aggregation
diff --git a/pandas/core/aggregation.py b/pandas/core/aggregation.py index ad69e9f31e065..74359c8831745 100644 --- a/pandas/core/aggregation.py +++ b/pandas/core/aggregation.py @@ -29,10 +29,11 @@ Label, ) +from pandas.core.dtypes.cast import is_nested_object from pandas.core.dtypes.common import is_dict_like,...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Renamed functions by removing underscores and renamed `self` argument to `obj`.
https://api.github.com/repos/pandas-dev/pandas/pulls/36999
2020-10-09T02:52:36Z
2020-10-09T14:39:39Z
2020-10-09T14:39:39Z
2020-10-11T13:22:02Z
BUG: DataFrame.diff with dt64 and NaTs
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 0ab95dd260a9c..32e65fbe8d54c 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -360,6 +360,7 @@ Numeric - Bug in :meth:`DataFrame.__rmatmul__` error handling reporting transposed shapes (:issue:`21581`)...
- [x] closes #32441 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry There's a related bug in algos.diff, but the elegant solution goes through the cython code, so im doing that in a separate branch.
https://api.github.com/repos/pandas-dev/pandas/pulls/36998
2020-10-09T02:20:07Z
2020-10-10T17:40:57Z
2020-10-10T17:40:56Z
2020-10-10T18:09:04Z
REF/BUG/TYP: read_csv shouldn't close user-provided file handles
diff --git a/doc/source/whatsnew/v1.2.0.rst b/doc/source/whatsnew/v1.2.0.rst index 16e6c12488b83..83a94bcbd9c79 100644 --- a/doc/source/whatsnew/v1.2.0.rst +++ b/doc/source/whatsnew/v1.2.0.rst @@ -493,6 +493,7 @@ I/O - Bug in output rendering of complex numbers showing too many trailing zeros (:issue:`36799`) - Bug i...
- [x] closes #36980 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry REF/BUG: de-duplicate all file handling in `TextReader` by calling `get_handle` in `CParserWrapper`. ~~When `TextReader` gets a string it uses memor...
https://api.github.com/repos/pandas-dev/pandas/pulls/36997
2020-10-09T01:04:08Z
2020-11-04T04:09:17Z
2020-11-04T04:09:17Z
2020-11-04T04:13:30Z
TYP: IntervalIndex.SetopCheck
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 93117fbc22752..cc47740dba5f2 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1,4 +1,5 @@ """ define the IntervalIndex """ +from functools import wraps from operator import le, lt import textwra...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Moves us closer to #33455
https://api.github.com/repos/pandas-dev/pandas/pulls/36995
2020-10-08T22:47:56Z
2020-10-10T17:43:05Z
2020-10-10T17:43:05Z
2020-10-10T18:07:29Z
TYP/REF: use OpsMixin for arithmetic methods
diff --git a/pandas/core/arraylike.py b/pandas/core/arraylike.py index 185e9197e01fe..553649212aa5f 100644 --- a/pandas/core/arraylike.py +++ b/pandas/core/arraylike.py @@ -72,3 +72,73 @@ def __xor__(self, other): @unpack_zerodim_and_defer("__rxor__") def __rxor__(self, other): return self._logical_m...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry We'll be able to use this in DataFrame too following #36843
https://api.github.com/repos/pandas-dev/pandas/pulls/36994
2020-10-08T22:45:38Z
2020-10-10T17:41:39Z
2020-10-10T17:41:39Z
2020-10-10T20:04:36Z
CI: xfail intermittently-failing tests
diff --git a/pandas/tests/io/json/test_pandas.py b/pandas/tests/io/json/test_pandas.py index 822342113f62a..6abd8a010ea69 100644 --- a/pandas/tests/io/json/test_pandas.py +++ b/pandas/tests/io/json/test_pandas.py @@ -8,7 +8,7 @@ import numpy as np import pytest -from pandas.compat import IS64, is_platform_windows +...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Usually I avoid `strict=False` like the plague, but these are a PITA recently.
https://api.github.com/repos/pandas-dev/pandas/pulls/36993
2020-10-08T21:38:27Z
2020-10-08T23:44:11Z
2020-10-08T23:44:11Z
2020-10-08T23:44:22Z
Backport PR #36946 on branch 1.1.x (REGR: Make DateOffset immutable)
diff --git a/doc/source/whatsnew/v1.1.4.rst b/doc/source/whatsnew/v1.1.4.rst index e63912ebc8fee..d0d03021629c6 100644 --- a/doc/source/whatsnew/v1.1.4.rst +++ b/doc/source/whatsnew/v1.1.4.rst @@ -14,7 +14,7 @@ including other versions of pandas. Fixed regressions ~~~~~~~~~~~~~~~~~ -- +- Fixed regression where atte...
Backport PR #36946: REGR: Make DateOffset immutable
https://api.github.com/repos/pandas-dev/pandas/pulls/36992
2020-10-08T21:11:31Z
2020-10-09T11:20:34Z
2020-10-09T11:20:34Z
2020-10-09T11:20:34Z
TYP: sas, stata, style
diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py index 13010bb2ef147..3e4780ec21378 100644 --- a/pandas/io/formats/format.py +++ b/pandas/io/formats/format.py @@ -1407,6 +1407,7 @@ def _value_formatter( if float_format: def base_formatter(v): + assert float_f...
- [ ] 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/36990
2020-10-08T20:28:13Z
2020-10-10T17:48:33Z
2020-10-10T17:48:33Z
2020-10-10T18:08:02Z
TYP: generic, series, frame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ebe5185ce4488..fd7d0190dbbcb 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -9311,8 +9311,8 @@ def _AXIS_NAMES(self) -> Dict[int, str]: ops.add_special_arithmetic_methods(DataFrame) -def _from_nested_dict(data): - new_data = collect...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry cc @simonjayhawkins
https://api.github.com/repos/pandas-dev/pandas/pulls/36989
2020-10-08T19:16:38Z
2020-10-10T16:23:27Z
2020-10-10T16:23:27Z
2020-10-10T16:24:50Z
Fix test_unstack
diff --git a/pandas/tests/extension/base/reshaping.py b/pandas/tests/extension/base/reshaping.py index 3774e018a8e51..7be50c5f8c305 100644 --- a/pandas/tests/extension/base/reshaping.py +++ b/pandas/tests/extension/base/reshaping.py @@ -316,7 +316,9 @@ def test_unstack(self, data, index, obj): alt = df...
The test was failing if the ExtensionDtype had an na_value that wasn't equivalent to nan - [x] closes #36986 - [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/36987
2020-10-08T18:58:09Z
2020-10-08T22:01:44Z
2020-10-08T22:01:44Z
2020-10-09T15:46:31Z
CLN: move maybe_casted_values from pandas/core/frame.py to pandas/core/dtype/cast.py
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 48391ab7d9373..4b746a4ee9b21 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -73,7 +73,12 @@ ABCSeries, ) from pandas.core.dtypes.inference import is_list_like -from pandas.core.dtypes.missing import is_valid_n...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry xref #36876, #27370 (stale PR)
https://api.github.com/repos/pandas-dev/pandas/pulls/36985
2020-10-08T18:49:26Z
2020-10-10T22:33:41Z
2020-10-10T22:33:41Z
2020-10-11T04:01:00Z
FIX: fix cleanup warnings for errorbar timeseries
diff --git a/pandas/tests/plotting/test_frame.py b/pandas/tests/plotting/test_frame.py index bdb86d2dd846f..b51ce375a7ed7 100644 --- a/pandas/tests/plotting/test_frame.py +++ b/pandas/tests/plotting/test_frame.py @@ -2658,67 +2658,84 @@ def test_pie_df_nan(self): @pytest.mark.slow def test_errorbar_plot(sel...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Currently in ``pandas/tests/plotting/tests_frame.py`` there are several warnings emitted. ``` pandas/tests/plotting/test_frame.py::TestDataFrameP...
https://api.github.com/repos/pandas-dev/pandas/pulls/36982
2020-10-08T14:52:03Z
2020-10-10T17:33:48Z
2020-10-10T17:33:48Z
2020-10-10T18:11:39Z
BUG: fix matplotlib warning on CN color
diff --git a/pandas/plotting/_matplotlib/style.py b/pandas/plotting/_matplotlib/style.py index 3e0954ef3d74d..b919728971505 100644 --- a/pandas/plotting/_matplotlib/style.py +++ b/pandas/plotting/_matplotlib/style.py @@ -56,29 +56,9 @@ def random_color(column): else: raise ValueError("color_type m...
- [ ] closes #36972 - [ ] 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/36981
2020-10-08T12:42:03Z
2020-10-10T22:33:16Z
2020-10-10T22:33:15Z
2020-10-20T11:37:15Z