title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
TST: #15752 Add test_drop_duplicates for Categorical dtypes | diff --git a/pandas/tests/test_categorical.py b/pandas/tests/test_categorical.py
index 6366aae8ccdf6..b77e2d1dcda8a 100644
--- a/pandas/tests/test_categorical.py
+++ b/pandas/tests/test_categorical.py
@@ -797,6 +797,97 @@ def test_set_categories_inplace(self):
cat.set_categories(['a', 'b', 'c', 'd'], inplace=T... | - [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/18072 | 2017-11-02T03:54:27Z | 2017-11-06T13:35:21Z | 2017-11-06T13:35:21Z | 2017-11-07T04:01:03Z |
ENH: improve output for testing.assert_*_equal with Categoricals | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 25a891eab0e86..4adafe7c06450 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -117,7 +117,8 @@ Categorical
^^^^^^^^^^^
- Bug in :meth:`DataFrame.astype` where casting to 'category' on an empty `... | - [x ] closes #18056
- [ ] tests added / passed
- [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x ] whatsnew entry
The new CategoricalDtype made the output from failing tests uninformative, see #18056.
The error message is now:
```python
>>> c1 = pd.CategoricalIndex(['a', 'b'])
>... | https://api.github.com/repos/pandas-dev/pandas/pulls/18069 | 2017-11-01T22:27:48Z | 2017-11-02T11:26:51Z | 2017-11-02T11:26:50Z | 2017-12-11T20:24:46Z |
BUG:fix rolling skew kurt floating issue | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 088168fd8a008..84b6a1885178a 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -59,6 +59,7 @@ Bug Fixes
- Bug in ``DataFrame.resample(...).apply(...)`` when there is a callable that returns differen... | - [x] closes #18044
- [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/18065 | 2017-11-01T16:08:43Z | 2017-11-08T03:00:34Z | 2017-11-08T03:00:34Z | 2017-11-08T03:00:42Z |
Separate _TSObject into conversion | diff --git a/pandas/_libs/tslib.pxd b/pandas/_libs/tslib.pxd
index 5ceff32cfbac7..443b3867eb2b5 100644
--- a/pandas/_libs/tslib.pxd
+++ b/pandas/_libs/tslib.pxd
@@ -1,6 +1,7 @@
from numpy cimport ndarray, int64_t
-cdef convert_to_tsobject(object, object, object, bint, bint)
+from tslibs.conversion cimport convert_to... | This is what we've been building towards folks. `convert_to_tsobject`, `convert_str_to_tsobject`, and `convert_datetime_to_tsobject` are moved to `tslibs.conversion`. Concerns regarding `_TSObjects`s can be considered separated.
This isn't quite cut/paste:
- `convert_to_tsobject` calls `is_timestamp` which is not... | https://api.github.com/repos/pandas-dev/pandas/pulls/18060 | 2017-11-01T03:46:38Z | 2017-11-02T23:54:45Z | 2017-11-02T23:54:45Z | 2017-12-08T19:38:59Z |
Implement numpy_helper functions directly in cython | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index f882c3d7a7621..d012e169d1e45 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -48,9 +48,8 @@ from cpython.datetime cimport (PyDateTime_Check, PyDate_Check,
PyTime_Check, PyDelta_Check,
... | cleanup unused bits of src/datetime.pxd
TL;DR this PR implements `get_datetime64_value`, `get_timedelta64_value`, and `get_datetime64_unit` directly in cython instead of getting them via C. There is no performance penalty. Weaning off of the src directory will make the build less of a hassle.
AFAICT the main re... | https://api.github.com/repos/pandas-dev/pandas/pulls/18059 | 2017-11-01T02:50:37Z | 2017-11-06T13:45:56Z | 2017-11-06T13:45:56Z | 2017-12-08T19:40:57Z |
TST: separate out grouping-type tests | diff --git a/pandas/tests/groupby/test_functional.py b/pandas/tests/groupby/test_functional.py
new file mode 100644
index 0000000000000..bc13d51c4f4f6
--- /dev/null
+++ b/pandas/tests/groupby/test_functional.py
@@ -0,0 +1,371 @@
+# -*- coding: utf-8 -*-
+
+""" test function application """
+
+import pytest
+
+from stri... | https://api.github.com/repos/pandas-dev/pandas/pulls/18057 | 2017-11-01T00:06:00Z | 2017-11-01T10:33:06Z | 2017-11-01T10:33:06Z | 2017-11-01T10:34:02Z | |
catch Exception currently ignored | diff --git a/pandas/_libs/src/inference.pyx b/pandas/_libs/src/inference.pyx
index 46c4a6db0b67c..62d242d2545bb 100644
--- a/pandas/_libs/src/inference.pyx
+++ b/pandas/_libs/src/inference.pyx
@@ -689,7 +689,7 @@ cdef class BoolValidator(Validator):
return issubclass(self.dtype.type, np.bool_)
-cpdef bint ... | From Travis log: https://travis-ci.org/pandas-dev/pandas/jobs/295371293
```
.ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long'
Exception ignored in: 'pandas._libs.lib.is_bool_array'
ValueError: Buffer dtype mismatch, expected 'Python object' but got 'long'
.................ValueError: Buff... | https://api.github.com/repos/pandas-dev/pandas/pulls/18054 | 2017-10-31T19:22:41Z | 2017-11-01T15:19:45Z | null | 2017-12-08T19:39:02Z |
Update Contributing Environment section | diff --git a/ci/environment-dev.yaml b/ci/environment-dev.yaml
new file mode 100644
index 0000000000000..c3d3d59f895c6
--- /dev/null
+++ b/ci/environment-dev.yaml
@@ -0,0 +1,14 @@
+name: pandas-dev
+channels:
+ - defaults
+ - conda-forge
+dependencies:
+ - Cython
+ - NumPy
+ - moto
+ - pytest
+ - python-dateutil... | Closes https://github.com/pandas-dev/pandas/issues/18041
Closes https://github.com/pandas-dev/pandas/issues/17544
Closes https://github.com/pandas-dev/pandas/issues/17747
Still need to
1. Maybe add a section on getting compilers
2. Update the windows environment section
3. More rewording on the docs
But I ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18052 | 2017-10-31T13:38:19Z | 2017-11-02T11:58:53Z | 2017-11-02T11:58:52Z | 2017-12-11T20:20:31Z |
Separate out arithmetic tests for datetimelike indexes | diff --git a/pandas/tests/indexes/datetimes/test_arithmetic.py b/pandas/tests/indexes/datetimes/test_arithmetic.py
new file mode 100644
index 0000000000000..2f3d567599fa6
--- /dev/null
+++ b/pandas/tests/indexes/datetimes/test_arithmetic.py
@@ -0,0 +1,335 @@
+# -*- coding: utf-8 -*-
+import warnings
+from datetime impo... | As discussed... somewhere. I'll find the reference tomorrow.
This is about as close as I could get to pure cut/paste. There are a few notes to sprinkle in about things to clean up in a follow-up.
In a couple places this wraps some string literals to make folding easier. | https://api.github.com/repos/pandas-dev/pandas/pulls/18049 | 2017-10-31T06:43:54Z | 2017-11-01T01:19:39Z | 2017-11-01T01:19:39Z | 2017-11-02T14:55:00Z |
MAINT: Remove np.array_equal calls in tests | diff --git a/pandas/tests/dtypes/test_cast.py b/pandas/tests/dtypes/test_cast.py
index d9fb458c83529..82a35fa711e8c 100644
--- a/pandas/tests/dtypes/test_cast.py
+++ b/pandas/tests/dtypes/test_cast.py
@@ -38,17 +38,17 @@ def test_downcast_conv(self):
arr = np.array([8.5, 8.6, 8.7, 8.8, 8.9999999999995])
... | Preferable to use `tm.assert_numpy_array_equal` instead. | https://api.github.com/repos/pandas-dev/pandas/pulls/18047 | 2017-10-31T04:47:18Z | 2017-11-02T11:28:10Z | 2017-11-02T11:28:10Z | 2017-11-03T05:36:28Z |
a zillion flakes | diff --git a/ci/lint.sh b/ci/lint.sh
index 22f8628f59dcd..43d6ea0c118b0 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -24,7 +24,7 @@ if [ "$LINT" ]; then
echo "Linting setup.py DONE"
echo "Linting *.pyx"
- flake8 pandas --filename=*.pyx --select=E501,E302,E203,E111,E114,E221,E303,E128,E231,E126
+ flake8... | ugh. No doubt I missed a bunch...
There are a handful of things, especially in parsers.pyx where "comments" look like commented-out code that should be either deleted or otherwise handled. I'm declaring that [SEP](http://hitchhikers.wikia.com/wiki/Somebody_Else%27s_Problem_field). | https://api.github.com/repos/pandas-dev/pandas/pulls/18046 | 2017-10-31T04:37:08Z | 2017-11-01T10:28:18Z | 2017-11-01T10:28:18Z | 2017-12-08T19:39:01Z |
move src/datetime.pxd funcs to np_datetime and fix misleading names | diff --git a/pandas/_libs/src/datetime.pxd b/pandas/_libs/src/datetime.pxd
index 0c023ed00b2eb..3c542a9d6410c 100644
--- a/pandas/_libs/src/datetime.pxd
+++ b/pandas/_libs/src/datetime.pxd
@@ -136,28 +136,6 @@ cdef inline int _cstring_to_dts(char *val, int length,
return result
-cdef inline int64_t _pydatetime... | The name `_pydatetime_to_dts` is misleading, since `dts` is the variable names used for `pandas_datetimestruct` objects, while the func actually returns an int64. This renames it to `_pydatetime_to_dt64`.
The analogous function for `datetime.date` has the non-misleading name `_date_to_datetime64`. For consistency ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18045 | 2017-10-31T02:39:22Z | 2017-10-31T19:33:34Z | 2017-10-31T19:33:34Z | 2017-10-31T19:57:22Z |
Follow-Up To #17875 | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index e7e92b7ae987a..b4687df8785dd 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -43,17 +43,16 @@ cimport cpython
isnan = np.isnan
cdef double NaN = <double> np.NaN
cdef double nan = NaN
-cdef double NAN = nan
+from cpython.datetime cimport... | flake8 cleanup
use abbreviated dtstruct conversion functions
import from the cython versions of the stdlib instead of from src/datetime.pxd where possible. | https://api.github.com/repos/pandas-dev/pandas/pulls/18043 | 2017-10-31T01:47:36Z | 2017-10-31T10:41:12Z | 2017-10-31T10:41:12Z | 2017-12-08T19:39:05Z |
DOC: header='infer' is not working when there is no header, closes #17473 | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 5390fc3399e23..2aeafd99f6e72 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -103,15 +103,20 @@ Column and Index Locations and Names
++++++++++++++++++++++++++++++++++++
header : int or list of ints, default ``'infer'``
- Row number(s) to use as th... | - [X] closes #17483
| https://api.github.com/repos/pandas-dev/pandas/pulls/18042 | 2017-10-31T01:09:00Z | 2017-11-30T14:26:22Z | 2017-11-30T14:26:22Z | 2017-12-11T20:21:18Z |
Separate tests specific to tslibs modules | diff --git a/pandas/tests/indexes/datetimes/test_ops.py b/pandas/tests/indexes/datetimes/test_ops.py
index 424ef7fc3caf7..b65d467dbd4b8 100644
--- a/pandas/tests/indexes/datetimes/test_ops.py
+++ b/pandas/tests/indexes/datetimes/test_ops.py
@@ -3,7 +3,7 @@
import dateutil
import warnings
import numpy as np
-from dat... | Going through the tests in tests/scalars, tests/indexes/datetimes, tests/indexes/timedeltas, tests/indexes/period, there is a lot of duplication and a lot of thematically inappropriate placement. This is a natural result of tests being added over the years.
One result of this, though, is that its easy to miss certa... | https://api.github.com/repos/pandas-dev/pandas/pulls/18036 | 2017-10-30T16:20:50Z | 2017-10-31T01:06:33Z | 2017-10-31T01:06:33Z | 2017-12-08T19:39:06Z |
Tslibs resolution | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index dd5b849b42a08..708f6c29c8dd1 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -45,6 +45,7 @@ Other API Changes
- :class:`Timestamp` will no longer silently ignore unused or invalid ``tz`` or ``tzin... | One more step towards getting `tseries.frequencies` into cython (and getting rid of non-cython dependencies of tslib/period). Also moves towards de-coupling period from tslib.
- [ ] 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/18034 | 2017-10-30T15:45:27Z | 2017-11-13T13:05:07Z | 2017-11-13T13:05:07Z | 2017-11-20T03:14:58Z |
follow-up to #17943, closes #5168 | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 87ac2c9a18347..5ccbc48316b4f 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -42,9 +42,9 @@ Other API Changes
- ``NaT`` division with :class:`datetime.timedelta` will now return ``NaN`` instead ... | - [x] closes #5168
- [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/18033 | 2017-10-30T15:37:02Z | 2017-10-31T00:32:07Z | 2017-10-31T00:32:07Z | 2017-12-08T19:39:03Z |
BLD: strict alias warning in float hashtable | diff --git a/pandas/_libs/src/klib/khash_python.h b/pandas/_libs/src/klib/khash_python.h
index a375a73b04c9e..dd75ae5ec7e28 100644
--- a/pandas/_libs/src/klib/khash_python.h
+++ b/pandas/_libs/src/klib/khash_python.h
@@ -1,3 +1,4 @@
+#include <string.h>
#include <Python.h>
#include "khash.h"
@@ -14,7 +15,9 @@
// h... | xref #17936 | https://api.github.com/repos/pandas-dev/pandas/pulls/18025 | 2017-10-29T23:40:39Z | 2017-10-31T00:18:05Z | 2017-10-31T00:18:05Z | 2017-10-31T00:18:11Z |
Follow-up to #17805 | diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx
index cf6ef91d3e608..76664e276c634 100644
--- a/pandas/_libs/period.pyx
+++ b/pandas/_libs/period.pyx
@@ -17,12 +17,9 @@ from pandas.compat import PY2
cimport cython
-from datetime cimport (
- is_leapyear,
- pandas_datetimestruct,
- pandas_dat... | This replaces uses of pandas_datetime_to_datetimestruct and pandas_datetimestruct_to_datetime with dt64_to_dtstruct and dtstruct_to_dt64 respectively, but leaves some un-replaced to avoid creating conflicts with other open PRs.
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u... | https://api.github.com/repos/pandas-dev/pandas/pulls/18023 | 2017-10-29T22:04:34Z | 2017-10-29T23:43:29Z | 2017-10-29T23:43:29Z | 2017-10-30T16:25:40Z |
Remove old warnings (plus some useless code) | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 51cce713ff930..8f25a5ec5f20a 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -60,7 +60,7 @@ Deprecations
Removal of prior version deprecations/changes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This removes some warnings which @jreback [suggested](https://github.com/pandas-dev/pandas/pull/17934#discussion_r146225334) to split from #17934 , plus some other useless, probably obsolete, lines of code. | https://api.github.com/repos/pandas-dev/pandas/pulls/18022 | 2017-10-29T21:44:41Z | 2017-11-12T15:22:34Z | 2017-11-12T15:22:34Z | 2017-11-12T16:02:35Z |
Masking and overflow checks for datetimeindex and timedeltaindex ops | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index e19f09b195ce0..69379ac2fc58c 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -57,6 +57,8 @@ Documentation Changes
Bug Fixes
~~~~~~~~~
- Bug in ``DataFrame.resample(...).apply(...)`` when there i... | There are a bunch of new tests (not obvious what the appropriate place is for a WIP test matrix like this, pls advise). The ones that will fail under master are `test_timedeltaindex_add_timestamp_nat_masking` and `test_datetimeindex_sub_timestamp_overflow`
Start filling out a test matrix of arithmetic ops.
- [x]... | https://api.github.com/repos/pandas-dev/pandas/pulls/18020 | 2017-10-29T17:30:14Z | 2017-11-04T21:47:03Z | 2017-11-04T21:47:03Z | 2017-12-12T02:38:30Z |
BUG: numpy.split on non-UTC changes original time (#14042) | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 4c460eeb85b82..5713d1cb6e6a8 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -1041,6 +1041,8 @@ Indexing
- Fixes ``DataFrame.loc`` for setting with alignment and tz-aware ``DatetimeIndex`` (:issue... | Root cause: When a DatetimeIndex is created by __array_wrap__,
round-trip of timezone occured
Solution: Remove the timezone of the original index when creating
a DatetimeIndex via __array_wrap__ and apply the timezone later
- [x] closes #14042
- [x] tests added / passed
- [x] passes `git diff upstream/master... | https://api.github.com/repos/pandas-dev/pandas/pulls/18019 | 2017-10-29T14:55:15Z | 2018-02-10T18:44:34Z | null | 2018-02-10T18:44:34Z |
read_html(): rewinding [wip] | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index cbd094ec4ef49..1a08d48f3948b 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -103,7 +103,7 @@ Indexing
I/O
^^^
--
+- :func:`read_html` now rewinds seekable IO objects after parse failure, befor... | - [x] closes #17975
- [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/18017 | 2017-10-28T22:44:49Z | 2017-11-01T12:11:50Z | 2017-11-01T12:11:50Z | 2017-11-01T12:11:54Z |
Implement BaseOffset in tslibs.offsets | diff --git a/pandas/_libs/tslibs/offsets.pyx b/pandas/_libs/tslibs/offsets.pyx
index 884160216591b..87be9fa910101 100644
--- a/pandas/_libs/tslibs/offsets.pyx
+++ b/pandas/_libs/tslibs/offsets.pyx
@@ -4,7 +4,9 @@
cimport cython
import time
-from cpython.datetime cimport time as dt_time
+from cpython.datetime cimpor... | This moves a handful of methods of `DateOffset` up into `tslibs.offsets.BaseOffset`. The focus for now is on arithmetic methods that do not get overridden by subclasses. These use the `self.__class__(..., **self.kwds)` pattern that we eventually need to get rid of. Isolating this pattern before suggesting alternativ... | https://api.github.com/repos/pandas-dev/pandas/pulls/18016 | 2017-10-28T22:08:15Z | 2017-11-08T02:59:27Z | 2017-11-08T02:59:26Z | 2017-12-08T19:41:18Z |
ERR: Fix segfault with .astype('category') on empty DataFrame | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 64b662c38d39e..03a8e83a713f0 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -113,7 +113,7 @@ Numeric
Categorical
^^^^^^^^^^^
--
+- Bug in :meth:`DataFrame.astype` where casting to 'category' o... | - [X] closes #18004
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Credit to @cgohlke for determining the fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/18015 | 2017-10-28T19:21:17Z | 2017-10-29T00:12:09Z | 2017-10-29T00:12:09Z | 2017-10-29T16:45:33Z |
Move NaT to self-contained module | diff --git a/pandas/_libs/period.pyx b/pandas/_libs/period.pyx
index 76664e276c634..4b8c86ae9d4b2 100644
--- a/pandas/_libs/period.pyx
+++ b/pandas/_libs/period.pyx
@@ -30,10 +30,11 @@ from pandas._libs import tslib
from pandas._libs.tslib import Timestamp, iNaT, NaT
from tslibs.timezones cimport (
is_utc, is_tz... | This completes the messing-with-NaT sequence of PRs.
Highlights:
- Removes duplicate definitions of `_nat_strings` across a couple of modules.
- `tslibs.nattype` relies on `util` but is otherwise free of pandas dependencies.
- `lib` currently depends on `tslib`; this is a big step towards changing this (note that... | https://api.github.com/repos/pandas-dev/pandas/pulls/18014 | 2017-10-28T18:25:09Z | 2017-11-01T00:09:28Z | 2017-11-01T00:09:28Z | 2017-11-01T03:10:34Z |
Fix df.to_csv() for string arrays when encoded in utf-8 | diff --git a/pandas/tests/io/formats/test_to_csv.py b/pandas/tests/io/formats/test_to_csv.py
index b82d9895ddcf5..e12a7196dce6b 100644
--- a/pandas/tests/io/formats/test_to_csv.py
+++ b/pandas/tests/io/formats/test_to_csv.py
@@ -1,8 +1,9 @@
# -*- coding: utf-8 -*-
-from pandas import DataFrame
import numpy as np
i... | So it looks like `df.to_csv()` is now working correctly for string arrays when using the `ascii` encoding but it is still broken when using `utf-8`.
| https://api.github.com/repos/pandas-dev/pandas/pulls/18013 | 2017-10-28T18:06:33Z | 2017-11-07T18:09:49Z | 2017-11-07T18:09:49Z | 2017-11-07T18:11:09Z |
TST: clean warnings | diff --git a/Makefile b/Makefile
index 194a8861715b7..c79175cd3c401 100644
--- a/Makefile
+++ b/Makefile
@@ -12,6 +12,9 @@ clean_pyc:
build: clean_pyc
python setup.py build_ext --inplace
+lint-diff:
+ git diff master --name-only -- "*.py" | grep "pandas" | xargs flake8
+
develop: build
-python setup.py develop
... | https://api.github.com/repos/pandas-dev/pandas/pulls/18012 | 2017-10-28T15:19:48Z | 2017-10-28T17:37:59Z | 2017-10-28T17:37:59Z | 2017-10-28T17:39:20Z | |
CLN: replace %s syntax with .format in pandas.io | diff --git a/pandas/io/packers.py b/pandas/io/packers.py
index ef65a3275060b..425c7c8faaecd 100644
--- a/pandas/io/packers.py
+++ b/pandas/io/packers.py
@@ -503,7 +503,8 @@ def encode(obj):
elif isinstance(obj, date):
return {u'typ': u'date',
u'data': u(obj.isoformat())}
- ... | progress towards #16130
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/18011 | 2017-10-28T09:23:50Z | 2018-01-21T18:24:54Z | null | 2018-12-27T20:32:36Z |
CLN: replace %s syntax /w .format in plotting, stats, tseries | diff --git a/pandas/_version.py b/pandas/_version.py
index 4695b512feff5..0fdb0efde1f05 100644
--- a/pandas/_version.py
+++ b/pandas/_version.py
@@ -75,7 +75,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
if e.errno == errno.ENOENT:
continue
... | Progress towards #16130
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/18010 | 2017-10-28T09:18:01Z | 2017-11-10T20:06:25Z | 2017-11-10T20:06:25Z | 2017-11-10T22:41:16Z |
BUG: Fix memory access violations in is_lexsorted | diff --git a/pandas/_libs/algos.pyx b/pandas/_libs/algos.pyx
index d159761c3f5e6..a44a7288bda45 100644
--- a/pandas/_libs/algos.pyx
+++ b/pandas/_libs/algos.pyx
@@ -87,7 +87,7 @@ class NegInfinity(object):
@cython.boundscheck(False)
def is_lexsorted(list list_of_arrays):
cdef:
- int i
+ Py_ssize_t ... | Fixes the following segfault during tests:
```
running: pytest --skip-slow --skip-network X:\Python36\lib\site-packages\pandas
============================= test session starts =============================
platform win32 -- Python 3.6.3, pytest-3.2.3, py-1.4.34, pluggy-0.4.0
rootdir: ., inifile:
plugins: pep8-1.... | https://api.github.com/repos/pandas-dev/pandas/pulls/18005 | 2017-10-27T19:35:43Z | 2017-10-28T18:49:36Z | 2017-10-28T18:49:36Z | 2017-10-28T18:49:39Z |
DOC: clean-up 0.21.0 whatsnew file | diff --git a/doc/source/release.rst b/doc/source/release.rst
index c330d08600928..6c3e7f847b485 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -49,11 +49,14 @@ version.
Highlights include:
-- Integration with `Apache Parquet <https://parquet.apache.org/>`__, including a new top-level :func:`re... | https://api.github.com/repos/pandas-dev/pandas/pulls/18001 | 2017-10-27T12:51:22Z | 2017-10-27T15:21:19Z | 2017-10-27T15:21:19Z | 2017-10-27T15:21:19Z | |
DOC: clean old whatsnew files for 0.21.0 | diff --git a/doc/source/whatsnew/v0.12.0.txt b/doc/source/whatsnew/v0.12.0.txt
index c4188898bdf71..27aa47a6bb097 100644
--- a/doc/source/whatsnew/v0.12.0.txt
+++ b/doc/source/whatsnew/v0.12.0.txt
@@ -236,10 +236,10 @@ I/O Enhancements
.. ipython:: python
from pandas.util.testing import makeCustomDat... | https://api.github.com/repos/pandas-dev/pandas/pulls/17999 | 2017-10-27T12:14:47Z | 2017-10-27T12:29:51Z | 2017-10-27T12:29:51Z | 2017-10-27T12:57:31Z | |
BUG: DataFrame.groupby() interprets tuple as list of keys | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index e32b3ed268fc8..957e6d38a0f00 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -88,6 +88,7 @@ Bug Fixes
~~~~~~~~~
- Bug in ``pd.read_msgpack()`` with a non existent file is passed in Python 2 (:i... | - [x] closes #17979
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
```
In [2]: df = pd.DataFrame([[1, 2, 3, 4], [3, 4, 5, 6], [1, 4, 2, 3]],
...: columns=pd.MultiIndex.from_arrays([['a', 'b', 'b', 'c'],
...:... | https://api.github.com/repos/pandas-dev/pandas/pulls/17996 | 2017-10-27T09:09:06Z | 2017-11-01T11:26:21Z | null | 2017-11-01T11:26:51Z |
DOC: Some changes | diff --git a/doc/source/release.rst b/doc/source/release.rst
index eff3eea63e9f8..c330d08600928 100644
--- a/doc/source/release.rst
+++ b/doc/source/release.rst
@@ -37,10 +37,10 @@ analysis / manipulation tool available in any language.
* Binary installers on PyPI: http://pypi.python.org/pypi/pandas
* Documentation: ... | 1. Added whatsnew templates for 0.21.1 and 0.22.0
2. Update release.rst and whatsnew/v0.21.0.txt for the release tomorrow
3. Fixed some broken references in the 0.21.0 whatsnew | https://api.github.com/repos/pandas-dev/pandas/pulls/17992 | 2017-10-26T17:45:10Z | 2017-10-27T09:45:16Z | 2017-10-27T09:45:16Z | 2017-10-27T12:04:19Z |
BUG: Fix parsing of stata dates (#17797) | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 422a239e86ece..dad212c9cb7a4 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -74,6 +74,9 @@ Indexing
I/O
^^^
+- Bug in class:`~pandas.io.stata.StataReader` not converting date/time columns with... | - [x] closes #17797
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] Test and expand parsing of STATA date/time objects.
Expands behavior provided by the following to include most STATA format codes.
```python
# remove format details from %td
... | https://api.github.com/repos/pandas-dev/pandas/pulls/17990 | 2017-10-26T16:20:46Z | 2017-10-31T00:24:53Z | 2017-10-31T00:24:53Z | 2017-12-11T20:25:14Z |
COMPAT: Update for NumPy dev | diff --git a/pandas/io/packers.py b/pandas/io/packers.py
index 92270b39f56ef..abd258034af99 100644
--- a/pandas/io/packers.py
+++ b/pandas/io/packers.py
@@ -350,8 +350,11 @@ def unconvert(values, dtype, compress=None):
)
# fall through to copying `np.fromstring`
- # Copy the strin... | Closes https://github.com/pandas-dev/pandas/issues/17986
xref https://github.com/numpy/numpy/pull/9487
Do we want this for 0.21? | https://api.github.com/repos/pandas-dev/pandas/pulls/17987 | 2017-10-25T21:35:12Z | 2017-10-27T20:41:32Z | 2017-10-27T20:41:31Z | 2017-12-11T20:20:38Z |
ERR: Improve error message on non-sorted input with .truncate | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 8afdd1b2e22b3..44d8844795d3c 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -46,6 +46,8 @@ Other API Changes
- :class:`Timestamp` will no longer silently ignore invalid ``freq`` arguments (:issue... | - [ ] closes #17935
- [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/17984 | 2017-10-25T20:13:32Z | 2017-11-17T00:30:57Z | 2017-11-17T00:30:57Z | 2017-11-27T14:49:13Z |
Rename categories with Series | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 18f8858748df5..11106554483e0 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -239,6 +239,36 @@ Now, to find prices per store/product, we can simply do:
.pipe(lambda grp: grp.Revenue.sum()/gr... | Closes #17981
head:
```
[ 50.00%] ··· Running categoricals.Categoricals3.time_rank_string_cat 6.39ms
[100.00%] ··· Running categoricals.Categoricals3.time_rank_string_cat_ordered 4.81ms
```
master:
```
[ 50.00%] ··· Running categoricals.Categoricals3.time_rank_string_cat 137ms
[100.00%... | https://api.github.com/repos/pandas-dev/pandas/pulls/17982 | 2017-10-25T16:49:26Z | 2017-10-26T23:54:23Z | 2017-10-26T23:54:23Z | 2017-10-27T11:43:16Z |
PERF: Fix regression in datetime ops | diff --git a/pandas/core/ops.py b/pandas/core/ops.py
index b6fc47c04f174..fa50036b6eb95 100644
--- a/pandas/core/ops.py
+++ b/pandas/core/ops.py
@@ -622,7 +622,8 @@ def _is_offset(self, arr_or_obj):
""" check if obj or all elements of list-like is DateOffset """
if isinstance(arr_or_obj, ABCDateOffset... | HEAD:
```
In [1]: import pandas as pd; import numpy as np
In [2]: s = pd.Series(pd.to_datetime(np.arange(100000), unit='ms'))
In [3]: %timeit s - s.shift()
2.73 ms ± 30.1 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
```
0.21.0rc1:
```
527 ms ± 11.6 ms per loop (mean ± std. dev. of 7 runs, 1 l... | https://api.github.com/repos/pandas-dev/pandas/pulls/17980 | 2017-10-25T15:57:33Z | 2017-10-26T13:57:38Z | 2017-10-26T13:57:38Z | 2017-10-26T13:58:23Z |
TST: #15752 Add drop_duplicates tests for uint, float and bool for Series | diff --git a/pandas/tests/series/test_analytics.py b/pandas/tests/series/test_analytics.py
index 8cc40bb5146c5..2625f4be840c4 100644
--- a/pandas/tests/series/test_analytics.py
+++ b/pandas/tests/series/test_analytics.py
@@ -873,52 +873,95 @@ def test_unique(self):
expected = np.array([1, 2, 3, None], dtype=ob... | - [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/17974 | 2017-10-25T02:42:37Z | 2017-10-31T12:07:55Z | 2017-10-31T12:07:55Z | 2017-11-01T01:31:59Z |
BUG: GH17464 MultiIndex now raises an error when levels aren't unique, tests changed | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index d43d5bec7175f..150e86f564ad0 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -81,6 +81,7 @@ Other API Changes
- Inserting missing values into indexes will work for all types of indexes and automat... | - [x] closes #17464
- [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/17971 | 2017-10-25T02:25:18Z | 2017-12-03T16:36:32Z | 2017-12-03T16:36:31Z | 2017-12-04T03:27:38Z |
DOC:Cleaned up docstrings in sql.py | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index ef047a7a61e42..c42c19e1357bc 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -89,7 +89,7 @@ def compile_big_int_sqlite(type_, compiler, **kw):
def _convert_params(sql, params):
- """convert sql and params args to DBAPI2.0 compliant format"""
+ ""... | Tidied up docstrings in pandas/io/sql.py. | https://api.github.com/repos/pandas-dev/pandas/pulls/17967 | 2017-10-24T20:34:51Z | 2017-10-25T11:49:06Z | 2017-10-25T11:49:06Z | 2017-10-25T11:49:26Z |
Rename signature fix | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 5ad82d0da95fa..a1af806e5cb9e 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -82,8 +82,10 @@
from pandas import compat
from pandas.compat import PY36
from pandas.compat.numpy import function as nv
-from pandas.util._decorators import Appe... | - [ ] closes #17963
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Sample usage:
```
In [3]: df = pd.DataFrame(index=['a', 'b'], columns=['A', 'B'])
In [4]: df.reindex(['a'], ['A'])
/Users/taugspurger/.virtualenvs/pandas-dev/bin/ipython... | https://api.github.com/repos/pandas-dev/pandas/pulls/17966 | 2017-10-24T18:58:09Z | 2017-10-27T09:43:54Z | 2017-10-27T09:43:54Z | 2017-10-27T12:04:18Z |
flake8 cleanup | diff --git a/ci/lint.sh b/ci/lint.sh
index ed3af2568811c..22f8628f59dcd 100755
--- a/ci/lint.sh
+++ b/ci/lint.sh
@@ -16,6 +16,13 @@ if [ "$LINT" ]; then
fi
echo "Linting *.py DONE"
+ echo "Linting setup.py"
+ flake8 setup.py
+ if [ $? -ne "0" ]; then
+ RET=1
+ fi
+ echo "Linting setup.... | Entirely aesthetic.
- [ ] 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/17964 | 2017-10-24T16:25:47Z | 2017-10-28T00:38:45Z | 2017-10-28T00:38:45Z | 2017-10-30T16:23:00Z |
BUG: Fix to_latex with longtable (#17959) | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index fbfbb403b2a17..ffeff4b59134c 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -127,6 +127,7 @@ I/O
- Bug in :func:`pandas.io.json.json_normalize` to avoid modification of ``meta`` (:issue:`18610`)
... | - [x] closes #17959
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
pandas.DataFrame.to_latex(longtable=True) always contained `\multicolumn{3}{r}{{Continued on next page}}` regardless of the number of columns in the output. This is now changed ... | https://api.github.com/repos/pandas-dev/pandas/pulls/17960 | 2017-10-23T20:43:52Z | 2017-12-11T11:08:39Z | 2017-12-11T11:08:39Z | 2017-12-12T02:38:30Z |
isolate scalar Timestamp tests from date_range tests | diff --git a/pandas/tests/scalar/test_timestamp.py b/pandas/tests/scalar/test_timestamp.py
index c1b9f858a08de..8f5c5206de41c 100644
--- a/pandas/tests/scalar/test_timestamp.py
+++ b/pandas/tests/scalar/test_timestamp.py
@@ -582,7 +582,7 @@ def test_pprint(self):
'foo': 1}"""
assert result == expected
- ... | Discussed in #17697
- [ ] closes #xxxx
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/17957 | 2017-10-23T16:17:54Z | 2017-10-27T23:41:23Z | 2017-10-27T23:41:23Z | 2017-10-30T16:25:19Z |
ENH: avoid creating reference cycle on indexing (#15746) | diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py
index d941ef20dc7ac..f3e7ebbbd33e8 100644
--- a/asv_bench/benchmarks/indexing.py
+++ b/asv_bench/benchmarks/indexing.py
@@ -287,3 +287,19 @@ def setup(self):
def time_subset(self):
self.p.ix[(self.inds, self.inds, self.inds... | - [x] closes #15746
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/17956 | 2017-10-23T15:49:15Z | 2017-10-27T20:33:42Z | 2017-10-27T20:33:42Z | 2017-10-27T20:34:28Z |
nat division by timedelta | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 3d8e592c49221..e85ba505887b4 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -40,6 +40,7 @@ Backwards incompatible API changes
Other API Changes
^^^^^^^^^^^^^^^^^
+- ``NaT`` division with :clas... | xref #17876
Does the whatsnew note still go in 0.20.0.txt?
- [ ] closes #xxxx
- [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/17955 | 2017-10-23T15:13:21Z | 2017-10-28T02:30:45Z | 2017-10-28T02:30:45Z | 2017-10-28T04:50:44Z |
REF/INT: preserve block type in joining when only having a single block | diff --git a/pandas/core/internals.py b/pandas/core/internals.py
index f6c5ecbca81ef..045580d393b26 100644
--- a/pandas/core/internals.py
+++ b/pandas/core/internals.py
@@ -5182,7 +5182,15 @@ def concatenate_block_managers(mgrs_indexers, axes, concat_axis, copy):
for placement, join_units in concat_plan:
- ... | xref https://github.com/pandas-dev/pandas/issues/17283 | https://api.github.com/repos/pandas-dev/pandas/pulls/17954 | 2017-10-23T13:48:26Z | 2017-10-27T11:49:13Z | 2017-10-27T11:49:13Z | 2017-10-27T12:08:00Z |
DOC: Document return type from concat | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index c54763f8ebde1..1822449263cac 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -66,6 +66,10 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False,
Returns
-------
concat... | For a single Series with axis=1.
Closes https://github.com/pandas-dev/pandas/issues/17952 | https://api.github.com/repos/pandas-dev/pandas/pulls/17953 | 2017-10-23T13:17:41Z | 2017-10-26T17:50:55Z | 2017-10-26T17:50:55Z | 2017-10-26T17:50:57Z |
resample().apply not returning multiple columns like groupby(pd.Timegrouper()).apply | diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt
index 422a239e86ece..868d1e74a091d 100644
--- a/doc/source/whatsnew/v0.21.1.txt
+++ b/doc/source/whatsnew/v0.21.1.txt
@@ -56,6 +56,7 @@ Documentation Changes
Bug Fixes
~~~~~~~~~
+- Bug in ``DataFrame.resample(...).apply(...)`` when there... | - [x] closes #15169
- [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/17950 | 2017-10-23T09:36:08Z | 2017-10-27T20:32:20Z | 2017-10-27T20:32:20Z | 2017-12-11T20:25:24Z |
fix "Modern Pandas" url | diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst
index 9a97294d4e6d6..1c34c16ea965a 100644
--- a/doc/source/tutorials.rst
+++ b/doc/source/tutorials.rst
@@ -155,7 +155,7 @@ For more resources, please visit the main `repository <https://github.com/guipsa
Modern Pandas
-------------
-- `Modern Pandas ... | - [ ] 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/17948 | 2017-10-23T09:24:43Z | 2017-10-23T10:20:58Z | 2017-10-23T10:20:58Z | 2017-10-23T10:29:47Z |
DOC:Cleaned up the read_sql_table docstring | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 9c6d01d236c57..ef047a7a61e42 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -206,28 +206,28 @@ def read_sql_table(table_name, con, schema=None, index_col=None,
Parameters
----------
table_name : string
- Name of SQL table in database
... | Tidied the docstring for the read_sql_table function. | https://api.github.com/repos/pandas-dev/pandas/pulls/17946 | 2017-10-23T00:42:55Z | 2017-10-23T08:53:13Z | 2017-10-23T08:53:13Z | 2017-10-23T08:53:39Z |
Checks for tz/tzinfo validity in Timestamp.__new__ | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 53b052a955b45..0d177f193b68e 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -40,7 +40,7 @@ Backwards incompatible API changes
Other API Changes
^^^^^^^^^^^^^^^^^
--
+- :class:`Timestamp` will ... | closes #17690
related #5168
- [x] closes #17690
- [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/17943 | 2017-10-22T22:50:58Z | 2017-10-27T20:30:48Z | 2017-10-27T20:30:48Z | 2017-10-27T22:13:56Z |
fix redundant isinstance checks | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index 5d40975586e73..71de6c7c3e8cf 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -24,8 +24,7 @@
from pandas.core.common import AbstractMethodError
import pandas.io.formats.printing ... | - [ ] 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/17942 | 2017-10-22T18:14:26Z | 2017-10-23T10:22:25Z | 2017-10-23T10:22:25Z | 2017-10-30T16:22:54Z |
DOC: Clarify use of resample bins (#14888) | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 36ffe8806f373..fbb2947d8c957 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -1485,12 +1485,31 @@ labels.
.. ipython:: python
- ts.resample('5Min').mean() # by default label='right'
+ ts.resample('5Min').mean() #... | - [ ] closes #14888
| https://api.github.com/repos/pandas-dev/pandas/pulls/17940 | 2017-10-21T21:21:28Z | 2017-10-23T08:59:04Z | 2017-10-23T08:59:04Z | 2017-11-06T19:46:06Z |
Port Timedelta implementation to tslibs.timedeltas | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index d2492064c900c..419f1160aa3df 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -72,7 +72,6 @@ cimport cython
from pandas.compat import iteritems
-import collections
import warnings
import pytz
@@ -2020,17 +2019,13 @@ cpdef arr... | Cut/paste Timedelta and _Timedelta methods into tslibs.timesdeltas._Timedelta. The moved methods are copied verbatim.
Timedelta._binary_op_method_timedeltalike and Timedelta._op_unary_method do not use `self`, are moved out of the class definitions (but stay in tslib). (In a follow-up _op_unary_method can be moved... | https://api.github.com/repos/pandas-dev/pandas/pulls/17937 | 2017-10-21T19:16:38Z | 2017-11-03T00:57:40Z | 2017-11-03T00:57:40Z | 2017-11-03T02:36:53Z |
BUG: fix dtype of all-NaN MultiIndex level | diff --git a/asv_bench/benchmarks/categoricals.py b/asv_bench/benchmarks/categoricals.py
index d90c994b3d194..a5bb5e790dec1 100644
--- a/asv_bench/benchmarks/categoricals.py
+++ b/asv_bench/benchmarks/categoricals.py
@@ -26,6 +26,9 @@ def setup(self):
self.datetimes = pd.Series(pd.date_range(
'199... | - [x] closes #17929
- [x] tests added / passed
- [x] passes `git diff master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
(This will need to be rebased on #17930 , but in the meanwhile it is useful for discussion)
An alternative, more radical, fix is to have ``pd.CategoricalIndex([np.nan]).dtype.categori... | https://api.github.com/repos/pandas-dev/pandas/pulls/17934 | 2017-10-21T09:55:28Z | 2017-10-29T19:11:07Z | 2017-10-29T19:11:07Z | 2017-10-29T21:26:46Z |
BUG: Gracefully handle all utf-8 characters in json urls | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 18f8858748df5..bf94d647d2db7 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -998,6 +998,7 @@ I/O
- Bug in :meth:`DataFrame.to_html` in which there was no validation of the ``justify`` parameter (... | - [x] closes #17918
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Url is passed through `quote` before doing the request. The `safe` parameter characters are the reserved character set defined in [RFC 2396](https://www.ietf.org/rfc/rfc2396.... | https://api.github.com/repos/pandas-dev/pandas/pulls/17933 | 2017-10-21T07:07:20Z | 2017-10-23T02:08:11Z | null | 2017-10-24T14:14:09Z |
Fix c build warnings #17634; remove several unused funcs | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 60a646769dd1a..0dacdf70a71d5 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -12,7 +12,7 @@ from cpython cimport (PyObject, PyBytes_FromString,
PyBytes_AsString, PyBytes_Check,
Py... | Removes several unused functions, most importantly `floatify` which util attempts to import from numpy_helper but which does not exist there.
While putting this together I noticed in parsers.pyx a couple occurrences of`print >> sys.stderr, self.parser.warn_msg`. I guess this is still valid cython, but should probab... | https://api.github.com/repos/pandas-dev/pandas/pulls/17932 | 2017-10-20T21:22:01Z | 2017-10-21T14:31:49Z | 2017-10-21T14:31:49Z | 2017-10-30T16:22:52Z |
BUG: get_level_values() on int level upcasts to Float64Index if needed | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 841eec69d41ba..3d4abea862b12 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 #17924
- [x] tests added / passed
- [x] passes `git diff master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Maybe the check could be more general... but I can't think of any case in which this is needed other than ``int`` -> ``float``. | https://api.github.com/repos/pandas-dev/pandas/pulls/17930 | 2017-10-20T16:44:26Z | 2017-12-10T23:23:13Z | 2017-12-10T23:23:13Z | 2017-12-10T23:33:13Z |
BUG: Fix alignment of list-like objects for operations with DataFrame | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 2b2dd4915b560..18f8858748df5 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -1049,6 +1049,7 @@ Reshaping
- Bug in :func:`pivot_table` where the result's columns did not preserve the categorical d... | - [X] closes #17901
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Some comments:
- Replaced `pd.DataFrame` with `ABCDataFrame` in `isinstance` checks throughout `ops.py`, as I'm of the impression that this is the best practice. Can revert th... | https://api.github.com/repos/pandas-dev/pandas/pulls/17926 | 2017-10-20T00:06:19Z | 2017-10-20T10:12:50Z | 2017-10-20T10:12:50Z | 2017-10-22T05:46:30Z |
DOC: Improve truncate docstring (#17763) | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 36ffe8806f373..fa8d036b655e6 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -657,18 +657,25 @@ With no defaults.
Truncating & Fancy Indexing
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-A ``truncate`` convenience function is provide... | - [ ] closes #17763
| https://api.github.com/repos/pandas-dev/pandas/pulls/17925 | 2017-10-19T23:27:25Z | 2017-10-21T13:55:19Z | 2017-10-21T13:55:19Z | 2017-11-27T14:48:52Z |
DOC: Removed references to v0.17 in docs and doc strings | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index f5c9e1d78e0fc..9318df2b76564 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -1738,11 +1738,6 @@ description.
Sorting
-------
-.. warning::
-
- The sorting API is substantially changed in 0.17.0, see :ref:`here <whatsnew_0170.api_b... | - [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This PR removes references to changes and "versionadded" for pandas v0.17. This can be considered a continuation to #17504.
I propose pulling this in as soon as 0.21 is released.
Alternatively, these could be accepted in v0.21, as these refe... | https://api.github.com/repos/pandas-dev/pandas/pulls/17923 | 2017-10-19T21:34:42Z | 2017-10-30T08:29:25Z | 2017-10-30T08:29:24Z | 2017-11-06T21:46:42Z |
DOC: Fix docstring for DataFrame.plot | diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py
index ad3c4f0ecb05f..43f33cf30dea1 100644
--- a/pandas/plotting/_core.py
+++ b/pandas/plotting/_core.py
@@ -1847,8 +1847,6 @@ def _plot(data, x=None, y=None, subplots=False,
position : float
Specify relative alignments for bar plot layout.
... | The layout parameter appears twice in the parameter list.
- [ ] 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/17922 | 2017-10-19T20:36:39Z | 2017-10-19T22:26:59Z | 2017-10-19T22:26:59Z | 2017-10-20T17:01:52Z |
Recognize timezoned labels when accessing dataframes. | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 26e701d008b3f..67835b859255a 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -557,6 +557,50 @@ We are stopping on the included end-point as it is part of the index
dft2 = dft2.swaplevel(0, 1).sort_index()
dft2.loc... | - [X] closes #16785
- [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/17920 | 2017-10-19T14:54:15Z | 2018-06-30T08:39:00Z | null | 2018-06-30T08:39:00Z |
DOC: Fix improper single backticks in whatsnew | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index a889292cacc99..f7b7347f9bdab 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -267,7 +267,7 @@ Other Enhancements
- :func:`DataFrame.items` and :func:`Series.items` are now present in both Python 2... | Noticed a few places in whatsnew where items are only surrounded by single backticks, which appears to cause them to render as italic. For the most part I replaced these with double backticks, e.g. <code>\`Series\`</code> -> <code>\`\`Series\`\`</code>, or removed the backticks if they didn't seem appropriate.
| https://api.github.com/repos/pandas-dev/pandas/pulls/17916 | 2017-10-18T23:34:46Z | 2017-10-19T07:16:23Z | 2017-10-19T07:16:23Z | 2017-10-19T15:34:48Z |
Add usage example to DataFrame.to_csv's doc | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index 22f73490335f5..f37d73a82dddd 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1387,6 +1387,16 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
.. versionadded:: 0.16.0
+ Examples
+ -... | - [x] add usage example to doc
| https://api.github.com/repos/pandas-dev/pandas/pulls/17915 | 2017-10-18T20:55:29Z | 2017-12-28T12:42:01Z | null | 2017-12-28T12:42:01Z |
DOC: some doc fixes | diff --git a/doc/source/api.rst b/doc/source/api.rst
index bec35bac0d33e..80f8d42be8ed6 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -649,6 +649,7 @@ The dtype of a ``Categorical`` can be described by a :class:`pandas.api.types.Ca
.. autosummary::
:toctree: generated/
+ :template: autosummary/cl... | https://api.github.com/repos/pandas-dev/pandas/pulls/17913 | 2017-10-18T20:01:50Z | 2017-10-19T20:10:35Z | 2017-10-19T20:10:35Z | 2017-10-19T20:10:39Z | |
Fixed problem parsing float and int columns with bool_ and NaN values | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 60a646769dd1a..91d2664f2ef5b 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -1192,7 +1192,12 @@ cdef class TextReader:
# only allow safe casts, eg. with a nan you cannot safely cast to int
if col_res is not... | - [x] closes #16698
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Fixed problem parsing a column to float* or int* or uint* when it contains (boolean) true_values or false_values and NAs. | https://api.github.com/repos/pandas-dev/pandas/pulls/17909 | 2017-10-18T10:46:34Z | 2018-01-21T18:11:49Z | null | 2018-01-21T18:11:49Z |
DOC GH17505 Added some links and examples. To little/much/wrong? | diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst
index 175ea28122606..212811988a405 100644
--- a/doc/source/groupby.rst
+++ b/doc/source/groupby.rst
@@ -15,60 +15,43 @@
plt.close('all')
from collections import OrderedDict
+
*****************************
Group By: split-apply-combine
***********... | - [ ] closes #17505
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Before I spend more time on this, I'd like to know if I am doing to much, to little or just plain all wrong.
| https://api.github.com/repos/pandas-dev/pandas/pulls/17908 | 2017-10-17T20:52:46Z | 2018-02-24T17:09:07Z | null | 2018-02-28T11:43:31Z |
tslib flake8 cleanup, missing declarations | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index f58aaa0ce3234..62224d75db37f 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -49,6 +49,7 @@ from datetime cimport (
check_dts_bounds,
PANDAS_FR_ns,
PyDateTime_Check, PyDate_Check,
+ PyDelta_Check, # PyDelta_Check(x... | replace `isinstance` checks with the faster C versions
change cpdef-->cdef for internal field-getter methods
remove get_named_field in favor of faster dict lookup (yah yah I'll show asv results in a bit)
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --... | https://api.github.com/repos/pandas-dev/pandas/pulls/17907 | 2017-10-17T19:37:36Z | 2017-10-20T13:30:29Z | 2017-10-20T13:30:29Z | 2017-10-30T16:25:16Z |
Add timestamp method+test; closes #17329 | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 80f8d42be8ed6..e8b8b3624740d 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1794,6 +1794,7 @@ Methods
Timestamp.strftime
Timestamp.strptime
Timestamp.time
+ Timestamp.timestamp
Timestamp.timetuple
Timestamp.timetz
... | - [x] closes #17329
- [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/17906 | 2017-10-17T17:34:44Z | 2017-10-27T22:03:56Z | 2017-10-27T22:03:55Z | 2017-12-11T20:25:18Z |
BUG: rank with +-inf, #6945 | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 09b504cac5ed4..d14bc917de356 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -63,6 +63,91 @@ levels <merging.merge_on_columns_and_levels>` documentation section.
left.merge(right, on=['key1', '... | The bug is caused by replacing nan with positive infinite or negative infinite values. As a result, when keep_na is true, both real nan and positive/negative infinite will be assigned nan as the rank. The solution is to keep track of the real nan value when generate the nan mask.
- [x] closes #6945
- [x] tests ad... | https://api.github.com/repos/pandas-dev/pandas/pulls/17903 | 2017-10-17T11:00:01Z | 2017-12-06T11:29:14Z | 2017-12-06T11:29:14Z | 2018-04-20T06:16:41Z |
Revert "ERR: Raise ValueError when setting scalars in a dataframe with no index ( #16823) (#16968)" | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 598e452640781..80c27504996f2 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -791,8 +791,6 @@ Other API Changes
- Restricted DateOffset keyword arguments. Previously, ``DateOffset`` subclasses al... | closes #17894
xref #16823 | https://api.github.com/repos/pandas-dev/pandas/pulls/17902 | 2017-10-17T10:29:02Z | 2017-10-18T10:26:39Z | 2017-10-18T10:26:38Z | 2017-10-18T11:09:04Z |
ENH: Add 'infer' option to compression in _get_handle() | diff --git a/doc/source/whatsnew/v0.24.0.txt b/doc/source/whatsnew/v0.24.0.txt
index a2210c39bb6a6..42a511bc3bb55 100644
--- a/doc/source/whatsnew/v0.24.0.txt
+++ b/doc/source/whatsnew/v0.24.0.txt
@@ -83,6 +83,7 @@ Other Enhancements
- :func:`read_html` copies cell data across ``colspan``s and ``rowspan``s, and it tre... | xref #15008
xref #17262
Added 'infer' option to compression in `_get_handle()`.
This way for example `.to_csv()` is made more similar to `pandas.read_csv()`.
The default value remains `None `to keep backward compatibility.
- [ ] closes #xxxx
- [ ] tests passed ( 14046 passed, 1637 skipped, 11 xfailed, 1 xpa... | https://api.github.com/repos/pandas-dev/pandas/pulls/17900 | 2017-10-17T02:49:57Z | 2018-07-08T13:05:01Z | 2018-07-08T13:05:01Z | 2018-07-20T20:40:48Z |
DEPR: Deprecate tupleize_cols in Index constructor | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 598e452640781..ff437365e0e0d 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -804,6 +804,7 @@ Deprecations
- :func:`read_excel()` has deprecated ``parse_cols`` in favor of ``usecols`` for consiste... | Title is self-explanatory.
xref #17060. | https://api.github.com/repos/pandas-dev/pandas/pulls/17899 | 2017-10-17T00:57:28Z | 2017-10-17T07:24:21Z | null | 2023-05-11T01:16:35Z |
API: add "level=" argument to MultiIndex.unique() | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 6dc730cae37f7..a9f35fb482792 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -24,6 +24,7 @@ Other Enhancements
- Better support for :func:`Dataframe.style.to_excel` output with the ``xlsxwriter`... | - [x] closes #17896
- [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/17897 | 2017-10-16T18:00:18Z | 2017-11-20T07:32:51Z | 2017-11-20T07:32:51Z | 2017-11-20T08:11:02Z |
CategoricalDtype construction: actually use fastpath | diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py
index 2fdbad93fa63b..b3498abb3b2c0 100644
--- a/pandas/core/dtypes/dtypes.py
+++ b/pandas/core/dtypes/dtypes.py
@@ -178,7 +178,7 @@ def _finalize(self, categories, ordered, fastpath=False):
if categories is not None:
categori... | cc @TomAugspurger the current `CategoricalDtype._from_fastpath(..)` was not any different from `CategoricalDtype(..)` as far as I could see, as the `fastpath` argument in `_finalize` was not used. This seems the logical fix. | https://api.github.com/repos/pandas-dev/pandas/pulls/17891 | 2017-10-16T10:33:18Z | 2017-10-16T12:24:06Z | 2017-10-16T12:24:06Z | 2017-10-16T13:13:05Z |
Deprecated fastpath parameter in Categorial constructor | diff --git a/pandas/core/categorical.py b/pandas/core/categorical.py
index 6d60cf72efd62..64f7e3d4126b3 100644
--- a/pandas/core/categorical.py
+++ b/pandas/core/categorical.py
@@ -25,6 +25,7 @@
is_timedelta64_dtype,
is_categorical,
is_categorical_dtype,
+ is_integer_dtype,
is_list_like, is_seque... | Hello everyone!
I am new to Pandas developer community and your feedback would help me a lot. Thank you!
- [ ] closes #17562
| https://api.github.com/repos/pandas-dev/pandas/pulls/17889 | 2017-10-16T09:35:16Z | 2017-12-28T12:36:16Z | null | 2017-12-28T12:36:16Z |
BUG: Categorical(Index) passed as categories | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 642ee3c8e54c7..30fbe2fd387b6 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -1023,6 +1023,7 @@ Categorical
- Bug in the categorical constructor with empty values and categories causing the ``.cat... | - [x] closes #17884
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
@TomAugspurger I am not sure we had a discussion about that before, but to me it does not make many sense to have a CategoricalIndex as the categories of a Categorical/Categoric... | https://api.github.com/repos/pandas-dev/pandas/pulls/17888 | 2017-10-16T08:19:12Z | 2017-10-18T00:03:45Z | 2017-10-18T00:03:44Z | 2017-10-18T07:53:35Z |
BUG: support "fill_value" for ".unstack()" called with list of levels | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 642ee3c8e54c7..598e452640781 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -1010,6 +1010,7 @@ Reshaping
- Fixes regression when sorting by multiple columns on a ``datetime64`` dtype ``Series`` w... | - [x] closes #13971
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Notice this is a simple fix which doesn't make @kordek 's [more general comment](https://github.com/pandas-dev/pandas/issues/13971#issuecomment-243558072) about the opportunity ... | https://api.github.com/repos/pandas-dev/pandas/pulls/17887 | 2017-10-16T08:05:04Z | 2017-10-16T14:25:24Z | 2017-10-16T14:25:24Z | 2017-10-16T14:38:37Z |
CLN: amended TypeError from pd.concat() to be more informative (GH15796) | diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py
index e2c02bd0e71fb..648fa5b835e15 100644
--- a/pandas/core/reshape/concat.py
+++ b/pandas/core/reshape/concat.py
@@ -262,7 +262,10 @@ def __init__(self, objs, axis=0, join='outer', join_axes=None,
ndims = set()
for obj in objs... | CLN/TST: Added regex matching for exception message
- [X] closes #15796
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/17885 | 2017-10-16T06:45:28Z | 2017-10-18T10:27:57Z | 2017-10-18T10:27:57Z | 2017-11-01T00:17:38Z |
TST: Skip if no openpyxl in test_excel | diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py
index f21f638799e57..7af8bd12ca805 100644
--- a/pandas/tests/io/test_excel.py
+++ b/pandas/tests/io/test_excel.py
@@ -975,6 +975,7 @@ def test_read_excel_chunksize(self):
def test_read_excel_parse_dates(self):
# GH 11544, 12051
+... | `test_read_excel_parse_dates` was calling `to_excel` without checking if `openpyxl` was installed. Should skip the test if not installed.
Will merge on green.
| https://api.github.com/repos/pandas-dev/pandas/pulls/17883 | 2017-10-15T23:49:42Z | 2017-10-16T00:29:58Z | 2017-10-16T00:29:58Z | 2017-10-16T00:53:23Z |
BUG: formating integers datetimes using sql GH17855 | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 82b1bff75b114..401a9c11a774d 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -103,12 +103,12 @@ def _handle_date_column(col, utc=None, format=None):
if isinstance(format, dict):
return to_datetime(col, errors='ignore', **format)
else:
- ... | - [x] closes #17855
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/17882 | 2017-10-15T20:24:02Z | 2017-11-22T19:24:37Z | 2017-11-22T19:24:36Z | 2018-01-19T19:39:27Z |
EHN: Improve from_items error message (#17312) | diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt
index 4ae3d9be04aa7..2b5f899091edd 100644
--- a/doc/source/whatsnew/v0.22.0.txt
+++ b/doc/source/whatsnew/v0.22.0.txt
@@ -80,6 +80,7 @@ Other API Changes
- :class:`IntervalIndex` constructor will raise if the ``closed`` parameter conflicts ... | - [ ] closes #17312
- [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/17881 | 2017-10-15T17:34:54Z | 2017-11-26T15:09:26Z | 2017-11-26T15:09:26Z | 2017-12-10T16:14:29Z |
Revert "CI: Pin miniconda version (#17700)" | diff --git a/appveyor.yml b/appveyor.yml
index f1259f271ee39..a1f8886f6d068 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -59,7 +59,7 @@ install:
# install our build environment
- cmd: conda config --set show_channel_urls true --set always_yes true --set changeps1 false
- # - cmd: conda update -q conda
+ - ... | This reverts commit eaa5081e381e111bd7a8b7c277c12527d7ae52e4.
- [ ] 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/17880 | 2017-10-15T17:15:58Z | 2017-10-15T17:16:25Z | null | 2023-05-11T01:16:34Z |
BUG: Fix wrong column selection in drop_duplicates when duplicate column names | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 117e7c9d11259..09217b9cb81be 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -1006,6 +1006,7 @@ Reshaping
- Bug in :func:`concat` where order of result index was unpredictable if it contained non-... | - [x] closes #17836
- [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/17879 | 2017-10-15T08:37:50Z | 2017-10-16T10:27:21Z | 2017-10-16T10:27:21Z | 2017-10-16T10:27:28Z |
ENH: sort=bool keyword argument for index.difference | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index a995fc10a6674..805cd213f0203 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2183,7 +2183,7 @@ def _get_consensus_name(self, other):
return self._shallow_copy(name=name)
return self
- ... | - [ ] closes #17839
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/17878 | 2017-10-15T06:06:11Z | 2017-12-14T19:21:17Z | null | 2017-12-14T19:21:17Z |
DEPR: Deprecate tupleize_cols in to_csv | diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt
index 5577089c776ed..b0d1169b6bcd6 100644
--- a/doc/source/whatsnew/v0.21.0.txt
+++ b/doc/source/whatsnew/v0.21.0.txt
@@ -803,6 +803,7 @@ Deprecations
- :func:`read_excel()` has deprecated ``sheetname`` in favor of ``sheet_name`` for consis... | Title is self-explanatory.
xref #17060 | https://api.github.com/repos/pandas-dev/pandas/pulls/17877 | 2017-10-15T00:31:46Z | 2017-10-16T10:28:35Z | 2017-10-16T10:28:35Z | 2017-10-16T14:54:57Z |
Separate conversion functions out from tslib | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index 7a335b19eb87b..daa1d385b474c 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -75,6 +75,9 @@ from pandas.compat import iteritems
import collections
import warnings
+import pytz
+UTC = pytz.utc
+
# initialize numpy
import_array()... | The functions moved are cut/paste with two exceptions: a flake8 whitespace fixup and the new helper function `conversion._render_tstamp`.
About half of the remaining `_TSObject` conversion funcs can be moved once #17805 is merged. The remainder can be isolated after #17793. | https://api.github.com/repos/pandas-dev/pandas/pulls/17875 | 2017-10-14T23:58:36Z | 2017-10-31T00:45:24Z | 2017-10-31T00:45:24Z | 2017-10-31T00:59:01Z |
MAINT: Catch read_html slow test warning | diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py
index 6fc080c8d9090..8dfae2733ef20 100644
--- a/pandas/tests/io/test_html.py
+++ b/pandas/tests/io/test_html.py
@@ -335,8 +335,10 @@ def test_multiindex_header_index(self):
@pytest.mark.slow
def test_multiindex_header_skiprows_tuples(s... | https://travis-ci.org/pandas-dev/pandas/jobs/288033917#L3135
Follow up to #17872.
xref #17870, #17865.
Will merge this PR on green. | https://api.github.com/repos/pandas-dev/pandas/pulls/17874 | 2017-10-14T23:43:46Z | 2017-10-15T00:33:12Z | 2017-10-15T00:33:12Z | 2017-10-15T00:42:23Z |
Follow-up to #17770 | diff --git a/pandas/_libs/tslibs/fields.pyx b/pandas/_libs/tslibs/fields.pyx
index 3ea414b2d4a70..1427bf50239ba 100644
--- a/pandas/_libs/tslibs/fields.pyx
+++ b/pandas/_libs/tslibs/fields.pyx
@@ -160,7 +160,9 @@ def get_start_end_field(ndarray[int64_t] dtindex, object field,
if field == 'is_month_start':
... | Just flake8 cleanup
- [ ] 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/17873 | 2017-10-14T22:29:41Z | 2017-10-14T23:44:51Z | 2017-10-14T23:44:51Z | 2017-10-30T16:25:12Z |
TST: remove moar warnings | diff --git a/pandas/core/dtypes/missing.py b/pandas/core/dtypes/missing.py
index 49b7b1d1d3a9b..d8973dd2eb27a 100644
--- a/pandas/core/dtypes/missing.py
+++ b/pandas/core/dtypes/missing.py
@@ -327,6 +327,12 @@ def array_equivalent(left, right, strict_nan=False):
left = left.view('i8')
right = right.vi... | https://api.github.com/repos/pandas-dev/pandas/pulls/17872 | 2017-10-14T20:05:50Z | 2017-10-14T21:09:09Z | 2017-10-14T21:09:09Z | 2017-10-14T21:19:21Z | |
ENH: add GroupBy.pipe method | diff --git a/doc/source/api.rst b/doc/source/api.rst
index 1e63a938ff389..bec35bac0d33e 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -1973,6 +1973,7 @@ Function application
GroupBy.apply
GroupBy.aggregate
GroupBy.transform
+ GroupBy.pipe
Computations / Descriptive Stats
~~~~~~~~~~~~~~~~... | - [x ] closes #10353, see also #17863
- [x ] tests added / passed
- [ x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ x] whatsnew entry
This PR adds a ``.pipe`` method to GroupBy objects like for ``DataFrame.pipe`` and ``Series .pipe``.
This PR is basically #10466 written by @ghl3 with so... | https://api.github.com/repos/pandas-dev/pandas/pulls/17871 | 2017-10-14T19:58:27Z | 2017-10-18T10:30:17Z | 2017-10-18T10:30:16Z | 2017-11-06T21:46:44Z |
TST: remove some deprecation warnings | diff --git a/pandas/io/html.py b/pandas/io/html.py
index b5aaffcf710c2..6f98683a1bff1 100644
--- a/pandas/io/html.py
+++ b/pandas/io/html.py
@@ -759,7 +759,7 @@ def _parse(flavor, io, match, attrs, encoding, **kwargs):
def read_html(io, match='.+', flavor=None, header=None, index_col=None,
skiprows=No... | https://api.github.com/repos/pandas-dev/pandas/pulls/17870 | 2017-10-14T15:18:52Z | 2017-10-14T18:50:47Z | 2017-10-14T18:50:47Z | 2017-10-14T18:51:58Z | |
DEPR: Deprecate read_csv arguments fully | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index c7e8c0da75e2c..97943f153319b 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -1294,7 +1294,7 @@ def _from_arrays(cls, arrays, columns, index, dtype=None):
@classmethod
def from_csv(cls, path, header=0, sep=',', index_col=0, parse... | Issue warnings on `read_csv` deprecated args
in full, even if the normal defaults were passed in.
Closes #17828. | https://api.github.com/repos/pandas-dev/pandas/pulls/17865 | 2017-10-13T17:50:04Z | 2017-10-14T14:39:07Z | 2017-10-14T14:39:06Z | 2017-10-14T18:07:08Z |
DOC: Adding examples to update docstring (#16812) | diff --git a/pandas/core/frame.py b/pandas/core/frame.py
index c7e8c0da75e2c..250978f79fba1 100644
--- a/pandas/core/frame.py
+++ b/pandas/core/frame.py
@@ -4154,6 +4154,61 @@ def update(self, other, join='left', overwrite=True, filter_func=None,
raise_conflict : boolean
If True, will raise an err... | - [ ] closes #16812
| https://api.github.com/repos/pandas-dev/pandas/pulls/17859 | 2017-10-12T23:15:53Z | 2017-10-16T06:59:05Z | 2017-10-16T06:59:05Z | 2017-11-17T22:37:22Z |
Whatsnew cleanup | diff --git a/MANIFEST.in b/MANIFEST.in
index 1a6b831c1b975..9773019c6e6e0 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,7 +1,7 @@
include MANIFEST.in
include LICENSE
include RELEASE.md
-include README.rst
+include README.md
include setup.py
include pyproject.toml
diff --git a/doc/source/api.rst b/doc/source/a... | A few changes:
- Updated release.rst
- Update 0.21.0.txt
- Fixed CategoricalDtype API docs and references (this introduced more warnings into the doc build. I plan to spend a day or two with sphinx sometime in the next month fixing all these and getting us on the latest numpydoc and sphinx)
- Adds an `announce.py... | https://api.github.com/repos/pandas-dev/pandas/pulls/17858 | 2017-10-12T20:30:34Z | 2017-10-13T01:32:08Z | 2017-10-13T01:32:07Z | 2017-10-27T12:04:25Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.