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
Parametrize PeriodIndex tests
diff --git a/pandas/tests/indexes/period/test_arithmetic.py b/pandas/tests/indexes/period/test_arithmetic.py index 81171920f635f..5f8f9533e9c44 100644 --- a/pandas/tests/indexes/period/test_arithmetic.py +++ b/pandas/tests/indexes/period/test_arithmetic.py @@ -11,7 +11,81 @@ import pandas.core.indexes.period as period...
- [ ] 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/19659
2018-02-12T16:53:15Z
2018-02-17T20:47:19Z
2018-02-17T20:47:19Z
2018-02-18T15:42:06Z
DOC: removed vendored IPython.sphinxext - take 2
diff --git a/ci/requirements-optional-conda.txt b/ci/requirements-optional-conda.txt index 65357ce2018d2..e8cfcdf80f2e8 100644 --- a/ci/requirements-optional-conda.txt +++ b/ci/requirements-optional-conda.txt @@ -4,7 +4,7 @@ bottleneck fastparquet feather-format html5lib -ipython +ipython>=5.6.0 ipykernel jinja2 ...
This reverts commit d6049a0efb7c04996bc374f3747bab8fe4c84bac. xref https://github.com/pandas-dev/pandas/issues/18147, re-do https://github.com/pandas-dev/pandas/pull/18193 (which was reverted in https://github.com/pandas-dev/pandas/pull/18320 because there was still a bug in IPython, which is now fixed in the relea...
https://api.github.com/repos/pandas-dev/pandas/pulls/19657
2018-02-12T12:49:53Z
2018-04-23T13:59:17Z
2018-04-23T13:59:17Z
2018-04-23T14:00:47Z
TST: Move fully passing tests from test_interval_new to test_interval
diff --git a/pandas/tests/indexes/interval/test_interval.py b/pandas/tests/indexes/interval/test_interval.py index 71a6f78125004..76a2a9a9678f4 100644 --- a/pandas/tests/indexes/interval/test_interval.py +++ b/pandas/tests/indexes/interval/test_interval.py @@ -400,28 +400,72 @@ def test_get_item(self, closed): ...
- [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Some of the `test_interval_new.py` tests are fully passing, so moving them to `test_interval.py` to ensure that new changes don't break them. Added a couple of TODO's to the new tests related to checking non-monotonic...
https://api.github.com/repos/pandas-dev/pandas/pulls/19652
2018-02-12T05:00:41Z
2018-06-28T00:05:44Z
null
2019-07-03T15:00:45Z
Fixes np.unique on SparseArray
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 72f63a4da0f4d..c9c3c899bce61 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -823,6 +823,7 @@ Sparse - Bug in :class:`SparseDataFrame.to_csv` causing exception (:issue:`19384`) - Bug in :class:`S...
- [x] closes #19595 - [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/19651
2018-02-12T02:32:45Z
2018-10-17T13:42:07Z
null
2018-10-17T13:42:08Z
BUG: fix Period.asfreq conversion near datetime(1, 1, 1)
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 879b245af49cd..7cecad338101b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -741,8 +741,9 @@ Timedelta - Bug in :class:`TimedeltaIndex` where division by a ``Series`` would return a ``TimedeltaIn...
- [x] closes #19643 - [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/19650
2018-02-11T21:53:56Z
2018-02-21T10:31:56Z
2018-02-21T10:31:56Z
2018-02-22T05:45:43Z
Reduce redirection in ops
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index dff2b6844af94..da65f1f31ed2a 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -208,6 +208,78 @@ def _get_frame_op_default_axis(name): return 'columns' +def _get_opstr(op, cls): + """ + Find the operation string, if any, to pass to ...
Among other things, this will make it easier to handle the sparse vs non-sparse Frame ops in one place.
https://api.github.com/repos/pandas-dev/pandas/pulls/19649
2018-02-11T21:13:40Z
2018-02-19T23:19:02Z
2018-02-19T23:19:02Z
2018-02-21T16:49:04Z
TST: placement of network error catching in s3 tests
diff --git a/pandas/io/common.py b/pandas/io/common.py index 4ba969f0abac4..e312181f08512 100644 --- a/pandas/io/common.py +++ b/pandas/io/common.py @@ -183,7 +183,10 @@ def get_filepath_or_buffer(filepath_or_buffer, encoding=None, Returns ------- - a filepath_ or buffer or S3File instance, the encoding,...
https://api.github.com/repos/pandas-dev/pandas/pulls/19645
2018-02-11T14:43:33Z
2018-02-13T00:12:56Z
2018-02-13T00:12:56Z
2018-09-27T18:13:49Z
tests for tslibs.conversion and tslibs.timezones
diff --git a/pandas/tests/tseries/test_timezones.py b/pandas/tests/tseries/test_timezones.py index 565e735c14c80..97326dc04a522 100644 --- a/pandas/tests/tseries/test_timezones.py +++ b/pandas/tests/tseries/test_timezones.py @@ -2,15 +2,10 @@ import pytest import pytz -import dateutil -import numpy as np from da...
This is the last one.
https://api.github.com/repos/pandas-dev/pandas/pulls/19642
2018-02-10T19:49:07Z
2018-02-14T11:26:51Z
2018-02-14T11:26:51Z
2018-02-14T15:00:17Z
Organize PeriodIndex tests
diff --git a/pandas/tests/indexes/period/test_arithmetic.py b/pandas/tests/indexes/period/test_arithmetic.py index 356ea5fc656de..81171920f635f 100644 --- a/pandas/tests/indexes/period/test_arithmetic.py +++ b/pandas/tests/indexes/period/test_arithmetic.py @@ -11,6 +11,171 @@ import pandas.core.indexes.period as perio...
Crammed a lot of #19627 into this. Also did some new parametrization.
https://api.github.com/repos/pandas-dev/pandas/pulls/19641
2018-02-10T19:44:34Z
2018-02-11T14:56:29Z
2018-02-11T14:56:29Z
2018-02-12T16:32:31Z
move array_to_datetime timests
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py index bd3fa5e73cd11..b5926933544e8 100644 --- a/pandas/tests/indexes/datetimes/test_tools.py +++ b/pandas/tests/indexes/datetimes/test_tools.py @@ -8,7 +8,7 @@ import dateutil import numpy as np from dateutil.par...
Almost done. With array_to_datetime there is some fuzziness in when a test is for array_to_datetime and when it is for to_datetime. I'm trying to specifically isolate tslibs tests, so for now am erring on the side of keeping to_datetime tests in test_tools.
https://api.github.com/repos/pandas-dev/pandas/pulls/19640
2018-02-10T19:25:16Z
2018-02-12T11:33:33Z
2018-02-12T11:33:33Z
2018-06-22T03:32:35Z
move timedelta test_astype test
diff --git a/pandas/tests/indexes/timedeltas/test_astype.py b/pandas/tests/indexes/timedeltas/test_astype.py index 6c644d239069a..329f0c2467e8b 100644 --- a/pandas/tests/indexes/timedeltas/test_astype.py +++ b/pandas/tests/indexes/timedeltas/test_astype.py @@ -1,3 +1,5 @@ +from datetime import timedelta + import pytes...
- [ ] 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/19639
2018-02-10T19:13:21Z
2018-02-11T14:51:48Z
2018-02-11T14:51:47Z
2018-02-11T21:37:03Z
Move liboffsets, libfreqs, libparsing tests to test_tslibs
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py index b95ae07052ecb..35f34dc3a4974 100644 --- a/pandas/tests/indexes/datetimes/test_tools.py +++ b/pandas/tests/indexes/datetimes/test_tools.py @@ -187,6 +187,18 @@ def test_to_datetime_format_weeks(self, cache): ...
libfreqs and liboffsets tests are moved but not edited. libparsing tests has one test moved to tests.indexes.datetimes.test_tools to keep it self-contained.
https://api.github.com/repos/pandas-dev/pandas/pulls/19638
2018-02-10T19:07:04Z
2018-02-11T14:44:07Z
2018-02-11T14:44:07Z
2018-02-11T21:36:43Z
test_astype portion of #19627
diff --git a/pandas/tests/indexes/datetimes/test_astype.py b/pandas/tests/indexes/datetimes/test_astype.py index 4b989eb35e900..8acdd301f241a 100644 --- a/pandas/tests/indexes/datetimes/test_astype.py +++ b/pandas/tests/indexes/datetimes/test_astype.py @@ -138,6 +138,30 @@ def test_astype_object(self): tm.asse...
parametrized as suggested
https://api.github.com/repos/pandas-dev/pandas/pulls/19637
2018-02-10T19:01:42Z
2018-02-11T14:50:47Z
2018-02-11T14:50:47Z
2018-02-11T21:36:56Z
move shift_months test to test_arithmetic
diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py index f6f8eccf4e30c..ddc97636ae0a8 100644 --- a/pandas/tests/indexes/datetimes/test_arithmetic.py +++ b/pandas/tests/indexes/datetimes/test_arithmetic.py @@ -15,6 +15,7 @@ DatetimeInde...
Broken off of #19627
https://api.github.com/repos/pandas-dev/pandas/pulls/19636
2018-02-10T18:54:17Z
2018-02-11T00:49:22Z
2018-02-11T00:49:22Z
2018-02-11T01:29:11Z
Consolidated Groupby nth / last object Templates
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index d75c3a71896e3..866683ce378ab 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -26,105 +26,6 @@ cdef double NaN = <double> np.NaN cdef double nan = NaN -# TODO: aggregate multiple columns in single pass -# ----------------...
- [X] closes #19569 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Updated to prevent the group_rank_object method from being templated after the merging of #19481
https://api.github.com/repos/pandas-dev/pandas/pulls/19635
2018-02-10T17:52:59Z
2018-02-10T18:48:16Z
2018-02-10T18:48:16Z
2018-02-10T18:52:45Z
DOC: Improving code quality of doc/make.py, PEP-8 and refactoring (#19631)
diff --git a/ci/lint.sh b/ci/lint.sh index 49bf9a690b990..b862a3bfcf29e 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -37,6 +37,13 @@ if [ "$LINT" ]; then fi echo "Linting scripts/*.py DONE" + echo "Linting doc script" + flake8 doc/make.py + if [ $? -ne "0" ]; then + RET=1 + fi + echo "L...
- [X] closes #19631 closes #15591 closes #10340 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Summary of the PR: - doc/make.py in lint and respects PEP-8 - Making the structure of the code more organized - Added command line arguments f...
https://api.github.com/repos/pandas-dev/pandas/pulls/19634
2018-02-10T17:46:41Z
2018-02-22T02:05:44Z
2018-02-22T02:05:43Z
2018-02-22T12:54:17Z
BUG: Do not round DatetimeIndex nanosecond precision when iterating
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 72f63a4da0f4d..b6316bd39f396 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -729,6 +729,7 @@ Timezones - Bug in :func:`DatetimeIndex.insert` where inserting ``NaT`` into a timezone-aware index in...
- [x] closes #19603 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ~~This issue was actually very specific to localizing a `DatetimeIndex` with `datetime.timezone.utc`~~ ``` # On master In [1]: import pandas as pd In [2]: datetimeindex ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19628
2018-02-10T08:34:19Z
2018-02-14T11:05:47Z
2018-02-14T11:05:47Z
2018-02-14T18:55:38Z
Collect tslibs test, organize PeriodIndex tests
diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py index f6f8eccf4e30c..92790c690840b 100644 --- a/pandas/tests/indexes/datetimes/test_arithmetic.py +++ b/pandas/tests/indexes/datetimes/test_arithmetic.py @@ -2,6 +2,7 @@ import warnings from datetime imp...
Parametrize a bunch of nested tests.
https://api.github.com/repos/pandas-dev/pandas/pulls/19627
2018-02-10T06:14:36Z
2018-02-10T17:20:32Z
null
2018-02-10T18:47:43Z
fix overflows in Timestamp.tz_localize near boundaries
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 083242cd69b74..0097847874616 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -663,6 +663,7 @@ Timezones - Bug in tz-aware :class:`DatetimeIndex` where addition/subtraction with a :class:`Timedelta...
Flesh out docstring for localize_tsobject, add slightly stronger typing. Closes #12677
https://api.github.com/repos/pandas-dev/pandas/pulls/19626
2018-02-10T02:58:25Z
2018-02-11T00:04:50Z
2018-02-11T00:04:50Z
2018-03-26T01:16:50Z
function for frequently repeated tz-conversion code
diff --git a/pandas/_libs/tslibs/conversion.pxd b/pandas/_libs/tslibs/conversion.pxd index 6e7df10e7c424..0d5e9e3fc5152 100644 --- a/pandas/_libs/tslibs/conversion.pxd +++ b/pandas/_libs/tslibs/conversion.pxd @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # cython: profile=False -from cpython.datetime cimport datetime +fr...
If cython did generators efficiently we could get rid of a ton of boilerplate where these are used.
https://api.github.com/repos/pandas-dev/pandas/pulls/19625
2018-02-10T01:32:34Z
2018-02-10T16:59:41Z
2018-02-10T16:59:41Z
2018-02-10T17:28:52Z
Fix left join turning into outer join
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 083242cd69b74..3b626ddced5bf 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -772,7 +772,7 @@ Reshaping - Bug in timezone comparisons, manifesting as a conversion of the index to UTC in ``.concat(...
- [x] closes #19607 - [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/19624
2018-02-09T20:53:14Z
2018-02-10T16:53:38Z
2018-02-10T16:53:38Z
2018-02-10T16:54:11Z
order of exceptions in array_to_datetime
diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx index 877d7deff6ff4..a035bab2a7049 100644 --- a/pandas/_libs/tslib.pyx +++ b/pandas/_libs/tslib.pyx @@ -7,7 +7,7 @@ import numpy as np cnp.import_array() -from cpython cimport PyFloat_Check +from cpython cimport PyFloat_Check, PyUnicode_Check from uti...
First, cleans things up by moving all the seen_datetime and seen_integer variables to the tops of their respective blocks. Mainly splits the `try:` block for `string_to_dts` up into two pieces based on the two lines in that block that _could_ raise and handles errors more specfically.
https://api.github.com/repos/pandas-dev/pandas/pulls/19621
2018-02-09T17:01:00Z
2018-02-10T17:08:40Z
2018-02-10T17:08:40Z
2018-02-10T17:28:41Z
TST: set multi_statement flag for pymysql tests
diff --git a/ci/requirements-3.6.run b/ci/requirements-3.6.run index e30461d06b8ea..822144a80bc9a 100644 --- a/ci/requirements-3.6.run +++ b/ci/requirements-3.6.run @@ -13,7 +13,7 @@ lxml html5lib jinja2 sqlalchemy -pymysql<0.8.0 +pymysql feather-format pyarrow psycopg2 diff --git a/pandas/tests/io/test_sql.py b/...
Trying something out for #19462 closes #19462
https://api.github.com/repos/pandas-dev/pandas/pulls/19619
2018-02-09T15:09:54Z
2018-02-11T22:24:35Z
2018-02-11T22:24:35Z
2018-02-11T22:24:38Z
De-duplicate masking/fallback logic in ops
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 28923f0fbf240..f0adc77e46e5d 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3920,17 +3920,7 @@ def _combine_frame(self, other, func, fill_value=None, level=None): new_index, new_columns = this.index, this.columns def _a...
Some nice deletions here.
https://api.github.com/repos/pandas-dev/pandas/pulls/19613
2018-02-09T04:23:04Z
2018-02-13T00:19:23Z
2018-02-13T00:19:23Z
2018-06-22T03:32:38Z
Fix uncaught OutOfBounds in array_to_datetime
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 6f48d9a6c63c9..41d6520b3d91a 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -703,7 +703,7 @@ Datetimelike - Bug in :class:`Series` floor-division where operating on a scalar ``timedelta`` raises ...
The call to convert_datetime_to_tsobject has a check_dts_bounds in it. One of the usages in array_to_datetime gets that right, the other misses it.
https://api.github.com/repos/pandas-dev/pandas/pulls/19612
2018-02-09T04:00:16Z
2018-02-11T14:48:36Z
2018-02-11T14:48:36Z
2018-02-11T21:36:48Z
dispatch frame methods to series versions instead of re-implementing masking etc
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index a001037b573d4..b96af6af3707f 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3944,34 +3944,27 @@ def _combine_frame(self, other, func, fill_value=None, level=None): new_index, new_columns = this.index, this.columns def _...
This moves some of DataFrame's dispatching logic into `ops`, mostly in ways that don't change any logic. The place that logic _is_ changed is in `DataFrame._combine_frame` where instead of defining `arith_op` to mask `func` and wrapping `{col: arith_op(this[col].values, other[col].values) for col in this.columns}`, ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19611
2018-02-09T02:07:33Z
2018-02-18T16:36:25Z
2018-02-18T16:36:25Z
2018-02-18T18:23:05Z
Consolidate nth / last object Groupby Implementations
diff --git a/pandas/_libs/groupby.pyx b/pandas/_libs/groupby.pyx index 55de700c9af52..f6c3aa151c6b5 100644 --- a/pandas/_libs/groupby.pyx +++ b/pandas/_libs/groupby.pyx @@ -25,105 +25,6 @@ cdef double NaN = <double> np.NaN cdef double nan = NaN -# TODO: aggregate multiple columns in single pass -# ----------------...
- [X] closes #19569 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Depending on what goes first between this and #19481 some merge conflicts will need to be cleaned up
https://api.github.com/repos/pandas-dev/pandas/pulls/19610
2018-02-09T01:42:18Z
2018-02-10T16:08:59Z
2018-02-10T16:08:59Z
2018-02-10T16:11:20Z
Continue porting period_helper to cython
diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c index f0e24fec685d0..7c4de8e42e73b 100644 --- a/pandas/_libs/src/period_helper.c +++ b/pandas/_libs/src/period_helper.c @@ -45,7 +45,7 @@ static int monthToQuarter(int month) { return ((month - 1) / 3) + 1; } /* Find the absdate (days ela...
This moves functions to cython but retains their C names to make comparison easier. The next pass will get rid of the camelCase. A couple of redundant functions are left behind in period_helper, will be cleaned up in a follow-up. The next hurdle is to get rid of all the adding and subtracting of ORD_OFFSET, WEEK_O...
https://api.github.com/repos/pandas-dev/pandas/pulls/19608
2018-02-08T23:57:25Z
2018-02-10T21:12:38Z
2018-02-10T21:12:38Z
2018-02-11T21:36:28Z
BUG: agg with axis=1
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 28923f0fbf240..e734882486b14 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4807,11 +4807,21 @@ def _gotitem(self, key, ndim, subset=None): def aggregate(self, func, axis=0, *args, **kwargs): axis = self._get_axis_number(axis...
This is a potentially inefficient fix to the this issue which requires a double transpose. I am unsure how inefficient this is, and if this is an acceptable solution. It solves the issue, but perhaps it would be preferable to implement this further down the stack in `_aggregate_multiple_funcs`. An additional small f...
https://api.github.com/repos/pandas-dev/pandas/pulls/19605
2018-02-08T22:23:58Z
2018-07-07T22:53:08Z
null
2018-07-07T22:53:08Z
API: Default ExtensionArray.astype
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index 1556b653819a6..553e1e0ac2066 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -1,4 +1,6 @@ """An interface for extending pandas with custom arrays.""" +import numpy as np + from pandas.errors import AbstractMethodErr...
I need this to progress cleanly on https://github.com/pandas-dev/pandas/pull/19558 and (which is blocking https://github.com/pandas-dev/pandas/pull/19520).
https://api.github.com/repos/pandas-dev/pandas/pulls/19604
2018-02-08T21:09:36Z
2018-02-09T20:53:41Z
2018-02-09T20:53:41Z
2018-02-09T20:53:45Z
remove 1 char line terminator limit
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 5e94b9c15fa57..903c148a08bef 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -283,6 +283,7 @@ Other Enhancements - ``IntervalIndex.astype`` now supports conversions between subtypes when passed ...
This PR closes #3501 This restriction is preventing the loading of CRLF delimited CSVs Steps to reproduce: ``` import pandas as pd import StringIO pd.read_csv(StringIO.StringIO(' a,b,c\r\n'), header=None, lineterminator='\r\n') ValueError: Only length-1 line terminators supported ``` while the foll...
https://api.github.com/repos/pandas-dev/pandas/pulls/19601
2018-02-08T18:47:31Z
2018-09-25T16:06:06Z
null
2021-06-26T16:46:01Z
DOC: doc/source/indexing.rst says pd.df.ix is deprecated, show warnin…
diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 9463512ac11de..352ce921d1d44 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1300,6 +1300,9 @@ class _IXIndexer(_NDFrameIndexer): """A primarily label-location based indexer, with integer position fallback. + Warn...
…g in generated doc. - [ ] 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/19596
2018-02-08T10:49:28Z
2018-02-08T11:17:13Z
2018-02-08T11:17:13Z
2018-02-08T11:17:16Z
ENH: added an optional css id to `<table>` tags created by `frame.to_…
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 7782e5f1ffa56..88e46b9035886 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -690,6 +690,7 @@ I/O ^^^ - :func:`read_html` now rewinds seekable IO objects after parse failure, before attempting ...
This is useful for the reasons mentioned in #8496 - Automatically create a random id for tables created using `_repr_html_` using uuid. - Also updated `test_repr_html_float` to be more descriptive and avoid conflicts with random numbers in the id for`_repr_html_` - [x] closes #8496 - [x] tests added / passed -...
https://api.github.com/repos/pandas-dev/pandas/pulls/19594
2018-02-08T06:57:45Z
2018-02-09T12:29:03Z
2018-02-09T12:29:03Z
2018-02-09T13:12:31Z
ENH: added an optional css id to `<table>` tags created by `frame.to_html`
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 28923f0fbf240..32595e6a12ce2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -19,6 +19,7 @@ import types import warnings from textwrap import dedent +from uuid import uuid1 import numpy as np import numpy.ma as ma @@ -674,9 +675,11 @@...
This is useful for the reasons mentioned in #8496 - Automatically create a random id for tables created using `_repr_html_` using uuid. - Also updated `test_repr_html_float` to be more descriptive and avoid conflicts with random numbers in the id for`_repr_html_` - [x] closes #8496 - [x] tests added / passed -...
https://api.github.com/repos/pandas-dev/pandas/pulls/19593
2018-02-08T06:39:54Z
2018-02-08T06:48:00Z
null
2018-02-08T06:48:00Z
ENH: added an optional css id to <table> tags created by to_html()
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 28923f0fbf240..32595e6a12ce2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -19,6 +19,7 @@ import types import warnings from textwrap import dedent +from uuid import uuid1 import numpy as np import numpy.ma as ma @@ -674,9 +675,11 @@...
This is useful for the reasons mentioned in [#8496](https://github.com/pandas-dev/pandas/issues/8496) - [x] closes #8496 - [x] tests added / passed: `test_to_html_with_id` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19591
2018-02-08T03:50:04Z
2018-02-08T06:23:35Z
null
2018-02-08T06:23:35Z
ENH: Allow literal (non-regex) replacement using .str.replace #16808
diff --git a/doc/source/text.rst b/doc/source/text.rst index 1e620acb1f88a..da8e40892716e 100644 --- a/doc/source/text.rst +++ b/doc/source/text.rst @@ -118,8 +118,8 @@ i.e., from the end of the string to the beginning of the string: s2.str.rsplit('_', expand=True, n=1) -Methods like ``replace`` and ``findall``...
Adds `regex=True` default parameter to .str.replace. If `regex=False` is set, uses str.replace to replace occurrences of `pat` with `repl`. Raises `ValueError` if given a callable `repl` or a compiled re for `pat` in combination with `regex=False`. - [ ] closes #16808 - [ ] tests added / passed - [ ] passes `git d...
https://api.github.com/repos/pandas-dev/pandas/pulls/19584
2018-02-07T20:04:15Z
2018-02-28T11:14:12Z
2018-02-28T11:14:11Z
2018-02-28T11:14:17Z
Dispatch categorical Series ops to Categorical
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ea56ebad7d782..4dfa4bfe637f1 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -686,3 +686,5 @@ Other ^^^^^ - Improved error message when attempting to use a Python keyword as an identifier in a ...
Moving towards the One Implementation To Rule Them All, this has `Series[timedelta64].__cmp__` ops wrap `TimedeltaIndex.__cmp__` and `Series[category].__cmp__` wrap `Categorical.__cmp__` Fixes (and tests) incorrectly named results when comparing Series/Index objects. Ref #19513
https://api.github.com/repos/pandas-dev/pandas/pulls/19582
2018-02-07T19:10:33Z
2018-02-18T16:47:29Z
2018-02-18T16:47:29Z
2018-02-18T18:43:54Z
Ignore warnings when reading pickle files
diff --git a/pandas/io/pickle.py b/pandas/io/pickle.py index fa953f7d876cc..756096dd0c9ce 100644 --- a/pandas/io/pickle.py +++ b/pandas/io/pickle.py @@ -1,4 +1,5 @@ """ pickle compat """ +import warnings import numpy as np from numpy.lib.format import read_array, write_array @@ -96,7 +97,9 @@ def try_read(path, en...
Silences a warning from our tests about ``` pandas/tests/io/test_common.py::TestCommonIOCapabilities::()::test_read_fspath_all[reader10-os-/home/travis/build/pandas-dev/pandas/pandas/tests/io/data/categorical_0_14_1.pickle] /home/travis/build/pandas-dev/pandas/pandas/io/pickle.py:99: FutureWarning: 'pandas.core'...
https://api.github.com/repos/pandas-dev/pandas/pulls/19580
2018-02-07T17:42:40Z
2018-02-09T12:25:33Z
2018-02-09T12:25:33Z
2018-05-02T13:09:45Z
PERF: Correct signature for group_nth / group_object
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index 4dfd215e6dc3a..2663750de9db9 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -159,6 +159,22 @@ def time_series_nth(self, df): df[1].groupby(df[0]).nth(0) +class NthObject(object): + + ...
Closes #19283
https://api.github.com/repos/pandas-dev/pandas/pulls/19579
2018-02-07T17:04:35Z
2018-02-08T01:32:03Z
2018-02-08T01:32:03Z
2018-02-08T02:22:48Z
CI: Fixed NumPy pinning in conda-build
diff --git a/ci/install_travis.sh b/ci/install_travis.sh index 4ec5b0a9d8820..6e270519e60c3 100755 --- a/ci/install_travis.sh +++ b/ci/install_travis.sh @@ -110,7 +110,7 @@ if [ -e ${REQ} ]; then fi time conda install -n pandas pytest>=3.1.0 -time pip install pytest-xdist moto +time pip install -q pytest-xdist moto...
Closes #19572 closes #19153 (testing locally as well too)
https://api.github.com/repos/pandas-dev/pandas/pulls/19575
2018-02-07T14:30:12Z
2018-02-09T16:11:19Z
2018-02-09T16:11:18Z
2018-02-09T16:11:22Z
DOC: some clean-up of the apply docs (follow-up #18577)
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index fb9e5a6cc75cb..749d4be11ad45 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -774,9 +774,9 @@ We encourage you to view the source code of :meth:`~DataFrame.pipe`. Row or Column-wise Function Application ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
Follup-up on #18577 cc @jreback (instead of yet another round of review, this will go a bit quicker)
https://api.github.com/repos/pandas-dev/pandas/pulls/19573
2018-02-07T14:20:24Z
2018-02-08T00:57:20Z
2018-02-08T00:57:19Z
2018-02-08T08:39:41Z
ERR: raise KeyError on invalid column name in aggregate
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index c48f6d19e3b10..eaa8841b79a78 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -647,7 +647,7 @@ Groupby/Resample/Rolling - Bug in :func:`DataFrame.groupby` where aggregation by ``first``/``last``/``...
xref #19552 xref https://github.com/pandas-dev/pandas/pull/19552/files#r166587045
https://api.github.com/repos/pandas-dev/pandas/pulls/19566
2018-02-07T11:20:05Z
2018-02-07T12:30:17Z
2018-02-07T12:30:17Z
2018-02-07T12:30:17Z
Cleaned up return of _get_cython_function
diff --git a/pandas/core/groupby.py b/pandas/core/groupby.py index f352b80ba3069..01241db7c0c42 100644 --- a/pandas/core/groupby.py +++ b/pandas/core/groupby.py @@ -2240,7 +2240,7 @@ def wrapper(*args, **kwargs): raise NotImplementedError("function is not implemented for this" ...
- [X] closes #19557 - [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/19561
2018-02-07T03:21:22Z
2018-02-07T11:01:54Z
2018-02-07T11:01:54Z
2018-02-07T16:12:08Z
DEPR/CLN: fix from_items deprecation warnings
diff --git a/pandas/tests/groupby/aggregate/test_other.py b/pandas/tests/groupby/aggregate/test_other.py index 575eae1916f4c..4c407ad8a0d93 100644 --- a/pandas/tests/groupby/aggregate/test_other.py +++ b/pandas/tests/groupby/aggregate/test_other.py @@ -7,6 +7,7 @@ from __future__ import print_function import pytest...
xref #18529 Replacing some cases of the deprecated ``from_items`` with ``from_dict(OrderedDict())``
https://api.github.com/repos/pandas-dev/pandas/pulls/19559
2018-02-06T21:51:17Z
2018-02-07T11:04:28Z
2018-02-07T11:04:28Z
2018-02-21T22:09:24Z
REF: Internal / External values
diff --git a/doc/source/internals.rst b/doc/source/internals.rst index ee4df879d9478..957f82fd9eba7 100644 --- a/doc/source/internals.rst +++ b/doc/source/internals.rst @@ -89,6 +89,25 @@ not check (or care) whether the levels themselves are sorted. Fortunately, the constructors ``from_tuples`` and ``from_arrays`` ens...
Closes #19548 Just changed Index so far. Need to - Run an ASV - add `Series._ndarray_values` - Start cleaning up now redundant if conditions.
https://api.github.com/repos/pandas-dev/pandas/pulls/19558
2018-02-06T20:26:15Z
2018-02-13T14:50:55Z
2018-02-13T14:50:55Z
2018-02-14T00:01:55Z
Implement get_day_of_year, tests
diff --git a/pandas/_libs/tslibs/ccalendar.pxd b/pandas/_libs/tslibs/ccalendar.pxd index a1bbeea1cb69a..42473a97a7150 100644 --- a/pandas/_libs/tslibs/ccalendar.pxd +++ b/pandas/_libs/tslibs/ccalendar.pxd @@ -10,3 +10,4 @@ cdef int dayofweek(int y, int m, int m) nogil cdef bint is_leapyear(int64_t year) nogil cpdef i...
Separates the ccalendar.get_day_of_year part out of #18540, implements tests, uses it in `Timestamp` renders Timestamp._get_field unnecessary.
https://api.github.com/repos/pandas-dev/pandas/pulls/19555
2018-02-06T18:28:52Z
2018-02-07T11:09:34Z
2018-02-07T11:09:34Z
2018-02-08T04:50:41Z
Clear up confusion from #19411
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 09f5e59535adf..e54269d525957 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1304,7 +1304,12 @@ def assert_frame_equal(left, right, check_dtype=True, 5 digits (False) or 3 digits (True) after decimal points are compared. ...
Modify docstring for pandas.util.testing.assert_frame_equal closes #19411
https://api.github.com/repos/pandas-dev/pandas/pulls/19554
2018-02-06T17:51:59Z
2018-07-06T14:26:35Z
2018-07-06T14:26:35Z
2018-07-06T14:26:43Z
BUG: Fixed merge on dtype equal categories
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index b5bf7ccbda0b6..18a063ce3750b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -528,6 +528,32 @@ Documentation Changes Bug Fixes ~~~~~~~~~ +Categorical +^^^^^^^^^^^ + +.. warning:: + + A class ...
closes #19551
https://api.github.com/repos/pandas-dev/pandas/pulls/19553
2018-02-06T17:37:27Z
2018-02-08T01:20:29Z
2018-02-08T01:20:29Z
2018-05-02T13:09:44Z
using DataFrame.resample with 'agg' method on non-existant columns provides unexpected behavior
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 7322bd9fe3327..c48f6d19e3b10 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -647,6 +647,7 @@ Groupby/Resample/Rolling - Bug in :func:`DataFrame.groupby` where aggregation by ``first``/``last``/``...
- [x] closes #16766 - [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/19552
2018-02-06T16:03:07Z
2018-02-07T11:12:59Z
2018-02-07T11:12:59Z
2018-02-07T11:14:32Z
Simplify argument passing in period_helper
diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c index 570f20b790750..f0e24fec685d0 100644 --- a/pandas/_libs/src/period_helper.c +++ b/pandas/_libs/src/period_helper.c @@ -82,11 +82,14 @@ static int dInfoCalc_SetFromAbsDate(register struct date_info *dinfo, // helpers for frequency c...
Orthogonal to #19540, though will need some small rebasing if/when that goes in. Instead of passing `relation` argument all over the place, pass it once slightly earlier and make it part of `asfreq_info`.
https://api.github.com/repos/pandas-dev/pandas/pulls/19550
2018-02-06T15:51:55Z
2018-02-08T11:20:40Z
2018-02-08T11:20:40Z
2018-02-08T14:13:39Z
Performance increase rolling min max
diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py index 75990d83f8212..ba25ad6c5eda6 100644 --- a/asv_bench/benchmarks/rolling.py +++ b/asv_bench/benchmarks/rolling.py @@ -16,12 +16,26 @@ class Methods(object): def setup(self, constructor, window, dtype, method): N = 10**5 -...
- [x] closes #19521 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry In my testing the performance of ```python import pandas as pd import timeit df = pd.DataFrame({"a": 0}, index=pd.date_range('2017-01-01', '2019-01-01', freq='1T')) ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19549
2018-02-06T15:15:44Z
2018-02-14T11:13:19Z
2018-02-14T11:13:19Z
2018-02-14T11:13:25Z
DOC: Remove repeated duplicated word
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 25f7c5a3ad948..ca903dadc6eb1 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -672,7 +672,7 @@ The ``CategoricalIndex`` is **preserved** after indexing: df2.loc['a'].index Sorting the index will sort by the order of the cat...
Minor fixes to docs ✏️
https://api.github.com/repos/pandas-dev/pandas/pulls/19546
2018-02-06T02:20:33Z
2018-02-06T10:15:51Z
2018-02-06T10:15:51Z
2018-02-06T22:57:03Z
separate DatetimeIndex timezone tests
diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py index 09a6b35a0ff0e..f6f8eccf4e30c 100644 --- a/pandas/tests/indexes/datetimes/test_arithmetic.py +++ b/pandas/tests/indexes/datetimes/test_arithmetic.py @@ -412,6 +412,14 @@ def test_dti_shift_no_freq(sel...
There is probably some overlap with other tests.indexes.datetimes modules. We'll get those in the next pass.
https://api.github.com/repos/pandas-dev/pandas/pulls/19545
2018-02-06T00:55:18Z
2018-02-06T23:41:48Z
2018-02-06T23:41:48Z
2018-02-07T00:19:51Z
Collect Series timezone tests
diff --git a/pandas/tests/series/test_timezones.py b/pandas/tests/series/test_timezones.py new file mode 100644 index 0000000000000..2e15c964e4e93 --- /dev/null +++ b/pandas/tests/series/test_timezones.py @@ -0,0 +1,293 @@ +# -*- coding: utf-8 -*- +""" +Tests for Series timezone-related methods +""" +from datetime impo...
- [ ] 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/19541
2018-02-05T18:43:18Z
2018-02-06T11:34:33Z
2018-02-06T11:34:33Z
2018-02-11T21:39:10Z
Remove duplicated logic from period_helper
diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c index 8f1c527a68455..570f20b790750 100644 --- a/pandas/_libs/src/period_helper.c +++ b/pandas/_libs/src/period_helper.c @@ -14,6 +14,7 @@ See end of file for stuff pandas uses (search for 'pandas'). */ #include "period_helper.h" +#incl...
Following on the heels of #19534, this removes a bunch of duplicate logic from period_helper and uses the implementations in np_datetime and ccalendar instead. A handful of functions are moved directly into period, but for the most part it's deletion. - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `gi...
https://api.github.com/repos/pandas-dev/pandas/pulls/19540
2018-02-05T17:27:35Z
2018-02-08T01:09:49Z
2018-02-08T01:09:49Z
2018-02-08T01:58:22Z
PERF: improve get_loc on unsorted, non-unique indexes
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index eb6c212731822..fa048c8707ff1 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -1063,6 +1063,7 @@ Performance Improvements - Improved performance of :func:`DataFrame.median` with ``axis=1`` when bot...
- [x] closes #19478 - [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry asv run: ``` [bd4332f4] [9ac7be34] - 475±5μs 422±7μs 0.89 multiindex_object.Duplicates.time_remove_unused_levels - 15.4±0.3ms 13.5±0.2ms ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19539
2018-02-05T17:09:22Z
2018-05-08T00:05:13Z
2018-05-08T00:05:13Z
2018-05-08T05:43:37Z
doc: Fix typo in example
diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index 58796aa30f0bf..20e72dd6bde91 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -364,7 +364,7 @@ def format(self, formatter, subset=None): >>> df = pd.DataFrame(np.random.randn(4, 2), columns=['a', 'b']) ...
Fix typo in the example for pandas.io.formats.style.Styler.format - [ ] 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/19537
2018-02-05T13:02:44Z
2018-02-05T18:43:03Z
2018-02-05T18:43:03Z
2018-02-05T18:43:07Z
TST/CLN: Remove legacy instances of _multiprocess_can_split_ in tests
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index e0fc6c470fe57..d69ddcd8f14d4 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -496,8 +496,6 @@ def zip_frames(*frames): class TestDataFrameAggregate(TestData): - _multiprocess_can_split_...
- [X] closes #19532 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` xref https://github.com/pandas-dev/pandas/pull/19509#discussion_r165848506
https://api.github.com/repos/pandas-dev/pandas/pulls/19536
2018-02-04T21:39:53Z
2018-02-05T11:05:21Z
2018-02-05T11:05:21Z
2018-02-05T15:46:52Z
PKG: Exclude data test files.
diff --git a/MANIFEST.in b/MANIFEST.in index 9773019c6e6e0..b417b8890fa24 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -3,27 +3,39 @@ include LICENSE include RELEASE.md include README.md include setup.py -include pyproject.toml graft doc prune doc/build +graft LICENSES + graft pandas -global-exclude *.so -...
``` $ ls -lh dist total 86552 -rw-r--r-- 1 taugspurger staff 10M Feb 4 14:12 pandas-0.23.0.dev0+218.g3f3b4e0bc-cp36-cp36m-macosx_10_12_x86_64.whl -rw-r--r-- 1 taugspurger staff 12M Feb 4 14:12 pandas-0.23.0.dev0+218.g3f3b4e0bc.tar.gz -rw-r--r-- 1 taugspurger staff 7.8M Feb 4 12:18 pandas-0.23.0.de...
https://api.github.com/repos/pandas-dev/pandas/pulls/19535
2018-02-04T20:17:31Z
2018-06-26T15:02:18Z
2018-06-26T15:02:17Z
2018-07-02T15:37:48Z
Remove unused calendar options from period_helper
diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c index f1367978bd6c9..8f1c527a68455 100644 --- a/pandas/_libs/src/period_helper.c +++ b/pandas/_libs/src/period_helper.c @@ -47,13 +47,10 @@ static int days_in_month[2][12] = { {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}, {31...
period_helper supports GREGORIAN_CALENDAR and JULIAN_CALENDAR, but only Gregorian is ever used. This removes that argument, which will allow for the following in follow-ups: - Remove a bunch of error checking and propogation boilerplate. - Get a a bunch of functions from datetime/np_datetime.h instead of re-implem...
https://api.github.com/repos/pandas-dev/pandas/pulls/19534
2018-02-04T20:04:50Z
2018-02-05T11:06:42Z
2018-02-05T11:06:42Z
2018-02-05T15:23:44Z
BUG: Fix ts precision issue with groupby and NaT (#19526)
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index b5bf7ccbda0b6..7322bd9fe3327 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -644,6 +644,7 @@ Groupby/Resample/Rolling - Fixed regression in :func:`DataFrame.groupby` which would not emit an error...
- [X] closes #19526 - [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/19530
2018-02-04T06:58:50Z
2018-02-06T23:49:35Z
null
2018-02-06T23:59:09Z
Fix parsing corner case closes #19382
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 69965f44d87a8..85949f671be2d 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -455,6 +455,7 @@ Datetimelike - Bug in :func:`Series.truncate` which raises ``TypeError`` with a monotonic ``PeriodInde...
- [x] closes #19382 - [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/19529
2018-02-04T06:17:20Z
2018-02-06T11:27:17Z
2018-02-06T11:27:16Z
2018-02-11T21:39:31Z
WIP: parametrize giant frame flex op tests
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 9b99a7b73b82b..90a146a53141e 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -1,11 +1,16 @@ # -*- coding: utf-8 -*- +import operator import pytest import numpy as np ...
- [ ] 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/19528
2018-02-03T19:48:34Z
2018-02-04T22:27:48Z
null
2020-04-05T17:39:48Z
centralize and split frame division tests
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 9b99a7b73b82b..1bb8e8edffc6e 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- - import pytest import numpy as np +from pandas.compat...
- [ ] 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/19527
2018-02-03T18:56:19Z
2018-02-06T11:20:36Z
2018-02-06T11:20:36Z
2018-02-11T21:39:39Z
ERR: Better error msg when merging on tz-aware and tz-naive columns
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 26a7a78bb5c55..69965f44d87a8 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -342,6 +342,7 @@ Other API Changes - Addition and subtraction of ``NaN`` from a :class:`Series` with ``dtype='timedelta...
- [ ] closes #15800 - [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/19525
2018-02-03T17:19:23Z
2018-02-03T20:30:30Z
2018-02-03T20:30:30Z
2018-02-03T21:52:08Z
Dispatch Series comparison ops to DatetimeIndex and TimedeltaIndex
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 72f63a4da0f4d..94001d1ff5fe3 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -559,6 +559,7 @@ Other API Changes - Subtracting ``NaT`` from a :class:`Series` with ``dtype='datetime64[ns]'`` returns...
Another couple steps towards unifying the implementations. We will be able to simplify _comp_method_SERIES a lot if/when the Categorical vs CategoricalIndex inconsistencies are sorted out #19513.
https://api.github.com/repos/pandas-dev/pandas/pulls/19524
2018-02-03T07:46:42Z
2018-02-16T15:41:16Z
null
2018-06-22T03:39:49Z
Frame ops prelims - de-duplicate, remove unused kwargs
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ea56ebad7d782..1df8ea324eb79 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -581,6 +581,7 @@ Numeric - Bug in :class:`Index` multiplication and division methods where operating with a ``Series`` ...
Starting in on making DataFrame ops consistent with Series and Index ops. As a first pass, this goes through and removes some duplicate code and unused arguments. Changes logic in exactly two corner cases: arithmetic operations `frame.op(series, axis=None, fill_value=not_none)` where one of `series` or `frame` has...
https://api.github.com/repos/pandas-dev/pandas/pulls/19522
2018-02-03T03:26:21Z
2018-02-07T12:32:37Z
2018-02-07T12:32:37Z
2018-02-11T21:38:50Z
ENH: Allow storing ExtensionArrays in containers
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 624045a3d64bc..d616e3f92aa4d 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -15,11 +15,12 @@ is_unsigned_integer_dtype, is_signed_integer_dtype, is_integer_dtype, is_complex_dtype, is_object_dtype, + is...
Followup number 1 to #19268 This adds changes to frame, series, dtypes, etc. (all the places other that `core/internals.py`) to support 3rd party extension arrays. These changes were developed to support IntervalArrays (https://github.com/TomAugspurger/pandas/compare/pandas-array-upstream+fu1...TomAugspurger:pan...
https://api.github.com/repos/pandas-dev/pandas/pulls/19520
2018-02-02T21:43:26Z
2018-02-23T11:47:24Z
2018-02-23T11:47:24Z
2018-02-23T12:26:36Z
RFC/DOC: Standardize the column index type
diff --git a/doc/source/developer.rst b/doc/source/developer.rst index 0ef097da090f2..9212bd0286edd 100644 --- a/doc/source/developer.rst +++ b/doc/source/developer.rst @@ -40,7 +40,7 @@ where ``KeyValue`` is } So that a ``pandas.DataFrame`` can be faithfully reconstructed, we store a -``pandas`` metadata key in...
In [ARROW-1976](https://issues.apache.org/jira/browse/ARROW-1976) a user hit an issue with serialization of unicode column index values using Python 2. This PR proproses to make all column names into whatever the type of `six.text_type` is, therefore handling Unicode in as uniform a way as possible given the terr...
https://api.github.com/repos/pandas-dev/pandas/pulls/19519
2018-02-02T21:22:41Z
2018-02-02T22:42:47Z
null
2018-02-03T12:40:30Z
Spellcheck of enhancingperf.rst
diff --git a/doc/source/enhancingperf.rst b/doc/source/enhancingperf.rst index 7afa852262a38..b786b1d0c134a 100644 --- a/doc/source/enhancingperf.rst +++ b/doc/source/enhancingperf.rst @@ -19,6 +19,13 @@ Enhancing Performance ********************* +In this part of the tutorial, we will investigate how to speed up c...
Spellcheck of the docs, mostly `enhancingperf.rst`, and a sentence or two on `sparse.rst`. * Added a short introductory paragraph on enhancing performance. * Backticks ` `` ` around Series, DataFrame. * Typeset variants of ` ``numba`` `, `(n|N)umba`, `(c|C)ython`, etc as **Numba** and **Cython**. * Minor rephrasi...
https://api.github.com/repos/pandas-dev/pandas/pulls/19516
2018-02-02T19:39:49Z
2018-02-03T20:32:57Z
2018-02-03T20:32:56Z
2018-02-03T20:33:09Z
ops cleanup, named functions instead of lambdas
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 6ea4a81cb52a1..6db84aedce7e7 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -42,6 +42,60 @@ ABCSparseSeries, ABCSparseArray) +# ----------------------------------------------------------------------------- +# Reversed Operations not availa...
Lots more ops work in the pipeline, this is just the easy bits that don't need new tests. Having reversed funcs that can be referenced will make things easier in some of the Index classmethods.
https://api.github.com/repos/pandas-dev/pandas/pulls/19515
2018-02-02T18:58:06Z
2018-02-04T16:18:11Z
2018-02-04T16:18:11Z
2018-02-04T16:39:24Z
DOC: minor groupby and resampler improvements
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 413138b1e52fc..407fad39ba232 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -1219,8 +1219,8 @@ see :ref:`here <basics.pipe>`. Combining ``.groupby`` and ``.pipe`` is often useful when you need to reuse GroupBy objects. -For an e...
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Some minor improvements to groupby and resampler. In particular: * Corrected a link under ``groupby.pipe`` * added "Notes" and "See Also" for NDFrame.groupby/resample * shortened an example in groupby.rst
https://api.github.com/repos/pandas-dev/pandas/pulls/19514
2018-02-02T18:43:44Z
2018-02-04T21:44:40Z
2018-02-04T21:44:40Z
2018-05-18T18:09:30Z
Frame specific parts of #19504
diff --git a/pandas/tests/frame/test_timezones.py b/pandas/tests/frame/test_timezones.py new file mode 100644 index 0000000000000..fa589a0aa4817 --- /dev/null +++ b/pandas/tests/frame/test_timezones.py @@ -0,0 +1,135 @@ +# -*- coding: utf-8 -*- +""" +Tests for DataFrame timezone-related methods +""" +from datetime impo...
- [ ] 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/19512
2018-02-02T16:26:43Z
2018-02-04T16:05:30Z
2018-02-04T16:05:30Z
2018-02-04T16:40:22Z
split Timestamp tests off of #19504
diff --git a/pandas/tests/scalar/timestamp/test_timezones.py b/pandas/tests/scalar/timestamp/test_timezones.py index eeec70cc234f5..7a5c6feb8b651 100644 --- a/pandas/tests/scalar/timestamp/test_timezones.py +++ b/pandas/tests/scalar/timestamp/test_timezones.py @@ -2,11 +2,18 @@ """ Tests for Timestamp timezone-relate...
There is de-duplication/parametrization etc to be done, but that should wait until the tests are collected because we'll have to re-do it then anyway.
https://api.github.com/repos/pandas-dev/pandas/pulls/19511
2018-02-02T16:14:44Z
2018-02-04T16:06:51Z
2018-02-04T16:06:51Z
2018-02-04T17:26:22Z
BUGFIX - AttributeError raised in StataReader.value_labels()
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ea56ebad7d782..3109798499135 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -626,6 +626,7 @@ I/O - Bug in :func:`DataFrame.to_parquet` where an exception was raised if the write destination is S3...
- [x] closes #19417 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Returns empty dict instead of raising AttributeError for very old Stata files. Includes test against very old Stata file.
https://api.github.com/repos/pandas-dev/pandas/pulls/19510
2018-02-02T16:12:22Z
2018-02-06T14:17:14Z
2018-02-06T14:17:14Z
2018-02-06T14:17:17Z
TST: Remove dupe TimdeltaIndex tests from indexes/timedeltas/test_astype.py
diff --git a/pandas/tests/indexes/timedeltas/test_astype.py b/pandas/tests/indexes/timedeltas/test_astype.py index af16fe71edcf3..c3bd857036efc 100644 --- a/pandas/tests/indexes/timedeltas/test_astype.py +++ b/pandas/tests/indexes/timedeltas/test_astype.py @@ -2,36 +2,20 @@ import numpy as np -import pandas as pd ...
- [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Both classes in `test_astype.py` and [`test_timedelta.py`](https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/timedeltas/test_timedelta.py#L19) inherit from `DatetimeLike`, which in turn [inherits from...
https://api.github.com/repos/pandas-dev/pandas/pulls/19509
2018-02-02T15:37:15Z
2018-02-04T15:54:15Z
2018-02-04T15:54:14Z
2018-02-04T18:52:40Z
WIP: reduce unwanted type conversions of pd.Series.isin
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index c754c063fce8e..31738d789e004 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -19,7 +19,7 @@ is_period_dtype, is_numeric_dtype, is_float_dtype, is_bool_dtype, needs_i8_conversion, - is_categorical, is_dat...
Addresses the bug in pd.Series.isin(values) that sometimes undesirably converts the dtype of `values` to the the dtype of the series before the `isin` comparison. Here is an example where `values` is converted to `int`, and hence the output `(True, True)` is yielded, while `(True, False)` is expected: ```python >>> ...
https://api.github.com/repos/pandas-dev/pandas/pulls/19508
2018-02-02T11:19:22Z
2018-07-07T22:50:12Z
null
2018-07-07T22:50:12Z
DOC: improve docs to clarify MultiIndex indexing
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index ca903dadc6eb1..c455fbb8d0687 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -113,7 +113,13 @@ of the index is up to you: pd.DataFrame(np.random.randn(6, 6), index=index[:6], columns=index[:6]) We've "sparsified" the highe...
As per our discussion in #16943. Let me know what you think. I'm not quite happy with the new warning box, ideas how to improve the message are welcome.
https://api.github.com/repos/pandas-dev/pandas/pulls/19507
2018-02-02T08:26:47Z
2018-02-15T09:00:32Z
2018-02-15T09:00:32Z
2018-08-03T07:56:31Z
separate DTI, Timestamp, Series, DataFrame, tslibs timezones tests
diff --git a/pandas/tests/frame/test_timezones.py b/pandas/tests/frame/test_timezones.py new file mode 100644 index 0000000000000..bb0451932ef37 --- /dev/null +++ b/pandas/tests/frame/test_timezones.py @@ -0,0 +1,140 @@ +# -*- coding: utf-8 -*- +""" +Tests for DataFrame timezone-related methods +""" +from datetime impo...
Phew, this is a big one. test_timezones has a ton of redundant tests scattered about, many of which are in classes that cause them to incorrectly get run twice. This separates them by what class they are testing, with (for now at least) to_datetime and date_range getting their own categories. There are a ton of DT...
https://api.github.com/repos/pandas-dev/pandas/pulls/19504
2018-02-02T03:43:16Z
2018-02-04T15:46:56Z
null
2018-02-04T16:40:34Z
implement timedeltas.test_scalar_compat
diff --git a/pandas/tests/indexes/timedeltas/test_arithmetic.py b/pandas/tests/indexes/timedeltas/test_arithmetic.py index ef6523a9eb270..3dc60ed33b958 100644 --- a/pandas/tests/indexes/timedeltas/test_arithmetic.py +++ b/pandas/tests/indexes/timedeltas/test_arithmetic.py @@ -10,7 +10,7 @@ to_timed...
Centralize and split redundant TDI.shift tests in test_arith
https://api.github.com/repos/pandas-dev/pandas/pulls/19503
2018-02-02T02:35:31Z
2018-02-02T11:05:30Z
2018-02-02T11:05:30Z
2018-06-22T03:38:10Z
[WIP] ENH: interval accessor
diff --git a/pandas/core/dtypes/common.py b/pandas/core/dtypes/common.py index dca9a5fde0d74..dec29d34b61ac 100644 --- a/pandas/core/dtypes/common.py +++ b/pandas/core/dtypes/common.py @@ -13,7 +13,7 @@ from .generic import (ABCCategorical, ABCPeriodIndex, ABCDatetimeIndex, ABCSeries, ...
- [ ] closes #16401 - [ ] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Still have a quite a few things to do, but wanted to make sure I'm on the right track, and have this PR in place to motivate any additional issues/PR that need to be done as a p...
https://api.github.com/repos/pandas-dev/pandas/pulls/19502
2018-02-02T02:02:59Z
2018-12-09T20:04:39Z
null
2018-12-09T20:04:39Z
WIP: implement period_helper in cython
diff --git a/ci/lint.sh b/ci/lint.sh index 49bf9a690b990..80a4c11e74696 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -75,7 +75,7 @@ if [ "$LINT" ]; then # this particular codebase (e.g. src/headers, src/klib, src/msgpack). However, # we can lint all header files since they aren't "generated" like C files are. ...
Tests pass locally, haven't run asv yet. Lots of cleanup to do; function names are retained, use camelCase. A bunch of functions overlap with ccalendar (even more so if we remove the unused non-GREGORIAN_CALENDAR case) - [x] closes #19465 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*...
https://api.github.com/repos/pandas-dev/pandas/pulls/19498
2018-02-01T23:20:56Z
2018-02-04T22:02:24Z
null
2018-02-11T21:58:04Z
Added E741 to flake8 config
diff --git a/setup.cfg b/setup.cfg index 828ef80971f7b..942b2b0a1a0bf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,7 +12,11 @@ tag_prefix = v parentdir_prefix = pandas- [flake8] -ignore = E731,E402,W503 +ignore = + E402, # module level import not at top of file + E731, # do not assign a lambda expression, ...
Makes this easier to run locally. Do we want to ignore bare exception (E722) too? Or is the hope that we'll fix all those eventually?
https://api.github.com/repos/pandas-dev/pandas/pulls/19496
2018-02-01T21:03:52Z
2018-02-02T11:03:30Z
2018-02-02T11:03:30Z
2018-09-19T19:58:16Z
TST: fix up pandas_datareader downstream tests
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index 0f0abd8cd3400..b438d6a6137b0 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -89,7 +89,8 @@ def test_pandas_gbq(df): def test_pandas_datareader(): pandas_datareader = import_module('pandas_...
closes #18935
https://api.github.com/repos/pandas-dev/pandas/pulls/19490
2018-02-01T11:06:55Z
2018-02-01T12:54:57Z
2018-02-01T12:54:57Z
2018-02-01T12:55:16Z
Allows for merging of SparseDataFrames, and fixes __array__ interface
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 7322bd9fe3327..7c15a64765e3d 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -282,6 +282,7 @@ Other Enhancements - ``IntervalIndex.astype`` now supports conversions between subtypes when passed ...
- [x] closes #13665 and #14167 and #19506 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is still an in progress thing... since this is pretty complected code that I'm trying to unravel.
https://api.github.com/repos/pandas-dev/pandas/pulls/19488
2018-02-01T08:27:34Z
2018-10-17T15:24:46Z
null
2018-10-17T15:24:47Z
direct conversions for dt64 units
diff --git a/pandas/_libs/src/datetime/np_datetime.c b/pandas/_libs/src/datetime/np_datetime.c index 89753ccf7d773..8d0a8274eae6a 100644 --- a/pandas/_libs/src/datetime/np_datetime.c +++ b/pandas/_libs/src/datetime/np_datetime.c @@ -234,8 +234,7 @@ NPY_NO_EXPORT void add_seconds_to_datetimestruct(pandas_datetimestruct ...
ATM _almost_ all datetimestruct conversions in tslibs use PANDAS_FR_ns. The exceptions are two functions in tslibs.conversions that convert non-nano datetime64 to datetime64[ns]. This PR replaces those two calls with a more performant implementation (asvs on the way). The perf improvement is available b/c the func...
https://api.github.com/repos/pandas-dev/pandas/pulls/19487
2018-02-01T05:28:53Z
2018-02-01T06:18:36Z
null
2018-02-11T22:00:00Z
Use cythonize for build
diff --git a/pandas/_libs/internals.pyx b/pandas/_libs/internals.pyx index b46a05a0842c3..dff8d18c2de4e 100644 --- a/pandas/_libs/internals.pyx +++ b/pandas/_libs/internals.pyx @@ -12,7 +12,7 @@ cdef extern from "Python.h": import numpy as np from numpy cimport int64_t -cdef extern from "compat_helper.h": +cdef ext...
Discussed back in #18089. This builds OK locally, we'll see about the CI... - Makes `util` a module instead of a stub. - Renames io/sas/_sas.pyx --> io/sas/sas.pyx, otherwise a warning is produced at compile-time and an error is raised at import-time.
https://api.github.com/repos/pandas-dev/pandas/pulls/19484
2018-02-01T01:08:42Z
2018-02-07T21:20:57Z
null
2018-07-12T17:58:21Z
Fix makeIntIndex, benchmark get loc
diff --git a/asv_bench/benchmarks/index_object.py b/asv_bench/benchmarks/index_object.py index 970760373632a..f1703e163917a 100644 --- a/asv_bench/benchmarks/index_object.py +++ b/asv_bench/benchmarks/index_object.py @@ -147,6 +147,11 @@ def setup(self, dtype): self.idx = getattr(tm, 'make{}Index'.format(dtype...
- [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` ``makeIntIndex`` currently produces a monotonic index, and hence tests common to different classes actually test very different things (i.e. the sorted vs. unsorted code paths). I had to fix this (and to fix the tests which erro...
https://api.github.com/repos/pandas-dev/pandas/pulls/19483
2018-01-31T23:45:46Z
2018-02-05T11:37:04Z
null
2018-02-08T10:54:22Z
PERF: Cythonize Groupby Rank
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index 083242cd69b74..cf5a44442045b 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -581,6 +581,7 @@ Performance Improvements - Improved performance of :func:`DataFrame.median` with ``axis=1`` when bottl...
- [x] closes #15779 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry ~~This is not complete~~ but I wanted to submit for review on the direction. In particular, I wanted to know if my way of passing the named rank arguments back to the Cython lay...
https://api.github.com/repos/pandas-dev/pandas/pulls/19481
2018-01-31T19:21:31Z
2018-02-10T16:05:52Z
2018-02-10T16:05:52Z
2018-04-20T01:34:49Z
implement test_scalar_compat
diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py index 480f025db17ca..671071b5e4945 100644 --- a/pandas/tests/indexes/datetimes/test_arithmetic.py +++ b/pandas/tests/indexes/datetimes/test_arithmetic.py @@ -10,7 +10,7 @@ import pandas as pd from pandas...
More test organizing, this one focusing on tests.indexes.datetimes. - continue collecting staggler arithmetic tests - new test module for testing that DatetimeIndex.foo behaves like Timestamp.foo - de-duplicate some tests scattered across modules - parametrize a handful of tests
https://api.github.com/repos/pandas-dev/pandas/pulls/19479
2018-01-31T18:24:48Z
2018-02-01T11:26:46Z
2018-02-01T11:26:46Z
2018-02-01T15:56:14Z
BUG: Timedelta.total_seconds() precision issue
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index 37693068e0974..6cf32548c57ed 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -731,7 +731,7 @@ cdef class _Timedelta(timedelta): """ Total duration of timedelta in seco...
- [x] closes #19458 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19477
2018-01-31T15:22:24Z
2018-03-16T22:10:14Z
null
2018-03-16T22:10:14Z
Organize, Split, Parametrize timezones/timestamps tests
diff --git a/pandas/tests/scalar/test_timestamp.py b/pandas/tests/scalar/test_timestamp.py index 2b72eef2c6712..301f6da140866 100644 --- a/pandas/tests/scalar/test_timestamp.py +++ b/pandas/tests/scalar/test_timestamp.py @@ -1,18 +1,14 @@ """ test the scalar Timestamp """ -import sys import pytz import pytest imp...
test_timezones has a small subset of tests that specifically tests tslibs.timezones, but most of it makes much more sense to organize with the appropriate Timestamp and DatetimeIndex tests. Otherwise we get (as in the status quo) a ton of duplicate and near-duplicate tests for e.g. tz_localize in both test_timezones a...
https://api.github.com/repos/pandas-dev/pandas/pulls/19473
2018-01-31T06:52:06Z
2018-02-01T11:23:03Z
2018-02-01T11:23:03Z
2018-02-11T21:58:17Z
Remove 'reduce' from lib_depends, closes #19467
diff --git a/setup.py b/setup.py index 859d50303ecb1..721e6f62bd3e4 100755 --- a/setup.py +++ b/setup.py @@ -416,7 +416,7 @@ def get_tag(self): cmdclass['build_src'] = DummyBuildSrc cmdclass['build_ext'] = CheckingBuildExt -lib_depends = ['reduce', 'inference'] +lib_depends = ['inference'] def srcpath(...
- [x] closes #19467 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/19472
2018-01-31T04:57:18Z
2018-01-31T10:48:54Z
2018-01-31T10:48:53Z
2018-02-11T21:58:23Z
Centralize Arithmetic Tests
diff --git a/pandas/tests/frame/test_arithmetic.py b/pandas/tests/frame/test_arithmetic.py index 3f4e3877a276a..9b99a7b73b82b 100644 --- a/pandas/tests/frame/test_arithmetic.py +++ b/pandas/tests/frame/test_arithmetic.py @@ -1,11 +1,114 @@ # -*- coding: utf-8 -*- +import pytest import numpy as np import pandas a...
Lots of tests in tests.series.test_operators and tests.frame.test_operators that need to be split up, parametrized, and moved to the appropriate test_arithmetic module+class. This handles the most obvious cases.
https://api.github.com/repos/pandas-dev/pandas/pulls/19471
2018-01-31T01:50:01Z
2018-01-31T11:17:06Z
2018-01-31T11:17:06Z
2018-02-11T22:00:08Z
BUG: Fixed accessor for Categorical[Datetime]
diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py index d40230386216c..c5b300848876e 100644 --- a/pandas/core/indexes/accessors.py +++ b/pandas/core/indexes/accessors.py @@ -72,9 +72,12 @@ def _delegate_property_get(self, name): # blow up if we operate on categories if s...
Closes https://github.com/pandas-dev/pandas/issues/19468 No release note, since this was only a regression on master. cc @jschendel.
https://api.github.com/repos/pandas-dev/pandas/pulls/19469
2018-01-30T20:23:02Z
2018-01-31T17:00:27Z
2018-01-31T17:00:27Z
2018-01-31T17:00:32Z
remove unused from period, period_helper
diff --git a/pandas/_libs/src/period_helper.c b/pandas/_libs/src/period_helper.c index 01fc46481d5b4..f1367978bd6c9 100644 --- a/pandas/_libs/src/period_helper.c +++ b/pandas/_libs/src/period_helper.c @@ -1275,38 +1275,6 @@ npy_int64 get_python_ordinal(npy_int64 period_ordinal, int freq) { return toDaily(period_or...
- [ ] 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/19466
2018-01-30T18:06:57Z
2018-01-30T23:55:19Z
2018-01-30T23:55:19Z
2018-02-11T21:58:40Z
Performance of get_loc on non-unique MultiIndex
diff --git a/asv_bench/benchmarks/multiindex_object.py b/asv_bench/benchmarks/multiindex_object.py index 0c92214795557..eb4c4e1c5380e 100644 --- a/asv_bench/benchmarks/multiindex_object.py +++ b/asv_bench/benchmarks/multiindex_object.py @@ -49,16 +49,30 @@ class Duplicates(object): goal_time = 0.2 def setup...
- [x] tests passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry The second commit is related only in the sense that the docs mentioned a ``PerformanceWarning`` due to (non-)sorting, while it was actually due to (non-)uniqueness.
https://api.github.com/repos/pandas-dev/pandas/pulls/19464
2018-01-30T13:14:03Z
2018-11-01T01:44:39Z
null
2018-11-01T01:44:40Z
CI: pin pymysql<0.8.0
diff --git a/ci/requirements-3.6.run b/ci/requirements-3.6.run index 822144a80bc9a..e30461d06b8ea 100644 --- a/ci/requirements-3.6.run +++ b/ci/requirements-3.6.run @@ -13,7 +13,7 @@ lxml html5lib jinja2 sqlalchemy -pymysql +pymysql<0.8.0 feather-format pyarrow psycopg2
looks like builds failing on change in ``pymqsql`` verion from 0.7.11 to 0.8.0:https://travis-ci.org/pandas-dev/pandas/jobs/334960629
https://api.github.com/repos/pandas-dev/pandas/pulls/19461
2018-01-30T11:04:42Z
2018-01-30T11:36:17Z
2018-01-30T11:36:17Z
2018-01-30T11:36:17Z
TST: fix (other check of) test for MultiIndexPyIntEngine on 32 bit
diff --git a/pandas/tests/test_multilevel.py b/pandas/tests/test_multilevel.py index 65332ae7153e2..79e05c90a21b0 100644 --- a/pandas/tests/test_multilevel.py +++ b/pandas/tests/test_multilevel.py @@ -1617,7 +1617,7 @@ def test_pyint_engine(self): # With missing key: idces = range(len(keys)) - ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Second part of #19440
https://api.github.com/repos/pandas-dev/pandas/pulls/19455
2018-01-30T04:53:23Z
2018-01-30T11:36:37Z
2018-01-30T11:36:37Z
2018-01-30T12:54:48Z
Remove reference to deprecated .ix from 10min.rst
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index da7679d8a3f54..fbbe94a72c71e 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -154,7 +154,7 @@ Selection While standard Python / Numpy expressions for selecting and setting are intuitive and come in handy for interactive work, for pro...
The deprecated `.ix` should not be advertised anymore in the "10 minutes guide to pandas".
https://api.github.com/repos/pandas-dev/pandas/pulls/19452
2018-01-30T00:37:50Z
2018-01-30T11:37:16Z
2018-01-30T11:37:16Z
2018-01-30T11:37:21Z