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
TST: Test sorting levels not aligned with index (#25775)
diff --git a/pandas/tests/frame/test_sorting.py b/pandas/tests/frame/test_sorting.py index 246ba943a4509..96aeb608ba3b8 100644 --- a/pandas/tests/frame/test_sorting.py +++ b/pandas/tests/frame/test_sorting.py @@ -227,6 +227,18 @@ def test_stable_descending_multicolumn_sort(self): kin...
- [x] closes #25775 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry (empty since no user-facing changs) With `master` at 6d2398a58fda68e40f116f199439504558c7774c, issue #25775 seems resolved. Added validation tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/26492
2019-05-22T19:04:53Z
2019-06-05T12:54:35Z
2019-06-05T12:54:35Z
2019-06-05T12:54:40Z
Fixed typo mutiplication -> multiplication
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index afe37bf198ab7..6bfa63012689d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -918,7 +918,7 @@ def __len__(self): def dot(self, other): """ - Compute the matrix mutiplication between the DataFrame and other. + Co...
Docstring typo fix only.
https://api.github.com/repos/pandas-dev/pandas/pulls/26489
2019-05-22T13:18:29Z
2019-05-22T13:58:19Z
2019-05-22T13:58:19Z
2019-05-22T14:02:33Z
DOC/CLN: Change API reference section title
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index 680cb7e3dac91..42ebf648f299f 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -2,9 +2,9 @@ .. _api.indexing: -======== -Indexing -======== +============= +Index Objects +============= ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26486
2019-05-22T10:51:41Z
2019-05-24T15:11:26Z
2019-05-24T15:11:26Z
2019-05-29T10:55:19Z
DOC/CLN: wil -> will
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 76910f425836e..623e2b4863029 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -926,7 +926,7 @@ def squeeze(self, axis=None): a 1 Name: 0, dtype: int64 - Squeezing all axes wil project directly into a scal...
https://api.github.com/repos/pandas-dev/pandas/pulls/26484
2019-05-21T20:38:52Z
2019-05-21T22:33:42Z
2019-05-21T22:33:42Z
2019-05-22T14:09:46Z
Better error message for DataFrame.hist() without numerical columns (…
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index 90297ecfa3415..fed4b0d90983c 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -2426,6 +2426,10 @@ def hist_frame(data, column=None, by=None, grid=True, xlabelsize=None, data = data._get_numeric_data() naxes = len(dat...
Closes #10444 Added simple check for non-zero number of numeric columns plus suggested error message in case the check fails. Happy to make any adjustments this if desired.
https://api.github.com/repos/pandas-dev/pandas/pulls/26483
2019-05-21T19:16:14Z
2019-05-24T15:47:02Z
2019-05-24T15:47:02Z
2019-05-25T12:57:38Z
CLN: pd.TimeGrouper
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 30bc332f8a04b..f9b356110055b 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -270,7 +270,7 @@ Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Removed...
- [x] xref #6581 - [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/26477
2019-05-21T00:50:21Z
2019-05-24T22:07:54Z
2019-05-24T22:07:54Z
2019-06-04T21:18:49Z
Fix the output of df.describe on an empty categorical / object column
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 89a9da4a73b35..cee1778e05bb8 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -253,6 +253,34 @@ are returned. (:issue:`21521`) df.groupby("a").ffill() +``DataFrame`` describe on an empty ca...
- [x] closes #26397 - [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/26474
2019-05-20T18:50:35Z
2019-06-01T14:52:36Z
2019-06-01T14:52:36Z
2019-06-01T14:52:41Z
Excel Test Cleanup - ReadWriteClass
diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py index 112d14795d9bf..f9926cd26d8da 100644 --- a/pandas/tests/io/test_excel.py +++ b/pandas/tests/io/test_excel.py @@ -49,7 +49,6 @@ def ignore_xlrd_time_clock_warning(): yield -@td.skip_if_no('xlrd', '1.0.0') class SharedItems: ...
The tests we have in this module need a pretty big refactor as they mix a few testing idioms together. This is slowing down contributions on items like #25092 and #25427 This is going to require quite a few PRs to get it where it needs to be. This one simply: - Moves tests that require both reading and writing i...
https://api.github.com/repos/pandas-dev/pandas/pulls/26473
2019-05-20T18:21:47Z
2019-05-24T16:01:09Z
2019-05-24T16:01:09Z
2020-01-16T00:34:48Z
Fix bug where list like object not returning empty Index.
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1be7e0736f9fe..7d71cb22f49ed 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3095,7 +3095,7 @@ def _ensure_valid_index(self, value): passed value. """ # GH5632, make sure that we are a Series convertible - ...
- [x] closes #17101 - [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/26471
2019-05-20T14:12:39Z
2019-08-22T11:40:59Z
2019-08-22T11:40:59Z
2019-08-22T11:41:02Z
DOC: fix example with Timestamp/integer addition
diff --git a/doc/source/user_guide/indexing.rst b/doc/source/user_guide/indexing.rst index ca788963971ad..4ea7c656fd197 100644 --- a/doc/source/user_guide/indexing.rst +++ b/doc/source/user_guide/indexing.rst @@ -868,7 +868,7 @@ You can also set using these same indexers. .. ipython:: python - df.at[dates[-1] + ...
Remaining warning that is being raised in the examples in the docs (the others are related to pyarrow).
https://api.github.com/repos/pandas-dev/pandas/pulls/26467
2019-05-20T08:49:00Z
2019-05-20T13:14:57Z
2019-05-20T13:14:57Z
2019-05-20T13:14:58Z
Add defensive check for argument errors keyword in to_numeric
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index b2d1aa299a45a..9e04dcaa41416 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -41,6 +41,7 @@ Other Enhancements - :meth:`DataFrame.query` and :meth:`DataFrame.eval` now supports quoting column name...
- [x] closes #26394 - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] Added defensive check for argument `errors` in func `to_numeric`
https://api.github.com/repos/pandas-dev/pandas/pulls/26466
2019-05-20T06:59:11Z
2019-05-20T11:11:37Z
2019-05-20T11:11:36Z
2019-05-20T11:11:50Z
DOC: #25723 passing kwargs to excel document engine
diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst index 0abd073c7dc07..88d8ccbbe036e 100644 --- a/doc/source/user_guide/io.rst +++ b/doc/source/user_guide/io.rst @@ -2341,10 +2341,10 @@ round-trippable manner. .. ipython:: python df = pd.DataFrame({'foo': [1, 2, 3, 4], - 'bar': ['...
- [x] closes #25723 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` This pr tries to address #25723. Made a small addition to the ExcelFile section of user_guide/io.rst regarding the discussion in #25723.
https://api.github.com/repos/pandas-dev/pandas/pulls/26465
2019-05-20T06:31:35Z
2019-05-20T16:31:05Z
2019-05-20T16:31:05Z
2019-05-20T16:31:13Z
CLN: Remove ExcelWriter.sheetname
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index ac9857715dde4..c51441f701a45 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -312,7 +312,7 @@ Deprecations Removal of prior version deprecations/changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
- [x] xref https://github.com/pandas-dev/pandas/issues/6581 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry cc @WillAyd
https://api.github.com/repos/pandas-dev/pandas/pulls/26464
2019-05-20T02:57:43Z
2019-05-25T01:18:05Z
2019-05-25T01:18:05Z
2019-05-25T15:51:35Z
Fix 'observed' kwarg not doing anything on SeriesGroupBy
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 2c66d3e4db321..2e9709f7bdd8f 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -512,6 +512,7 @@ Groupby/Resample/Rolling - Bug in :func:`pandas.core.groupby.GroupBy.agg` when applying a aggregation ...
- [x] closes #24880 - [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/26463
2019-05-19T21:13:24Z
2019-05-30T01:33:50Z
2019-05-30T01:33:50Z
2019-06-17T14:10:26Z
Remove py.path special handling from io.common
diff --git a/pandas/io/common.py b/pandas/io/common.py index f9cd1806763e2..34635ebf64ad6 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -9,6 +9,7 @@ import lzma import mmap import os +import pathlib from urllib.error import URLError # noqa from urllib.parse import ( # noqa urlencode, urljoin...
- [x] closes #26450 - [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/26458
2019-05-19T05:18:58Z
2019-05-26T01:48:03Z
2019-05-26T01:48:03Z
2019-05-26T05:34:25Z
BUG-26214 fix colors parameter in DataFrame.boxplot
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 75b705372c747..0144ec211fd03 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -229,6 +229,7 @@ Plotting - Bug in :meth:`DataFrame.plot` producing incorrect legend markers when plotting multiple series ...
- [X] closes #26214 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry This PR fixes issues in the handling of the `color` parameter in the implementation of `DataFrame.boxplot` that do not exist in `DataFrame.plot.box` - the `color` parameter i...
https://api.github.com/repos/pandas-dev/pandas/pulls/26456
2019-05-19T04:30:48Z
2019-09-20T03:36:34Z
2019-09-20T03:36:34Z
2019-09-20T03:36:41Z
TST/DEPR: remove .ix from tests\indexing\multiindex\test_loc.py
diff --git a/pandas/tests/indexing/multiindex/test_ix.py b/pandas/tests/indexing/multiindex/test_ix.py index 6b6e1dbd859a2..5ea172f14f6f6 100644 --- a/pandas/tests/indexing/multiindex/test_ix.py +++ b/pandas/tests/indexing/multiindex/test_ix.py @@ -1,5 +1,6 @@ from warnings import catch_warnings, simplefilter +impor...
follow on from #26438 i leave this as draft until #26438 is merged, to prevent this one being merged first. not used `iloc` for the expected where dropping levels would be required, used df.values instead.
https://api.github.com/repos/pandas-dev/pandas/pulls/26451
2019-05-18T23:52:46Z
2019-05-19T20:28:39Z
2019-05-19T20:28:39Z
2019-05-19T20:45:40Z
CLN: remove __bytes__
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index dc87ae8f48b8a..cf46a7f193b5a 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -250,6 +250,7 @@ Other API Changes - Bug in :meth:`DatetimeIndex.snap` which didn't preserving the ``name`` of the inpu...
- [x] xref #25725 Remove ``__bytes__`` method from ``StringMixin`` and ``PandasExtensionDtype``. These are the only uses of ``__bytes__`` in the code base.
https://api.github.com/repos/pandas-dev/pandas/pulls/26447
2019-05-18T16:25:17Z
2019-05-19T17:08:08Z
2019-05-19T17:08:08Z
2019-05-19T17:08:14Z
Clean Up src/parsers
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 2eb19ef1dd082..88b918e9cc515 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -149,9 +149,6 @@ cdef extern from "parser/tokenizer.h": int skipinitialspace # ignore spaces following delimiter? */ int quo...
Looking at this in detail noticed quite a few unused functions and pre-processor directives. There was also a mismatch in types between the .pyx and C structs
https://api.github.com/repos/pandas-dev/pandas/pulls/26445
2019-05-18T15:33:25Z
2019-05-18T16:15:55Z
2019-05-18T16:15:55Z
2019-05-18T16:35:01Z
TST/CLN: remove try/except from test_column_contains_typeerror
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 8013ddfeb38f9..d1b009a7fa8e2 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -111,11 +111,9 @@ def test_keys(self, float_frame): getkeys = float_frame.keys assert getkeys() is float_f...
https://api.github.com/repos/pandas-dev/pandas/pulls/26442
2019-05-17T20:53:35Z
2019-05-18T00:42:23Z
2019-05-18T00:42:23Z
2019-05-18T01:50:16Z
TST: Iterrows making incorrect assumptions about datetime
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index d1b009a7fa8e2..ce841b302a037 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -1,4 +1,5 @@ from copy import deepcopy +import datetime import pydoc import numpy as np @@ -222,6 +223,17 @@ def test_i...
- [x] closes #12222 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ n/a] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26441
2019-05-17T19:39:00Z
2019-05-18T14:16:55Z
2019-05-18T14:16:55Z
2019-05-18T21:18:38Z
ERR: User-facing AssertionError in DataFrame Constructor
diff --git a/pandas/core/internals/construction.py b/pandas/core/internals/construction.py index 2ee49c30b226d..2cd53d2ce9cee 100644 --- a/pandas/core/internals/construction.py +++ b/pandas/core/internals/construction.py @@ -424,8 +424,13 @@ def _list_to_arrays(data, columns, coerce_float=False, dtype=None): else:...
- [x] closes #26429 - [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/26440
2019-05-17T15:00:15Z
2019-05-18T14:12:47Z
2019-05-18T14:12:46Z
2019-05-18T21:19:29Z
DEPR: Change .ix DeprecationWarning -> FutureWarning
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index d38ee7b8b589a..5f43512b69098 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -255,6 +255,7 @@ Other API Changes Deprecations ~~~~~~~~~~~~ +- The deprecated ``.ix[]`` indexer now raises a more v...
closes https://github.com/pandas-dev/pandas/issues/15152
https://api.github.com/repos/pandas-dev/pandas/pulls/26438
2019-05-17T06:27:15Z
2019-05-19T17:15:07Z
2019-05-19T17:15:07Z
2019-05-19T17:15:10Z
CLN: remove unused code check for pytest.raises
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 3d1ec637ae202..a16580679ff54 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -169,15 +169,6 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -r -E --include '*.py' '(unittest(\.| import )mock|mock\.Mock\(\)|mock\.patch)' pandas/tests...
xref #25866
https://api.github.com/repos/pandas-dev/pandas/pulls/26435
2019-05-16T22:52:42Z
2019-05-17T12:51:08Z
2019-05-17T12:51:08Z
2019-05-17T13:50:50Z
CLN: Remove Categorical.from_array
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index cd727c728eb3d..495d0beaf3faa 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -149,6 +149,7 @@ Removal of prior version deprecations/changes - ``pd.ordered_merge`` has been removed (deprecated sinc...
Deprecated in 0.19.0 xref #13854.
https://api.github.com/repos/pandas-dev/pandas/pulls/18642
2017-12-05T07:50:38Z
2017-12-05T11:15:22Z
2017-12-05T11:15:22Z
2017-12-05T16:54:07Z
CLN: ASV HDFStore benchmark
diff --git a/asv_bench/benchmarks/hdfstore_bench.py b/asv_bench/benchmarks/hdfstore_bench.py index 5aa8f76917797..d7b3be25a18b9 100644 --- a/asv_bench/benchmarks/hdfstore_bench.py +++ b/asv_bench/benchmarks/hdfstore_bench.py @@ -1,34 +1,40 @@ -from .pandas_vb_common import * -import os +import numpy as np +from pandas ...
- Ran flake8 and replaced star imports An `HDFStore.info()` benchmark was added in #16666, but the benchmark fails (even on master). I can create a new issue for this unless there's an obvious fix I am not seeing. ``` asv dev -b ^hdfstore_bench· Discovering benchmarks · Running 18 total benchmarks (1 commits *...
https://api.github.com/repos/pandas-dev/pandas/pulls/18641
2017-12-05T06:00:31Z
2017-12-06T10:18:14Z
2017-12-06T10:18:14Z
2017-12-06T17:59:13Z
Cleanup & De-duplication for custom offset classes
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 251af50ab12ce..29e14103dfe20 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -307,27 +307,6 @@ class CacheableOffset(object): _cacheable = True -class BeginMixin(object): - # helper for...
The diff looks a little bit mangled. This PR does two things. 1) Centralize frequently-repeated calendar `__init__` in a new _CustomMixin 2) Merge a bunch of shared CustomBusinessMonthEnd and CustomBusinessMonthBegin logic into a parent class. - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18640
2017-12-05T00:18:27Z
2017-12-06T00:52:42Z
2017-12-06T00:52:42Z
2017-12-06T04:19:49Z
Explicit LooseVersion comps
diff --git a/pandas/_libs/sparse.pyx b/pandas/_libs/sparse.pyx index bbdd5f0d8334c..bb8b0ed14e1d9 100644 --- a/pandas/_libs/sparse.pyx +++ b/pandas/_libs/sparse.pyx @@ -12,8 +12,8 @@ from distutils.version import LooseVersion # numpy versioning _np_version = np.version.short_version -_np_version_under1p10 = LooseVe...
- [X] closes #18633 - [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/18637
2017-12-04T21:20:47Z
2017-12-06T11:18:37Z
2017-12-06T11:18:37Z
2017-12-06T12:40:54Z
ENH: DataFrame.pivot accepts a list of values
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 151ab8456c1d7..18013666d0b82 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -326,6 +326,7 @@ Other Enhancements - ``Resampler`` objects now have a functioning :attr:`~pandas.core.resample.Resampl...
- [x] closes https://github.com/pandas-dev/pandas/issues/17160 - [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/18636
2017-12-04T21:13:33Z
2018-03-26T07:24:02Z
2018-03-26T07:24:01Z
2018-03-26T08:14:26Z
DOC: explain the `mode.chained_assignment` option
diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 2f9f7a04def19..2f3dbb9746066 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -1833,15 +1833,27 @@ that you've done this: Yikes! +.. _indexing.evaluation_order: + Evaluation order matters ~~~~~~~~~~~~~~~~~~~~~~~~ -Further...
- [x] closes #xxxx (n/a) - [x] tests added / passed (yes, Sphinx compiles without errors) - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry (n/a) Make the explanation of the `mode.chained_assignment` option link to the explanation of chained indexing and assignment. Explain...
https://api.github.com/repos/pandas-dev/pandas/pulls/18635
2017-12-04T20:34:39Z
2017-12-07T15:46:08Z
2017-12-07T15:46:08Z
2017-12-11T20:20:50Z
CLN: Replaced package list with find_packages
diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml index 57748fef1a2e5..c72abd0c19516 100644 --- a/ci/environment-dev.yaml +++ b/ci/environment-dev.yaml @@ -10,5 +10,5 @@ dependencies: - python-dateutil>=2.5.0 - python=3 - pytz - - setuptools + - setuptools>=3.3 - sphinx diff --git a/ci/requir...
- [X] closes #18535 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry As far as local testing goes, I built source distributions using py27 and py36. Compared to HEAD, the generated distributions were practically identical. Technically they were ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18632
2017-12-04T16:53:45Z
2017-12-08T11:12:59Z
2017-12-08T11:12:59Z
2017-12-12T15:41:31Z
ENH: support non default indexes in writing to Parquet
diff --git a/doc/source/io.rst b/doc/source/io.rst index 54e7a11c5f2b1..2cbd64bf5186b 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4504,11 +4504,8 @@ dtypes, including extension dtypes such as datetime with tz. Several caveats. -- The format will NOT write an ``Index``, or ``MultiIndex`` for the - `...
- [x] closes #18581 - [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/18629
2017-12-04T13:43:05Z
2017-12-11T18:57:17Z
2017-12-11T18:57:16Z
2017-12-12T02:38:30Z
BUG: Don't overflow in DataFrame init
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 495d0beaf3faa..f2500bb29d0be 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -186,7 +186,7 @@ Conversion ^^^^^^^^^^ - Bug in :class:`Index` constructor with `dtype='uint64'` where int-like floa...
For integers larger than what uint64 can handle (or smaller than what int64 can handle), we gracefully default to the object dtype instead of overflowing. Closes #18584.
https://api.github.com/repos/pandas-dev/pandas/pulls/18624
2017-12-04T10:16:07Z
2017-12-05T22:54:44Z
2017-12-05T22:54:44Z
2017-12-06T02:35:38Z
BLD: Bump Cython version from 0.23 to 0.24
diff --git a/ci/requirements-2.7.build b/ci/requirements-2.7.build index d1cc61df0a77c..e24baa98d956e 100644 --- a/ci/requirements-2.7.build +++ b/ci/requirements-2.7.build @@ -3,4 +3,4 @@ python-dateutil=2.5.0 pytz=2013b nomkl numpy -cython=0.23 +cython=0.24 diff --git a/ci/requirements-2.7_COMPAT.build b/ci/requir...
- [X] closes #18613 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry For the whatsnew: - Used the same whatsnew message as was used during the last cython version bump in 0.20 - Moved some previous entries that were under the main "Backwards incompatible API changes" s...
https://api.github.com/repos/pandas-dev/pandas/pulls/18623
2017-12-04T08:33:06Z
2017-12-04T20:13:32Z
2017-12-04T20:13:32Z
2017-12-04T20:17:22Z
CLN: Remove SparseList from pandas API
diff --git a/doc/source/sparse.rst b/doc/source/sparse.rst index 89efa7b4be3ee..2e224f103a95e 100644 --- a/doc/source/sparse.rst +++ b/doc/source/sparse.rst @@ -85,15 +85,6 @@ can be converted back to a regular ndarray by calling ``to_dense``: sparr.to_dense() -.. _sparse.list: - -SparseList ----------- - -The ...
Deprecated in 0.19.0. xref #14007.
https://api.github.com/repos/pandas-dev/pandas/pulls/18621
2017-12-04T02:15:50Z
2017-12-04T11:00:55Z
2017-12-04T11:00:55Z
2017-12-05T07:50:13Z
timestamp/timedelta test cleanup
diff --git a/pandas/tests/scalar/test_timedelta.py b/pandas/tests/scalar/test_timedelta.py index 17c818779c76d..001f6c1fdbef4 100644 --- a/pandas/tests/scalar/test_timedelta.py +++ b/pandas/tests/scalar/test_timedelta.py @@ -15,6 +15,28 @@ class TestTimedeltaArithmetic(object): _multiprocess_can_split_ = True +...
More informative names in timedeltas tests remove/merge redundant tests in timestamps. Separate some big test classes thematically. Use pytest.parametrize in a few places
https://api.github.com/repos/pandas-dev/pandas/pulls/18619
2017-12-04T01:20:17Z
2017-12-04T11:21:50Z
2017-12-04T11:21:50Z
2017-12-08T19:38:19Z
handle DST appropriately in Timestamp.replace
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 92564285bb36a..a670bf2348bfc 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -381,3 +381,4 @@ Other ^^^^^ - Improved error message when attempting to use a Python keyword as an identifier in a ...
``` ts = pd.Timestamp('2017-12-03 16:03:24', tz='US/Eastern') # Timestamp('2017-12-03 16:03:24-0500', tz='US/Eastern') ts2 = ts.replace(month=6) # <-- across DST boundary # master --> Timestamp('2017-06-03 16:03:24-0500', tz='US/Eastern') # PR --> Timestamp('2017-06-03 16:03:24-0400', tz='US/Easter...
https://api.github.com/repos/pandas-dev/pandas/pulls/18618
2017-12-04T00:59:44Z
2018-01-05T23:37:26Z
2018-01-05T23:37:26Z
2018-01-23T04:40:39Z
DOC: Removing keep=False from docs on nlargest/nsmallest
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index ff42e39d9dbdd..f377fa1f5731a 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3769,7 +3769,7 @@ def nlargest(self, n, columns, keep='first'): Number of items to retrieve columns : list or str Column name or...
- [x] closes #18559 - [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/18617
2017-12-03T23:39:33Z
2017-12-04T11:27:30Z
2017-12-04T11:27:30Z
2017-12-11T20:21:06Z
CLN: Remove io.data and io.wb
diff --git a/doc/source/index.rst.template b/doc/source/index.rst.template index f5c65e175b0db..7c7457df8ea93 100644 --- a/doc/source/index.rst.template +++ b/doc/source/index.rst.template @@ -137,7 +137,6 @@ See the package overview for more detail about what's in the library. visualization style io - ...
Deprecated in 0.17.0. xref #13735.
https://api.github.com/repos/pandas-dev/pandas/pulls/18612
2017-12-03T21:21:31Z
2017-12-05T00:23:55Z
2017-12-05T00:23:55Z
2017-12-05T07:50:02Z
CLN: ASV groupby benchmarks
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 13b5cd2b06032..3abf2338e1d94 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -1,85 +1,108 @@ -from .pandas_vb_common import * from string import ascii_letters, digits from itertools import produc...
- Ran flake8 and replaced star imports - Moved `series_value_counts` to `series_methods.py` - Used `params` with `param_names` and `setup_cache` where possible. ``` asv dev -b ^groupby [ 0.00%] ··· Setting up /home/matt/Projects/pandas-mroeschke/asv_bench/benchmarks/groupby.py:267 [ 1.19%] ··· Running gr...
https://api.github.com/repos/pandas-dev/pandas/pulls/18611
2017-12-03T18:30:06Z
2017-12-05T09:18:56Z
2017-12-05T09:18:56Z
2017-12-05T17:47:43Z
json_normalize: Make code more pythonic and avoid modification of meta if mutable
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 3d4850b334ff9..a9608594be547 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -90,6 +90,7 @@ I/O - Bug in parsing integer datetime-like columns with specified format in ``read_sql`` (:issue:`17855`...
- [x] closes itself #18610 - [x] tests added / passed - [x] passes `git diff master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry - Update json_normalize to prevent modifying `meta` parameter. - Make the code more Pythonic too.
https://api.github.com/repos/pandas-dev/pandas/pulls/18610
2017-12-03T13:54:03Z
2017-12-04T12:55:54Z
2017-12-04T12:55:54Z
2017-12-11T20:21:03Z
ENH: Raise error for 'sheet' arg in read_excel
diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt index 7362e11b22189..5d6ed50ca3f26 100644 --- a/doc/source/whatsnew/v0.24.0.txt +++ b/doc/source/whatsnew/v0.24.0.txt @@ -377,7 +377,7 @@ I/O ^^^ - :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when con...
- [ ] closes #17994 I was also thinking about the possibility of raising a warning instead, and do something like: ``` if sheet in kwds: sheet_name = sheet ```
https://api.github.com/repos/pandas-dev/pandas/pulls/18604
2017-12-02T22:09:03Z
2018-07-07T18:56:41Z
2018-07-07T18:56:40Z
2018-07-07T18:56:41Z
DOC: Give python3 precedence over py2 in the install notes
diff --git a/doc/source/install.rst b/doc/source/install.rst index 7c1fde119ceaa..95331271f95be 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -141,28 +141,24 @@ and can take a few minutes to complete. Installing using your Linux distribution's package manager. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
Currently the install notes show python 2 more prominently than Python 3. I suggest reversing that. The argument is that pandas has pledged to drop support for Python 2 in 2020, and that the general transition to python 3 is now well under way (Django has gone py3 only and numpy will only develop new feature for Pyt...
https://api.github.com/repos/pandas-dev/pandas/pulls/18603
2017-12-02T20:12:36Z
2017-12-06T23:20:36Z
2017-12-06T23:20:36Z
2017-12-11T20:19:37Z
STYLE: Use decorator syntax instead of legacy syntax for defining properties in Cython
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index fa2e1271f4649..f8371d4855803 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -220,34 +220,31 @@ cdef class IndexEngine: def __sizeof__(self): return self.sizeof() - property is_unique: + @property + def is_un...
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` See the [Cython docs](http://cython.readthedocs.io/en/latest/src/userguide/extension_types.html#properties) for a comparison of the decorator syntax and legacy syntax. I only found a few instances of the legacy syntax; looks like most of the Cytho...
https://api.github.com/repos/pandas-dev/pandas/pulls/18602
2017-12-02T19:48:38Z
2017-12-06T11:27:35Z
2017-12-06T11:27:35Z
2017-12-06T15:43:15Z
DEPR/CLN: Remove freq parameters from df.rolling/expanding/ewm
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 495d0beaf3faa..67e428e096cdb 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -150,6 +150,8 @@ Removal of prior version deprecations/changes - The ``SparseList`` class has been removed (:issue:`140...
-- [x ] tests added / passed - [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x ] whatsnew entry The ``freq`` parameter of df.rolling/expanding/ewm was deprecated in 0.18 (#11603). This PR removes the parameter from the code base. After this PR, I will remove the ``how`` parameter and la...
https://api.github.com/repos/pandas-dev/pandas/pulls/18601
2017-12-02T18:19:55Z
2017-12-06T01:13:53Z
2017-12-06T01:13:53Z
2017-12-11T08:08:49Z
BUG: Fix initialization of DataFrame from dict with NaN as key
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index 21b20cb123ed6..9def910df0bab 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -16,11 +16,11 @@ class FromDicts(object): def setup(self): N, K = 5000, 50 - index = ...
- [x] closes #18455 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This does not solve the [MI example](https://github.com/pandas-dev/pandas/issues/18455#issuecomment-346700652) in #18455, but that should be included in #18485 .
https://api.github.com/repos/pandas-dev/pandas/pulls/18600
2017-12-02T14:27:59Z
2018-04-01T17:47:06Z
2018-04-01T17:47:05Z
2018-04-01T17:48:17Z
BLD Added --strict and -r sxX to test scripts
diff --git a/test.bat b/test.bat index 2424f62b8dbfe..e07c84f257a69 100644 --- a/test.bat +++ b/test.bat @@ -1,3 +1,3 @@ :: test on windows -pytest --strict --skip-slow --skip-network pandas -n 2 %* +pytest --skip-slow --skip-network pandas -n 2 -r sxX --strict %* diff --git a/test.sh b/test.sh index 23c7ff52d2ce9.....
- no related issue in issue tracker - no tests added because it was a minor build script change) - modified shell script, no python syntax check required - [] whatsnew entry Altered pytest output to show summaries for xFailed, xPassed and skipped Added --strict to align these convenience scripts with ci it will...
https://api.github.com/repos/pandas-dev/pandas/pulls/18598
2017-12-01T19:12:57Z
2017-12-01T19:15:23Z
2017-12-01T19:15:23Z
2017-12-01T19:15:25Z
EHN: Add index parameter to to_json
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 32b548e5f32f1..f3dac20758441 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -136,6 +136,7 @@ Other Enhancements - :func:`DataFrame.corrwith` now silently drops non-numeric columns when passed a S...
- [ ] closes #17394 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Examples: ``` In [1]: df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['a', 'b', 'c']) In [2]: df.to_json(orient='split', index=True) Out[2]: {"columns":["a","b","c"],...
https://api.github.com/repos/pandas-dev/pandas/pulls/18591
2017-12-01T14:33:43Z
2017-12-10T15:26:29Z
2017-12-10T15:26:29Z
2017-12-10T16:13:21Z
BUG: Unwanted conversion from timedelta to float (#18493)
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index bebfd0ab50e90..3d4850b334ff9 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -74,6 +74,7 @@ Indexing - Bug where a ``MultiIndex`` with more than a million records was not raising ``AttributeError`...
- [ ] closes #18493 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18586
2017-12-01T08:50:04Z
2017-12-02T17:43:02Z
2017-12-02T17:43:01Z
2017-12-11T20:21:11Z
CLN/DOC: Interval and IntervalIndex classes
diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx index 39b26c61172ed..822df1ce2b968 100644 --- a/pandas/_libs/interval.pyx +++ b/pandas/_libs/interval.pyx @@ -14,30 +14,46 @@ import numbers _VALID_CLOSED = frozenset(['left', 'right', 'both', 'neither']) -cdef class IntervalMixin: - property cl...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Changes shouldn't impact the behavior of `Interval` or `IntervalIndex`: - Restructured the `IntervalMixin` class, as it was using legacy syntax for defining properties ([see here](http://cython.readthedocs.io/en/latest/src...
https://api.github.com/repos/pandas-dev/pandas/pulls/18585
2017-12-01T05:12:58Z
2017-12-01T11:30:30Z
2017-12-01T11:30:30Z
2017-12-01T18:06:14Z
API/BUG: .apply will correctly infer output shape when axis=1
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 18da53506f018..fb9e5a6cc75cb 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -793,8 +793,14 @@ The :meth:`~DataFrame.apply` method will also dispatch on a string method name. df.apply('mean') df.apply('mean', axis=1) -Depending...
closes #16353 closes #17348 closes #17437 closes #18573 closes #17970 closes #17892 closes #17602 closes #15628 closes #18775 closes #18901 closes #18919 This fixes apply to work correctly when the returned shape mismatches the original. It will try to set the indices if it possible. Setting to a list-...
https://api.github.com/repos/pandas-dev/pandas/pulls/18577
2017-11-30T14:08:17Z
2018-02-07T13:06:48Z
2018-02-07T13:06:47Z
2018-02-07T14:20:44Z
BUG: Series.rank modifies inplace with NaT
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index c2da0c420f643..3e9e2bf329674 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -315,7 +315,7 @@ Reshaping - Bug in :func:`DataFrame.stack` which fails trying to sort mixed type levels under Python...
- [x] closes #18521 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Looks like `_ensure_data` converts NaT to -9223372036854775808 then that gets converted back to datetime64.
https://api.github.com/repos/pandas-dev/pandas/pulls/18576
2017-11-30T13:20:00Z
2017-12-14T11:30:35Z
2017-12-14T11:30:35Z
2017-12-14T11:30:45Z
CLN: ASV remove uncessary selfs and add setups
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 7ffb180b49e09..45d62163ae80b 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -11,6 +11,8 @@ except: pass +from .pandas_vb_common import setup # noqa + class Factorize...
@jorisvandenbossche Added `setup` with #noqa to the other benchmarks I edited and removed uncessesary `self`s
https://api.github.com/repos/pandas-dev/pandas/pulls/18575
2017-11-30T04:34:56Z
2017-11-30T08:13:59Z
2017-11-30T08:13:59Z
2017-11-30T18:28:20Z
DEPR: deprecate .asobject property
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 7697c3b9d3840..a607168ea0457 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -12,7 +12,7 @@ def setup(self): if (self.rng.dtype == object): self.idx_rng = ...
This PR supersedes #18477. closes #18237 - [ x] xref #18262 - [x ] tests added / passed - [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ x] whatsnew entry Deprecate ``Series.asobject`` and ``DatetimeIndexOpsMixin.asobject`` as per discussion in #18262. ``DatetimeIndexOpsMixin`` is a...
https://api.github.com/repos/pandas-dev/pandas/pulls/18572
2017-11-30T01:09:08Z
2017-12-04T10:49:25Z
2017-12-04T10:49:25Z
2017-12-04T11:23:32Z
remove unused args etal from np_datetime.c
diff --git a/pandas/_libs/src/datetime/np_datetime.c b/pandas/_libs/src/datetime/np_datetime.c index cb4f9d3efdcd0..edc9c0f8f903d 100644 --- a/pandas/_libs/src/datetime/np_datetime.c +++ b/pandas/_libs/src/datetime/np_datetime.c @@ -318,26 +318,19 @@ int cmp_pandas_datetimestruct(const pandas_datetimestruct *a, /* *...
What #18565 does for np_datetime_strings.c, this does for np_datetime.c Getting rid of `meta` also gets rid of a potential problem noted in a comment that `meta->num` could potentially cause an overflow. Since `meta->num` is 1 in all pandas usages, that pitfall doesn't apply.
https://api.github.com/repos/pandas-dev/pandas/pulls/18567
2017-11-29T17:36:03Z
2017-12-04T11:37:27Z
2017-12-04T11:37:27Z
2017-12-08T19:38:20Z
Remove unused arguments from np_datetime_strings
diff --git a/pandas/_libs/src/datetime.pxd b/pandas/_libs/src/datetime.pxd index 6e5d8b82c118f..d919fca09c006 100644 --- a/pandas/_libs/src/datetime.pxd +++ b/pandas/_libs/src/datetime.pxd @@ -7,9 +7,6 @@ from cpython cimport PyUnicode_Check, PyUnicode_AsASCIIString cdef extern from "numpy/ndarrayobject.h": ctype...
Same deal as #18546. This completes the pure-cleaning phase for np_datetime_strings.
https://api.github.com/repos/pandas-dev/pandas/pulls/18565
2017-11-29T16:56:17Z
2017-12-06T01:39:25Z
2017-12-06T01:39:24Z
2017-12-08T19:38:16Z
ENH: Support TZ Aware IntervalIndex
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 4c716bf15d923..f55c6f696544e 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -132,6 +132,7 @@ Other Enhancements - :func:`pandas.read_clipboard` updated to use qtpy, falling back to PyQt5 and then...
- [X] closes #18537 - [X] closes #18538 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Updates to `Interval`: - Disallowed `Interval` objects with mixed time zones - Minor docstring updates Updates to `IntervalIndex`: - Disallowed `Inter...
https://api.github.com/repos/pandas-dev/pandas/pulls/18558
2017-11-29T04:48:12Z
2017-12-08T11:26:07Z
2017-12-08T11:26:06Z
2017-12-08T15:47:55Z
Update imports, use nogil version of sqrt
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index 61d543cd7303a..df8f7bab51dbe 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -27,7 +27,7 @@ from numpy cimport (ndarray, cdef double NaN = <double> np.NaN cdef double nan = NaN -from libc.math cimport sqrt, fabs +from libc.math c...
https://api.github.com/repos/pandas-dev/pandas/pulls/18557
2017-11-29T02:04:26Z
2017-12-04T11:38:40Z
2017-12-04T11:38:40Z
2017-12-08T19:38:18Z
Cleanup cimports
diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx index 6e964077dd56e..cb192fcced318 100644 --- a/pandas/_libs/src/inference.pyx +++ b/pandas/_libs/src/inference.pyx @@ -3,7 +3,7 @@ from decimal import Decimal cimport util cimport cython from tslibs.nattype import NaT -from tslib cimport c...
https://api.github.com/repos/pandas-dev/pandas/pulls/18556
2017-11-29T02:02:48Z
2017-12-03T22:57:19Z
2017-12-03T22:57:19Z
2017-12-03T23:03:03Z
CLN: Move period.pyx to tslibs/period.pyx
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 03596d7d091e0..fa2e1271f4649 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -17,7 +17,8 @@ from tslibs.conversion cimport maybe_datetimelike_to_i8 from hashtable cimport HashTable -from pandas._libs import algos, period as peri...
- [x] Closes #18543, - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Is a whatsnew entry needed here?
https://api.github.com/repos/pandas-dev/pandas/pulls/18555
2017-11-28T23:41:47Z
2017-12-03T18:00:23Z
2017-12-03T18:00:22Z
2017-12-03T22:59:43Z
bugfix for FY5253 case with bunched yearends
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index ae272282040b8..fd23f0b4335b6 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -264,3 +264,5 @@ Other - Fixed a bug where creating a Series from an array that contains both tz-naive and tz-aware val...
Also achieves coverage for one of the uncovered branches in `FY5253.apply` - [x] closes #14774 - [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/18550
2017-11-28T17:14:39Z
2017-12-06T11:15:31Z
2017-12-06T11:15:31Z
2017-12-06T16:02:48Z
Update pandas.read_gbq docs to point to pandas-gbq
diff --git a/doc/source/install.rst b/doc/source/install.rst index b8968e18aecb0..7c1fde119ceaa 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -259,7 +259,8 @@ Optional Dependencies `xsel <http://www.vergenet.net/~conrad/software/xsel/>`__, or `xclip <https://github.com/astrand/xclip/>`__: ne...
The `pandas-gbq` package must be installed to use `pandas.read_gbq`. Also, with soon-to-be-release version 0.3.0 of `pandas-gbq` the Google Cloud client library is used instead of the Google API library. Also, standard SQL is no longer beta. In fact it is highly recommended over using legacy SQL. - `N/A` - clo...
https://api.github.com/repos/pandas-dev/pandas/pulls/18548
2017-11-28T16:48:12Z
2017-12-01T01:05:16Z
2017-12-01T01:05:16Z
2017-12-11T20:21:22Z
Remove arg that is only ever used as NPY_UNSAFE_CASTING
diff --git a/pandas/_libs/src/datetime.pxd b/pandas/_libs/src/datetime.pxd index 0624779e50497..6e5d8b82c118f 100644 --- a/pandas/_libs/src/datetime.pxd +++ b/pandas/_libs/src/datetime.pxd @@ -7,13 +7,6 @@ from cpython cimport PyUnicode_Check, PyUnicode_AsASCIIString cdef extern from "numpy/ndarrayobject.h": ctyp...
Several functions from src/datetime are only ever called with the casting rule NPY_UNSAFE_CASTING. By getting rid of that dummy argument, the remaining code gets simplified quite a bit. This PR removes that argument, then removes code that this renders unreachable or unused. It also removes several commented-out f...
https://api.github.com/repos/pandas-dev/pandas/pulls/18546
2017-11-28T16:02:42Z
2017-11-29T12:02:06Z
2017-11-29T12:02:06Z
2017-12-08T19:38:20Z
standalone implementation of ccalendar
diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd new file mode 100644 index 0000000000000..a1bbeea1cb69a --- /dev/null +++ b/pandas/_libs/tslibs/ccalendar.pxd @@ -0,0 +1,12 @@ +# -*- coding: utf-8 -*- +# cython: profile=False + +from cython cimport Py_ssize_t + +from numpy cimport int6...
For the moment only updated cimports in `fields`. - [ ] 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/18540
2017-11-28T03:51:32Z
2017-12-07T11:08:45Z
2017-12-07T11:08:45Z
2017-12-07T15:57:37Z
Fastpaths for Timestamp properties
diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py index fc5e6dc8c06d6..9d7d6d2998a8b 100644 --- a/asv_bench/benchmarks/timestamp.py +++ b/asv_bench/benchmarks/timestamp.py @@ -1,4 +1,3 @@ -from .pandas_vb_common import * from pandas import to_timedelta, Timestamp import pytz import d...
Addresses a bunch of the TimestampProperties regressions in #18532 . ASV vs 0.21.0 ``` asv continuous -f 1.1 -E virtualenv 81372093 HEAD -b TimestampProperties [...] before after ratio [81372093] [5fc79fb0] + 5.73±0.02μs 10.5±0.03μs 1.84 timestamp.TimestampProp...
https://api.github.com/repos/pandas-dev/pandas/pulls/18539
2017-11-28T03:12:42Z
2017-11-29T00:22:40Z
2017-11-29T00:22:40Z
2017-12-08T19:38:24Z
CLN: ASV frame_methods benchmark
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index 5fad7b682c2ed..d577ebc20a31c 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -124,3 +124,18 @@ def setup(self, offset, n_steps): def time_frame_ctor(self, offset, n_steps): ...
- Added `np.random.seed(1234)` in setup classes where random data is created xref #8144 - Ran flake8 and replaced star imports - Moved `GetItemSingleColumn`, `AssignTimeseriesIndex`, and `InsertColumns` to `indexing.py`, and `StringSlice` to `strings.py` - Refactored to use `params` where relevant ``` $asv...
https://api.github.com/repos/pandas-dev/pandas/pulls/18536
2017-11-28T01:09:23Z
2017-11-29T10:50:47Z
2017-11-29T10:50:47Z
2017-11-30T00:21:47Z
DOC: improve DataFrame/SeriesGroupBy.apply doc string
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index ba180cc98cb08..2ca7af771cb24 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -77,6 +77,119 @@ pandas.Panel.%(name)s """ +_apply_docs = dict( + template=""" + Apply function ``func`` group-wise and combine the resul...
- [x ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The doc strings for the ``apply`` method on GroupBy objects are currently IMO difficult to "translate" into working code. This PR proposes making the doc string more practical, including: * split the doc string up for dataframe and series GroupBy...
https://api.github.com/repos/pandas-dev/pandas/pulls/18534
2017-11-27T23:55:36Z
2017-11-28T11:29:40Z
2017-11-28T11:29:40Z
2017-12-11T20:09:58Z
Removed unused funcs from _libs
diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx index a5aae6d6af656..61d543cd7303a 100644 --- a/pandas/_libs/algos.pyx +++ b/pandas/_libs/algos.pyx @@ -212,51 +212,6 @@ cpdef numeric median(numeric[:] arr): kth_smallest(arr, n // 2 - 1)) / 2 -# -------------- Min, Max subsequence - -@c...
See coverage report: https://github.com/pandas-dev/pandas/pull/18512#issuecomment-347281660 This just removes a handful of unused functions. LMK if some should be kept around just-in-case. Not included in the never-used group but worth mentioning: lib.fast_unique, lib.convert_timestamps, and lib.string_array_rep...
https://api.github.com/repos/pandas-dev/pandas/pulls/18533
2017-11-27T23:15:48Z
2017-11-28T11:24:28Z
2017-11-28T11:24:28Z
2017-12-08T19:38:25Z
DEPR: Deprecate from_items
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 1890636bc8e1a..4e59f2d0f844a 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -329,7 +329,7 @@ Deprecations - :func:`read_excel` has deprecated the ``skip_footer`` parameter. Use ``skipfooter`` ins...
- [ ] closes #17320 - [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/18529
2017-11-27T20:56:17Z
2018-01-31T12:15:15Z
2018-01-31T12:15:15Z
2018-09-14T01:40:59Z
CLN: ASV FromDictwithTimestamp
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index 5f465a91d38d3..6761d48d25919 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -2,8 +2,9 @@ import pandas.util.testing as tm from pandas import DataFrame, Series, MultiIndex, Timestamp,...
- [x] closes #18511 Also removed unnecessary `self`s and simplified method names ``` $ asv run -q -b ^frame_ctor [ 0.00%] ·· Benchmarking conda-py3.6-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-pytest-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt [ 16.67%] ··· Running frame_ctor.FromDicts.time_dict ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18527
2017-11-27T18:23:05Z
2017-12-10T16:27:12Z
2017-12-10T16:27:12Z
2017-12-11T02:38:19Z
BUG: Fix marker for high memory
diff --git a/ci/run_circle.sh b/ci/run_circle.sh index 0e46d28ab6fc4..435985bd42148 100755 --- a/ci/run_circle.sh +++ b/ci/run_circle.sh @@ -5,5 +5,5 @@ export PATH="$MINICONDA_DIR/bin:$PATH" source activate pandas -echo "pytest --junitxml=$CIRCLE_TEST_REPORTS/reports/junit.xml $@ pandas" -pytest --junitxml=$CIRCL...
Added strict flag to catch this in the future xref https://github.com/pandas-dev/pandas/pull/18427#discussion_r153277727
https://api.github.com/repos/pandas-dev/pandas/pulls/18526
2017-11-27T18:22:37Z
2017-11-28T11:16:24Z
2017-11-28T11:16:24Z
2017-12-20T16:10:56Z
BUG: Fix groupby over a CategoricalIndex in axis=1
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index e307e605687bf..bebfd0ab50e90 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -137,6 +137,7 @@ Categorical - Error messages in the testing module have been improved when items have different ``Cate...
- [x] closes #18432 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] add whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18525
2017-11-27T18:02:01Z
2017-11-30T15:11:43Z
2017-11-30T15:11:43Z
2017-12-11T20:19:10Z
check for datetime+period addition
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 52ca05d9a76a9..beac39cd7c9a0 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -207,4 +207,5 @@ Other - Improved error message when attempting to use a Python keyword as an identifier in a numexpr...
- [x] closes #17983 - [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/18524
2017-11-27T17:45:27Z
2017-11-29T13:24:01Z
2017-11-29T13:24:01Z
2017-11-29T18:07:39Z
implement shift_quarters --> apply_index for quarters and years
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 6f5ad2ae45f50..251af50ab12ce 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -17,8 +17,6 @@ np.import_array() from util cimport is_string_object, is_integer_object -from pandas._libs.tslib imp...
`tslibs.offsets.shift_quarters` should look like the the lovechild of `offsets.shift_months` and `QuarterOffset.apply`. It may be possible to de-duplicate some of that* at some point. We get `apply_index` methods for all four `YearOffset` subclasses and all four `QuarterOffset` subclasses. (Previously there were i...
https://api.github.com/repos/pandas-dev/pandas/pulls/18522
2017-11-27T16:29:17Z
2017-11-27T21:41:03Z
2017-11-27T21:41:03Z
2017-12-08T19:38:27Z
API: empty map should not infer
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 1a08a1353a605..09b504cac5ed4 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -107,7 +107,7 @@ Other API Changes - :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the ``pan...
closes #18509
https://api.github.com/repos/pandas-dev/pandas/pulls/18517
2017-11-27T12:07:54Z
2017-12-02T17:34:37Z
2017-12-02T17:34:37Z
2017-12-04T10:23:47Z
BUG: Index constructor support tupleization for mixed levels
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 8e6382c18343e..988da470eda35 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -147,6 +147,7 @@ Indexing - Bug in :func:`DataFrame.groupby` where tuples were interpreted as lists of keys rather than...
- [x] closes #18505 - [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/18514
2017-11-27T08:45:15Z
2017-11-28T09:35:38Z
2017-11-28T09:35:38Z
2017-11-28T11:13:34Z
make get_firstbday, get_lastbday nogil
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 654c51f0ca842..6f5ad2ae45f50 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -24,7 +24,7 @@ from frequencies cimport get_freq_code from nattype cimport NPY_NAT from np_datetime cimport (pandas_da...
These are only used in `tslibs.offsets` and in tests, _and_ every use is preceeded by a call to `monthrange`. But because `monthrange` returns a tuple, it cannot be declared `nogil`. This PR removes the call to `monthrange` in favor of the two separate calls that go into `monthrange` (actually only one is needed for ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18512
2017-11-27T06:19:54Z
2017-11-27T11:26:48Z
2017-11-27T11:26:48Z
2017-11-27T21:37:20Z
Split test_categorical into subpackage (#18497)
diff --git a/pandas/tests/categorical/__init__.py b/pandas/tests/categorical/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/categorical/common.py b/pandas/tests/categorical/common.py new file mode 100644 index 0000000000000..9462482553ed8 --- /dev/null +++ b/pandas/tests/c...
- [X] closes #18497 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Speaking to the methodology here, I created separate files mirroring what was provided in the other test packages. Within each file, there is one class for standard categorical ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18508
2017-11-26T23:54:12Z
2017-12-08T00:25:37Z
2017-12-08T00:25:36Z
2017-12-12T15:41:30Z
Add nrows parameter to pandas.read_excel()
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index c3a0e3599a0f9..32b548e5f32f1 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -135,7 +135,7 @@ Other Enhancements - Improved wording of ``ValueError`` raised in :func:`read_csv` when the ``usecols`...
- [x] closes #16645 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I was working on this a few months back, but got busy. Apologies. I'm free until January so thought I'd pick this back up. ### Changes * Added code for `nrows` parameter (w...
https://api.github.com/repos/pandas-dev/pandas/pulls/18507
2017-11-26T18:32:18Z
2017-12-09T15:12:35Z
2017-12-09T15:12:35Z
2018-01-20T04:25:12Z
TST: move gbq back to 3.5 build and remove from BUILD_TEST
diff --git a/ci/requirements-3.5.pip b/ci/requirements-3.5.pip index 0d9e44cf39fa4..c9565f2173070 100644 --- a/ci/requirements-3.5.pip +++ b/ci/requirements-3.5.pip @@ -1 +1,2 @@ xarray==0.9.1 +pandas_gbq diff --git a/ci/requirements-3.6_BUILD_TEST.pip b/ci/requirements-3.6_BUILD_TEST.pip index a0fc77c40bc00..f4617133...
https://api.github.com/repos/pandas-dev/pandas/pulls/18506
2017-11-26T16:22:57Z
2017-11-26T21:46:51Z
2017-11-26T21:46:51Z
2017-12-11T20:22:28Z
fix missing arg in timestamp asvs
diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py index b8ef309e6a464..fc5e6dc8c06d6 100644 --- a/asv_bench/benchmarks/timestamp.py +++ b/asv_bench/benchmarks/timestamp.py @@ -13,55 +13,55 @@ class TimestampProperties(object): def setup(self, tz): self.ts = Timestamp('2017...
Pretty good bet that I broke this a little while ago...
https://api.github.com/repos/pandas-dev/pandas/pulls/18503
2017-11-26T05:06:32Z
2017-11-26T15:08:20Z
2017-11-26T15:08:20Z
2017-11-27T12:26:21Z
CLN: ASV eval benchmark
diff --git a/asv_bench/benchmarks/eval.py b/asv_bench/benchmarks/eval.py index 6f33590ee9e33..fd18b3f21cf45 100644 --- a/asv_bench/benchmarks/eval.py +++ b/asv_bench/benchmarks/eval.py @@ -1,4 +1,4 @@ -from .pandas_vb_common import * +import numpy as np import pandas as pd try: import pandas.core.computation.exp...
- Added `np.random.seed(1234)` in setup classes where random data is created xref #8144 - Ran flake8 and replaced star imports - Removed some initialization of variables within the `time_*` methods ``` asv run -b ^eval [ 0.00%] ·· Benchmarking conda-py3.6-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-py...
https://api.github.com/repos/pandas-dev/pandas/pulls/18500
2017-11-26T03:32:09Z
2017-11-26T15:00:32Z
2017-11-26T15:00:32Z
2017-11-27T17:31:13Z
CLN: ASV frame_ctor benchmark
diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py index 2ee5f5da7a84a..5fad7b682c2ed 100644 --- a/asv_bench/benchmarks/frame_ctor.py +++ b/asv_bench/benchmarks/frame_ctor.py @@ -1,32 +1,33 @@ -from .pandas_vb_common import * +import numpy as np +import pandas.util.testing as tm +from ...
- Added `np.random.seed(1234)` in setup classes where random data is created xref #8144 - Ran flake8 and replaced star imports (but `from pandas.core.datetools import *` might need to be kept for compat?) - `time_frame_ctor_nested_dict_int64` was using `self.data` instead of `self.data2` - Moved the class `fra...
https://api.github.com/repos/pandas-dev/pandas/pulls/18499
2017-11-26T03:16:41Z
2017-11-26T15:01:54Z
2017-11-26T15:01:54Z
2017-11-27T03:21:45Z
Construction of Series from dict containing NaN as key
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 4a27bf54de695..411583404a32d 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -68,6 +68,7 @@ Other API Changes - :func:`Series.astype` and :func:`Index.astype` with an incompatible dtype will now...
- [x] closes #18480 closes #18515 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is also a prerequisite for fixing #18455 (which is a prerequisite for fixing #18460 ). The workaround to #18485 is annoying, but it is easy to remove it wh...
https://api.github.com/repos/pandas-dev/pandas/pulls/18496
2017-11-26T01:52:58Z
2017-12-01T19:02:43Z
2017-12-01T19:02:42Z
2017-12-01T20:14:42Z
Improved description of seaborn
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index f7d1edff15cfb..8ed647c2a19bc 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -53,6 +53,18 @@ the latest web technologies. Its goal is to provide elegant, concise constructio graphics in the style of Protovis/D3, while delive...
The pandas docs send a surprising amount of traffic towards seaborn, but I've never thought that the existing description communicates the goals/advantages of seaborn all that well. Please consider this revised copy. I also swapped the ordering of seaborn/py-ggplot, because it looks like that package has stalled...
https://api.github.com/repos/pandas-dev/pandas/pulls/18495
2017-11-26T01:24:22Z
2017-11-26T15:13:25Z
2017-11-26T15:13:25Z
2017-12-11T20:22:34Z
parametrize offsets tests
diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py new file mode 100644 index 0000000000000..ea826e8270ace --- /dev/null +++ b/asv_bench/benchmarks/offset.py @@ -0,0 +1,239 @@ +# -*- coding: utf-8 -*- +from datetime import datetime + +import numpy as np + +import pandas as pd +from pandas impo...
This began as part of #18489 and quickly became huge and tedious. Merits separating out and getting out of the way. - Move Year, Quarter, and Month offset test cases to a dedicated file - Implement pytest.mark.parametrize in very-nearly all the remaining places.
https://api.github.com/repos/pandas-dev/pandas/pulls/18494
2017-11-26T00:43:35Z
2017-11-26T15:06:09Z
2017-11-26T15:06:09Z
2017-12-08T19:40:00Z
CI: remove pandas-gbq from 3.5 build to avoid conflicts with 3.6 build-test
diff --git a/ci/requirements-3.5.pip b/ci/requirements-3.5.pip index 6e4f7b65f9728..0d9e44cf39fa4 100644 --- a/ci/requirements-3.5.pip +++ b/ci/requirements-3.5.pip @@ -1,2 +1 @@ xarray==0.9.1 -pandas-gbq
https://api.github.com/repos/pandas-dev/pandas/pulls/18492
2017-11-25T23:21:07Z
2017-11-26T00:30:34Z
2017-11-26T00:30:34Z
2017-12-11T20:22:37Z
COMPAT: map infers all-nan / empty correctly
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 4ae3d9be04aa7..9f59ea2f2a1f0 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -75,7 +75,7 @@ Other API Changes - :class:`CacheableOffset` and :class:`WeekDay` are no longer available in the ``panda...
xref #18482
https://api.github.com/repos/pandas-dev/pandas/pulls/18491
2017-11-25T23:05:08Z
2017-11-26T15:14:52Z
2017-11-26T15:14:52Z
2017-11-27T01:39:00Z
Implement business_start/end cases for shift_months
diff --git a/asv_bench/benchmarks/offset.py b/asv_bench/benchmarks/offset.py index ea826e8270ace..849776bf9a591 100644 --- a/asv_bench/benchmarks/offset.py +++ b/asv_bench/benchmarks/offset.py @@ -38,6 +38,25 @@ def time_apply_series(self, param): self.ser + self.offset +class OnOffset(object): + goal_t...
Unifies `apply_index` implementations for MonthEnd/MonthBegin, plus extends them to BMonthEnd and BMonthBegin. Unifies `onOffset` implementations for QuarterEnd/BQuarterEnd, plus extends them to QuarterBegin/BQuarterBegin. Implements a `cdef` version of `monthrange`.
https://api.github.com/repos/pandas-dev/pandas/pulls/18489
2017-11-25T21:27:20Z
2017-11-27T00:59:27Z
2017-11-27T00:59:27Z
2017-12-08T19:38:27Z
Fix tzaware dates mismatch but no exception raised
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 637ccf0603e0f..db1f685cb16f7 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -64,7 +64,7 @@ Conversion - Bug in :class:`DatetimeIndex` subtracting datetimelike from DatetimeIndex could fail to ove...
- [x] closes #18431 - [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/18488
2017-11-25T19:31:14Z
2017-11-26T15:19:14Z
2017-11-26T15:19:14Z
2017-12-11T20:11:08Z
BUG: Fix the un-pickleable plot with DatetimeIndex
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 637ccf0603e0f..33c4aa72c7fd6 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -93,7 +93,7 @@ I/O Plotting ^^^^^^^^ -- +- Bug in ``DataFrame.plot()`` and ``Series.plot()`` with :class:`DatetimeIn...
- [x] closes #18439 - [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/18486
2017-11-25T17:30:22Z
2017-12-06T11:26:47Z
2017-12-06T11:26:47Z
2017-12-11T20:20:54Z
BUG: Fix inaccurate rolling.var calculation
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 51fd3b1076ade..976f3524e3c71 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -103,7 +103,7 @@ Groupby/Resample/Rolling - Bug in ``DataFrame.resample(...).apply(...)`` when there is a callable that...
- [x] closes #18430 - [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/18481
2017-11-25T13:37:59Z
2017-11-25T21:13:15Z
2017-11-25T21:13:14Z
2017-12-11T20:22:45Z
CLN: ASV ctors benchmark
diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py index b5694a3a21502..2c9c382e2db86 100644 --- a/asv_bench/benchmarks/ctors.py +++ b/asv_bench/benchmarks/ctors.py @@ -1,24 +1,28 @@ -from .pandas_vb_common import * +import numpy as np +from pandas import DataFrame, Series, Index, DatetimeIndex,...
I think this these asvs should be enhanced or reorganized to other files in the future, but in the meantime: - Added `np.random.seed(1234)` in setup classes where random data is created xref #8144 - Ran flake8 and replaced star imports ``` $ asv run -q -b ^ctors [ 0.00%] ·· Benchmarking conda-py3.6-Cython-m...
https://api.github.com/repos/pandas-dev/pandas/pulls/18479
2017-11-25T01:57:55Z
2017-11-25T14:31:39Z
2017-11-25T14:31:38Z
2017-11-25T18:23:37Z
TYPO: IntervalIndex.symmetric_differnce -> IntervalIndex.symmetric_difference
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 4ae3d9be04aa7..be23e31279d0c 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -114,7 +114,7 @@ Performance Improvements - The overriden ``Timedelta`` properties of days, seconds and microseconds ha...
- [X] closes #18475 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Before this, `IntervalIndex.symmetric_difference` hit the base class implementation, and appeared to generally be working, albeit without full error handling and with worse perf...
https://api.github.com/repos/pandas-dev/pandas/pulls/18476
2017-11-24T22:59:55Z
2017-11-26T15:05:20Z
2017-11-26T15:05:19Z
2017-12-04T20:43:03Z
Make khash its own extension
diff --git a/pandas/_libs/src/khash.pxd b/pandas/_libs/khash.pxd similarity index 98% rename from pandas/_libs/src/khash.pxd rename to pandas/_libs/khash.pxd index ba9a3c70097b2..b1d965c3618cd 100644 --- a/pandas/_libs/src/khash.pxd +++ b/pandas/_libs/khash.pxd @@ -1,3 +1,5 @@ +# -*- coding: utf-8 -*- +# cython: profil...
The path towards cythonize continues.
https://api.github.com/repos/pandas-dev/pandas/pulls/18472
2017-11-24T21:24:41Z
2017-11-29T12:58:12Z
2017-11-29T12:58:12Z
2017-12-08T19:38:26Z
VIS: let PeriodConverter handle datetime64 data
diff --git a/pandas/plotting/_converter.py b/pandas/plotting/_converter.py index 2a45e20dda4cc..66ee7fa98491f 100644 --- a/pandas/plotting/_converter.py +++ b/pandas/plotting/_converter.py @@ -244,7 +244,7 @@ def _convert_1d(values, units, axis): if not hasattr(axis, 'freq'): raise TypeError('Axis...
xref https://github.com/pandas-dev/pandas/issues/9053 (but doesn't solve it)
https://api.github.com/repos/pandas-dev/pandas/pulls/18468
2017-11-24T15:14:27Z
2018-01-23T11:20:10Z
2018-01-23T11:20:10Z
2018-01-23T11:20:13Z
Revert "CI: temp skip geopandas downstream tests (GH18456)"
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index 1ec25bc8bb295..0f0abd8cd3400 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -92,7 +92,6 @@ def test_pandas_datareader(): pandas_datareader.get_data_google('AAPL') -@pytest.mark.skip(reaso...
Reverts pandas-dev/pandas#18457 Closes https://github.com/pandas-dev/pandas/issues/18456
https://api.github.com/repos/pandas-dev/pandas/pulls/18466
2017-11-24T10:16:55Z
2017-11-24T11:47:05Z
2017-11-24T11:47:05Z
2017-11-24T13:27:15Z
CLN: ASV categoricals benchmark
diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py index a5bb5e790dec1..df41a2afad1f8 100644 --- a/asv_bench/benchmarks/categoricals.py +++ b/asv_bench/benchmarks/categoricals.py @@ -1,4 +1,6 @@ -from .pandas_vb_common import * +import numpy as np +import pandas as pd +import panda...
- Split classes from `Categoricals/2/3` --> `Concat`, `ValueCounts`, `Rank`, `Repr`, `SetCategories`, and `Constructor` - Utilized `params` and `param_names` for `ValueCounts` - Added `np.random.seed(1234)` in setup classes where random data is created xref #8144 - Ran flake8 and replaced star imports ``` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18465
2017-11-24T07:55:01Z
2017-11-25T14:37:00Z
2017-11-25T14:37:00Z
2017-11-25T18:25:05Z
Propogating NaN values when using str.split (#18450)
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 637ccf0603e0f..576b22fb990b1 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -138,9 +138,13 @@ Categorical - ``CategoricalIndex`` can now correctly take a ``pd.api.types.CategoricalDtype`` as its ...
- [X] closes #18450 - [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/18462
2017-11-24T02:49:25Z
2017-11-25T21:51:14Z
2017-11-25T21:51:14Z
2017-12-11T20:22:40Z
Improve DatetimeIndex.time performance
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index b3996739e33f7..fe282df25e9c5 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -85,7 +85,7 @@ def time_dti_tz_factorize(self): self.dti_tz.factorize() def time_dti_time(se...
xref #18058 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Speed up DatetimeIndex.time in a similar way to DatetimeIndex.date. Not sure whether the timezone information should be passed to `ints_to_pydatetime()` or not.
https://api.github.com/repos/pandas-dev/pandas/pulls/18461
2017-11-24T02:39:30Z
2017-12-10T16:22:45Z
2017-12-10T16:22:45Z
2017-12-10T19:49:20Z