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
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
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: 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
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
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
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
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
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
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
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
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
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
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
ENH: Timestamp: Support addl datetime classmethods
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index a4d7c3969f056..4274eb5c9ec58 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -43,6 +43,7 @@ Enhancements - Added ability to export Categorical data to Stata (:issue:`8633`). - Added ability to ...
- `utcfromtimestamp`,`timestamp`, and `combine` now supported Closes #5351.
https://api.github.com/repos/pandas-dev/pandas/pulls/8837
2014-11-17T04:13:57Z
2014-11-17T10:56:44Z
2014-11-17T10:56:44Z
2014-11-17T10:56:49Z
FIX: Correct Categorical behavior in StataReader
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index 3d7b41a1c4c24..a7091d6ab38fb 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -546,7 +546,8 @@ Getting Data In/Out Writing data (`Series`, `Frames`) to a HDF store that contains a ``category`` dtype was implemented i...
Ensure that category codes have the same order as the underlying Stata data. xref #8816
https://api.github.com/repos/pandas-dev/pandas/pulls/8836
2014-11-17T04:09:58Z
2014-11-19T11:20:03Z
2014-11-19T11:20:03Z
2014-11-19T17:15:00Z
BUG: Bug in csv parsing when passing dtype and names and the parsed data is a different data type (GH8833)
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 3f72d5d44f870..b51da47563b1b 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -64,6 +64,7 @@ Bug Fixes - Bug in packaging pandas with ``py2app/cx_Freeze`` (:issue:`8602`, :issue:`8831`) - Bug in `...
closes #8833 ``` In [5]: data = """1.0,a ...: nan,b ...: 3.0,c ...: """ In [8]: read_csv(StringIO(data),sep=',',names=['A','B']) Out[8]: A B 0 1 a 1 NaN b 2 3 c In [9]: read_csv(StringIO(data),sep=',',names=['A','B'],dtype={'A' : int}) ValueError: cannot safely convert passed user dtype of <i8...
https://api.github.com/repos/pandas-dev/pandas/pulls/8834
2014-11-16T19:23:30Z
2014-11-17T12:54:59Z
2014-11-17T12:54:59Z
2014-11-17T12:54:59Z
Fix unrecognized 'Z' UTC designator
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 1e84762b60caa..3aa50ad609064 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -151,9 +151,9 @@ Bug Fixes - Bug in `pd.infer_freq`/`DataFrame.inferred_freq` that prevented proper sub-daily frequency...
closes #8771
https://api.github.com/repos/pandas-dev/pandas/pulls/8832
2014-11-16T14:29:01Z
2014-11-27T17:48:12Z
2014-11-27T17:48:12Z
2014-11-27T17:48:15Z
BUG: sql_schema does not generate dialect-specific DDL
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 83e465df7b891..6adb91b088fe6 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -63,7 +63,7 @@ Bug Fixes - Bug in slicing a multi-index with an empty list and at least one boolean indexer (:issue:`87...
Closes #8697 . sqlalchemy `CreateTable` needs to be called slightly differently to create dialect-specific SQL. See http://stackoverflow.com/questions/2128717/sqlalchemy-printing-raw-sql-from-create .
https://api.github.com/repos/pandas-dev/pandas/pulls/8827
2014-11-15T22:51:12Z
2014-11-17T08:31:13Z
2014-11-17T08:31:12Z
2014-12-05T09:07:50Z
BUG: Error when creating sparse dataframe with nan column label
diff --git a/doc/source/whatsnew/v0.16.1.txt b/doc/source/whatsnew/v0.16.1.txt index 9f989b2cf0ea9..3d03a2b5f0c4c 100644 --- a/doc/source/whatsnew/v0.16.1.txt +++ b/doc/source/whatsnew/v0.16.1.txt @@ -98,3 +98,6 @@ Bug Fixes - Bug in ``read_csv`` and ``read_table`` when using ``skip_rows`` parameter if blank lines are...
Right now the following raises an exception: ``` from pandas import DataFrame, Series from numpy import nan nan_colname = DataFrame(Series(1.0,index=[0]),columns=[nan]) nan_colname_sparse = nan_colname.to_sparse() ``` This is because sparse dataframes use a dictionary to store information about columns, with the colu...
https://api.github.com/repos/pandas-dev/pandas/pulls/8822
2014-11-15T01:33:18Z
2015-04-11T18:35:12Z
2015-04-11T18:35:12Z
2015-04-11T18:35:21Z
VIS: plot with `use_index=False` shouldn't plot the index name
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 83e465df7b891..036efa97c1257 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -93,3 +93,4 @@ Bug Fixes - Bug in `pd.infer_freq`/`DataFrame.inferred_freq` that prevented proper sub-daily frequency...
Fixes #8558. As far as I can tell the two plot types where this applies are line and bar plots, if there any others they should also be easy to fix. Bar and line plots no longer include the index name: ``` python import pandas as pd from pandas import Series import matplotlib.pyplot as plt s = Series([1, 2, 3], index...
https://api.github.com/repos/pandas-dev/pandas/pulls/8812
2014-11-14T03:42:40Z
2014-11-16T14:09:36Z
2014-11-16T14:09:36Z
2014-11-16T14:09:39Z
DOC: Added get_group() example to grouby.html
diff --git a/doc/README.rst b/doc/README.rst index 2143fa6c922ca..7f001192f5d73 100644 --- a/doc/README.rst +++ b/doc/README.rst @@ -132,7 +132,7 @@ If you want to do a full clean build, do:: python make.py build -Staring with 0.13.1 you can tell ``make.py`` to compile only a single section +Starting with 0.13...
Added a get_group example in the Iterating through groups section of grouby.html to demonstrate selecting single group from a DataFrameGrouBy object Fixed typo in README
https://api.github.com/repos/pandas-dev/pandas/pulls/8811
2014-11-14T01:36:36Z
2014-11-15T09:55:31Z
2014-11-15T09:55:31Z
2014-11-15T09:55:31Z
TST: Skip hist testing for matplotlib <= 1.2
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index fe1454d4d2582..da5aad42b51e4 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -63,3 +63,4 @@ Bug Fixes - Bug in slicing a multi-index with an empty list and at least one boolean indexer (:issue:`87...
Not a huge issue, just skipping an incompatible test when testing with matplotlib 1.2. closes #8648.
https://api.github.com/repos/pandas-dev/pandas/pulls/8810
2014-11-14T01:16:21Z
2014-11-14T12:45:36Z
2014-11-14T12:45:36Z
2014-11-14T12:45:52Z
BUG: Passing multiple levels to stack when having mixed integer/string level names (#8584)
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 3f72d5d44f870..9659f670280ad 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -98,3 +98,6 @@ Bug Fixes - Bug in `pd.infer_freq`/`DataFrame.inferred_freq` that prevented proper sub-daily frequency i...
closes #8584 Stacking should now work as expected for the cases described in the bug report (#8584). So we can pass a list of both ints and strs to `DataFrame.stack`, provided the ints are level names. Mixed ints and strs when the ints aren't level names raises `ValueError`, but that's unchanged. I've added a new hi...
https://api.github.com/repos/pandas-dev/pandas/pulls/8809
2014-11-14T00:18:43Z
2014-11-17T15:24:10Z
2014-11-17T15:24:10Z
2014-11-17T15:25:57Z
Removing typo as Renaming
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index 1b5b4746336ad..0a12ed1bf03d1 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -236,7 +236,7 @@ which are removed are replaced by ``np.nan``.: s = s.cat.remove_categories([4]) s -Renaming unused categories +...
Should be 'Removing', I think, if I'm not misunderstanding.
https://api.github.com/repos/pandas-dev/pandas/pulls/8800
2014-11-13T05:46:38Z
2014-11-13T08:48:24Z
2014-11-13T08:48:24Z
2014-11-13T08:48:24Z
ENH: serialization of categorical to HDF5 (GH7621)
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index 0a12ed1bf03d1..3d7b41a1c4c24 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -541,8 +541,12 @@ The same applies to ``df.append(df_different)``. Getting Data In/Out ------------------- -Writing data (`Series`, `Fra...
This is implemented by storing the codes directly in the table. And a metadata VLArray of the categories. Query and appending work as expected. The only quirk is that I don't allow you to append to a table unless the new data has exactly the same categories. Otherwise the codes become meaningless. This has the nice pr...
https://api.github.com/repos/pandas-dev/pandas/pulls/8793
2014-11-12T01:55:30Z
2014-11-17T00:34:49Z
2014-11-17T00:34:49Z
2014-11-17T00:34:50Z
TST: Add test for get_data_google dtypes
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index fe1454d4d2582..df09168a50449 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -63,3 +63,4 @@ Bug Fixes - Bug in slicing a multi-index with an empty list and at least one boolean indexer (:issue:`87...
closes #3995
https://api.github.com/repos/pandas-dev/pandas/pulls/8792
2014-11-12T00:12:57Z
2014-11-14T12:49:34Z
2014-11-14T12:49:34Z
2014-11-14T12:49:41Z
BUG: pd.Timedelta np.int, np.float. fixes #8757
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index ee30e0bdadc5d..97cbecd4bb0e7 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -61,3 +61,4 @@ Bug Fixes - ``io.data.Options`` now raises ``RemoteDataError`` when no expiry dates are available from Y...
closes #8757
https://api.github.com/repos/pandas-dev/pandas/pulls/8787
2014-11-11T17:46:19Z
2014-11-11T23:37:43Z
2014-11-11T23:37:43Z
2014-11-11T23:37:48Z
COMPAT: remove Index warnings from io/ga.py
diff --git a/pandas/io/ga.py b/pandas/io/ga.py index f002994888932..57de5c6f5abb4 100644 --- a/pandas/io/ga.py +++ b/pandas/io/ga.py @@ -430,7 +430,7 @@ def _clean_index(index_dims, parse_dates): to_remove = pd.Index(set(to_remove)) to_add = pd.Index(set(to_add)) - return index_dims - to_remove + to_add ...
https://api.github.com/repos/pandas-dev/pandas/pulls/8785
2014-11-11T14:40:19Z
2014-11-17T15:12:38Z
2014-11-17T15:12:38Z
2014-11-17T15:12:38Z
TST: Add additional RemoteDataError check to io.data.Options
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index b1fa6dbed442d..fb0e4ecbf3119 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -44,5 +44,5 @@ Experimental Bug Fixes ~~~~~~~~~ - Bug in ``groupby`` signatures that didn't include *args or **kwargs...
Per comment in #8761
https://api.github.com/repos/pandas-dev/pandas/pulls/8783
2014-11-11T05:07:23Z
2014-11-11T14:09:56Z
2014-11-11T14:09:56Z
2014-11-12T12:59:26Z
Do not convert series when looking at sub-daily frequencies.
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 97cbecd4bb0e7..1cd53cd575650 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -62,3 +62,5 @@ Bug Fixes - Bug in slicing a multi-index with an empty list and at least one boolean indexer (:issue:`87...
Fixes #8772 by not converting values from UTC to local timezone when trying to infer sub-daily frequencies. Across a DST transition this will result in a non-unique deltas and an inferred frequency of None.
https://api.github.com/repos/pandas-dev/pandas/pulls/8782
2014-11-11T02:06:09Z
2014-11-14T19:31:48Z
2014-11-14T19:31:48Z
2014-11-14T19:31:56Z
Allowing empty slice in multi-indices
diff --git a/doc/source/whatsnew/v0.15.2.txt b/doc/source/whatsnew/v0.15.2.txt index 4bcbcb82e7c83..b1fa6dbed442d 100644 --- a/doc/source/whatsnew/v0.15.2.txt +++ b/doc/source/whatsnew/v0.15.2.txt @@ -44,4 +44,5 @@ Experimental Bug Fixes ~~~~~~~~~ - Bug in ``groupby`` signatures that didn't include *args or **kwargs...
This solves #8737 in the case where there is at least one boolean indexer. The patch of #8739 does not allow the following: ``` python import pandas as pd import numpy as np multi_index = pd.MultiIndex.from_product((['foo', 'bar', 'baz'], ['alpha', 'beta'])) df = pd.DataFrame(np.random.randn(5, 6), index=range(5), co...
https://api.github.com/repos/pandas-dev/pandas/pulls/8781
2014-11-10T21:14:40Z
2014-11-11T00:11:42Z
2014-11-11T00:11:42Z
2014-11-11T00:12:45Z