title stringlengths 1 185 | diff stringlengths 0 32.2M | body stringlengths 0 123k ⌀ | url stringlengths 57 58 | created_at stringlengths 20 20 | closed_at stringlengths 20 20 | merged_at stringlengths 20 20 ⌀ | updated_at stringlengths 20 20 |
|---|---|---|---|---|---|---|---|
CLN (PY2): Remove DataFrame/Series.timetuple | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index a1857f7bd3f6b..272c6ef4f9267 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -258,10 +258,6 @@ class DatetimeArray(dtl.DatetimeLikeArrayMixin,
'normalize', 'strftime',... | I was looking at the sphinx doc build warnings, and of them was complaining about the `DataFrame/Series.timetuple` attribute. This dummy `timetuple` attribute was added in https://github.com/pandas-dev/pandas/pull/24056, to fix comparison with `datetime.datetime`.
Apart from the doc build problem (which can probabl... | https://api.github.com/repos/pandas-dev/pandas/pulls/26062 | 2019-04-12T11:10:34Z | 2019-04-15T12:14:25Z | 2019-04-15T12:14:24Z | 2019-04-15T12:14:33Z |
Update sql.py | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index d91b2785c4fe5..cd5a5eb7d61e7 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -667,15 +667,14 @@ def insert(self, chunksize=None, method=None):
raise ValueError('chunksize argument should be non-zero')
chunks = int(nrows / chunksize) ... | to_sql chunksize need commit very time.
- [ ] 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/26060 | 2019-04-12T08:48:30Z | 2019-04-26T18:30:38Z | null | 2019-04-26T18:30:38Z |
DOC: fix See Also constructs | diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
index 2494cf55d2e0d..92cb4db2ac868 100644
--- a/pandas/core/groupby/groupby.py
+++ b/pandas/core/groupby/groupby.py
@@ -1097,7 +1097,8 @@ def count(self):
# defined here for API doc
raise NotImplementedError
- @Substitut... | I am testing the numpydoc master version (almost to be released as 0.9, see https://github.com/numpy/numpydoc/issues/203), and it got a bit more strict on misformatted See Also sections. This PR fixes that. | https://api.github.com/repos/pandas-dev/pandas/pulls/26059 | 2019-04-12T08:33:02Z | 2019-04-12T14:36:55Z | 2019-04-12T14:36:55Z | 2019-04-12T14:36:59Z |
BUG: rolling.count with axis=1 | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index accfeee484430..823aab53624a1 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -387,6 +387,7 @@ Groupby/Resample/Rolling
- Ensured that ordering of outputs in ``groupby`` aggregation functions is co... | - [ ] closes #13503
- [X] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Added axis parameter to the constructor call in the count function, fixing the original issue in #13503. This fix works for the example given in the issue. This does not fix the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/26055 | 2019-04-11T20:37:07Z | 2019-04-28T16:45:40Z | 2019-04-28T16:45:40Z | 2019-04-28T16:45:44Z |
BUG: sort_index throws IndexError for some permutations (#26053) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 9afcf3ddcdbb1..3e00ec9cbb742 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -390,6 +390,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.groupby.GroupBy.idxmax` and :meth:`pandas.core.gr... | - [x] closes #26053
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] tests added / passed | https://api.github.com/repos/pandas-dev/pandas/pulls/26054 | 2019-04-11T18:27:03Z | 2019-04-24T21:03:06Z | 2019-04-24T21:03:05Z | 2019-04-24T21:03:10Z |
Removed resolved items from blacklist | diff --git a/mypy.ini b/mypy.ini
index 31f4781e18caa..b43966b9e0a82 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -56,9 +56,6 @@ ignore_errors=True
[mypy-pandas.core.computation.pytables]
ignore_errors=True
-[mypy-pandas.core.config]
-ignore_errors=True
-
[mypy-pandas.core.config_init]
ignore_errors=True
@@ -137,9 +1... | Given the master list in #25882 a review it looks like these are no longer issues, I think from the top level import machinery changes | https://api.github.com/repos/pandas-dev/pandas/pulls/26048 | 2019-04-11T06:51:44Z | 2019-04-11T15:41:36Z | 2019-04-11T15:41:36Z | 2019-04-11T15:41:40Z |
CLN: Remove PY2/PY3 flags from pandas.compat | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 1741ff24b1ac8..e3e9863adcbd3 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -11,8 +11,6 @@ from cpython.datetime cimport datetime
import numpy as np
-import six
-
# dateutil compat
from dat... | - [X] xref #25725
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/26047 | 2019-04-11T01:31:48Z | 2019-04-13T21:11:21Z | 2019-04-13T21:11:21Z | 2019-04-15T16:39:04Z |
BUG: Fix NaT comparisons with Timedelta (#26039) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c441244b4415d..b38bc92c6bd86 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -273,7 +273,7 @@ Datetimelike
Timedelta
^^^^^^^^^
--
+- Bug with comparisons between :class:`Timedelta` and ``NaT`` ... | - [x] closes #26039
- [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/26046 | 2019-04-11T00:37:34Z | 2019-04-28T16:39:55Z | 2019-04-28T16:39:54Z | 2019-04-28T16:40:00Z |
PERF: changed default value of cache parameter to True in to_datetime function | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 6beb21883b5ab..fbb96380a5813 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -4,7 +4,6 @@
import numpy as np
import pandas.util.testing as tm
from pandas import DataFrame, Categorical, date_range, r... | - [x] closes #N/A
- [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/26043 | 2019-04-10T18:10:06Z | 2019-07-04T01:38:05Z | 2019-07-04T01:38:05Z | 2019-07-04T01:38:09Z |
CLN: parse_date compat function | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 1741ff24b1ac8..e49b9f74214ec 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -624,7 +624,7 @@ def _guess_datetime_format(dt_str, dayfirst=False, dt_str_parse=du_parse,
If True parses dates... | - [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
More `compat/__init__.py` cleaning.
Remove `parse_date` in favor of `dateutil.parser.parse` directly. pandas min dateutil version is 2.5.0 so the import check is unnecessary. | https://api.github.com/repos/pandas-dev/pandas/pulls/26038 | 2019-04-10T06:58:46Z | 2019-04-12T11:36:00Z | 2019-04-12T11:36:00Z | 2019-04-12T15:31:46Z |
DOC: Fix quotes position in pandas.core (#24071) | diff --git a/pandas/core/groupby/generic.py b/pandas/core/groupby/generic.py
index f8b9ddce6000e..d5935fd65fd28 100644
--- a/pandas/core/groupby/generic.py
+++ b/pandas/core/groupby/generic.py
@@ -1181,7 +1181,9 @@ def value_counts(self, normalize=False, sort=True, ascending=False,
return Series(out, index=mi,... | - [x] closes #24071
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
`./scripts/validate_docstrings.py --prefix=pandas.core --errors=GL01,GL02` is now silent. | https://api.github.com/repos/pandas-dev/pandas/pulls/26037 | 2019-04-10T03:54:49Z | 2019-05-12T21:23:05Z | null | 2019-05-12T21:23:05Z |
CLN: Remove PY35 flag from pandas.compat | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 5a52479a4bfcb..b1991e3fb1162 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -25,7 +25,6 @@
PY2 = sys.version_info[0] == 2
PY3 = sys.version_info[0] >= 3
-PY35 = sys.version_info >= (3, 5)
PY36 = sys.version_info >= ... | - [X] xref #25725
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
The `PY35` flag is always `True` after dropping Python 2, as Python 3.5 is now the lowest supported version.
| https://api.github.com/repos/pandas-dev/pandas/pulls/26036 | 2019-04-10T02:40:08Z | 2019-04-10T06:20:21Z | 2019-04-10T06:20:21Z | 2019-04-11T01:32:58Z |
Fix type annotations in pandas.core.dtypes | diff --git a/mypy.ini b/mypy.ini
index 483fc78ca9cc3..ba1e790f49542 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -62,12 +62,6 @@ ignore_errors=True
[mypy-pandas.core.config_init]
ignore_errors=True
-[mypy-pandas.core.dtypes.dtypes]
-ignore_errors=True
-
-[mypy-pandas.core.dtypes.missing]
-ignore_errors=True
-
[mypy-pan... | - [X] closes #26028
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
This one was more complicated than other annotation corrections I've done. The following errors persisted even if the two type definitions in `PandasExtensionDtype` and `ExtensionDtype` were identical:
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/26029 | 2019-04-08T22:25:48Z | 2019-04-12T14:46:20Z | 2019-04-12T14:46:19Z | 2019-04-12T15:47:46Z |
ENH: partial string match in query | diff --git a/pandas/core/computation/eval.py b/pandas/core/computation/eval.py
index 8f6c271af4a58..5f1ff9a38fd3a 100644
--- a/pandas/core/computation/eval.py
+++ b/pandas/core/computation/eval.py
@@ -154,7 +154,7 @@ def _check_for_locals(expr, stack_level, parser):
def eval(expr, parser='pandas', engine=None, trued... | - [x] closes na (once proposed in #8749 but not implemented so far)
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR proposes to add partial string matching functionality to `query` method. In the proposed implementation, a query like `df... | https://api.github.com/repos/pandas-dev/pandas/pulls/26027 | 2019-04-08T14:18:36Z | 2019-06-08T20:23:34Z | null | 2019-06-08T20:23:34Z |
ENH: Allow compression in NDFrame.to_csv to be a dict with optional arguments (#26023) | diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst
index 8e25857e5ad69..2bfc09e52c68b 100644
--- a/doc/source/whatsnew/v1.0.0.rst
+++ b/doc/source/whatsnew/v1.0.0.rst
@@ -206,6 +206,7 @@ ExtensionArray
Other
^^^^^
- Trying to set the ``display.precision``, ``display.max_rows`` or ``display.... | - [x] closes #26023
- [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/26024 | 2019-04-08T01:51:16Z | 2019-08-26T14:27:41Z | 2019-08-26T14:27:41Z | 2019-08-26T14:27:48Z |
BUG: Replace internal use of loc with reindex in DataFrame append | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2a0bc0afc095c..e0492532cb250 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -330,7 +330,7 @@ Indexing
^^^^^^^^
- Improved exception message when calling :meth:`DataFrame.iloc` with a list of n... | The issue here was that the DataFrame append method was using .loc, which only throws a warning now, but would eventually throw a KeyError whenever that went into effect. Just swapped out that use of .loc for .reindex.
- [x] closes #22252
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.p... | https://api.github.com/repos/pandas-dev/pandas/pulls/26022 | 2019-04-07T17:40:41Z | 2019-04-21T16:21:00Z | 2019-04-21T16:21:00Z | 2019-04-21T16:21:07Z |
#26020 Fixed type annotations for pandas.plotting._core | diff --git a/mypy.ini b/mypy.ini
index a528579f34045..ddfa9885e3351 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -167,9 +167,6 @@ ignore_errors=True
[mypy-pandas.io.stata]
ignore_errors=True
-[mypy-pandas.plotting._core]
-ignore_errors=True
-
[mypy-pandas.util._doctools]
ignore_errors=True
diff --git a/pandas/plotti... | - [X] closes ##26020
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26021 | 2019-04-07T15:18:32Z | 2019-04-08T16:04:07Z | 2019-04-08T16:04:07Z | 2019-04-08T17:21:32Z |
TYP: Replace wildcardimports in toplevelinit as precursor for reshape,stata,io PRs #25936 #25940 #25939 | diff --git a/pandas/__init__.py b/pandas/__init__.py
index cdf7dafba0e75..d3e6d97960fb3 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -20,7 +20,9 @@
del hard_dependencies, dependency, missing_dependencies
# numpy compat
-from pandas.compat.numpy import *
+from pandas.compat.numpy import (
+ _np_ver... | - [x] xref #25932, #25933, #25934
- [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/26019 | 2019-04-07T15:03:51Z | 2019-04-10T01:18:39Z | 2019-04-10T01:18:39Z | 2020-01-06T02:50:41Z |
Improve where docstring | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index c12e9e7e04af6..5e8876404d1ad 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -8774,22 +8774,22 @@ def _where(self, cond, other=np.nan, inplace=False, axis=None, level=None,
.. versionadded:: 0.18.1
A cal... | A couple small fixes to the `where` docstring, also making an example a bit more clear. | https://api.github.com/repos/pandas-dev/pandas/pulls/26018 | 2019-04-07T02:58:09Z | 2019-04-07T15:25:56Z | 2019-04-07T15:25:56Z | 2019-04-07T16:46:53Z |
Add explicit imports in top level pandas init as precursor to PR #25940 | diff --git a/pandas/__init__.py b/pandas/__init__.py
index cdf7dafba0e75..c6d916af2e53b 100644
--- a/pandas/__init__.py
+++ b/pandas/__init__.py
@@ -42,14 +42,57 @@
# let init-time option registration happen
import pandas.core.config_init
-from pandas.core.api import *
-from pandas.core.sparse.api import *
-from pa... | - [x] closes ##25932
- [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/26017 | 2019-04-07T02:02:26Z | 2019-04-07T14:52:17Z | null | 2019-04-07T15:05:36Z |
CLN: PY3 compat signature | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index c37dae4ae3194..e5779b8578889 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -24,8 +24,6 @@
import platform
import types
import struct
-import inspect
-from collections import namedtuple
PY2 = sys.version_info[0] ==... | - [x] xref #25725
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Replace `compat.signature` for `inspect.getfullargspec` | https://api.github.com/repos/pandas-dev/pandas/pulls/26016 | 2019-04-06T21:06:01Z | 2019-04-07T21:28:59Z | 2019-04-07T21:28:59Z | 2019-04-07T23:49:27Z |
Improve dictionary map performance on category series, fixes #23785 | diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py
index 426f9addbe805..4b1af2dc8c932 100644
--- a/asv_bench/benchmarks/series_methods.py
+++ b/asv_bench/benchmarks/series_methods.py
@@ -145,16 +145,27 @@ def time_searchsorted(self, dtype):
class Map:
- params = ['dict'... | - [x] closes #23785
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Uses the built-in categorical series mapper when mapping categorical series with dictionaries or series (i.e., as opposed to with lambada functions) instead of reindexing in ord... | https://api.github.com/repos/pandas-dev/pandas/pulls/26015 | 2019-04-06T16:28:39Z | 2019-05-01T11:42:32Z | 2019-05-01T11:42:32Z | 2019-05-01T11:42:36Z |
GH26013 Fix type annotations in pandas/tseries/* | diff --git a/mypy.ini b/mypy.ini
index 62a3d535b561a..a528579f34045 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -170,15 +170,6 @@ ignore_errors=True
[mypy-pandas.plotting._core]
ignore_errors=True
-[mypy-pandas.tseries.frequencies]
-ignore_errors=True
-
-[mypy-pandas.tseries.holiday]
-ignore_errors=True
-
-[mypy-pandas... | - [X] closes #26013
- [X] tests passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Part of #25882 | https://api.github.com/repos/pandas-dev/pandas/pulls/26014 | 2019-04-06T16:05:28Z | 2019-04-07T23:19:21Z | 2019-04-07T23:19:21Z | 2019-04-08T00:00:14Z |
BUG: Improve col_space in to_html to allow css length strings (#25941) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index c441244b4415d..6488d33f11d41 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -361,6 +361,7 @@ I/O
- Bug in ``read_csv`` which would not raise ``ValueError`` if a column index in ``usecols`` was ou... | - [x] closes #25941
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adds the ability to pass a string as the `col_space` parameter in `to_html`.
For backwards compatibility and similarity for other `to_*` functions, I kept in the ability to p... | https://api.github.com/repos/pandas-dev/pandas/pulls/26012 | 2019-04-06T15:04:37Z | 2019-04-29T00:47:47Z | 2019-04-29T00:47:46Z | 2019-04-29T00:47:52Z |
Incorrect example in wide_to_long docstring | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 99b408bac8a9f..c5f6b36cc038e 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -233,6 +233,7 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
pandas/core/reshape/pivot.py \
pandas/core/reshape/reshape.py \
pandas/core/res... | - [x] closes #25733
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/26010 | 2019-04-06T07:49:52Z | 2019-05-03T14:52:44Z | null | 2019-05-17T06:29:31Z |
CLN: Misc PY2/3 compat functions | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index e5779b8578889..5a52479a4bfcb 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -8,7 +8,6 @@
* lists: lrange(), lmap(), lzip(), lfilter()
* iterable method compatibility: iteritems, iterkeys, itervalues
* Uses the origi... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- Import `from pandas.compat.chainmap import DeepChainMap` directly where used
- Removed `isidentifier`, `str_to_bytes`, `bytes_to_str`, `bind_method` | https://api.github.com/repos/pandas-dev/pandas/pulls/26008 | 2019-04-06T05:42:59Z | 2019-04-09T11:20:18Z | 2019-04-09T11:20:18Z | 2019-04-09T17:08:32Z |
DOC: Fix docstring examples for assert_frame_equal | diff --git a/pandas/util/testing.py b/pandas/util/testing.py
index 3640717d752fb..95b27161a5858 100644
--- a/pandas/util/testing.py
+++ b/pandas/util/testing.py
@@ -1170,18 +1170,21 @@ def assert_frame_equal(left, right, check_dtype=True,
>>> df2 = pd.DataFrame({'a': [1, 2], 'b': [3.0, 4.0]})
df1 equals its... | This fixes the formatting in docstring examples for `pandas.util.testing.assert_frame_equal` so they will be displayed correctly.
- [X] closes #26003
| https://api.github.com/repos/pandas-dev/pandas/pulls/26004 | 2019-04-05T18:48:39Z | 2019-04-06T04:58:37Z | 2019-04-06T04:58:36Z | 2019-04-06T04:58:42Z |
to_html formatter not called for float values in a mixed-type column (2) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 2b1a61186dca6..a4a82db3566cf 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -653,6 +653,8 @@ I/O
^^^
- Bug in :func:`DataFrame.to_html()` where values were truncated using display options inst... | - [x] closes #13021
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
resubmit of #25983 | https://api.github.com/repos/pandas-dev/pandas/pulls/26000 | 2019-04-05T11:46:23Z | 2019-07-02T21:04:26Z | null | 2019-07-02T21:04:27Z |
DOC: import StringIO from io instead of pandas.compat | diff --git a/doc/source/user_guide/cookbook.rst b/doc/source/user_guide/cookbook.rst
index f724d975560e7..538acbd7d01fa 100644
--- a/doc/source/user_guide/cookbook.rst
+++ b/doc/source/user_guide/cookbook.rst
@@ -1045,7 +1045,7 @@ Option 1: pass rows explicitly to skip rows
.. ipython:: python
- from pandas.com... | Doc follow-up on https://github.com/pandas-dev/pandas/pull/25954 | https://api.github.com/repos/pandas-dev/pandas/pulls/25997 | 2019-04-05T07:04:05Z | 2019-04-05T13:16:10Z | 2019-04-05T13:16:10Z | 2019-04-05T13:16:15Z |
CI: don't specify google-auth | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index 708c08239c7c0..d0a48bd3f8b27 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -23,6 +23,7 @@ dependencies:
- pytest-xdist
- pytest-mock
- isort
+ - pip
- pip:
# for python 3.5, pytest>=4.0.2 i... | xref https://github.com/pydata/pandas-gbq/issues/271
appears latest google-cloud-bigquery is causing issues. | https://api.github.com/repos/pandas-dev/pandas/pulls/25994 | 2019-04-05T01:07:14Z | 2019-04-05T02:25:19Z | 2019-04-05T02:25:19Z | 2019-04-05T02:26:07Z |
BUG: Series/DataFrame with IntervalIndex doesn't display NaN in index | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 8dabaeb6c7bfe..f08ca72a17ae8 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -315,7 +315,7 @@ Interval
^^^^^^^^
- Construction of :class:`Interval` is restricted to numeric, :class:`Timestamp` ... | - [x] closes #25984
- [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/25993 | 2019-04-04T21:20:57Z | 2019-04-05T02:25:58Z | 2019-04-05T02:25:58Z | 2019-04-05T02:26:12Z |
BUG: Fix loading files from S3 with # characters in URL (GH25945) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 8dabaeb6c7bfe..34af5d1e3dbe5 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -356,6 +356,7 @@ I/O
- Bug in :func:`read_hdf` not properly closing store after a ``KeyError`` is raised (:issue:`25766... | This fixes loading files with URLs such as s3://bucket/key#1.csv. The part
from the # on was being lost because it was considered to be a URL fragment.
The fix disables URL fragment parsing as it doesn't make sense for S3 URLs.
- [x] closes #25945
- [x] tests added / passed
- [x] passes `git diff upstream/mast... | https://api.github.com/repos/pandas-dev/pandas/pulls/25992 | 2019-04-04T18:58:52Z | 2019-04-09T17:28:21Z | 2019-04-09T17:28:20Z | 2019-04-09T17:28:30Z |
Type annotation pandas/compat/pickle compat.py | diff --git a/mypy.ini b/mypy.ini
index 230c3e58d65f1..62a3d535b561a 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -11,9 +11,6 @@ ignore_errors=True
[mypy-pandas.compat.numpy.function]
ignore_errors=True
-[mypy-pandas.compat.pickle_compat]
-ignore_errors=True
-
[mypy-pandas.core.accessor]
ignore_errors=True
diff --git... | - [ ] closes #25988
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25991 | 2019-04-04T18:35:49Z | 2019-04-04T20:12:52Z | 2019-04-04T20:12:52Z | 2019-04-05T05:13:32Z |
ENH: added new cache_dates parameter for read_csv func | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index add0943c5ce9f..c51fb09ad8671 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -4,6 +4,7 @@
import numpy as np
import pandas.util.testing as tm
from pandas import DataFrame, Categorical, date_range, r... | - [x] closes N/A
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This change allows the user to use caching when parsing dates, which is provided by `to_datetime` function | https://api.github.com/repos/pandas-dev/pandas/pulls/25990 | 2019-04-04T18:15:54Z | 2019-05-07T11:28:42Z | 2019-05-07T11:28:42Z | 2019-05-10T03:35:47Z |
BUG: StringIO fail import for asv benchmarks | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index d42a15d61fb0d..0d4c5f1368052 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -4,7 +4,7 @@
import numpy as np
import pandas.util.testing as tm
from pandas import DataFrame, Categorical, date_range, r... | - [x] closes N/A
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Fix StringIO import after #25954 PR | https://api.github.com/repos/pandas-dev/pandas/pulls/25989 | 2019-04-04T13:35:20Z | 2019-04-04T15:42:02Z | 2019-04-04T15:42:02Z | 2019-04-04T15:42:07Z |
to_html formatter not called for float values in a mixed-type column | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 679a374b9b117..fe379c5e61457 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -345,6 +345,7 @@ I/O
^^^
- Bug in :func:`DataFrame.to_html()` where values were truncated using display options inst... | - [x] closes #13021
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
can't shortcut completely without changing existing tested behaviour in a couple of tests.
for instance, the expected output for `test_to_string_with_formatters` in `pandas\t... | https://api.github.com/repos/pandas-dev/pandas/pulls/25983 | 2019-04-03T23:12:36Z | 2019-04-05T02:26:57Z | 2019-04-05T02:26:57Z | 2019-04-05T10:52:43Z |
ERR: Raise ValueError with naive datetime and mixed UTC offsets | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 8dabaeb6c7bfe..4de9854330bc0 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -283,6 +283,7 @@ Timezones
- Bug in :func:`Timestamp.tz_localize` and :func:`Timestamp.tz_convert` does not propagate `... | - [x] closes #25978
- [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/25982 | 2019-04-03T23:04:29Z | 2019-04-04T20:13:51Z | 2019-04-04T20:13:51Z | 2019-04-04T20:19:52Z |
CLN: PY2/3 builtin, httplib | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index 115ea96406e51..c37dae4ae3194 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -19,10 +19,7 @@
# flake8: noqa
import re
-import functools
-import itertools
from distutils.version import LooseVersion
-from itertools imp... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Also
- Removed `pandas.compat.itertools.product` for `itertools.product`
| https://api.github.com/repos/pandas-dev/pandas/pulls/25981 | 2019-04-03T21:44:37Z | 2019-04-04T01:31:03Z | 2019-04-04T01:31:03Z | 2019-04-04T01:41:45Z |
DEPR: Deprecate sort=None for union and implement sort=True | diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
index 0123e6a5f1065..42d90e534103f 100644
--- a/pandas/core/indexes/base.py
+++ b/pandas/core/indexes/base.py
@@ -2301,6 +2301,7 @@ def _union_incompatible_dtypes(self, other, sort):
-------
Index
"""
+
this = sel... | - [ ] progress towards #24471
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a WIP pull request because I wanted to make sure I'm going in the right direction before continuing.
In #24959 it was agreed that the default for some of t... | https://api.github.com/repos/pandas-dev/pandas/pulls/25980 | 2019-04-03T21:39:47Z | 2019-08-28T16:17:52Z | null | 2019-08-28T16:17:52Z |
REF: handling of max_colwidth parameter | diff --git a/pandas/io/formats/format.py b/pandas/io/formats/format.py
index c4e3dd1c755cf..f691ab2119067 100644
--- a/pandas/io/formats/format.py
+++ b/pandas/io/formats/format.py
@@ -6,6 +6,7 @@
from functools import partial
from io import StringIO
from shutil import get_terminal_size
+from typing import Optional,... | - [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
this would be a precursor to fixes for #7059, #9784 and #6491.
getting the display.max_colwidth value is moved from `_make_fixed_width` to `format_array` to be consistent with... | https://api.github.com/repos/pandas-dev/pandas/pulls/25977 | 2019-04-03T17:07:25Z | 2019-08-28T16:45:15Z | null | 2019-08-28T16:45:16Z |
Change fname to path in to_parquet | diff --git a/doc/source/user_guide/io.rst b/doc/source/user_guide/io.rst
index e9a5dad21744b..e2568f66fbca7 100644
--- a/doc/source/user_guide/io.rst
+++ b/doc/source/user_guide/io.rst
@@ -4772,7 +4772,7 @@ Parquet supports partitioning of data based on the values of one or more columns
:okwarning:
df = pd.... |
- [X] closes #23574
- [N/A ] tests added / passed
- [X ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ N/A?] whatsnew entry
https://github.com/pandas-dev/pandas/issues/23574 | https://api.github.com/repos/pandas-dev/pandas/pulls/25976 | 2019-04-03T13:45:59Z | 2019-04-04T01:33:15Z | null | 2019-04-04T11:08:23Z |
add typing_extensions to dependencies | diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml
index d0a48bd3f8b27..75e67582f483d 100644
--- a/ci/deps/azure-35-compat.yaml
+++ b/ci/deps/azure-35-compat.yaml
@@ -28,3 +28,4 @@ dependencies:
# for python 3.5, pytest>=4.0.2 is not available in conda
- pytest>=4.0.2
- html5lib==1.... | - [ ] closes #25974
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25975 | 2019-04-03T13:22:47Z | 2019-04-17T05:05:26Z | null | 2019-04-19T07:23:04Z |
ENH: Improve explanation when erroring on dta files | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 8dabaeb6c7bfe..e30f6ae144648 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -355,6 +355,7 @@ I/O
- Improved performance in :meth:`pandas.read_stata` and :class:`pandas.io.stata.StataReader` when ... | Improve the explanation when value labels are repeated in Stata dta files.
Add suggested methods to work around the issue using the low level
interface.
closes #25772
- [x] closes #25772
- [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/25968 | 2019-04-02T23:03:34Z | 2019-04-05T00:04:30Z | 2019-04-05T00:04:29Z | 2019-12-19T22:29:38Z |
ENH: Allow poorly formatted stata files to be read | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1ef05ae5f9c6b..8dabaeb6c7bfe 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -355,6 +355,7 @@ I/O
- Improved performance in :meth:`pandas.read_stata` and :class:`pandas.io.stata.StataReader` when ... | Add a fall back decode path that allows improperly formatted Stata
files written in 118 format but using latin-1 encoded strings to be
read
closes #25960
- [x] closes #25960
- [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/25967 | 2019-04-02T22:51:31Z | 2019-04-04T12:51:42Z | 2019-04-04T12:51:42Z | 2019-12-19T22:29:39Z |
BUG: Fix #25959 - Don't call .array in DatetimeLikeArrayMixin's map | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 9db8bef8debcd..3bc0f633c65dd 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -423,6 +423,7 @@ Reshaping
- Bug in :func:`merge` where merging with equivalent Categorical dtypes was raising an error... | - [x] closes #25959
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
In Series.apply we call .array on returning the result of DatetimeLikeArrayMixin map, which causes an error.
| https://api.github.com/repos/pandas-dev/pandas/pulls/25964 | 2019-04-02T20:47:15Z | 2019-05-19T17:09:40Z | 2019-05-19T17:09:40Z | 2019-05-19T17:09:44Z |
CLN: Remove PY2/3 references in pandas/util | diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py
index e92051ebbea9a..c3e127a673ac6 100644
--- a/pandas/util/_decorators.py
+++ b/pandas/util/_decorators.py
@@ -4,7 +4,7 @@
import warnings
from pandas._libs.properties import cache_readonly # noqa
-from pandas.compat import PY2, signature
+from ... | xref #25725. | https://api.github.com/repos/pandas-dev/pandas/pulls/25962 | 2019-04-02T19:51:52Z | 2019-04-02T21:07:00Z | 2019-04-02T21:07:00Z | 2019-04-02T21:08:57Z |
Fix type annotation in pandas.compat.numpy.function | diff --git a/mypy.ini b/mypy.ini
index 9d7262213413e..2069c736a2eb4 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -8,9 +8,6 @@ ignore_errors=True
[mypy-pandas.compat]
ignore_errors=True
-[mypy-pandas.compat.numpy.function]
-ignore_errors=True
-
[mypy-pandas.core.api]
ignore_errors=True
diff --git a/pandas/compat/nump... | - [x] closes #25950
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25961 | 2019-04-02T14:26:13Z | 2019-04-26T00:53:27Z | 2019-04-26T00:53:27Z | 2019-04-26T09:45:44Z |
WIP: Panel Transpose Cleanup | diff --git a/pandas/compat/numpy/function.py b/pandas/compat/numpy/function.py
index 0ce0f1da483f1..112c0289a02e0 100644
--- a/pandas/compat/numpy/function.py
+++ b/pandas/compat/numpy/function.py
@@ -282,23 +282,6 @@ def validate_take_with_convert(convert, args, kwargs):
method='b... | Progress towards #25632
Prefacing this PR with the statement that this is pretty wonky, but I would consider that largely an artifact of cleaning up the existing code base.
Right now `transpose` is defined in `NDFrame` but is only used by `DataFrame` and `Panel`, as `Series` objects end up using a separate `tra... | https://api.github.com/repos/pandas-dev/pandas/pulls/25958 | 2019-04-02T04:47:14Z | 2019-04-02T12:34:21Z | null | 2020-01-16T00:34:13Z |
CLN: Remove collections.abc classes from pandas.compat | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 8905560aa2108..99b408bac8a9f 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -111,8 +111,10 @@ fi
if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
# Check for imports from pandas.core.common instead of `import pandas.core.common as com`
+ ... | - [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Removes the following from `pandas.compat` in favor of direct imports from `collections.abc`:
- `Hashable`
- `Iterable`
- `Iterator`
- `Mapping`
- `MutableMapping`
- `Sequence`
- `... | https://api.github.com/repos/pandas-dev/pandas/pulls/25957 | 2019-04-02T04:37:13Z | 2019-04-02T15:03:13Z | 2019-04-02T15:03:12Z | 2019-04-02T23:41:26Z |
CLN: PY3 Remove cPickle | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index caf70a32e8d19..9952288ed2f87 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -45,13 +45,11 @@
# always writeable
from StringIO import StringIO
BytesIO = StringIO
- import cPickle
import httplib
exc... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Remove `cPickle`. Removes some `cPickle` tests. | https://api.github.com/repos/pandas-dev/pandas/pulls/25956 | 2019-04-02T03:29:34Z | 2019-04-02T15:26:10Z | 2019-04-02T15:26:09Z | 2019-04-02T15:26:13Z |
CLN: PY3 String/BytesIO | diff --git a/pandas/_libs/tslibs/parsing.pyx b/pandas/_libs/tslibs/parsing.pyx
index 6e191d572529f..1741ff24b1ac8 100644
--- a/pandas/_libs/tslibs/parsing.pyx
+++ b/pandas/_libs/tslibs/parsing.pyx
@@ -2,9 +2,9 @@
"""
Parsing functions for datetime and datetime-like strings.
"""
-import sys
import re
import time
+f... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Imports `StringIO` and `BytesIO` from `io`. Removes `cStringIO` | https://api.github.com/repos/pandas-dev/pandas/pulls/25954 | 2019-04-02T01:26:18Z | 2019-04-03T20:25:35Z | 2019-04-03T20:25:34Z | 2019-04-03T20:27:06Z |
PERF: Fix performance regression with Series statistical ops (#25952) | diff --git a/pandas/core/groupby/grouper.py b/pandas/core/groupby/grouper.py
index 8145e5000c056..4cc7329aca322 100644
--- a/pandas/core/groupby/grouper.py
+++ b/pandas/core/groupby/grouper.py
@@ -522,21 +522,17 @@ def _get_grouper(obj, key=None, axis=0, level=None, sort=True,
any_arraylike = any(isinstance(g, (li... | - [x] closes #25952
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
#25743 introduced a performance regression in `Series` `MultiIndex` statistical operations.
This happened due to the additional required check for Series groupby operations that already existed for `Dat... | https://api.github.com/repos/pandas-dev/pandas/pulls/25953 | 2019-04-02T01:22:45Z | 2019-04-28T20:57:24Z | 2019-04-28T20:57:24Z | 2019-04-28T20:57:27Z |
Fix type annotation in pandas. version | diff --git a/mypy.ini b/mypy.ini
index 49fce2e4047f7..b06dacd198f77 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -5,9 +5,6 @@ follow_imports=silent
[mypy-pandas.conftest,pandas.tests.*]
ignore_errors=True
-[mypy-pandas._version]
-ignore_errors=True
-
[mypy-pandas.compat]
ignore_errors=True
diff --git a/pandas/_versi... | Also remove this module from `mypy.ini`
- [ ] closes #25948
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25949 | 2019-04-01T18:27:47Z | 2019-04-04T12:56:29Z | 2019-04-04T12:56:29Z | 2019-04-04T13:11:13Z |
Remove references to T-Series | diff --git a/Makefile b/Makefile
index 956ff52338839..f1f2ade5859df 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
-tseries: pandas/_libs/lib.pyx pandas/_libs/tslib.pyx pandas/_libs/hashtable.pyx
+pewdiepie: pandas/_libs/lib.pyx pandas/_libs/tslib.pyx pandas/_libs/hashtable.pyx
python setup.py build_ext --inpla... | - [×] closes #xxxx
- [✓] tests added / passed
- [△] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [👊] whatsnew entry
This pull request removes any references to T-Series from the source code. It is a breaking change for any old code that relies on the old module name, so it will probably requi... | https://api.github.com/repos/pandas-dev/pandas/pulls/25947 | 2019-04-01T16:55:24Z | 2019-04-01T18:38:33Z | null | 2019-04-01T18:38:33Z |
Speed up checking for NaN for floats | diff --git a/pandas/_libs/tslibs/util.pxd b/pandas/_libs/tslibs/util.pxd
index 74e9db6fa7598..dc32dcd5e0b21 100644
--- a/pandas/_libs/tslibs/util.pxd
+++ b/pandas/_libs/tslibs/util.pxd
@@ -33,7 +33,7 @@ cdef extern from "Python.h":
const char* PyUnicode_AsUTF8AndSize(object obj,
... | - [x] closes N/A
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This isn't giving much speedup because this is simple change, but for some certain inputs like empty datetime fields in csv it gives some speed (because empty fields are parsed as ... | https://api.github.com/repos/pandas-dev/pandas/pulls/25946 | 2019-04-01T16:42:07Z | 2019-04-04T14:01:44Z | 2019-04-04T14:01:44Z | 2019-04-04T14:40:55Z |
#25942 Added ArrayLike and Dtype to pandas._typing | diff --git a/pandas/_typing.py b/pandas/_typing.py
index 5225be33d7604..dc15a44b65db9 100644
--- a/pandas/_typing.py
+++ b/pandas/_typing.py
@@ -1,4 +1,11 @@
from pathlib import Path
from typing import IO, AnyStr, Union
+import numpy as np
+
+from pandas.core.dtypes.dtypes import ExtensionDtype
+from pandas.core.dt... | - [x] closes #25942
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/25943 | 2019-03-31T15:26:57Z | 2019-04-10T13:00:42Z | 2019-04-10T13:00:42Z | 2019-04-10T13:26:36Z |
TYP: Remove pandas.io.stata from Typing Blacklist | diff --git a/mypy.ini b/mypy.ini
index ddfa9885e3351..483fc78ca9cc3 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -164,9 +164,6 @@ ignore_errors=True
[mypy-pandas.io.pytables]
ignore_errors=True
-[mypy-pandas.io.stata]
-ignore_errors=True
-
[mypy-pandas.util._doctools]
ignore_errors=True
diff --git a/pandas/io/stata.... | - [x] closes ##25932
- [x] passes tests
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25940 | 2019-03-31T05:53:19Z | 2019-04-10T12:59:43Z | 2019-04-10T12:59:43Z | 2020-01-06T02:50:21Z |
TYP: Assorted_Typing_Fix in pandas.io | diff --git a/mypy.ini b/mypy.ini
index 483fc78ca9cc3..31f4781e18caa 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -140,27 +140,6 @@ ignore_errors=True
[mypy-pandas.io.clipboards]
ignore_errors=True
-[mypy-pandas.io.feather_format]
-ignore_errors=True
-
-[mypy-pandas.io.html]
-ignore_errors=True
-
-[mypy-pandas.io.json.js... | - [x] closes #25933
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25939 | 2019-03-31T05:13:52Z | 2019-04-11T00:47:48Z | 2019-04-11T00:47:47Z | 2020-01-06T02:49:39Z |
REF: Separate timezone-conversion from tslibs.conversion | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index d0ae15e28bb4d..756b306ca75ba 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -31,8 +31,8 @@ from pandas._libs.tslibs.timedeltas cimport cast_from_unit
from pandas._libs.tslibs.timezones cimport is_utc, is_tzlocal, get_dst_info
from... | Two motivations:
1) #25853 re-implements some tz-conversion code in order to avoid circular imports. By separating out this tightly-scoped, low-dependency chunk of code, we can avoid both duplication and circularity.
2) there has been scope-creep in `tslibs.conversion` which was originally intended for functions c... | https://api.github.com/repos/pandas-dev/pandas/pulls/25938 | 2019-03-31T04:15:38Z | 2019-04-05T02:28:15Z | 2019-04-05T02:28:15Z | 2019-04-05T02:36:00Z |
remove is_string_object | diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx
index 8cea529fbb07e..fd53b065f81e5 100644
--- a/pandas/_libs/index.pyx
+++ b/pandas/_libs/index.pyx
@@ -536,7 +536,7 @@ cpdef convert_scalar(ndarray arr, object value):
return Timestamp(value).value
elif value is None or value != value:
... | now that we're py3-only, `is_string_object(obj)` reduces to just `isinstance(obj, str)` which cython already optimizes. | https://api.github.com/repos/pandas-dev/pandas/pulls/25937 | 2019-03-31T04:05:38Z | 2019-04-01T11:38:47Z | 2019-04-01T11:38:47Z | 2019-04-01T18:06:01Z |
TYP: Adding absolute imports for pandas.core.reshape | diff --git a/mypy.ini b/mypy.ini
index b43966b9e0a82..3a00176526147 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -110,18 +110,12 @@ ignore_errors=True
[mypy-pandas.core.resample]
ignore_errors=True
-[mypy-pandas.core.reshape.concat]
-ignore_errors=True
-
[mypy-pandas.core.reshape.merge]
ignore_errors=True
[mypy-pan... | - [x] closes #25934
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25936 | 2019-03-31T03:55:25Z | 2019-04-15T20:45:20Z | 2019-04-15T20:45:20Z | 2020-01-06T02:51:06Z |
TST: Test for private modules exposed via API | diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py
index 8a0a27a71784c..d450f5b9ce101 100644
--- a/pandas/tests/api/test_api.py
+++ b/pandas/tests/api/test_api.py
@@ -11,7 +11,7 @@ def check(self, namespace, expected, ignored=None):
# ignored ones
# compare vs the expected
- ... | - [x] closes #25930
- [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/25935 | 2019-03-31T02:12:55Z | 2019-04-01T11:39:22Z | 2019-04-01T11:39:22Z | 2019-04-02T00:17:31Z |
TST: Add regression test for #23986 | diff --git a/pandas/tests/indexes/datetimes/test_construction.py b/pandas/tests/indexes/datetimes/test_construction.py
index 6a13836be0dfa..fa9d5b858a092 100644
--- a/pandas/tests/indexes/datetimes/test_construction.py
+++ b/pandas/tests/indexes/datetimes/test_construction.py
@@ -535,6 +535,12 @@ def test_constructor_d... | - [x] closes #23986 by adding regression test
- [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/25931 | 2019-03-30T22:57:03Z | 2019-03-31T18:00:35Z | 2019-03-31T18:00:34Z | 2019-03-31T18:01:55Z |
BUG: Fix #16363 - Prevent visit_BinOp from accessing value on UnaryOp | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 49b2349851479..3ec6426cdb877 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -229,6 +229,7 @@ Bug Fixes
~~~~~~~~~
+
Categorical
^^^^^^^^^^^
@@ -268,7 +269,7 @@ Numeric
- Bug in error mess... | - [x] closes #16363
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Checking `hasattr(side, 'value')` resolves the bug and is consistent with the way that other methods of the `BaseExprVisitor` class work (e.g., both `visit_Call_35` and `visit_C... | https://api.github.com/repos/pandas-dev/pandas/pulls/25928 | 2019-03-30T04:31:22Z | 2019-04-12T11:52:17Z | 2019-04-12T11:52:17Z | 2019-04-12T20:18:52Z |
BUG: Fix memory leak in Rolling.min and Rolling.max (#25893) | diff --git a/asv_bench/benchmarks/rolling.py b/asv_bench/benchmarks/rolling.py
index 659b6591fbd4b..7aefad6e2929b 100644
--- a/asv_bench/benchmarks/rolling.py
+++ b/asv_bench/benchmarks/rolling.py
@@ -113,4 +113,20 @@ def time_quantile(self, constructor, window, dtype, percentile,
self.roll.quantile(percentile... | - [x] closes #25893
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This fixes an issue that caused a memory leak in `window._roll_min_max`. Apparently, when you pass an ndarray as an argument that you `cdef`ed in the calling function, that mem... | https://api.github.com/repos/pandas-dev/pandas/pulls/25926 | 2019-03-29T22:40:28Z | 2019-04-01T22:27:46Z | 2019-04-01T22:27:46Z | 2019-04-01T23:01:24Z |
CLN: Removed second version of xstrtod in parser_helper.h | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index 7a9db38957e94..a6512080eb428 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -187,9 +187,11 @@ cdef extern from "parser/tokenizer.h":
int64_t skipfooter
# pick one, depending on whether the converter require... | - [x] closes #19361
- [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/25925 | 2019-03-29T22:20:57Z | 2019-04-03T20:28:19Z | 2019-04-03T20:28:19Z | 2019-04-04T08:12:11Z |
day_of_year | diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py
index c8ba6c382cb64..e38305e7d681d 100644
--- a/asv_bench/benchmarks/period.py
+++ b/asv_bench/benchmarks/period.py
@@ -8,7 +8,8 @@ class PeriodProperties:
params = (['M', 'min'],
['year', 'month', 'day', 'hour', 'minute', ... | - [ ] closes #9606
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25924 | 2019-03-29T18:16:23Z | 2019-06-02T19:48:52Z | null | 2019-06-02T19:49:03Z |
PERF: Parse certain dates in Cython instead of falling back to dateutil.parse | diff --git a/asv_bench/benchmarks/io/csv.py b/asv_bench/benchmarks/io/csv.py
index 88c2a6f997a5e..260c1c3905628 100644
--- a/asv_bench/benchmarks/io/csv.py
+++ b/asv_bench/benchmarks/io/csv.py
@@ -251,4 +251,22 @@ def mem_parser_chunks(self):
pass
+class ReadCSVParseSpecialDate(StringIORewind):
+ pa... | This tremendously speeds up parsing of certain date patterns: `MM/YYYY`, `MM/DD/YYYY` and `DD/MM/YYYY` (where separator is one of ` `, `/`, `-`, and `\`), as previously they were parsed using `dateutil.parse` which is implemented in Python.
- [x] closes N/A
- [x] tests added / passed
- [x] passes `git diff upstrea... | https://api.github.com/repos/pandas-dev/pandas/pulls/25922 | 2019-03-29T15:38:45Z | 2019-04-20T16:52:25Z | 2019-04-20T16:52:25Z | 2019-04-20T16:52:55Z |
fix type annotation for pandas._config.config.py | diff --git a/mypy.ini b/mypy.ini
index b7dbf390fa8c9..edd36bd27cf55 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -5,9 +5,6 @@ follow_imports=silent
[mypy-pandas.conftest,pandas.tests.*]
ignore_errors=True
-[mypy-pandas._config.config]
-ignore_errors=True
-
[mypy-pandas._version]
ignore_errors=True
diff --git a/panda... | also remove this module from mypy.ini
- [x] closes #25899
- [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/25918 | 2019-03-29T05:30:30Z | 2019-04-01T11:51:04Z | 2019-04-01T11:51:04Z | 2019-04-01T16:42:07Z |
CLN: Remove io/formats/terminal.py | diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py
index 01bab472b06d0..bfbdfa2c9ff87 100644
--- a/pandas/core/config_init.py
+++ b/pandas/core/config_init.py
@@ -14,8 +14,6 @@
is_bool, is_callable, is_instance_factory, is_int, is_one_of_factory,
is_text)
-from pandas.io.formats.terminal i... | Remaining is_terminal function is used in `core/config_init.py`, and as this function is not meant to be public, we can move it there.
This will help with dependency organization of pandas' modules.
Follow-up to #25886.
cc @jbrockmendel | https://api.github.com/repos/pandas-dev/pandas/pulls/25916 | 2019-03-29T00:58:32Z | 2019-03-29T12:13:31Z | 2019-03-29T12:13:31Z | 2019-03-30T01:23:10Z |
Ensure that DataFrame constructed from dict follows insertion order | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 99b57e2427509..c9ee817cd7c22 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -395,7 +395,7 @@ Sparse
Other
^^^^^
--
+- Ensured that ``DataFrame`` constructed from a ``dict`` with no index passe... | - [x] closes #25911
- [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/25915 | 2019-03-29T00:58:19Z | 2019-04-02T17:06:51Z | null | 2019-05-30T08:59:55Z |
BUG-17280 to_html follows display.precision for column numbers in notebooks | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1ef05ae5f9c6b..e108742319ad6 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -353,6 +353,7 @@ I/O
- Bug in :meth:`DataFrame.to_string` and :meth:`DataFrame.to_latex` that would lead to incorrect o... | - [X] closes #17280
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
When printing column labels, check if they are floats and if they are, then round according to display.precision preferences | https://api.github.com/repos/pandas-dev/pandas/pulls/25914 | 2019-03-28T21:19:34Z | 2019-04-04T20:18:14Z | 2019-04-04T20:18:13Z | 2019-04-04T20:18:18Z |
[ENH] Move intersection functions for DatetimeIndex and TimedeltaIndex to Datetimelike and added new tests | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index b2a379d9fe6f5..4267b8ecc3849 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -33,6 +33,7 @@ Other Enhancements
- :meth:`DataFrame.set_index` now works for instances of ``abc.Iterator``, provided t... | - [x] closes #24966
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Because DatetimeIndex and TimedeltaIndex intersections are similar, I have moved the intersection function of both classes up into Datetimelike after discussions with @reidy-p @... | https://api.github.com/repos/pandas-dev/pandas/pulls/25913 | 2019-03-28T19:08:36Z | 2019-04-30T13:14:58Z | 2019-04-30T13:14:57Z | 2019-04-30T13:15:04Z |
Fix pandas-gbq deps | diff --git a/ci/deps/travis-36-cov.yaml b/ci/deps/travis-36-cov.yaml
index 95914568bea43..47a494bc1a26e 100644
--- a/ci/deps/travis-36-cov.yaml
+++ b/ci/deps/travis-36-cov.yaml
@@ -19,6 +19,9 @@ dependencies:
- pandas-gbq
- psycopg2
- pyarrow=0.9.0
+ # add pydata-google-auth until for pandas-gbq, see
+ # htt... | Should close #25910, see https://github.com/pandas-dev/pandas/issues/25910#issuecomment-477611959. @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/25912 | 2019-03-28T14:15:54Z | 2019-03-28T16:54:58Z | 2019-03-28T16:54:57Z | 2019-03-28T17:48:21Z |
Fix type annotation for pandas.core.generic.py | diff --git a/mypy.ini b/mypy.ini
index 01ca206fa747d..abec13b76cc21 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -59,12 +59,6 @@ ignore_errors=True
[mypy-pandas.core.config_init]
ignore_errors=True
-[mypy-pandas.core.frame]
-ignore_errors=True
-
-[mypy-pandas.core.generic]
-ignore_errors=True
-
[mypy-pandas.core.groupb... | Also remove this module from mypy.ini
- [x] closes #25901
- [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/25909 | 2019-03-28T13:01:24Z | 2019-04-16T12:17:42Z | 2019-04-16T12:17:42Z | 2019-04-16T12:21:01Z |
BUG: Fix groupby sorting on ordered Categoricals (GH25871) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 1ef05ae5f9c6b..2fe3c21f20236 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -374,10 +374,10 @@ Groupby/Resample/Rolling
- Bug in :func:`pandas.core.groupby.GroupBy.first` and :func:`pandas.core.g... | As documented in #25871, groupby() on an ordered Categorical messes up category order when 'observed=True' is specified.
Specifically, group labels will be ordered by first occurrence (as for an unordered Categorical), but grouped aggregation results will retain the Categorical's order.
The fix is a modified subset ... | https://api.github.com/repos/pandas-dev/pandas/pulls/25908 | 2019-03-28T11:29:16Z | 2019-04-05T00:27:11Z | 2019-04-05T00:27:11Z | 2019-04-05T09:33:48Z |
BUG: Fix groupby sorting on ordered Categoricals (GH25871) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 561562f367db2..8d246b16ea4c4 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -347,7 +347,7 @@ Groupby/Resample/Rolling
- Bug in :func:`pandas.core.groupby.GroupBy.agg` when applying a aggregation ... | As documented in #25871, groupby() on an ordered Categorical messes up category order when 'observed=True' is specified.
Specifically, group labels will be ordered by first occurrence (as for an unordered Categorical), but grouped aggregation results will retain the Categorical's order.
The fix is a modified subset ... | https://api.github.com/repos/pandas-dev/pandas/pulls/25907 | 2019-03-28T11:02:24Z | 2019-03-28T11:24:24Z | null | 2019-03-28T11:24:24Z |
Cleanup Typing in pandas.core.strings | diff --git a/mypy.ini b/mypy.ini
index 2c407602e0d6e..90da1a7aec41a 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -140,9 +140,6 @@ ignore_errors=True
[mypy-pandas.core.sparse.frame]
ignore_errors=True
-[mypy-pandas.core.strings]
-ignore_errors=True
-
[mypy-pandas.core.util.hashing]
ignore_errors=True
diff --git a/pan... | - [x] closes #25902
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25904 | 2019-03-28T04:25:52Z | 2019-04-03T20:31:41Z | 2019-04-03T20:31:40Z | 2020-01-16T00:34:14Z |
CLN: Remove type definitions from pandas.compat | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index be2a8da58c7e4..7a9db38957e94 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -592,8 +592,7 @@ cdef class TextReader:
if not QUOTE_MINIMAL <= quoting <= QUOTE_NONE:
raise TypeError('bad "quoting" value')
... | - [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Removes the following:
- `string_types`
- `text_types`
- `binary_types`
- `string_and_binary_types`
- `strlen`
- only used once and in PY3 is equivalent to `len`, so just directly called `len`... | https://api.github.com/repos/pandas-dev/pandas/pulls/25903 | 2019-03-28T04:07:05Z | 2019-03-29T12:20:43Z | 2019-03-29T12:20:43Z | 2019-04-05T16:57:57Z |
Remove pandas.io.formats.css from MyPy Blacklist | diff --git a/mypy.ini b/mypy.ini
index b7dbf390fa8c9..2c407602e0d6e 100644
--- a/mypy.ini
+++ b/mypy.ini
@@ -155,9 +155,6 @@ ignore_errors=True
[mypy-pandas.io.feather_format]
ignore_errors=True
-[mypy-pandas.io.formats.css]
-ignore_errors=True
-
[mypy-pandas.io.html]
ignore_errors=True
diff --git a/pandas/io/f... | There was a seemingly unused class variable which was failing mypy due to a lack of annotation. On closer inspection however it doesn't appear that this was even used, so I figured deletion makes things simpler.
I suppose if this was subclassed it could have some effect but this isn't part of the exposed API
@jno... | https://api.github.com/repos/pandas-dev/pandas/pulls/25900 | 2019-03-28T02:37:56Z | 2019-03-28T21:29:10Z | 2019-03-28T21:29:10Z | 2019-03-29T02:50:17Z |
TST: Check merging on equivalent CategoricalDtype | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 49b2349851479..115ef0b343b9c 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -358,6 +358,7 @@ Reshaping
- :func:`to_records` now accepts dtypes to its `column_dtypes` parameter (:issue:`24895`)
-... | Closes #22501 | https://api.github.com/repos/pandas-dev/pandas/pulls/25898 | 2019-03-28T01:32:45Z | 2019-03-28T20:45:15Z | 2019-03-28T20:45:15Z | 2019-03-29T00:51:21Z |
Implement helper method to get char* buffer from Python objects | diff --git a/pandas/_libs/hashtable_class_helper.pxi.in b/pandas/_libs/hashtable_class_helper.pxi.in
index 3644928d8dedc..8c2c560c062ac 100644
--- a/pandas/_libs/hashtable_class_helper.pxi.in
+++ b/pandas/_libs/hashtable_class_helper.pxi.in
@@ -9,6 +9,8 @@ WARNING: DO NOT edit .pxi FILE directly, .pxi is generated from... | - [x] closes N/A
- [x] tests added - `test_parsers_iso8601_leading_space`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This is a follow-up PR for #25754 which adds a utility method for getting internal `char *` buffer from `unicode` or `bytes` Python object and switch ... | https://api.github.com/repos/pandas-dev/pandas/pulls/25895 | 2019-03-27T17:12:36Z | 2019-03-29T15:26:20Z | 2019-03-29T15:26:20Z | 2019-04-01T14:31:27Z |
Skipped flaky part of test_time | diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py
index b8bcf83d8631b..8d8330cf5b9a2 100644
--- a/pandas/tests/plotting/test_datetimelike.py
+++ b/pandas/tests/plotting/test_datetimelike.py
@@ -1104,6 +1104,33 @@ def test_time(self):
xp = time(h, m... | Workaround for #25875 to get CI passing - I kept intact the working part of the test and split off the failing piece into a separate test, which may be more explicit anyway
Haven't been able to reproduce this locally so plan to either keep the original issue open or create a new one for a more permanent fix, which m... | https://api.github.com/repos/pandas-dev/pandas/pulls/25894 | 2019-03-27T15:13:50Z | 2019-03-27T20:44:44Z | 2019-03-27T20:44:44Z | 2020-01-16T00:34:15Z |
CLN: Remove __future__ imports | diff --git a/doc/sphinxext/announce.py b/doc/sphinxext/announce.py
index c61db6935a043..950e3592abf6e 100755
--- a/doc/sphinxext/announce.py
+++ b/doc/sphinxext/announce.py
@@ -33,8 +33,6 @@
$ ./scripts/announce.py $GITHUB v1.11.0..v1.11.1 > announce.rst
"""
-from __future__ import division, print_function
-
i... | - [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Not needed after dropping Python 2. | https://api.github.com/repos/pandas-dev/pandas/pulls/25889 | 2019-03-27T01:43:47Z | 2019-03-27T11:50:53Z | 2019-03-27T11:50:53Z | 2019-03-27T16:28:12Z |
Pass the errors and kwargs arguments through to astype in the columns… | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 49b2349851479..a2bacbbc09b2c 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -275,7 +275,7 @@ Numeric
Conversion
^^^^^^^^^^
--
+- Bug in :func:`DataFrame.astype()` when passing a dict of column... | … dict logic branch.
| https://api.github.com/repos/pandas-dev/pandas/pulls/25888 | 2019-03-26T22:52:35Z | 2019-03-31T02:03:15Z | 2019-03-31T02:03:15Z | 2019-03-31T12:40:25Z |
CLN: Remove PY2/3 references io directory | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 26f42cd13ffe1..1e1120a135a41 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -1,5 +1,6 @@
# pylint: disable=E1101,W0232
+from shutil import get_terminal_size
import textwrap
from warni... | xref #25725 | https://api.github.com/repos/pandas-dev/pandas/pulls/25886 | 2019-03-26T19:59:34Z | 2019-03-28T20:19:41Z | 2019-03-28T20:19:41Z | 2019-03-29T00:51:15Z |
Initial pandas.typing Module | diff --git a/pandas/_typing.py b/pandas/_typing.py
new file mode 100644
index 0000000000000..5225be33d7604
--- /dev/null
+++ b/pandas/_typing.py
@@ -0,0 +1,4 @@
+from pathlib import Path
+from typing import IO, AnyStr, Union
+
+FilePathOrBuffer = Union[str, Path, IO[AnyStr]]
diff --git a/pandas/io/gcs.py b/pandas/io/gc... | ref #25791 maybe more of a conversation starter than complete PR but wanted to stub out some types that appear commonly in pandas code-base.
Haven't used these yet as wanted to agree on type first. I wouldn't be surprised if we start seeing some issues pop up that would require real development changes once these ge... | https://api.github.com/repos/pandas-dev/pandas/pulls/25884 | 2019-03-26T19:18:11Z | 2019-03-30T19:12:34Z | 2019-03-30T19:12:34Z | 2019-03-30T19:12:57Z |
CLN: Remove PY2/3 checks in cython files | diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx
index 34ceeb20e260e..f84dc3fa9fb90 100644
--- a/pandas/_libs/lib.pyx
+++ b/pandas/_libs/lib.pyx
@@ -73,7 +73,6 @@ cdef:
object oINT64_MIN = <int64_t>INT64_MIN
object oUINT64_MAX = <uint64_t>UINT64_MAX
- bint PY2 = sys.version_info[0] == 2
floa... | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Remove PY2/3 checks in `pyx` files. | https://api.github.com/repos/pandas-dev/pandas/pulls/25876 | 2019-03-26T05:57:23Z | 2019-03-26T11:39:51Z | 2019-03-26T11:39:51Z | 2019-03-26T15:22:54Z |
Revert changes to test regexes | diff --git a/pandas/tests/test_algos.py b/pandas/tests/test_algos.py
index e6c00e11d42a9..b8226bc2f8269 100644
--- a/pandas/tests/test_algos.py
+++ b/pandas/tests/test_algos.py
@@ -20,7 +20,7 @@
import pandas as pd
from pandas import (
Categorical, CategoricalIndex, DatetimeIndex, Index, IntervalIndex, Series,
-... | - [X] maybe closes #25867
| https://api.github.com/repos/pandas-dev/pandas/pulls/25874 | 2019-03-26T04:31:37Z | 2019-03-26T11:38:22Z | 2019-03-26T11:38:21Z | 2019-03-26T14:45:25Z |
CLN: Remove miscellaneous rarely used items from pandas.compat | diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx
index fd2c522dcd0ca..be2a8da58c7e4 100644
--- a/pandas/_libs/parsers.pyx
+++ b/pandas/_libs/parsers.pyx
@@ -1,9 +1,13 @@
# Copyright (c) 2012, Lambda Foundry, Inc.
# See LICENSE for the license
+import bz2
+import gzip
+import lzma
import os
import sy... | - [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Gets rid of the following from `pandas.compat`:
- `intern`
- `reduce`
- `unichr`
- `wraps`
- `get_range_parameters`
- `class_types`
- `reload`
- also removed `set_defaultencoding` as it use... | https://api.github.com/repos/pandas-dev/pandas/pulls/25873 | 2019-03-26T03:50:15Z | 2019-03-27T23:15:28Z | 2019-03-27T23:15:28Z | 2019-03-28T02:48:10Z |
DOC: use substitution decorator for business month classes (#25828) | diff --git a/pandas/tseries/offsets.py b/pandas/tseries/offsets.py
index 5733504342db6..bda0c4ec1237a 100644
--- a/pandas/tseries/offsets.py
+++ b/pandas/tseries/offsets.py
@@ -15,7 +15,7 @@
apply_index_wraps, as_datetime, roll_yearday, shift_month)
import pandas.compat as compat
from pandas.errors import Abstra... | - [X] closes #25828
- [ ] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Validation script
`CustomBusinessMonthEnd`
```
################################################################################
########## Docstring (pandas.tseries.offse... | https://api.github.com/repos/pandas-dev/pandas/pulls/25868 | 2019-03-25T13:18:01Z | 2019-03-26T17:09:38Z | 2019-03-26T17:09:37Z | 2019-03-27T07:59:48Z |
STY: Check for pytest.raises without context | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 9f3ded88b5e7d..8905560aa2108 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -120,6 +120,10 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
invgrep -r -E --include '*.py' 'pytest\.warns' pandas/tests/
RET=$(($RET + $?)) ; echo $MSG "DO... | xref #24332
First commit adds the script code for checking. Remaining commits will fix any vestigial errors. | https://api.github.com/repos/pandas-dev/pandas/pulls/25866 | 2019-03-25T01:21:42Z | 2019-03-26T21:51:17Z | 2019-03-26T21:51:17Z | 2019-03-26T22:49:59Z |
CLN: Remove vestigial references to PY2 in tests | diff --git a/pandas/tests/arithmetic/test_period.py b/pandas/tests/arithmetic/test_period.py
index 982aef5497b8b..b8ae0895bda06 100644
--- a/pandas/tests/arithmetic/test_period.py
+++ b/pandas/tests/arithmetic/test_period.py
@@ -1046,34 +1046,26 @@ def test_pi_ops(self):
exp = pd.Index([0 * off, -1 * off, -2 *... | xref #25725 | https://api.github.com/repos/pandas-dev/pandas/pulls/25865 | 2019-03-25T00:13:29Z | 2019-03-25T11:36:03Z | 2019-03-25T11:36:03Z | 2019-03-25T14:58:29Z |
CLN: Remove unicode u string prefix | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 8693a97bc00f1..3e639b887fd5a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -134,8 +134,8 @@
master_doc = 'index'
# General information about the project.
-project = u'pandas'
-copyright = u'2008-2014, the pandas development team'
+project = 'p... | - [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
More Python 2 removal. Could use a second pair of eyes to make sure the regex I used to make these fixes wasn't overzealous anywhere.
| https://api.github.com/repos/pandas-dev/pandas/pulls/25864 | 2019-03-24T21:51:45Z | 2019-03-25T11:36:45Z | 2019-03-25T11:36:44Z | 2019-03-28T02:49:11Z |
Read hdf does not close store | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 94f8fd16ea85a..30e38e259cde9 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -353,6 +353,7 @@ I/O
- Bug in :meth:`DataFrame.to_string` and :meth:`DataFrame.to_latex` that would lead to incorrect o... | - [x] closes #25766
- [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/25863 | 2019-03-24T21:44:53Z | 2019-03-31T15:35:49Z | 2019-03-31T15:35:49Z | 2019-03-31T15:35:55Z |
CLN: Remove long and integer_types from pandas.compat | diff --git a/pandas/compat/__init__.py b/pandas/compat/__init__.py
index fcdbfc0639157..17a75303a617c 100644
--- a/pandas/compat/__init__.py
+++ b/pandas/compat/__init__.py
@@ -7,7 +7,6 @@
Key items to import for 2/3 compatible code:
* iterators: reduce()
* lists: lrange(), lmap(), lzip(), lfilter()
-* longs: long (... | - [X] xref #25725
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Another incremental step in removing Python 2. Doesn't look like `integer_types` was actually used anywhere. Otherwise mostly `long` --> `int`, or just removing `long` as the argument was already an ... | https://api.github.com/repos/pandas-dev/pandas/pulls/25862 | 2019-03-24T20:54:16Z | 2019-03-24T21:48:59Z | 2019-03-24T21:48:59Z | 2019-03-25T11:37:28Z |
[REF] Move remaining locale functions to _config.localization | diff --git a/pandas/_config/__init__.py b/pandas/_config/__init__.py
index 78434876b29fb..bf221ea444288 100644
--- a/pandas/_config/__init__.py
+++ b/pandas/_config/__init__.py
@@ -1,10 +1,15 @@
"""
pandas._config is considered explicitly upstream of everything else in pandas,
should have no intra-pandas dependencie... | There are a a couple locale-centric functions left in `tm` that have not yet been moved because they depend on `pd.options.display.encoding`. This PR implements a minimal `_config.display` that allows us to consolidate the locale functions. `_config.display` also defines `display.date_dayfirst` and `display.date_year... | https://api.github.com/repos/pandas-dev/pandas/pulls/25861 | 2019-03-24T20:25:55Z | 2019-03-25T23:24:33Z | 2019-03-25T23:24:33Z | 2019-03-26T00:22:25Z |
[CLN] Remove TypeError in Interval.length | diff --git a/pandas/_libs/interval.pyx b/pandas/_libs/interval.pyx
index 74fbd69708de8..173be9398b634 100644
--- a/pandas/_libs/interval.pyx
+++ b/pandas/_libs/interval.pyx
@@ -106,12 +106,7 @@ cdef class IntervalMixin(object):
@property
def length(self):
"""Return the length of the Interval"""
- ... | Following #25768, remove `TypeError` in `Interval.length`, as all endpoints should be comparable now.
| https://api.github.com/repos/pandas-dev/pandas/pulls/25859 | 2019-03-24T10:49:02Z | 2019-03-24T20:56:45Z | 2019-03-24T20:56:45Z | 2019-03-24T20:57:10Z |
add a test to check zero index array do not error | diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py
index e6ee35572c252..3f93b9798c594 100644
--- a/pandas/tests/indexing/test_indexing.py
+++ b/pandas/tests/indexing/test_indexing.py
@@ -855,6 +855,14 @@ def test_no_reference_cycle(self):
del df
assert wr() is... | refs GH-21946
- [x] closes #xxxx
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [na] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/25856 | 2019-03-24T01:31:28Z | 2019-03-24T15:35:45Z | null | 2019-03-24T15:35:51Z |
BUG: Fix Timestamp type checks to work with subclassed datetime (#25851) | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index d2897afa762b1..f4d236487eaa9 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -407,6 +407,7 @@ Sparse
Other
^^^^^
+- Improved :class:`Timestamp` type checking in various datetime functions to pr... | - [x] closes #25851
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
PyDateTime_CheckExact is being used as a proxy for isinstance(obj, Timestamp) checks for performance reasons. However, if a subclass of the std datetime lib is being used, these... | https://api.github.com/repos/pandas-dev/pandas/pulls/25853 | 2019-03-23T23:06:55Z | 2019-04-05T16:54:44Z | 2019-04-05T16:54:44Z | 2019-04-05T18:13:57Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.