title
stringlengths
1
185
diff
stringlengths
0
32.2M
body
stringlengths
0
123k
url
stringlengths
57
58
created_at
stringlengths
20
20
closed_at
stringlengths
20
20
merged_at
stringlengths
20
20
updated_at
stringlengths
20
20
CLN: ASV replace
diff --git a/asv_bench/benchmarks/replace.py b/asv_bench/benchmarks/replace.py index 157d5fe1e3948..6330a2b36c516 100644 --- a/asv_bench/benchmarks/replace.py +++ b/asv_bench/benchmarks/replace.py @@ -1,70 +1,58 @@ -from .pandas_vb_common import * +import numpy as np +import pandas as pd +from .pandas_vb_common impor...
- Flake8'd and removed star imports For the `ReplaceDict` benchmark I reduced the number of samples from 10^6 to 10^5 because it was taking a significant amount of time, but 10^5 samples should still be representative of a large sample performance. ``` asv dev -b ^replace · Discovering benchmarks · Running 4 t...
https://api.github.com/repos/pandas-dev/pandas/pulls/18833
2017-12-19T05:21:15Z
2017-12-21T15:06:02Z
2017-12-21T15:06:02Z
2017-12-21T17:39:57Z
Refactor _TimeOp._validate to separate datetime vs timedelta vs dateoffset
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 2fb0cbb14c225..6165eea708796 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -386,54 +386,19 @@ def __init__(self, left, right, name, na_op): self.lvalues, self.rvalues = self._convert_for_datetime(lvalues, ...
Trying to mirror the logic in the datetimelike index classes. Separate some of the tests in the same vein. No logic should be changed in this PR, it should be pure refactor. This _will_ have a merge conflict with #18831.
https://api.github.com/repos/pandas-dev/pandas/pulls/18832
2017-12-19T02:27:18Z
2017-12-23T20:50:23Z
2017-12-23T20:50:23Z
2018-02-11T22:00:29Z
BUG: fix Series[timedelta64] arithmetic with Timedelta scalars
diff --git a/doc/source/timedeltas.rst b/doc/source/timedeltas.rst index d055c49dc4721..778db17a56b58 100644 --- a/doc/source/timedeltas.rst +++ b/doc/source/timedeltas.rst @@ -267,6 +267,14 @@ yields another ``timedelta64[ns]`` dtypes Series. td * -1 td * pd.Series([1, 2, 3, 4]) +Rounded division (floor-divi...
closes #18846 Before: ``` >>> ser = pd.Series([pd.Timedelta(minutes=5, seconds=3)] * 3) >>> ser.iloc[-1] = np.nan >>> scalar = pd.Timedelta(minutes=5, seconds=4) >>> ser // scalar [...] TypeError: can only operate on a timedeltas for addition, subtraction, and division, but the operator [__floordiv__] was ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18831
2017-12-19T02:21:05Z
2017-12-31T17:26:10Z
2017-12-31T17:26:10Z
2018-02-11T22:01:10Z
Prevent RecursionError on Timestamp comparison against object array
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index ae6d0816abc41..9f517e628512c 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -346,3 +346,4 @@ Other ^^^^^ - Improved error message when attempting to use a Python keyword as an identifier in a ...
Timedelta comparison already handled this correctly but I didn't see a test for it, so added one. - [x] closes #15183 - [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/18829
2017-12-18T22:44:18Z
2017-12-19T11:09:45Z
2017-12-19T11:09:45Z
2018-02-11T22:00:32Z
ENH: Added public accessor registrar
diff --git a/LICENSES/XARRAY_LICENSE b/LICENSES/XARRAY_LICENSE new file mode 100644 index 0000000000000..37ec93a14fdcd --- /dev/null +++ b/LICENSES/XARRAY_LICENSE @@ -0,0 +1,191 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION...
Adds new methods for registing custom accessors to pandas objects. This will be helpful for implementing https://github.com/pandas-dev/pandas/issues/18767 outside of pandas. If we accept this I'm not sure it belongs in the top-level namespace where I have it currently. What would a good home be for this be? `pd....
https://api.github.com/repos/pandas-dev/pandas/pulls/18827
2017-12-18T21:17:00Z
2018-01-16T00:43:17Z
2018-01-16T00:43:16Z
2018-01-16T00:43:20Z
BUG: raise error for groupby() with invalid tuple key
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index ae6d0816abc41..8c6226ec15739 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -310,6 +310,7 @@ Groupby/Resample/Rolling ^^^^^^^^^^^^^^^^^^^^^^^^ - Bug when grouping by a single column and aggreg...
- [x] closes #18798 - [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/18826
2017-12-18T20:55:24Z
2017-12-19T11:12:24Z
2017-12-19T11:12:24Z
2017-12-19T11:17:43Z
BUG make hashtable.unique support readonly arrays
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 3f300deddebeb..ff3cdf60a2f8c 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -344,6 +344,7 @@ Reshaping - Bug in :func:`DataFrame.stack` which fails trying to sort mixed type levels under Python 3...
This problem was brought up in https://github.com/pandas-dev/pandas/issues/18773 and effectively comes down to how Cython deals with readonly arrays. While it would be ideal for Cython to fix the underlying problem in the meantime we can rely on this. - [x] closes #18773 - [x] tests added / passed - [x] passes...
https://api.github.com/repos/pandas-dev/pandas/pulls/18825
2017-12-18T19:54:51Z
2017-12-27T20:27:03Z
2017-12-27T20:27:03Z
2017-12-27T20:27:13Z
implement is_offsetlike
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index 5b1335c1a834e..e2ee3deb5396e 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -12,8 +12,8 @@ from .generic import (ABCCategorical, ABCPeriodIndex, ABCDatetimeIndex, ABCSeries, ...
This is a subset of #18817 that just implements `is_offsetlike` in `dtypes.common` (plus a nicer docstring). This needs to be implemented before some fixes can be made in indexes.datetimelike, so is worth separating from the more difficult bits of 18817. - [ ] closes #xxxx - [x] tests added / passed - [x] passes ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18823
2017-12-18T16:34:49Z
2017-12-19T11:21:07Z
2017-12-19T11:21:07Z
2018-02-11T22:00:35Z
BUG: Fixed Categorical.Equals with unordered
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index bd3bee507baa3..f0083ab46d14d 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -378,7 +378,7 @@ Numeric Categorical ^^^^^^^^^^^ -- +- Bug in ``Categorical.equals`` between two unordered categorie...
The original issue was already fixed. I added tests to verify (but no whatsnew entry). This addes tests and a fix for https://github.com/pandas-dev/pandas/issues/16603#issuecomment-349290078 about `Categorical.equals` Closes https://github.com/pandas-dev/pandas/issues/16603
https://api.github.com/repos/pandas-dev/pandas/pulls/18822
2017-12-18T16:31:41Z
2018-01-06T17:37:43Z
2018-01-06T17:37:43Z
2018-01-06T17:37:46Z
Skipif no lzma ne
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index 06e645563d51c..90f197738543a 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -97,11 +97,11 @@ def _is_py3_complex_incompat(result, expected): _good_arith_ops = com.differen...
- [ ] progress #18190 - [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/18820
2017-12-18T15:58:50Z
2017-12-19T11:26:51Z
2017-12-19T11:26:51Z
2018-02-27T01:32:12Z
delegate (most) datetimelike Series arithmetic ops to DatetimeIndex
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 0579a80aad28e..2f6b039b4e080 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -198,6 +198,7 @@ Other API Changes - Rearranged the order of keyword arguments in :func:`read_excel()` to align with :f...
DatetimeIndex arithmetic ops do overflow checks that Series does not. Instead of re-implementing those checks (which I tried and its a PITA) this PR just delegates the appropriate operations to the DatetimeIndex implementation. There are a couple of things that are missing from the DatetimeIndex implementations, e....
https://api.github.com/repos/pandas-dev/pandas/pulls/18817
2017-12-18T04:51:26Z
2017-12-28T19:57:00Z
null
2018-02-11T22:00:33Z
CLN: ASV io_bench, parser_vb
diff --git a/asv_bench/benchmarks/io/__init__.py b/asv_bench/benchmarks/io/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py new file mode 100644 index 0000000000000..bc4599436111f --- /dev/null +++ b/asv_bench/benchmarks/io/...
There are a lot of io benchmarks scattered among `hdfstore_bench.py`, `io_bench.py`, `parser_vb.py`, and `packer.py`. I think it would be a lot cleaner if each io method had it's own file (like `io_sql.py` which already exists) This PR creates `io_csv.py` and `io_json.py` that consolidates the csv and json benchmark...
https://api.github.com/repos/pandas-dev/pandas/pulls/18815
2017-12-18T02:49:16Z
2017-12-19T11:33:59Z
2017-12-19T11:33:59Z
2017-12-19T17:36:25Z
Removed old xarr and ipython decorators
diff --git a/pandas/tests/generic/test_frame.py b/pandas/tests/generic/test_frame.py index 90d2427bb3bd7..9da59ca77d862 100644 --- a/pandas/tests/generic/test_frame.py +++ b/pandas/tests/generic/test_frame.py @@ -17,6 +17,7 @@ assert_almost_equal) import pandas.util.testing as tm +i...
- [ ] progress towards #18190 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Didn't think either of these were used enough to justify as their own decorator, so I removed them from the old ``testing`` module and just used the generic ``skip_if_...
https://api.github.com/repos/pandas-dev/pandas/pulls/18814
2017-12-17T17:06:15Z
2017-12-18T12:12:45Z
2017-12-18T12:12:45Z
2017-12-18T13:35:37Z
DEPR: Deprecate is_copy (#18801)
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 0579a80aad28e..3188b66c619ae 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -213,6 +213,7 @@ Deprecations retain the previous behavior, use a list instead of a tuple (:issue:`18314`) - ``Serie...
Not all tests for this branch on the fork are passing, but these are the same tests that fail for the clean master and appear to be unrelated to the changes. References to is_copy in tests were changed to the internal attribute _is_copy assuming that, though is_copy is not meant to be a public attribute, checking th...
https://api.github.com/repos/pandas-dev/pandas/pulls/18812
2017-12-17T14:10:36Z
2017-12-21T15:07:31Z
2017-12-21T15:07:31Z
2017-12-23T15:58:52Z
DOC: improve pd.Timestamp docs with more examples and clarify differe…
diff --git a/pandas/_libs/tslibs/nattype.pyx b/pandas/_libs/tslibs/nattype.pyx index a058b9d7de9c4..086657e8c97b4 100644 --- a/pandas/_libs/tslibs/nattype.pyx +++ b/pandas/_libs/tslibs/nattype.pyx @@ -381,7 +381,7 @@ class NaTType(_NaT): Parameters ---------- - tz : string, pytz.timezone, dat...
…nt forms of API usage
https://api.github.com/repos/pandas-dev/pandas/pulls/18811
2017-12-17T03:51:32Z
2017-12-20T14:23:23Z
2017-12-20T14:23:23Z
2017-12-20T14:23:26Z
BUG: pivot_table strings as aggfunc
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index e82bdd7a88224..3f300deddebeb 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -344,7 +344,8 @@ Reshaping - Bug in :func:`DataFrame.stack` which fails trying to sort mixed type levels under Python 3...
- [x] closes #18713 - [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/18810
2017-12-17T01:16:48Z
2017-12-23T20:43:16Z
2017-12-23T20:43:16Z
2017-12-24T00:16:15Z
Centralize arithmetic tests for datetime/timedelta series
diff --git a/pandas/tests/series/test_operators.py b/pandas/tests/series/test_operators.py index 6cc866a35514f..89a6311153d15 100644 --- a/pandas/tests/series/test_operators.py +++ b/pandas/tests/series/test_operators.py @@ -28,8 +28,7 @@ from .common import TestData -class TestSeriesOperators(TestData): - +class ...
No tests were harming in the making of this PR.
https://api.github.com/repos/pandas-dev/pandas/pulls/18809
2017-12-16T23:31:32Z
2017-12-18T12:34:10Z
2017-12-18T12:34:10Z
2017-12-18T15:20:27Z
DOC: replaced 'Good as first PR' with 'good first issue'
diff --git a/doc/README.rst b/doc/README.rst index b2c66611b68bb..efa21fdd3a2d9 100644 --- a/doc/README.rst +++ b/doc/README.rst @@ -160,8 +160,8 @@ Where to start? There are a number of issues listed under `Docs <https://github.com/pandas-dev/pandas/issues?labels=Docs&sort=updated&state=open>`_ -and `Good as first...
- [NA] closes #xxxx - [NA] tests added / passed - [NA] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [NA] whatsnew entry Was browsing https://github.com/pandas-dev/pandas/tree/master/doc and it seemed the 'Good as first PR' had no open issues, whereas 'good first issue' has quite a few open is...
https://api.github.com/repos/pandas-dev/pandas/pulls/18806
2017-12-16T16:47:58Z
2017-12-18T12:14:06Z
2017-12-18T12:14:06Z
2017-12-18T12:14:25Z
ENH: Add length attribute to Interval and IntervalIndex
diff --git a/doc/source/api.rst b/doc/source/api.rst index 3edaadba64762..64f972e52d190 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1623,6 +1623,7 @@ IntervalIndex Components IntervalIndex.right IntervalIndex.mid IntervalIndex.closed + IntervalIndex.length IntervalIndex.values Int...
- [X] closes #18789 - [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/18805
2017-12-16T15:38:06Z
2017-12-23T20:36:29Z
2017-12-23T20:36:29Z
2017-12-30T21:48:13Z
CLN: Drop the as_recarray parameter in read_csv
diff --git a/doc/source/io.rst b/doc/source/io.rst index 1a777c3e0b15f..184767015bf93 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -143,15 +143,6 @@ usecols : array-like or callable, default ``None`` pd.read_csv(StringIO(data), usecols=lambda x: x.upper() in ['COL1', 'COL3']) Using this paramete...
Deprecated back in 0.19.0 xref #13373.
https://api.github.com/repos/pandas-dev/pandas/pulls/18804
2017-12-16T05:38:57Z
2017-12-18T12:16:09Z
2017-12-18T12:16:09Z
2017-12-18T17:13:15Z
DEPR: Deprecate Series.valid
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 9dc10a09378f8..c4a7bab0f9406 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -203,6 +203,7 @@ Deprecations - ``Series.from_array`` and ``SparseSeries.from_array`` are deprecated. Use the normal co...
- [x] xref #18262 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This PR deprecates the ``valid`` method on ``pd.Series``. This method duplicates ``dropna`` and should be deprecated according to #18262.
https://api.github.com/repos/pandas-dev/pandas/pulls/18800
2017-12-15T22:43:45Z
2017-12-16T10:42:46Z
2017-12-16T10:42:46Z
2018-02-02T17:06:21Z
BUG: Convert data elements when dtype=str in Series constructor with …
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 0579a80aad28e..1a19033ac61ee 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -277,6 +277,7 @@ Conversion - Fixed a bug where ``FY5253`` date offsets could incorrectly raise an ``AssertionError`` i...
…int/float list - [ ] closes #16605 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Not sure if my solution is correct but it seems to resolve the issue and pass the tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/18795
2017-12-15T17:08:36Z
2017-12-21T15:18:34Z
2017-12-21T15:18:34Z
2017-12-21T16:22:38Z
Skipif no scipy
diff --git a/pandas/tests/dtypes/test_common.py b/pandas/tests/dtypes/test_common.py index e0be34b14a97d..2146704fea95f 100644 --- a/pandas/tests/dtypes/test_common.py +++ b/pandas/tests/dtypes/test_common.py @@ -9,6 +9,7 @@ import pandas.core.dtypes.common as com import pandas.util.testing as tm +import pandas.uti...
- [ ] progress towards #18190 - [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/18794
2017-12-15T16:46:26Z
2017-12-15T23:54:47Z
2017-12-15T23:54:47Z
2017-12-15T23:55:53Z
DOC: standardizing docstrings to use pd.DataFrame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 753c623b2de4c..65934494b321b 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2304,7 +2304,7 @@ def query(self, expr, inplace=False, **kwargs): -------- >>> from numpy.random import randn >>> from pandas import Dat...
- [ ] closes #18770 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18788
2017-12-15T03:56:07Z
2017-12-16T10:43:39Z
2017-12-16T10:43:39Z
2017-12-16T10:43:45Z
use / test modern conda recipe
diff --git a/.travis.yml b/.travis.yml index 0f43e4cf54faa..9eccf87960dd0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,7 +51,7 @@ matrix: - python-gtk2 - dist: trusty env: - - JOB="3.5" TEST_ARGS="--skip-slow --skip-network" COVERAGE=true + - JOB="3.5_CONDA_BUILD_TEST" TEST_ARG...
supersedes #18592 closes #18002
https://api.github.com/repos/pandas-dev/pandas/pulls/18787
2017-12-15T02:19:05Z
2017-12-19T10:57:03Z
2017-12-19T10:57:02Z
2017-12-19T13:00:42Z
TST: xfail geopandas downstream test
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index 0f0abd8cd3400..6407bee49ad15 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -92,6 +92,7 @@ def test_pandas_datareader(): pandas_datareader.get_data_google('AAPL') +@pytest.mark.xfail(reas...
xref #18780
https://api.github.com/repos/pandas-dev/pandas/pulls/18786
2017-12-15T01:45:31Z
2017-12-15T01:45:37Z
2017-12-15T01:45:37Z
2017-12-15T01:45:37Z
Fix Series.__sub__ non-nano datetime64
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 3f300deddebeb..1273433730162 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -350,7 +350,7 @@ Reshaping Numeric ^^^^^^^ -- +- Bug in :func:`Series.__sub__` subtracting a non-nanosecond ``np.dat...
The original bug report was for `Series`. This fixes that bug and includes a test that checks for `DatetimeIndex` while we're at it. I checked and this does _not_ fix the analogous problem in `DataFrame. I'm hoping someone else will pick up the torch on that b/c the broadcast/dispatch is still something of a mystery...
https://api.github.com/repos/pandas-dev/pandas/pulls/18783
2017-12-14T17:13:34Z
2017-12-28T12:31:28Z
2017-12-28T12:31:28Z
2018-02-11T22:00:25Z
COMPAT: 32-bit compat for tz-conversions
diff --git a/pandas/_libs/tslibs/conversion.pyx b/pandas/_libs/tslibs/conversion.pyx index c12a15b71487b..11e1787cd77da 100644 --- a/pandas/_libs/tslibs/conversion.pyx +++ b/pandas/_libs/tslibs/conversion.pyx @@ -469,7 +469,8 @@ cdef inline void _localize_tso(_TSObject obj, object tz): """ cdef: ndar...
xref #18777
https://api.github.com/repos/pandas-dev/pandas/pulls/18778
2017-12-14T11:09:56Z
2017-12-14T12:34:42Z
2017-12-14T12:34:42Z
2017-12-14T12:35:09Z
Construct 1d array from listlike
diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py index 6276dc324ca0d..65af7b077d80f 100644 --- a/asv_bench/benchmarks/ctors.py +++ b/asv_bench/benchmarks/ctors.py @@ -1,10 +1,36 @@ import numpy as np -from pandas import DataFrame, Series, Index, DatetimeIndex, Timestamp +from pandas import Se...
- [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` #18626 isn't converging, will need more work and I won't have much time soon, so I took away the asv and refactoring that should be straighforward to merge. asv says ``` before after ratio [...
https://api.github.com/repos/pandas-dev/pandas/pulls/18769
2017-12-13T18:10:31Z
2017-12-19T14:41:05Z
2017-12-19T14:41:05Z
2017-12-19T15:02:46Z
Added pyarrow to OSX build script
diff --git a/ci/requirements-3.5_OSX.sh b/ci/requirements-3.5_OSX.sh index c2978b175968c..f22f57c38364d 100644 --- a/ci/requirements-3.5_OSX.sh +++ b/ci/requirements-3.5_OSX.sh @@ -4,4 +4,4 @@ source activate pandas echo "install 35_OSX" -conda install -n pandas -c conda-forge feather-format==0.3.1 fastparquet +co...
- [X] closes #18714 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18766
2017-12-13T15:39:09Z
2017-12-13T21:29:44Z
null
2017-12-13T21:29:51Z
TST: Skip if Decorators for Localpath and Pathlib
diff --git a/pandas/tests/io/sas/test_sas7bdat.py b/pandas/tests/io/sas/test_sas7bdat.py index c059f01ecf3f4..5da347e47957c 100644 --- a/pandas/tests/io/sas/test_sas7bdat.py +++ b/pandas/tests/io/sas/test_sas7bdat.py @@ -1,6 +1,7 @@ import pandas as pd from pandas.compat import PY2 import pandas.util.testing as tm +...
- [ ] progress towards #18190 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This push should knock out the ``pathlib`` and ``localpath`` skip if functions. Rather than creating them as their own marks, I've created a generic decorator that ac...
https://api.github.com/repos/pandas-dev/pandas/pulls/18765
2017-12-13T15:10:27Z
2017-12-15T01:03:07Z
2017-12-15T01:03:07Z
2017-12-15T02:39:10Z
Implement roll_monthday, simplify SemiMonthOffset
diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx index 933e7ed64b837..d3278e42e413f 100644 --- a/pandas/_libs/tslibs/offsets.pyx +++ b/pandas/_libs/tslibs/offsets.pyx @@ -523,11 +523,9 @@ def shift_quarters(int64_t[:] dtindex, int quarters, n = quarters ...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18762
2017-12-13T06:44:31Z
2017-12-30T12:37:09Z
2017-12-30T12:37:09Z
2018-01-23T04:40:48Z
[WIP] implement tests using hypothesis
diff --git a/.gitignore b/.gitignore index b1748ae72b8ba..8a4b2574b3dfb 100644 --- a/.gitignore +++ b/.gitignore @@ -61,6 +61,9 @@ dist coverage.xml coverage_html_report +# hypothesis test database +.hypothesis/ + # OS generated files # ###################### .directory diff --git a/pandas/tests/tseries/offsets/...
[skipci] Related: #17978 Exposes a whole bunch of broken cases. Many of them look like they are not currently caught because the large majority of offset tests use tz-naive pydatetime inputs. Note this does _not_ fix these bugs. The goal here is a Proof Of Concept for using hypothesis and discuss if/how we ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18761
2017-12-13T06:41:50Z
2017-12-18T23:00:36Z
null
2018-02-11T22:00:35Z
CLN: ASV inference benchmark
diff --git a/asv_bench/benchmarks/inference.py b/asv_bench/benchmarks/inference.py index dc1d6de73f8ae..16d9e7cd73cbb 100644 --- a/asv_bench/benchmarks/inference.py +++ b/asv_bench/benchmarks/inference.py @@ -1,77 +1,80 @@ -from .pandas_vb_common import * -import pandas as pd +import numpy as np +import pandas.util.tes...
- Flake8 and removed star imports - Used `params` and `setup_cache` where possible ``` asv dev -b ^inference · Discovering benchmarks · Running 13 total benchmarks (1 commits * 1 environments * 13 benchmarks) [ 0.00%] ·· Building for existing-py_home_matt_anaconda_envs_pandas_dev_bin_python [ 0.00%] ·· Ben...
https://api.github.com/repos/pandas-dev/pandas/pulls/18759
2017-12-13T06:27:28Z
2017-12-18T13:00:00Z
2017-12-18T13:00:00Z
2017-12-18T18:51:46Z
CLN: ASV index_object benchmark
diff --git a/asv_bench/benchmarks/ctors.py b/asv_bench/benchmarks/ctors.py index 65af7b077d80f..3f9016787aab4 100644 --- a/asv_bench/benchmarks/ctors.py +++ b/asv_bench/benchmarks/ctors.py @@ -1,7 +1,8 @@ import numpy as np -from pandas import Series, Index, DatetimeIndex, Timestamp +import pandas.util.testing as tm +...
- Remove star imports and flake8 checked - Moved some index constructor benchmarks to `ctors.py` (probably should rename this file in the future) - Moved some index indexing benchmarks to `indexing.py` ``` asv dev -b ^index_object · Discovering benchmarks · Running 32 total benchmarks (1 commits * 1 environ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18758
2017-12-13T05:06:10Z
2017-12-26T07:55:24Z
2017-12-26T07:55:24Z
2017-12-31T04:49:26Z
BUG: Fix IntervalIndex.to_tuples() with NA values
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 37032ff6bc313..9dc10a09378f8 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -138,6 +138,7 @@ Other Enhancements - :func:`Series` / :func:`DataFrame` tab completion also returns identifiers in the...
- [X] closes #18756 - [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/18757
2017-12-13T03:56:50Z
2017-12-15T11:32:04Z
2017-12-15T11:32:03Z
2017-12-16T18:33:47Z
CLN: factor apply out of frame.py
diff --git a/pandas/core/apply.py b/pandas/core/apply.py new file mode 100644 index 0000000000000..2f43087f7dff9 --- /dev/null +++ b/pandas/core/apply.py @@ -0,0 +1,301 @@ +import numpy as np +from pandas import compat +from pandas._libs import lib +from pandas.core.dtypes.common import ( + is_extension_type, + i...
xref #18577
https://api.github.com/repos/pandas-dev/pandas/pulls/18754
2017-12-13T01:43:58Z
2017-12-14T11:36:50Z
2017-12-14T11:36:50Z
2017-12-14T12:10:16Z
DOC: read_excel doc - fixed formatting and added examples
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 0301bf0a23dd5..0f6660d2f4125 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -205,6 +205,8 @@ Other API Changes - Rearranged the order of keyword arguments in :func:`read_excel()` to align with :f...
Fixes a formatting bug in the `read_excel` docs that caused a line break and bold print in list of `_NA_VALUES`. Adds examples in the `read_excel` docstring. - [x] closes #18735 - [x] tests added & passed - [x] passes `git diff master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18753
2017-12-12T23:36:07Z
2017-12-30T13:33:45Z
2017-12-30T13:33:45Z
2017-12-30T13:33:48Z
CLN: remove doc/plots directory (dead code)
diff --git a/doc/plots/stats/moment_plots.py b/doc/plots/stats/moment_plots.py deleted file mode 100644 index 9e3a902592c6b..0000000000000 --- a/doc/plots/stats/moment_plots.py +++ /dev/null @@ -1,30 +0,0 @@ -import numpy as np - -import matplotlib.pyplot as plt -import pandas.util.testing as t -import pandas.stats.mom...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry As part of my work on #18723, I've stumbled upon the ``doc/plots`` directory. I've searched for usages of files in this directory and have turned up blanks only, so this whole directory seems to be dead code. I assume the dir ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18751
2017-12-12T22:54:31Z
2017-12-13T01:57:45Z
2017-12-13T01:57:44Z
2017-12-13T19:56:30Z
DOC: copied over the shared transform documentation from Series/DataF…
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index a5d8cc254cd93..bba2b5b8bc468 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -816,6 +816,9 @@ def _python_apply_general(self, f): def _iterate_slices(self): yield self._selection_name, self._selected_obj + @Appende...
…rame.transform to core.GroupBy.transform. (#6257) ~- [ ] closes #xxxx~ - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18750
2017-12-12T21:43:20Z
2017-12-13T02:01:12Z
null
2023-05-11T01:16:56Z
DOC: Adding example to head and tail method (#16416)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index da550dccc9c89..4eb7865523cc3 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3563,6 +3563,44 @@ def head(self, n=5): ------- obj_head : type of caller The first n rows of the caller object. + + ...
closes #18691 - [X] closes #16416 - [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/18749
2017-12-12T21:37:11Z
2017-12-15T23:56:55Z
2017-12-15T23:56:55Z
2017-12-15T23:56:58Z
Move tests that dont belong in test_offsets
diff --git a/pandas/tests/scalar/test_parsing.py b/pandas/tests/scalar/test_parsing.py index 8ae858d791a97..bff0de649ac5e 100644 --- a/pandas/tests/scalar/test_parsing.py +++ b/pandas/tests/scalar/test_parsing.py @@ -7,11 +7,51 @@ import pytest from dateutil.parser import parse +import pandas as pd import pandas.u...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18747
2017-12-12T20:25:08Z
2017-12-13T14:12:33Z
2017-12-13T14:12:33Z
2018-02-11T22:00:37Z
Add example to `Dataframe.head()` method's docstring.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index da550dccc9c89..071dda090fddd 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2966,8 +2966,8 @@ def add_suffix(self, suffix): Examples -------- >>> df = pd.DataFrame({ - ... 'col1' : ['A', 'A', '...
closes #18691 closes #16416
https://api.github.com/repos/pandas-dev/pandas/pulls/18746
2017-12-12T19:42:37Z
2017-12-15T23:58:03Z
null
2017-12-16T13:07:25Z
Created decorators for skip_if locale functions
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py index a94865d8e9657..c89e3ddbfc5d0 100644 --- a/pandas/tests/indexes/datetimes/test_tools.py +++ b/pandas/tests/indexes/datetimes/test_tools.py @@ -22,7 +22,7 @@ from pandas.core.dtypes.common import is_datetime64_...
- [ ] progress towards #18190 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18745
2017-12-12T16:18:31Z
2017-12-13T01:47:42Z
2017-12-13T01:47:42Z
2017-12-13T01:55:29Z
DOC: Fix sphinx warning
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 14bb77be5d77c..a7dde5d6ee410 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -123,7 +123,7 @@ I/O - Bug in :func:`read_csv` when reading numeric category fields with high cardinality (:issue:`1818...
[ci skip] It interpreted that as a link.
https://api.github.com/repos/pandas-dev/pandas/pulls/18741
2017-12-12T03:19:31Z
2017-12-12T09:35:07Z
2017-12-12T09:35:07Z
2017-12-20T16:11:31Z
DOC: Add date to whatsnew
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index a250505adc409..14bb77be5d77c 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -1,7 +1,7 @@ .. _whatsnew_0211: -v0.21.1 -------- +v0.21.1 (December 12, 2017) +--------------------------- This i...
[ci skip]
https://api.github.com/repos/pandas-dev/pandas/pulls/18740
2017-12-12T03:02:50Z
2017-12-12T03:03:23Z
2017-12-12T03:03:23Z
2017-12-12T03:03:28Z
DOC: Update relase notes
diff --git a/doc/source/release.rst b/doc/source/release.rst index a3289b1144863..0298eda2c78ab 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -37,6 +37,82 @@ analysis / manipulation tool available in any language. * Binary installers on PyPI: http://pypi.python.org/pypi/pandas * Documentation: h...
[ci skip] Updating the release doc, and some wording issues.
https://api.github.com/repos/pandas-dev/pandas/pulls/18739
2017-12-12T02:56:41Z
2017-12-12T02:58:33Z
2017-12-12T02:58:33Z
2017-12-12T02:58:36Z
Implement missing offset comparison methods
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index b37e5dc620260..6b0dbedbbdfc6 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -567,7 +567,13 @@ cdef class _Timedelta(timedelta): return PyObject_RichCompare(np.arra...
- [ ] closes #xxxx - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Not sure if it closes #8386, but its most of the way there. Fix some missing comparisons, including Timedelta with Tick and Tick with (timedelta|Timedelta|Week) Attach corr...
https://api.github.com/repos/pandas-dev/pandas/pulls/18738
2017-12-12T02:19:26Z
2017-12-28T19:49:08Z
null
2020-04-05T17:39:59Z
Update parsers.py usecols description
diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py index 927edbf236366..ff7c4972bc502 100755 --- a/pandas/io/parsers.py +++ b/pandas/io/parsers.py @@ -108,6 +108,8 @@ example of a valid callable argument would be ``lambda x: x.upper() in ['AAA', 'BBB', 'DDD']``. Using this parameter results in much fast...
Added note on the description of usecols in parsers.py file to clarify that order of parsers.py doesn't matter in the read_csv() method. Regardless of what order usecols is inputted in, read_csv() will return a DataFrame of the columns in ascending order.
https://api.github.com/repos/pandas-dev/pandas/pulls/18737
2017-12-12T00:16:35Z
2017-12-12T01:11:23Z
null
2023-05-11T01:16:55Z
Backports round 2
diff --git a/.gitignore b/.gitignore index ff0a6aef47163..b1748ae72b8ba 100644 --- a/.gitignore +++ b/.gitignore @@ -106,3 +106,4 @@ doc/build/html/index.html doc/tmp.sv doc/source/styled.xlsx doc/source/templates/ +env/ diff --git a/doc/source/computation.rst b/doc/source/computation.rst index 0cdfec63fd696..cd3cc2...
https://api.github.com/repos/pandas-dev/pandas/pulls/18732
2017-12-11T20:42:07Z
2017-12-12T02:37:19Z
2017-12-12T02:37:19Z
2017-12-12T02:38:31Z
COMPAT: Emit warning when groupby by a tuple
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 316244b583aa2..552ddabb7359a 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -1091,7 +1091,7 @@ You can also select multiple rows from each group by specifying multiple nth val business_dates = pd.date_range(start='4/1/2014', end...
Closes https://github.com/pandas-dev/pandas/issues/18314
https://api.github.com/repos/pandas-dev/pandas/pulls/18731
2017-12-11T19:05:39Z
2017-12-18T18:37:45Z
2017-12-18T18:37:45Z
2017-12-18T18:37:49Z
DOC: fix options table
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index 49ac516af6d37..a6bc9431d3bcc 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -340,7 +340,7 @@ The following methods are available: The weights used in the window are specified by the ``win_type`` keyword. The list...
https://api.github.com/repos/pandas-dev/pandas/pulls/18730
2017-12-11T18:58:09Z
2017-12-11T21:03:51Z
2017-12-11T21:03:51Z
2017-12-11T21:03:56Z
DOC: read_csv usecols element order is ignored
diff --git a/doc/source/io.rst b/doc/source/io.rst index 54e7a11c5f2b1..01ac9517cddc0 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -131,7 +131,8 @@ usecols : array-like or callable, default ``None`` be positional (i.e. integer indices into the document columns) or strings that correspond to column na...
- [x] closes #18673 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18729
2017-12-11T17:30:17Z
2017-12-21T15:24:08Z
2017-12-21T15:24:08Z
2017-12-22T12:50:53Z
centralize and de-privatize month/day name constants
diff --git a/pandas/_libs/tslibs/ccalendar.pyx b/pandas/_libs/tslibs/ccalendar.pyx index a68ecbd2e8629..d7edae865911a 100644 --- a/pandas/_libs/tslibs/ccalendar.pyx +++ b/pandas/_libs/tslibs/ccalendar.pyx @@ -33,6 +33,17 @@ cdef int32_t* _month_offset = [ 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365,...
- [ ] 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/18728
2017-12-11T17:01:37Z
2017-12-12T10:55:19Z
2017-12-12T10:55:19Z
2018-01-23T04:40:57Z
bugfix for plot for string x values
diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index b15c5271ae321..3e186b7e4aaee 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -561,12 +561,14 @@ def _get_xticks(self, convert_period=False): if convert_period and isinstance(index, PeriodIndex): ...
- [ ] closes #18687 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Matplotlib can handle string data, so `_get_xticks` does not need to convert strings to int
https://api.github.com/repos/pandas-dev/pandas/pulls/18726
2017-12-11T12:50:23Z
2018-10-11T01:59:30Z
null
2018-10-11T01:59:30Z
CLN: ASV rolling benchmark
diff --git a/asv_bench/benchmarks/gil.py b/asv_bench/benchmarks/gil.py index 654e5d3bfec0e..7d63d78084270 100644 --- a/asv_bench/benchmarks/gil.py +++ b/asv_bench/benchmarks/gil.py @@ -180,19 +180,35 @@ def setup(self, method): raise NotImplementedError win = 100 arr = np.random.rand(1000...
The benchmark was simplified by parameterizing over the various statistical methods and constructors (Series and DataFrame). I made a separate class for `Quantile` since various quantiles were benchmarked. I figured benchmarking 10^4 points and 10^5 points is a little redundant, so I am just benchmarking 10^5 here.
https://api.github.com/repos/pandas-dev/pandas/pulls/18725
2017-12-11T04:16:36Z
2017-12-13T14:42:14Z
2017-12-13T14:42:14Z
2017-12-13T18:00:16Z
CLN: Drop the skip_footer parameter in read_csv
diff --git a/doc/source/io.rst b/doc/source/io.rst index 54e7a11c5f2b1..370d9a96ee9ae 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -198,10 +198,6 @@ skiprows : list-like or integer, default ``None`` skipfooter : int, default ``0`` Number of lines at bottom of file to skip (unsupported with engine='c'...
Deprecated back in 0.19.0. xref #13386.
https://api.github.com/repos/pandas-dev/pandas/pulls/18724
2017-12-11T04:15:56Z
2017-12-11T21:40:57Z
2017-12-11T21:40:57Z
2017-12-12T05:03:03Z
DEPR/CLN: Remove pd.rolling_*, pd.expanding* and pd.ewm*
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index 06afa440aa26c..a64542fa71705 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -209,19 +209,12 @@ Window Functions .. currentmodule:: pandas.core.window -.. warning:: - - Prior to version 0.18.0, ``pd.rolling_*``...
- [x] xref #18601, #18668 and #11603 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This PR removes ``pd.rolling_*``,`` pd.expanding_*`` ``pd.ewm*`` and the related ``pd.stats`` subpackage from the code base. I have some doubts about some stuff: * there are modules ``...
https://api.github.com/repos/pandas-dev/pandas/pulls/18723
2017-12-11T00:55:43Z
2018-02-01T09:12:01Z
2018-02-01T09:12:01Z
2018-02-01T11:33:09Z
STYLE: linting issue, xref #17628
diff --git a/ci/lint.sh b/ci/lint.sh index bec82602fa509..13caccdcb1fea 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -97,7 +97,7 @@ if [ "$LINT" ]; then # # Check the following functions: # any(), all(), sum(), max(), min(), list(), dict(), set(), frozenset(), tuple(), str.join() - grep -R --include="*...
https://api.github.com/repos/pandas-dev/pandas/pulls/18722
2017-12-11T00:40:42Z
2017-12-11T00:41:00Z
2017-12-11T00:41:00Z
2017-12-11T00:41:00Z
TST/CLN: parametrize coercion tests
diff --git a/pandas/tests/indexing/test_coercion.py b/pandas/tests/indexing/test_coercion.py index 752d2deb53304..619a8ca3bf112 100644 --- a/pandas/tests/indexing/test_coercion.py +++ b/pandas/tests/indexing/test_coercion.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- +import itertools import pytest import numpy as np...
- [ ] progress towards #18706 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This is not yet finished but wanted to share progress in case of feedback. The main thing I'm questioning is the need to use the `` test_has_comprehensive_tests`` met...
https://api.github.com/repos/pandas-dev/pandas/pulls/18721
2017-12-11T00:22:59Z
2017-12-13T02:02:45Z
2017-12-13T02:02:45Z
2018-01-11T20:50:22Z
TST: make it possible to run tests without moto installed
diff --git a/pandas/tests/io/conftest.py b/pandas/tests/io/conftest.py index 828d5d0ccd3c6..57e72da2fd3f4 100644 --- a/pandas/tests/io/conftest.py +++ b/pandas/tests/io/conftest.py @@ -1,6 +1,5 @@ import os -import moto import pytest from pandas.io.parsers import read_table @@ -42,6 +41,7 @@ def s3_resource(tips...
https://api.github.com/repos/pandas-dev/pandas/pulls/18719
2017-12-10T23:11:04Z
2017-12-11T10:57:01Z
2017-12-11T10:57:01Z
2017-12-11T10:57:04Z
DOC: improved pivot_table(..) aggfunc parameter explanation
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9ce6b6148be56..5f323d0f040bc 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4413,10 +4413,12 @@ def pivot(self, index=None, columns=None, values=None): list can contain any of the other types (except list). Keys t...
- [ ] closes #18712 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18718
2017-12-10T17:06:50Z
2017-12-12T22:03:19Z
2017-12-12T22:03:19Z
2017-12-12T22:03:31Z
Parquet: Add error message for no engine found
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 7827c3ae04d4d..3ebdd760aa0a6 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -25,6 +25,11 @@ def get_engine(engine): except ImportError: pass + raise ImportError("Unable to find a usable engine; " + ...
Give a better error message for engine="auto" case when none of the engines were found installed. closes #18156 Cherry-picking the doc part of PR https://github.com/pandas-dev/pandas/pull/18568
https://api.github.com/repos/pandas-dev/pandas/pulls/18717
2017-12-10T16:42:17Z
2017-12-10T22:50:24Z
2017-12-10T22:50:24Z
2017-12-12T02:38:31Z
BLD/TST: cross compat for pa/fp failing on osx & windows
diff --git a/ci/install_travis.sh b/ci/install_travis.sh index dac3625cba4ba..b9d1c9354eeb4 100755 --- a/ci/install_travis.sh +++ b/ci/install_travis.sh @@ -155,12 +155,11 @@ echo "[removing installed pandas]" conda remove pandas -y --force pip uninstall -y pandas -if [ "$BUILD_TEST" ]; then +# remove any installat...
xref #18662 closes #18714
https://api.github.com/repos/pandas-dev/pandas/pulls/18715
2017-12-10T15:28:36Z
2017-12-18T12:24:08Z
null
2017-12-18T12:24:08Z
BUG: Fix Series.astype and Categorical.astype to update existing Categorical data
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index c2da0c420f643..f02c389252f47 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -263,6 +263,7 @@ Conversion - Adding a ``Period`` object to a ``datetime`` or ``Timestamp`` object will now correctly r...
- [X] closes #10696 - [X] closes #18593 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Couldn't find an issue about it, but the same problem described with `Series.astype` in the linked issues was occurring with `Categorical.astype`. Put in a...
https://api.github.com/repos/pandas-dev/pandas/pulls/18710
2017-12-10T05:07:27Z
2017-12-13T14:35:18Z
2017-12-13T14:35:18Z
2017-12-13T19:34:10Z
TST: lock down timeseries now tests, xref #18666
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 7b0504388be22..c7035df8ac15c 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -220,7 +220,7 @@ def _test_parse_iso8601(object ts): if ts == 'now': return Timestamp.utcnow() elif ts == 'today': - return Timest...
See the comment attached to `test_to_datetime_today`. This test is not deterministic, will fail to detect the change introduced by #18666 1 hour out of each day. - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/18709
2017-12-10T03:11:12Z
2017-12-12T01:20:58Z
2017-12-12T01:20:58Z
2018-02-11T22:00:38Z
BUG: Fix resample with np.timedelta64 loffset has no effect
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index 9f5439b68558b..3b6ba84a416e6 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -1051,6 +1051,8 @@ def __init__(self, freq='Min', closed=None, label=None, how='mean', if isinstance(loffset, compat.string_types): ...
- [x] closes #7687 - [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/18708
2017-12-10T02:49:40Z
2018-01-21T18:24:29Z
null
2018-01-21T18:24:29Z
BUG: Pass kwargs from Index.to_series to pd.Series
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 841eec69d41ba..220e55a1f8ee9 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -189,7 +189,7 @@ Other API Changes - :func:`pandas.DataFrame.merge` no longer casts a ``float`` column to ``object`` wh...
- [x] closes #18699 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Please let me know if you have any questions
https://api.github.com/repos/pandas-dev/pandas/pulls/18707
2017-12-10T00:27:16Z
2017-12-13T14:36:55Z
2017-12-13T14:36:55Z
2017-12-13T15:02:56Z
BUG: Fix df.loc slice support
diff --git a/pandas/core/indexes/multi.py b/pandas/core/indexes/multi.py index 81d892fba0fe2..f4a5dfa3fd29a 100644 --- a/pandas/core/indexes/multi.py +++ b/pandas/core/indexes/multi.py @@ -2097,7 +2097,9 @@ def _maybe_to_slice(loc): mask[loc] = True return mask - if not isinstance(key...
- [x] closes #8856 - [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/18703
2017-12-09T12:02:42Z
2018-02-10T18:43:23Z
null
2018-02-10T18:43:23Z
add benchmarks for timestamp parsing
diff --git a/asv_bench/benchmarks/timedelta.py b/asv_bench/benchmarks/timedelta.py index 2d1ff3a24f787..f99f95678a0b7 100644 --- a/asv_bench/benchmarks/timedelta.py +++ b/asv_bench/benchmarks/timedelta.py @@ -1,5 +1,7 @@ -from .pandas_vb_common import * -from pandas import to_timedelta, Timestamp +import numpy as np +i...
There's a reasonable case to be made that these and timeseries.ToDatetime benchmarks belong in the same place. LMK if there's a preference. Small flake8 fixups got timedelta.py passing, enabled linting for modules starting with "t".
https://api.github.com/repos/pandas-dev/pandas/pulls/18698
2017-12-08T19:32:30Z
2017-12-09T14:56:26Z
2017-12-09T14:56:26Z
2018-01-23T04:40:57Z
0.21.1 backports (round 1)
diff --git a/.travis.yml b/.travis.yml index fe1a2950dbf08..42b4ef0396fc8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -102,8 +102,6 @@ before_install: - uname -a - git --version - git tag - - ci/before_install_travis.sh - - export DISPLAY=":99.0" install: - echo "install start" @@ -114,6 +112,8 @@ in...
Reminder: don't squash before merging.
https://api.github.com/repos/pandas-dev/pandas/pulls/18697
2017-12-08T19:13:55Z
2017-12-11T17:24:51Z
2017-12-11T17:24:51Z
2017-12-11T20:25:37Z
API: Improper x/y arg given to df.plot
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index c3a0e3599a0f9..5a5d6e92c21e8 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -282,7 +282,7 @@ I/O Plotting ^^^^^^^^ -- +- :func: `DataFrame.plot` now raises a ``ValueError`` when the ``x`` or `...
- [x] closes #18671 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry I'm not incredibly familiar with your codebase so I did my best to follow conventions. Not sure what to do with whatsnew for this case? Description: - Validation of x or...
https://api.github.com/repos/pandas-dev/pandas/pulls/18695
2017-12-08T16:52:11Z
2017-12-10T15:39:57Z
2017-12-10T15:39:57Z
2018-03-20T18:30:28Z
Converted windows / 32bit skips into decorators
diff --git a/pandas/tests/computation/test_eval.py b/pandas/tests/computation/test_eval.py index c2d1eb8ae1372..06e645563d51c 100644 --- a/pandas/tests/computation/test_eval.py +++ b/pandas/tests/computation/test_eval.py @@ -28,6 +28,7 @@ import pandas.core.computation.expr as expr import pandas.util.testing as tm ...
- [X] xref #18190 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Don't have a 32bit or Windows platform at my disposal so plan to leverage AppVeyor and compare before / after of skips to ensure consistency. If you have other ideas on how to ta...
https://api.github.com/repos/pandas-dev/pandas/pulls/18693
2017-12-08T15:35:01Z
2017-12-11T01:17:30Z
2017-12-11T01:17:30Z
2017-12-11T01:22:30Z
DOC: clean-up whatsnew file for 0.21.1
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index daf060f50b060..31902c98d0b6c 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -3,9 +3,23 @@ v0.21.1 ------- -This is a minor release from 0.21.1 and includes a number of deprecations, new -featu...
xref https://github.com/pandas-dev/pandas/issues/18244
https://api.github.com/repos/pandas-dev/pandas/pulls/18690
2017-12-08T13:26:30Z
2017-12-10T14:06:38Z
2017-12-10T14:06:38Z
2017-12-12T02:38:31Z
TST: xfail unreliable parallel coordinates sorted label test
diff --git a/pandas/tests/plotting/test_misc.py b/pandas/tests/plotting/test_misc.py index 8b0a981760c72..1753bc6387d33 100644 --- a/pandas/tests/plotting/test_misc.py +++ b/pandas/tests/plotting/test_misc.py @@ -202,6 +202,7 @@ def test_parallel_coordinates(self): with tm.assert_produces_warning(FutureWarning...
https://api.github.com/repos/pandas-dev/pandas/pulls/18688
2017-12-08T11:09:40Z
2017-12-08T12:40:58Z
2017-12-08T12:40:58Z
2017-12-11T20:20:42Z
BUG: LatexFormatter.write_result multi-index
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index fcc9144bef9e3..0ad0cac0a4181 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -120,6 +120,7 @@ I/O - Bug in :meth:`DataFrame.to_msgpack` when serializing data of the numpy.bool_ datatype (:issue:`1...
Supersedes #17499 Closes #14484 Had to create a new PR because #17499 doesn't seem like it allows edits from maintainers (got denied when trying to push the remote). cc @MxKy
https://api.github.com/repos/pandas-dev/pandas/pulls/18685
2017-12-08T05:19:09Z
2017-12-08T11:11:44Z
2017-12-08T11:11:44Z
2017-12-11T01:45:01Z
BENCH: fix timestamp asvs
diff --git a/asv_bench/benchmarks/timestamp.py b/asv_bench/benchmarks/timestamp.py index 9d7d6d2998a8b..c8a93b09d94c0 100644 --- a/asv_bench/benchmarks/timestamp.py +++ b/asv_bench/benchmarks/timestamp.py @@ -6,10 +6,9 @@ class TimestampProperties(object): goal_time = 0.2 - params = [(None, None), - ...
- [x] closes #18680
https://api.github.com/repos/pandas-dev/pandas/pulls/18684
2017-12-08T00:33:15Z
2017-12-08T10:51:03Z
2017-12-08T10:51:02Z
2017-12-08T19:40:41Z
Added mpl_15 decorator
diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py index db0c1e1cc563c..e87c67a682d46 100644 --- a/pandas/tests/plotting/test_datetimelike.py +++ b/pandas/tests/plotting/test_datetimelike.py @@ -519,6 +519,7 @@ def test_finder_hourly(self): xp = Period('1/1...
- [X] progress towards #18190 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry FWIW the functionality here could be slightly different, because the previous skip if items occurred in the middle of the function bodies instead of wrapping the func...
https://api.github.com/repos/pandas-dev/pandas/pulls/18682
2017-12-07T19:15:21Z
2017-12-08T02:10:30Z
2017-12-08T02:10:30Z
2017-12-08T02:11:06Z
Documentation fix for method last_valid_index
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 68cf5dd7161e3..9ce6b6148be56 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4320,7 +4320,7 @@ def first_valid_index(self): return valid_indices[0] if len(valid_indices) else None @Appender(_shared_docs['valid_index'] % { - ...
Documentation was showing "Return index for first non-NA/null value" for both first_valid_index and last_valid_index methods. Fixed by switching "first" to "last" - [ X ] closes #18564 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/18681
2017-12-07T18:24:15Z
2017-12-08T02:11:15Z
2017-12-08T02:11:15Z
2017-12-11T20:20:46Z
BUG: Ensure Index.astype('category') returns a CategoricalIndex
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index b319c8bb79bb3..29c6dcaef19ab 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -259,6 +259,7 @@ Conversion - Fixed a bug where creating a Series from an array that contains both tz-naive and tz-awar...
- [X] closes #18630 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Notes: - `MultiIndex.astype('category')` raises per @TomAugspurger's comment in the issue. - `IntervalIndex.astype('category')` return a `Categorical` with `ordered=True` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18677
2017-12-07T08:11:35Z
2017-12-11T11:06:20Z
2017-12-11T11:06:20Z
2017-12-11T21:25:20Z
CLN: ASV Gil benchmark
diff --git a/asv_bench/benchmarks/attrs_caching.py b/asv_bench/benchmarks/attrs_caching.py index 3c091be7a8424..48f0b7d71144c 100644 --- a/asv_bench/benchmarks/attrs_caching.py +++ b/asv_bench/benchmarks/attrs_caching.py @@ -1,18 +1,18 @@ import numpy as np from pandas import DataFrame - try: from pandas.util i...
- Adding missing `setup` import to `attrs_caching.py` - Now lint benchmark files that start with g and h - Utilized `params` for `gil.py` benchmarks, flake8 and remove start imports ``` asv dev -b ^gil · Discovering benchmarks · Running 15 total benchmarks (1 commits * 1 environments * 15 benchmarks) [ 0....
https://api.github.com/repos/pandas-dev/pandas/pulls/18675
2017-12-07T07:05:41Z
2017-12-11T08:54:15Z
2017-12-11T08:54:15Z
2017-12-12T03:20:47Z
ERR: ValueError when merging on incompatible dtypes
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index 32b548e5f32f1..0baa0a307c988 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -189,6 +189,7 @@ Other API Changes - The default NA value for :class:`UInt64Index` has changed from 0 to ``NaN``, which...
- [ ] closes #9780 - [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/18674
2017-12-06T23:50:23Z
2017-12-10T15:41:37Z
2017-12-10T15:41:37Z
2017-12-12T09:17:03Z
BUG: do not escape placeholder in to_latex()
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index d34c1f3535509..ca7c43d1f2b31 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -302,7 +302,7 @@ I/O - Bug in :func:`read_msgpack` with a non existent file is passed in Python 2 (:issue:`15296`) - B...
- [x] closes #18667 - [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/18670
2017-12-06T21:16:52Z
2017-12-21T15:25:08Z
2017-12-21T15:25:07Z
2017-12-21T16:42:24Z
DEPR/CLN: Remove how keyword from df.rolling() etc.
diff --git a/doc/source/computation.rst b/doc/source/computation.rst index 66e16808f6af9..49ac516af6d37 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -253,12 +253,6 @@ accept the following arguments: result is NA) - ``center``: boolean, whether to set the labels at the center (default ...
- [x] xref #18601 and #11603 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The ``how`` parameter of df.rolling/expanding/ewm related methods was deprecated in 0.18 (#11603). This PR removes the parameter from the code base. This PR is a continuation of #18601 (removed...
https://api.github.com/repos/pandas-dev/pandas/pulls/18668
2017-12-06T18:34:35Z
2017-12-08T00:26:57Z
2017-12-08T00:26:57Z
2017-12-11T08:08:41Z
Handle "today" and "now" in cython instead of C
diff --git a/pandas/_libs/src/datetime/np_datetime.c b/pandas/_libs/src/datetime/np_datetime.c index edc9c0f8f903d..fd76f3328c05b 100644 --- a/pandas/_libs/src/datetime/np_datetime.c +++ b/pandas/_libs/src/datetime/np_datetime.c @@ -527,7 +527,7 @@ void pandas_datetime_to_datetimestruct(npy_datetime val, PANDAS_DATETIM...
ATM the `Timestamp` constructor (specifically `tslibs.conversion.convert_str_to_tsobject`) catches "now" and "today" before passing strings to `_string_to_dts`, which eventually dispatches to `np_datetime_strings`. By contrast, `to_datetime` (specifically `tslib.array_to_datetime`) does not handle "now" or "today" int...
https://api.github.com/repos/pandas-dev/pandas/pulls/18666
2017-12-06T17:34:48Z
2017-12-09T15:50:16Z
2017-12-09T15:50:16Z
2017-12-10T02:31:00Z
DOC: added a reference to DataFrame assign in concatenate section of merging
diff --git a/doc/source/merging.rst b/doc/source/merging.rst index ebade853313ab..4d9746eed0f0b 100644 --- a/doc/source/merging.rst +++ b/doc/source/merging.rst @@ -323,6 +323,13 @@ the name of the ``Series``. labels=['df1', 's1'], vertical=False); plt.close('all'); +.. note:: + + Since we're concate...
Because of various stack overflow answers we are directed to the merging page where a link to DataFrame.assign would be better. Adding the reference here will make people's code better. At least it would have for me. - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ...
https://api.github.com/repos/pandas-dev/pandas/pulls/18665
2017-12-06T17:24:35Z
2018-02-20T23:54:15Z
2018-02-20T23:54:15Z
2018-02-20T23:54:23Z
CLN: cleanup libs cimports, remove is_timestamp
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index f1bd03a097cd0..8d4f2af19701a 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -1,24 +1,25 @@ # Copyright (c) 2012, Lambda Foundry, Inc. # See LICENSE for the license +import os +import sys +import time +import warnings + +fr...
- cleanup imports in `_libs.parsers`, including some unused - a couple of functions from util are used exactly once and only in parsers. Get those directly from numpy_helper instead of from util - remove unused `util.is_contiguous` - remove a bunch of distutils shebang-like declarations that are unnecessary and are...
https://api.github.com/repos/pandas-dev/pandas/pulls/18663
2017-12-06T16:49:07Z
2017-12-08T01:31:49Z
2017-12-08T01:31:49Z
2017-12-08T19:38:10Z
TST/DOC: test pyarrow tz data + doc / enable cross compat tests for pyarrow/fastparquet
diff --git a/doc/source/io.rst b/doc/source/io.rst index f96e33dbf9882..49e264c8562d0 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4522,6 +4522,7 @@ See the documentation for `pyarrow <http://arrow.apache.org/docs/python/>`__ and .. note:: These engines are very similar and should read/write nearly...
Commits: TST: add parquet test with tz datetime data for pyarrow + clean-up basic data types tests: make common dataframe with types supported by both pyarrow and fastparquet DOC: document differences between pyarrow and fastparquet in supported data types TST: enable pyarrow/fastparquet cross compatib...
https://api.github.com/repos/pandas-dev/pandas/pulls/18662
2017-12-06T15:04:58Z
2017-12-10T14:41:15Z
2017-12-10T14:41:14Z
2017-12-10T15:28:16Z
DOC: temporary remove pyarrow example of reading subset columns
diff --git a/doc/source/io.rst b/doc/source/io.rst index f96e33dbf9882..65205c57a1ab6 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4557,7 +4557,6 @@ Read only certain columns of a parquet file. .. ipython:: python - result = pd.read_parquet('example_pa.parquet', engine='pyarrow', columns=['a', 'b']...
xref #18628. Until pyarrow 0.8 is released, I propose to just show the example with fastparquet. Once pyarrow 0.8 is released, we can revert this change.
https://api.github.com/repos/pandas-dev/pandas/pulls/18661
2017-12-06T13:52:54Z
2017-12-07T01:20:48Z
2017-12-07T01:20:48Z
2017-12-11T20:08:47Z
added option keep=False to nlargests/nsmallest
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index ab7f18bce47d3..53d8aa5946845 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -138,6 +138,8 @@ Other Enhancements - :func:`Series` / :func:`DataFrame` tab completion also returns identifiers in the...
- [x] closes #16818 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I made a minor change to `nlargest/nsmallest` to keep all the values of the last `n` when `keep=False`
https://api.github.com/repos/pandas-dev/pandas/pulls/18656
2017-12-06T03:19:06Z
2018-06-26T10:36:51Z
null
2018-06-27T07:14:55Z
remove datetime.pxd
diff --git a/pandas/_libs/hashing.pyx b/pandas/_libs/hashing.pyx index 4c4449fb3e291..aa7aa4b528194 100644 --- a/pandas/_libs/hashing.pyx +++ b/pandas/_libs/hashing.pyx @@ -42,7 +42,8 @@ def hash_object_array(ndarray[object] arr, object key, object encoding='utf8'): bytes data, k uint8_t *kb ...
There is an unrelated 2-line edit in hashing.pyx that gets rid of a compiler warning.
https://api.github.com/repos/pandas-dev/pandas/pulls/18654
2017-12-06T02:16:33Z
2017-12-07T01:06:15Z
2017-12-07T01:06:15Z
2017-12-07T02:10:58Z
BUG: Fix tz-aware DatetimeIndex +/- TimedeltaIndex/timedelta64 array
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index d34c1f3535509..84fc063f70b15 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -293,7 +293,7 @@ Indexing - Bug in :class:`IntervalIndex` where empty and purely NA data was constructed inconsistently...
- [X] closes #17558 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Added the whatsnew entry under 0.22.0, but could possibly go under 0.21.1. This PR is a prereq for #18558.
https://api.github.com/repos/pandas-dev/pandas/pulls/18653
2017-12-06T01:00:29Z
2017-12-07T01:19:15Z
2017-12-07T01:19:14Z
2017-12-07T01:57:42Z
BUG: Categorical data fails to load from hdf when all columns are NaN
diff --git a/.gitignore b/.gitignore index ff0a6aef47163..b1748ae72b8ba 100644 --- a/.gitignore +++ b/.gitignore @@ -106,3 +106,4 @@ doc/build/html/index.html doc/tmp.sv doc/source/styled.xlsx doc/source/templates/ +env/ diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 31902c98d0b...
- [x] closes #18413 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry: Allow storing NaN-only categorical columns in hdf5 store
https://api.github.com/repos/pandas-dev/pandas/pulls/18652
2017-12-06T00:46:31Z
2017-12-10T18:28:06Z
2017-12-10T18:28:05Z
2017-12-12T02:38:31Z
selected numeric data before correlation
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index f2500bb29d0be..805f57eabbd17 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -77,6 +77,7 @@ Other Enhancements - :func:`Series.fillna` now accepts a Series or a dict as a ``value`` for a categoric...
- [x] closes #18570 - [x] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I select the numeric data before the calculation happens with a Series. No whatsnew entry yet.
https://api.github.com/repos/pandas-dev/pandas/pulls/18651
2017-12-06T00:35:04Z
2017-12-06T11:16:51Z
2017-12-06T11:16:51Z
2017-12-06T14:29:36Z
CLN: replace %s syntax with .format in stats/moments.py
diff --git a/pandas/stats/moments.py b/pandas/stats/moments.py index a0e94aa0c8581..580ee50c442de 100644 --- a/pandas/stats/moments.py +++ b/pandas/stats/moments.py @@ -8,7 +8,7 @@ import numpy as np from pandas.core.dtypes.common import is_scalar from pandas.core.api import DataFrame, Series -from pandas.util._deco...
- [x] Progress towards #16130 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/18650
2017-12-06T00:23:27Z
2017-12-06T01:21:34Z
null
2023-05-11T01:16:53Z
TST: Add list of tuples pd.factorize test
diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py index bf244deec9ffc..64564df4febe8 100644 --- a/pandas/tests/test_algos.py +++ b/pandas/tests/test_algos.py @@ -17,6 +17,7 @@ from pandas._libs.hashtable import unique_label_indices from pandas.compat import lrange, range import pandas.core.algorit...
- [x] closes #9454 - [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/18649
2017-12-05T23:15:30Z
2017-12-09T15:37:47Z
2017-12-09T15:37:47Z
2017-12-09T15:37:50Z
CLN: Remove .to_datetime methods
diff --git a/doc/source/api.rst b/doc/source/api.rst index f3405fcdee608..fefea408748e3 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1489,7 +1489,6 @@ Conversion Index.map Index.ravel Index.tolist - Index.to_datetime Index.to_native_types Index.to_series Index.to_frame @@ -1757...
Removes the following .to_datetime methods * `Index.to_datetime` * `Timestamp.to_datetime` * `PeriodIndex.to_datetime` * `DatetimeIndex.to_datetime` All were deprecated in 0.19.0 xref #8254, #14096, #14113
https://api.github.com/repos/pandas-dev/pandas/pulls/18648
2017-12-05T18:10:28Z
2017-12-06T10:31:36Z
2017-12-06T10:31:36Z
2017-12-06T17:18:01Z
STYLE/CI: implement incremental linting for asv benchmarks
diff --git a/ci/lint.sh b/ci/lint.sh index 5d9fafe6c9064..832e1227d9752 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -23,6 +23,13 @@ if [ "$LINT" ]; then fi echo "Linting setup.py DONE" + echo "Linting asv_bench/benchmarks/" + flake8 asv_bench/benchmarks/ --exclude=asv_bench/benchmarks/[ghijoprst]*.py...
Another try at #18620 @mroeschke since it looks like you are going through the asv files one-by-one, the idea here is that when file X gets cleaned up, it can be un-excluded in the lint.sh command. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff...
https://api.github.com/repos/pandas-dev/pandas/pulls/18647
2017-12-05T17:48:37Z
2017-12-06T23:19:24Z
2017-12-06T23:19:24Z
2017-12-08T19:38:14Z
BUG: Fixed handling of boolean indexing with 2-d ndarrays
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 0301bf0a23dd5..430637ac6d384 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -314,6 +314,7 @@ Indexing - :func:`DatetimeIndex.to_series` now accepts ``index`` and ``name`` kwargs (:issue:`18699`) ...
- [x] closes #18582 - [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/18645
2017-12-05T12:57:31Z
2017-12-30T16:16:54Z
2017-12-30T16:16:53Z
2017-12-30T22:11:47Z
TST: Move merge/join tests into sub-dir
diff --git a/pandas/tests/reshape/merge/__init__.py b/pandas/tests/reshape/merge/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/reshape/data/allow_exact_matches.csv b/pandas/tests/reshape/merge/data/allow_exact_matches.csv similarity index 100% rename from pandas/tests/res...
- [ ] closes #18615
https://api.github.com/repos/pandas-dev/pandas/pulls/18643
2017-12-05T10:56:37Z
2017-12-06T00:57:28Z
2017-12-06T00:57:28Z
2017-12-06T09:21:07Z