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 |
|---|---|---|---|---|---|---|---|
Run isort on tests/indexes | diff --git a/pandas/tests/indexes/interval/test_astype.py b/pandas/tests/indexes/interval/test_astype.py
index 8406a8c458cca..2932a46f9bde2 100644
--- a/pandas/tests/indexes/interval/test_astype.py
+++ b/pandas/tests/indexes/interval/test_astype.py
@@ -3,12 +3,12 @@
import numpy as np
import pytest
-import pandas.u... | - [ ] xref #23334
- [ ] tests added / passed
* `pytest pandas/tests/indexes/interval/test_*`
* `pytest pandas/tests/indexes/timedeltas/test_*`
* `pytest pandas/tests/indexes/multi/test_*`
* `pytest pandas/tests/indexes/test_*`
- [ ] passes `git diff upstream/master -u -- "*... | https://api.github.com/repos/pandas-dev/pandas/pulls/24531 | 2019-01-01T17:45:32Z | 2019-01-01T18:19:21Z | 2019-01-01T18:19:21Z | 2019-01-02T20:25:47Z |
Run isort | diff --git a/pandas/tests/frame/common.py b/pandas/tests/frame/common.py
index c85fea3c3d71b..2ea087c0510bf 100644
--- a/pandas/tests/frame/common.py
+++ b/pandas/tests/frame/common.py
@@ -1,9 +1,10 @@
import numpy as np
-from pandas import compat
from pandas.util._decorators import cache_readonly
-import pandas.ut... | - [ ] xref #23334
- [x] tests added / passed `pytest pandas/tests/frame/test_*`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Run `isort -rc pandas/tests/frame`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24530 | 2019-01-01T17:28:42Z | 2019-01-01T20:07:08Z | 2019-01-01T20:07:08Z | 2019-01-02T20:25:43Z |
CI: fix db usage in CI | diff --git a/.travis.yml b/.travis.yml
index 9f6a5f0c5d9aa..e478d71a5c350 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,11 +34,11 @@ matrix:
include:
- dist: trusty
env:
- - JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="not slow and not network"
+ - JOB="3.7" ENV_FILE="ci/deps/... | closes #24528
reverts behavior in #24485
canonical way to run tests is ``test_fast.sh`` (or can also specify ``-m 'not single'`` (or ``--skip-db``) | https://api.github.com/repos/pandas-dev/pandas/pulls/24529 | 2019-01-01T17:14:33Z | 2019-01-01T20:06:47Z | 2019-01-01T20:06:47Z | 2019-01-01T20:12:46Z |
Implement unique+array parts of 24024 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index dc10f25fbd9d6..8c686db22299b 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -673,6 +673,31 @@ is the case with :attr:`Period.end_time`, for example
p.end_time
+.. _whatsnew_0240.api_breaki... | They have tests that go with them and are reasonably self-contained. | https://api.github.com/repos/pandas-dev/pandas/pulls/24527 | 2019-01-01T02:45:25Z | 2019-01-01T16:16:23Z | 2019-01-01T16:16:22Z | 2019-01-01T16:20:18Z |
Fixed PeriodArray._time_shift positional argument | diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py
index 9827c111e0fd2..5a74f04c237d0 100644
--- a/pandas/core/arrays/period.py
+++ b/pandas/core/arrays/period.py
@@ -418,7 +418,7 @@ def fillna(self, value=None, method=None, limit=None):
# ---------------------------------------------------... | https://api.github.com/repos/pandas-dev/pandas/pulls/24524 | 2018-12-31T21:06:34Z | 2018-12-31T23:16:29Z | 2018-12-31T23:16:29Z | 2019-01-02T20:18:03Z | |
DOC: Make sphinx fail the build when --warnings-are-errors is set | diff --git a/doc/make.py b/doc/make.py
index 19be78a8101ce..0b14a9dcd4c34 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -124,13 +124,12 @@ def _sphinx_build(self, kind):
if self.num_jobs:
cmd += ['-j', str(self.num_jobs)]
if self.warnings_are_errors:
- cmd.append('-W')
+ ... | xref #22743
We already had an option `--warnings-are-errors` in `doc/make.py`, but it was making the doc build cancel after the first warning was found, generating a Python exception. Changed to finish the build, and not raise any error, but exit with 1.
Also, when building a single document, ignore the broken r... | https://api.github.com/repos/pandas-dev/pandas/pulls/24523 | 2018-12-31T20:49:21Z | 2018-12-31T23:17:49Z | 2018-12-31T23:17:49Z | 2018-12-31T23:17:51Z |
REF/TST: use monkeypatch in mock clipboard fixture | diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py
index bb73c6bc6b38b..99bece0efc8c8 100644
--- a/pandas/tests/io/test_clipboard.py
+++ b/pandas/tests/io/test_clipboard.py
@@ -76,7 +76,7 @@ def df(request):
@pytest.fixture
-def mock_clipboard(mock, request):
+def mock_clipboard(mon... | xref https://github.com/pandas-dev/pandas/pull/22715#discussion_r217898721 | https://api.github.com/repos/pandas-dev/pandas/pulls/24522 | 2018-12-31T20:47:18Z | 2018-12-31T23:19:19Z | 2018-12-31T23:19:19Z | 2019-01-01T21:01:59Z |
ENH: Add sort parameter to set operations for some Indexes and adjust… | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index f46229feee250..c26a8a40d97b8 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -413,7 +413,7 @@ Other Enhancements
- :func:`read_fwf` now accepts keyword ``infer_nrows`` (:issue:`15138`).
- :func:`... | … tests
- [ ] Progress towards #24471
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This PR makes some progress towards adding a ``sort`` parameter with a default of ``True`` to the set operations (``union``, ``intersection``, ``difference`... | https://api.github.com/repos/pandas-dev/pandas/pulls/24521 | 2018-12-31T20:09:54Z | 2019-01-19T21:04:58Z | 2019-01-19T21:04:58Z | 2019-01-27T01:19:41Z |
MAINT: Port _timelex in codebase | diff --git a/LICENSES/DATEUTIL_LICENSE b/LICENSES/DATEUTIL_LICENSE
new file mode 100644
index 0000000000000..6053d35cfc60b
--- /dev/null
+++ b/LICENSES/DATEUTIL_LICENSE
@@ -0,0 +1,54 @@
+Copyright 2017- Paul Ganssle <paul@ganssle.io>
+Copyright 2017- dateutil contributors (see AUTHORS file)
+
+ Licensed under the Apa... | Removes the `DeprecationWarning` raised by `dateutil` because it's a private class.
Implementation taken from the following PR:
https://github.com/dateutil/dateutil/pull/732
Closes #21322.
cc @pganssle | https://api.github.com/repos/pandas-dev/pandas/pulls/24520 | 2018-12-31T19:41:22Z | 2019-01-01T16:17:17Z | 2019-01-01T16:17:17Z | 2019-01-01T18:41:52Z |
BUG/TST: Fix corrwith index | diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py
index 04a35ac2ec897..35e57091f701a 100644
--- a/pandas/tests/frame/test_analytics.py
+++ b/pandas/tests/frame/test_analytics.py
@@ -459,6 +459,26 @@ def test_corrwith_mixed_dtypes(self):
expected = pd.Series(data=corrs, in... | In PR 22375 the reindexing behavior of `DataFrame.corrwith` was modified to handle duplicate columns. This PR adds tests to help ensure correct behavior of the index. | https://api.github.com/repos/pandas-dev/pandas/pulls/24519 | 2018-12-31T19:14:43Z | 2018-12-31T23:10:51Z | 2018-12-31T23:10:51Z | 2019-01-01T01:18:35Z |
Make _freq/freq/tz/_tz/dtype/_dtype/offset/_offset all inherit reliably | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 6b7199c019c48..98a1f1b925447 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1138,8 +1138,6 @@ def _time_shift(self, periods, freq=None):
freq = frequencies.to_offset(... | There was an issue in rebasing #24024 in which index._freq didn't match index._eadata._freq. This ensures that is never an issue by removing _freq/freq from the Index subclasses and making them properties aliasing the _eadata attrs.
To do this, we have to make _eadata not-a-property for the time being.
Also make... | https://api.github.com/repos/pandas-dev/pandas/pulls/24517 | 2018-12-31T19:07:24Z | 2019-01-01T01:10:40Z | 2019-01-01T01:10:40Z | 2019-01-01T15:03:24Z |
CLN: Remove dead code in api/test_types.py | diff --git a/pandas/tests/api/test_types.py b/pandas/tests/api/test_types.py
index 9a7e42cb9c4e2..0a81557005477 100644
--- a/pandas/tests/api/test_types.py
+++ b/pandas/tests/api/test_types.py
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
-import pytest
-
from pandas.api import types
from pandas.util import testing as tm
... | Follow-up to #19769.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24516 | 2018-12-31T18:29:07Z | 2018-12-31T19:05:14Z | 2018-12-31T19:05:14Z | 2018-12-31T19:06:39Z |
REF/TST: remove patch from testing.py | diff --git a/pandas/tests/io/test_packers.py b/pandas/tests/io/test_packers.py
index 4cccac83e0a35..da0a9ed4ba7ed 100644
--- a/pandas/tests/io/test_packers.py
+++ b/pandas/tests/io/test_packers.py
@@ -1,31 +1,27 @@
-import pytest
-
-from warnings import catch_warnings
-import os
import datetime
+from distutils.version... | logical follow-on from #24501
replace use of `patch` from `testing.py` with `pytest` builtin fixture `monkeypatch` | https://api.github.com/repos/pandas-dev/pandas/pulls/24515 | 2018-12-31T18:23:02Z | 2018-12-31T23:21:05Z | 2018-12-31T23:21:05Z | 2019-01-01T21:01:11Z |
TST: Fixing bug in skipping db tests by default | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 851a779db2159..ddf96abdd3e73 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -61,8 +61,10 @@ def pytest_runtest_setup(item):
"skipping high memory test since --run-high-memory was not set")
# if "db" not explicitly set in the -m ... | Fixing bug introduced in #24492. Skipping db tests fails with `SyntaxError` when `pytest` `-m` parameter is not specified.
Reported in #24485#issuecomment-450600185
| https://api.github.com/repos/pandas-dev/pandas/pulls/24513 | 2018-12-31T11:40:32Z | 2018-12-31T13:13:08Z | 2018-12-31T13:13:08Z | 2018-12-31T13:13:12Z |
MAINT: Use context manager in test_c_parser_only | diff --git a/pandas/tests/io/parser/test_c_parser_only.py b/pandas/tests/io/parser/test_c_parser_only.py
index 76a04a4161625..a405617b4132d 100644
--- a/pandas/tests/io/parser/test_c_parser_only.py
+++ b/pandas/tests/io/parser/test_c_parser_only.py
@@ -111,7 +111,24 @@ def test_dtype_and_names_error(c_parser_only):
... | Specifically, use context manager for `pytest.raises`.
xref #24332. | https://api.github.com/repos/pandas-dev/pandas/pulls/24512 | 2018-12-31T10:27:49Z | 2018-12-31T13:14:41Z | 2018-12-31T13:14:41Z | 2018-12-31T18:00:14Z |
Fix ValueError when reading a Dataframe with HDFStore in Python 3 fro… | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index b4331aab3085f..78667b0e3e39b 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1515,7 +1515,6 @@ MultiIndex
I/O
^^^
-
.. _whatsnew_0240.bug_fixes.nan_with_str_dtype:
Proper handling of `np.N... | Pull request to solve : 24404
- [ ] closes #24404
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24510 | 2018-12-31T00:00:13Z | 2019-01-01T01:12:20Z | 2019-01-01T01:12:20Z | 2019-01-01T13:00:06Z |
Fix hard-coded pandas version to infer the current | diff --git a/pandas/io/json/table_schema.py b/pandas/io/json/table_schema.py
index 2bd93b19d4225..8bb49eabf0301 100644
--- a/pandas/io/json/table_schema.py
+++ b/pandas/io/json/table_schema.py
@@ -6,6 +6,7 @@
import warnings
import pandas._libs.json as json
+import pandas
from pandas.core.dtypes.common import (
... | Fix hard-coded pandas version to infer the current version in `pd.io.json.build_table_schema` output.
```python
>>> import pandas as pd
>>> pd.__version__
'0.23.4'
>>> df = pd.DataFrame({'A': [1,2], 'B': ['a','b']})
>>> # BEFORE
>>> pd.io.json.build_table_schema(df, index=0)['pandas_version']
'0.20.0'
>>> #... | https://api.github.com/repos/pandas-dev/pandas/pulls/24509 | 2018-12-30T23:58:58Z | 2018-12-31T15:34:48Z | null | 2018-12-31T15:34:48Z |
DOC: Clean up of API doc sections | diff --git a/doc/source/api/extensions.rst b/doc/source/api/extensions.rst
index 6ea2738b454aa..3972354ff9651 100644
--- a/doc/source/api/extensions.rst
+++ b/doc/source/api/extensions.rst
@@ -2,8 +2,9 @@
.. _api.extensions:
+==========
Extensions
-----------
+==========
.. currentmodule:: pandas
These are pr... | Follow up of the splitting of `api.rst` in #24462.
- Making better use of the titles and subtitles (in date offsets, the class name, and the properties and methods sections where at the same level for example).
- We were inconsistently using `Attributes` and `Properties`, left just properties, as it was the most co... | https://api.github.com/repos/pandas-dev/pandas/pulls/24508 | 2018-12-30T22:33:37Z | 2018-12-31T10:31:14Z | 2018-12-31T10:31:14Z | 2018-12-31T10:31:27Z |
DOC: Fix building of a single API document | diff --git a/doc/make.py b/doc/make.py
index 624ed67e4ee16..19be78a8101ce 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -50,7 +50,7 @@ def __init__(self, num_jobs=0, include_api=True, single_doc=None,
if single_doc and single_doc.endswith('.rst'):
self.single_doc_html = os.path.splitext(single_doc... | As reported in #24503#issuecomment-450586329, building a single document of the API (e.g. `./doc/make.py html --single=pandas.read_excel`) is broken after splitting `api.rst` in multiple files in #24462.
This PR fixes it. | https://api.github.com/repos/pandas-dev/pandas/pulls/24506 | 2018-12-30T21:21:58Z | 2018-12-30T21:37:50Z | 2018-12-30T21:37:50Z | 2018-12-30T21:37:55Z |
BUG: Ensuring that _get_standard_colors returns num_colors (GH #20585) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 17de01f388d59..055303b90ef1a 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1597,6 +1597,7 @@ Plotting
- Bug in :func:`DataFrame.plot.scatter` and :func:`DataFrame.plot.hexbin` caused x-axis l... | - [x] closes #20585
- [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/24504 | 2018-12-30T20:27:16Z | 2019-01-02T12:43:32Z | 2019-01-02T12:43:32Z | 2019-01-02T12:44:23Z |
Fix excel-related docstring errors | diff --git a/pandas/core/generic.py b/pandas/core/generic.py
index eb14a26e75a9c..e7c03de879e8a 100644
--- a/pandas/core/generic.py
+++ b/pandas/core/generic.py
@@ -2008,45 +2008,45 @@ def _repr_data_resource_(self):
Parameters
----------
- excel_writer : string or ExcelWriter object
+ excel_writer : ... | - [x] closes #23494
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] passes/runs `python make.py --single pandas.related-doc`
Fix errors which are reported by `scripts/validate_docstrings.py`:
* pandas.read_excel
* pandas.io.formats.style.Styler.to_exce... | https://api.github.com/repos/pandas-dev/pandas/pulls/24503 | 2018-12-30T20:02:32Z | 2018-12-31T23:26:30Z | 2018-12-31T23:26:30Z | 2019-01-02T20:25:48Z |
Mix EA into DTA/TDA; part of 24024 | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 5de9fd9bb2196..6b7199c019c48 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -28,13 +28,14 @@
from pandas.core.dtypes.missing import isna
from pandas.core import nanops
-from pandas... | This is _nearly_ all of the remaining DTA/TDA changes in #24024. The things that are not included:
- constructor changes
- fillna, since in local testing it alters DTA inplace, so not ready
`value_counts` from 24024 has small change to make sure the tz-aware case is correct regardless of how the constructor cha... | https://api.github.com/repos/pandas-dev/pandas/pulls/24502 | 2018-12-30T19:32:14Z | 2018-12-30T21:54:07Z | 2018-12-30T21:54:07Z | 2018-12-31T00:16:43Z |
REF/TST: replace capture_stdout with pytest capsys fixture | diff --git a/pandas/tests/frame/test_repr_info.py b/pandas/tests/frame/test_repr_info.py
index 07cbb8cdcde0a..714b9b54ccb82 100644
--- a/pandas/tests/frame/test_repr_info.py
+++ b/pandas/tests/frame/test_repr_info.py
@@ -193,7 +193,6 @@ def test_latex_repr(self):
# GH 12182
assert df._repr_latex_() is... | follow-on from #24496 | https://api.github.com/repos/pandas-dev/pandas/pulls/24501 | 2018-12-30T17:52:48Z | 2018-12-30T22:48:06Z | 2018-12-30T22:48:06Z | 2018-12-30T22:56:43Z |
CLN: read_sql date parsing | diff --git a/pandas/io/sql.py b/pandas/io/sql.py
index 6093c6c3fd0fc..0eefa85211194 100644
--- a/pandas/io/sql.py
+++ b/pandas/io/sql.py
@@ -82,6 +82,17 @@ def _convert_params(sql, params):
return args
+def _process_parse_dates_argument(parse_dates):
+ """Process parse_dates argument for read_sql functions"... | - [x] closes #15119
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Cleaning up the date parsing portion of the read_sql functionality. Also checking that #15119 can be closed as we are already testing the solution. | https://api.github.com/repos/pandas-dev/pandas/pulls/24500 | 2018-12-30T17:32:31Z | 2018-12-31T14:53:40Z | 2018-12-31T14:53:39Z | 2018-12-31T17:35:50Z |
DOC: Fixing broken references in the docs | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index e681cb59f627f..9981310b4a6fb 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -921,7 +921,7 @@ If you need integer based selection, you should use ``iloc``:
dfir.iloc[0:5]
-.. _indexing.intervallindex:
+.. _advanced.interv... | Just fixing some typos that are breaking references in the docs.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24497 | 2018-12-30T14:30:40Z | 2018-12-30T19:47:49Z | 2018-12-30T19:47:49Z | 2018-12-30T19:47:51Z |
REF/TST: replace capture_stderr with pytest capsys fixture | diff --git a/pandas/tests/indexes/datetimes/test_datetime.py b/pandas/tests/indexes/datetimes/test_datetime.py
index c338026025767..e76de2ebedf67 100644
--- a/pandas/tests/indexes/datetimes/test_datetime.py
+++ b/pandas/tests/indexes/datetimes/test_datetime.py
@@ -1,5 +1,4 @@
from datetime import date
-import sys
i... | xref https://github.com/pandas-dev/pandas/pull/24489#pullrequestreview-188428229
separate PR to follow to replace `capture_stdout` | https://api.github.com/repos/pandas-dev/pandas/pulls/24496 | 2018-12-30T10:29:36Z | 2018-12-30T18:30:38Z | 2018-12-30T18:30:38Z | 2018-12-30T19:33:33Z |
BUG: fix .iat assignment creates a new column | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index a84fd118061bc..dd4e9bc862312 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1493,6 +1493,7 @@ Indexing
- Bug in :class:`Index` slicing with boolean :class:`Index` may raise ``TypeError`` (:issue... | - in response to gh-23236
- changes the fallback of .iat to .iloc on type error
using .iat to assign incompatible value after this change:
```python
>>> import pandas as pd
>>> df = pd.DataFrame({"a":[0]})
>>> df
a
0 0
>>> df.iat[0,0] = None
>>> df
a
0 NaN
```
- [x] closes #23236
- [x] tests ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24495 | 2018-12-30T10:22:57Z | 2018-12-30T22:47:20Z | 2018-12-30T22:47:20Z | 2018-12-30T22:47:23Z |
BUG-19214 int categoricals are formatted as ints | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 1fe5e4e6e7087..5e349c2f06472 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1140,6 +1140,40 @@ cast from integer dtype to floating dtype (:issue:`22019`)
...: 'c': [1, ... | - [X] closes #19214
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
This PR alters the `ExtensionArrayFormatter` such that if it receives a categorical series with only integers and `NaN`, it will print the integers as integers instead of conver... | https://api.github.com/repos/pandas-dev/pandas/pulls/24494 | 2018-12-30T08:21:51Z | 2019-01-05T22:15:14Z | 2019-01-05T22:15:14Z | 2019-01-05T22:15:24Z |
ENH: Add additional options to nonexistent in tz_localize | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 84fca37318091..a391d73b8922e 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -2351,9 +2351,11 @@ A DST transition may also shift the local time ahead by 1 hour creating nonexist
local times. The behavior of localizing a ... | - [x] closes #24466
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Per @sdementen suggestion, adding additional options for `nonexistent` that would prove more useful. Let me know if this is what you had in mind.
`shift` is now `shift_forwar... | https://api.github.com/repos/pandas-dev/pandas/pulls/24493 | 2018-12-30T07:35:22Z | 2019-01-03T03:46:02Z | 2019-01-03T03:46:02Z | 2019-01-03T03:49:30Z |
TST: Skip db tests unless explicitly specified in -m pattern | diff --git a/.travis.yml b/.travis.yml
index 28b57cc750190..9f6a5f0c5d9aa 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,11 +34,11 @@ matrix:
include:
- dist: trusty
env:
- - JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="not slow and not network and not db"
+ - JOB="3.7" ENV_FIL... | - [x] closes #24485
Since #24450 we don't skip the db tests if the connection fails. That's useful, because the CI won't fail silently if there is any problem with the databases. But as reported in #24485, it's common to have `pymysql` or `psycopg2` installed locally, but no database connection. This is making the t... | https://api.github.com/repos/pandas-dev/pandas/pulls/24492 | 2018-12-30T02:44:43Z | 2018-12-30T21:54:55Z | 2018-12-30T21:54:55Z | 2018-12-30T21:54:57Z |
PERF: significant speedups in tz-aware operations | diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py
index 58cda3b871e51..dc31d23105845 100644
--- a/asv_bench/benchmarks/timeseries.py
+++ b/asv_bench/benchmarks/timeseries.py
@@ -12,7 +12,7 @@
class DatetimeIndex(object):
- params = ['dst', 'repeated', 'tz_aware', 'tz_naive']
+... | Operations involving tz-aware data currently incur a pretty substantial penalty:
```
[ 93.04%] ··· timeseries.DatetimeAccessor.time_dt_accessor_year ok
[ 93.04%] ··· ============ =============
... | https://api.github.com/repos/pandas-dev/pandas/pulls/24491 | 2018-12-30T01:41:05Z | 2019-01-04T00:26:43Z | 2019-01-04T00:26:43Z | 2019-01-04T00:26:48Z |
Fix misdescription in escapechar | diff --git a/pandas/io/parsers.py b/pandas/io/parsers.py
index de0ed9407e161..af39031378555 100755
--- a/pandas/io/parsers.py
+++ b/pandas/io/parsers.py
@@ -261,7 +261,7 @@
whether or not to interpret two consecutive quotechar elements INSIDE a
field as a single ``quotechar`` element.
escapechar : str (length ... | - [ ] closes #23717
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24490 | 2018-12-29T22:01:04Z | 2018-12-30T19:29:34Z | 2018-12-30T19:29:34Z | 2019-01-02T20:26:05Z |
TST: use capsys.readouterr() as named tuple | diff --git a/pandas/tests/series/test_duplicates.py b/pandas/tests/series/test_duplicates.py
index 26222637e3509..fe47975711a17 100644
--- a/pandas/tests/series/test_duplicates.py
+++ b/pandas/tests/series/test_duplicates.py
@@ -76,12 +76,12 @@ def __init__(self, val):
def __ne__(self, other):
rai... | currently only one test in codebase uses capsys.readouterr().
from pytest 3.3, the return value from readouterr changed to a namedtuple with two attributes, out and err.
this change in the style of https://docs.pytest.org/en/latest/capture.html#accessing-captured-output-from-a-test-function is to ensure that the ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24489 | 2018-12-29T21:56:35Z | 2018-12-30T18:35:52Z | 2018-12-30T18:35:52Z | 2018-12-30T19:31:37Z |
Misc separable pieces of #24024 | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index a6f603d16affe..870f913ecceb3 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -15,7 +15,7 @@
from pandas.compat.numpy import function as nv
from pandas.errors import (
AbstractMet... | mostly `shift` | https://api.github.com/repos/pandas-dev/pandas/pulls/24488 | 2018-12-29T20:35:43Z | 2018-12-30T18:40:06Z | 2018-12-30T18:40:06Z | 2018-12-30T18:41:57Z |
DEPR: Deprecate box kwarg for to_timedelta and to_datetime | diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst
index 284943cf49070..76ee268f2d3e6 100644
--- a/doc/source/whatsnew/v0.25.0.rst
+++ b/doc/source/whatsnew/v0.25.0.rst
@@ -94,6 +94,7 @@ Deprecations
~~~~~~~~~~~~
- Deprecated the `M (months)` and `Y (year)` `units` parameter of :func: `p... | - [x] closes #24416
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
There are still some tests that are failing on Travis, but they appear to be unrelated. I'll see what CI returns for the PR and address any tests that continue to fail that mig... | https://api.github.com/repos/pandas-dev/pandas/pulls/24486 | 2018-12-29T18:06:25Z | 2019-03-13T15:42:08Z | 2019-03-13T15:42:07Z | 2019-03-13T15:42:13Z |
Implement reductions from #24024 | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index a6f603d16affe..2273e669f36b4 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -27,6 +27,7 @@
from pandas.core.dtypes.generic import ABCDataFrame, ABCIndexClass, ABCSeries
from pandas.c... | min/max signatures+docstrings are changed from #24024, instead match those of DatetimeIndexOpsMixin (with appropriate docstring edits)
The min/max implementations are unchanged from 24024. In an upcoming pass I'll see if we can pawn any more of it off to nanops.
Tests are verbatim from 24024. | https://api.github.com/repos/pandas-dev/pandas/pulls/24484 | 2018-12-29T16:39:10Z | 2018-12-29T22:08:10Z | 2018-12-29T22:08:10Z | 2018-12-29T22:10:55Z |
BUG: Fix+test timezone-preservation in DTA.repeat | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index affef80571fce..a84fd118061bc 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1367,6 +1367,7 @@ Datetimelike
- Bug in :attr:`Series.dt` where the cache would not update properly after an in-place ... | Also added a whatsnew for #24265. | https://api.github.com/repos/pandas-dev/pandas/pulls/24483 | 2018-12-29T16:11:30Z | 2018-12-30T05:19:20Z | 2018-12-30T05:19:20Z | 2018-12-30T15:05:00Z |
TST: searchsorted returns platform indexers | diff --git a/pandas/tests/arrays/test_datetimelike.py b/pandas/tests/arrays/test_datetimelike.py
index 6bf48aad96f07..89369c19cf05d 100644
--- a/pandas/tests/arrays/test_datetimelike.py
+++ b/pandas/tests/arrays/test_datetimelike.py
@@ -170,11 +170,11 @@ def test_searchsorted(self):
# own-type
resul... | https://travis-ci.org/MacPython/pandas-wheels/jobs/473227812
| https://api.github.com/repos/pandas-dev/pandas/pulls/24482 | 2018-12-29T14:37:36Z | 2018-12-29T15:32:44Z | 2018-12-29T15:32:44Z | 2018-12-29T15:37:07Z |
TST: don't skip test_datapath_missing if not --strict-data-files | diff --git a/pandas/conftest.py b/pandas/conftest.py
index 5aa644bb942f8..f383fb32810e7 100644
--- a/pandas/conftest.py
+++ b/pandas/conftest.py
@@ -275,7 +275,12 @@ def join_type(request):
@pytest.fixture
-def datapath(request):
+def strict_data_files(pytestconfig):
+ return pytestconfig.getoption("--strict-da... | don't skip test_datapath_missing if not --strict-data-files | https://api.github.com/repos/pandas-dev/pandas/pulls/24481 | 2018-12-29T14:16:15Z | 2018-12-29T15:06:49Z | 2018-12-29T15:06:49Z | 2018-12-29T15:11:01Z |
TST- Fixing issue with test_parquet test unexpectedly passing | diff --git a/ci/deps/azure-macos-35.yaml b/ci/deps/azure-macos-35.yaml
index 7a0c3b81ac8f9..b6dc2b3c27e8d 100644
--- a/ci/deps/azure-macos-35.yaml
+++ b/ci/deps/azure-macos-35.yaml
@@ -13,6 +13,8 @@ dependencies:
- numexpr
- numpy=1.12.0
- openpyxl=2.5.5
+ - pyarrow
+ - fastparquet
- pytables
- python=... | - [x] closes #24479
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This pr aims to make the failing test_parquet not strict since it now passes at least on my machine of Mac 10.14 running the latest python 3.7 and conda. | https://api.github.com/repos/pandas-dev/pandas/pulls/24480 | 2018-12-29T06:56:01Z | 2018-12-30T16:54:17Z | 2018-12-30T16:54:17Z | 2018-12-31T00:16:56Z |
dtype validation from 24024 | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 6c73f0ec16c15..77d6808b8f630 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -1570,6 +1570,8 @@ def sequence_to_dt64ns(data, dtype=None, copy=False,
inferred_freq = None
+ dtype = _vali... | Fix tests in tests_datetimelike that are passing incorrect `freq`s
Implements some but not all of the dtype-validation tests in #24024; retains extant error messages instead of those raises in 24024.
Some stream-lining could be done if we change the behavior of `validate_tz_from_dtype`, which includes:
```
... | https://api.github.com/repos/pandas-dev/pandas/pulls/24478 | 2018-12-29T03:52:43Z | 2018-12-29T16:44:27Z | 2018-12-29T16:44:27Z | 2018-12-29T16:49:09Z |
Datetimelike __setitem__ | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index df2b5977bbe7c..a6f603d16affe 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -478,6 +478,56 @@ def __getitem__(self, key):
return self._simple_new(result, **attribs)
+ d... | Split from #24024.
This is mostly just a move from PeriodArray to DatetimelikeArray, with period-specific things replaced with `_check_compatible_with`, `_unbox_scalar`, etc.
This is under-tested at the moment, just the basics are actually hit. But I think this is OK for two reasons
1. I'll immediately rebase ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24477 | 2018-12-29T02:40:29Z | 2018-12-29T14:04:18Z | 2018-12-29T14:04:18Z | 2019-01-02T20:18:01Z |
REF: Stop mixing DTA/TDA into DTI/TDI | diff --git a/pandas/core/arrays/datetimes.py b/pandas/core/arrays/datetimes.py
index 6c73f0ec16c15..eb878a9071d55 100644
--- a/pandas/core/arrays/datetimes.py
+++ b/pandas/core/arrays/datetimes.py
@@ -131,7 +131,13 @@ def wrapper(self, other):
return ops.invalid_comparison(self, other, op)
... | part of the #24024 process
along the way fixes+tests `DTA.__eq__(ndarray[object])` bug | https://api.github.com/repos/pandas-dev/pandas/pulls/24476 | 2018-12-29T01:09:54Z | 2018-12-29T20:18:37Z | 2018-12-29T20:18:37Z | 2019-01-02T14:54:00Z |
DOC: Use top-level pd.IntervalArray in doc examples | diff --git a/pandas/core/arrays/interval.py b/pandas/core/arrays/interval.py
index 27e89406ec2d6..0e3c59120415d 100644
--- a/pandas/core/arrays/interval.py
+++ b/pandas/core/arrays/interval.py
@@ -30,10 +30,8 @@
_VALID_CLOSED = {'left', 'right', 'both', 'neither'}
_interval_shared_docs = {}
-# TODO(jschendel) remov... | Follow-up to #23581
Minor changes to make sure `pd.IntervalArray` is used in the doc examples instead of `pd.core.arrays.IntervalArray`. Pretty sure this is all the instances of them; I tried to be diligent in marking these with a TODO, and can't find any additional examples via a quick search. | https://api.github.com/repos/pandas-dev/pandas/pulls/24475 | 2018-12-28T23:24:39Z | 2018-12-29T01:11:21Z | 2018-12-29T01:11:21Z | 2018-12-29T01:11:25Z |
DOC: Fixed reference | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 84b81e29cb8a8..456578ea17f8a 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -437,7 +437,7 @@ def values(self):
.. warning::
We recommend using :attr:`Series.array` or
- :Series:`Index.to_numpy`, dependin... | [ci skip] | https://api.github.com/repos/pandas-dev/pandas/pulls/24470 | 2018-12-28T20:21:50Z | 2018-12-28T20:29:30Z | 2018-12-28T20:29:30Z | 2019-01-02T20:17:59Z |
Bug : Fixes #20911 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 0b0ba7aab49aa..3f1c2343d8130 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1412,6 +1412,7 @@ Conversion
- Bug in :meth:`DataFrame.combine_first` in which column types were unexpectedly conver... | - [x] closes #20911
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
**Before**
```python
In [1]: import pandas as pd
In [2]: df1 = pd.DataFrame([[1., 0.], [3., 0.]], columns... | https://api.github.com/repos/pandas-dev/pandas/pulls/24467 | 2018-12-28T13:54:16Z | 2018-12-28T23:35:54Z | 2018-12-28T23:35:53Z | 2019-01-03T18:16:23Z |
Implement Delegate parts of #24024 | diff --git a/pandas/core/indexes/accessors.py b/pandas/core/indexes/accessors.py
index 791ef8223de98..842fcd0680467 100644
--- a/pandas/core/indexes/accessors.py
+++ b/pandas/core/indexes/accessors.py
@@ -11,9 +11,11 @@
from pandas.core.accessor import PandasDelegate, delegate_names
from pandas.core.algorithms impo... | This one got a little bit messy because until we move all the way away from inheritance there are some methods that need to be overwritten, so the `@delegate_names` calls are a bit more verbose than in #24024. | https://api.github.com/repos/pandas-dev/pandas/pulls/24463 | 2018-12-28T02:45:56Z | 2018-12-28T14:15:52Z | 2018-12-28T14:15:52Z | 2018-12-28T15:56:46Z |
DOC: Splitting api.rst in several files | diff --git a/.gitignore b/.gitignore
index f912fedb199c0..4598714db6c6a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -101,6 +101,7 @@ asv_bench/pandas/
# Documentation generated files #
#################################
doc/source/generated
+doc/source/api/generated
doc/source/_static
doc/source/vbench
doc/source/... | - [X] closes #24451
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
@TomAugspurger do you know why moving the api `autosummary` to a directory, make the build not find the generated files? For what I understand, the `:toctree: generated/` is use... | https://api.github.com/repos/pandas-dev/pandas/pulls/24462 | 2018-12-28T01:42:15Z | 2018-12-30T19:37:54Z | 2018-12-30T19:37:54Z | 2018-12-30T19:37:54Z |
searchsorted, repeat broken off from #24024 | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 2acb08b696506..df2b5977bbe7c 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -12,6 +12,7 @@
from pandas._libs.tslibs.timestamps import (
RoundTo, maybe_integer_op_deprecated, roun... | Along with fixes for check_compatible_with discussed in #24024, and additional tests for `searchsorted` and `_check_compatible_with`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24461 | 2018-12-28T01:38:18Z | 2018-12-28T22:59:33Z | 2018-12-28T22:59:33Z | 2018-12-28T23:27:38Z |
CI: Moving 3 jobs from travis to azure | diff --git a/.travis.yml b/.travis.yml
index da17aaa1ad804..899286ce99290 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,14 +36,6 @@ matrix:
env:
- JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="not slow and not network"
- - dist: trusty
- env:
- - JOB="2.7, locale, slow, old N... | We currently have 8 jobs in travis, and 7 jobs in azure. But in azure we've got 30 concurrent jobs, and in travis 15, making travis our bottleneck.
Here I move 3 jobs from travis to azure, so we have 10 in travis, and 5 in azure. This should keep things balanced for now, and both CI systems should more or less be sy... | https://api.github.com/repos/pandas-dev/pandas/pulls/24460 | 2018-12-28T01:26:24Z | 2018-12-28T14:34:03Z | 2018-12-28T14:34:03Z | 2018-12-28T14:34:06Z |
DOC: Fixing doc upload (no such remote origin) | diff --git a/ci/build_docs.sh b/ci/build_docs.sh
index fbb27286e9566..bf22f0764144c 100755
--- a/ci/build_docs.sh
+++ b/ci/build_docs.sh
@@ -45,7 +45,6 @@ if [ "$DOC" ]; then
git add --all .
git commit -m "Version" --allow-empty
- git remote remove origin
git remote add origin "https... | - [X] closes #24455
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Didn't test it locally, as it's quite complicated (besides needing a token, the script changes the global git config).
But I think this should fix the problem. Seems like the... | https://api.github.com/repos/pandas-dev/pandas/pulls/24459 | 2018-12-28T00:24:48Z | 2018-12-28T00:29:03Z | 2018-12-28T00:29:03Z | 2018-12-28T01:56:42Z |
BUG: clip doesn't preserve dtype by column | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d8a204abcd93e..1eae6d43677f1 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1405,6 +1405,7 @@ Conversion
^^^^^^^^^^
- Bug in :meth:`DataFrame.combine_first` in which column types were unexpec... | - [x] closes #24162
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
```python3
>>> import pandas as pd
>>> data = pd.DataFrame([[1, 2], [3, 4]], columns=['int1', 'int2'])
>>> data.clip_upper(1)
__main__:1: FutureWarning: clip_upper(threshold... | https://api.github.com/repos/pandas-dev/pandas/pulls/24458 | 2018-12-28T00:09:06Z | 2018-12-28T19:03:31Z | 2018-12-28T19:03:31Z | 2018-12-28T21:50:07Z |
DOC: Correct import location for extension classes | diff --git a/doc/source/extending.rst b/doc/source/extending.rst
index 35d0dab7c3a77..3cb7e1ae019e1 100644
--- a/doc/source/extending.rst
+++ b/doc/source/extending.rst
@@ -162,7 +162,7 @@ your ``MyExtensionArray`` class, as follows:
.. code-block:: python
- from pandas.core.arrays import ExtensionArray, Extens... | Minor correction of import location for ``ExtensionArray`` and ``ExtensionScalarOpsMixin``.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24456 | 2018-12-27T22:55:46Z | 2018-12-27T23:39:28Z | 2018-12-27T23:39:28Z | 2018-12-27T23:52:00Z |
CLN: replace %s syntax with .format in pandas.io | diff --git a/pandas/io/packers.py b/pandas/io/packers.py
index b83eab7d0eba0..efe4e3a91c69c 100644
--- a/pandas/io/packers.py
+++ b/pandas/io/packers.py
@@ -519,7 +519,8 @@ def encode(obj):
elif isinstance(obj, date):
return {u'typ': u'date',
u'data': u(obj.isoformat())}
- ... | progress towards #16130
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` | https://api.github.com/repos/pandas-dev/pandas/pulls/24454 | 2018-12-27T21:36:50Z | 2019-01-11T02:58:12Z | null | 2019-01-11T02:58:26Z |
DOC: Fix minor typo in whatsnew | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index df6c131489726..d8a204abcd93e 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -371,7 +371,7 @@ Other Enhancements
- :meth:`read_excel()` now accepts ``usecols`` as a list of column names or callabl... | Small fix for the `DataFrame.between_time` entry | https://api.github.com/repos/pandas-dev/pandas/pulls/24453 | 2018-12-27T16:19:30Z | 2018-12-27T16:49:34Z | 2018-12-27T16:49:34Z | 2018-12-27T17:15:20Z |
REF/TST: Add more pytest idiom to indexing/multiindex/test_getitem.py | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index 8d3997c878b83..88e96329105dd 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -1,7 +1,7 @@
import numpy as np
import pytest
-f... | - [ n/a] xref #24040
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ n/a] whatsnew entry
in this pass:
- follow-on from #24409 | https://api.github.com/repos/pandas-dev/pandas/pulls/24452 | 2018-12-27T14:33:38Z | 2018-12-28T13:59:48Z | 2018-12-28T13:59:48Z | 2018-12-28T15:21:38Z |
TST: Making explicit when we run the db tests | diff --git a/.travis.yml b/.travis.yml
index 899286ce99290..42ca4116fce6f 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,7 +34,7 @@ matrix:
include:
- dist: trusty
env:
- - JOB="3.7" ENV_FILE="ci/deps/travis-37.yaml" PATTERN="not slow and not network"
+ - JOB="3.7" ENV_FILE="ci/deps/tr... | - [X] closes #23928
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24450 | 2018-12-27T01:08:59Z | 2018-12-29T02:11:03Z | 2018-12-29T02:11:03Z | 2018-12-29T02:11:11Z |
CI: Moving CircleCI build to Travis | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index 6b516b21722ac..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-version: 2
-jobs:
- build:
- docker:
- - image: continuumio/miniconda:latest
- # databases configuration
- - image: circleci/... | - [X] xref #23821
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Moving the CircleCI job to Travis. In a separate PR, I'll some jobs not using mysql and postgres to Azure, to balance things, and make the whole CI finish earlier. | https://api.github.com/repos/pandas-dev/pandas/pulls/24449 | 2018-12-27T00:37:44Z | 2018-12-27T23:35:15Z | 2018-12-27T23:35:15Z | 2018-12-27T23:35:22Z |
DOC: Adding links to offset classes in timeseries.rst | diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst
index 349827f1e8807..59e8fa58fd9cf 100644
--- a/doc/source/timeseries.rst
+++ b/doc/source/timeseries.rst
@@ -855,40 +855,40 @@ into ``freq`` keyword arguments. The available date offsets and associated frequ
:header: "Date Offset", "Frequency Stri... | Making the names of the offset classes in the `timseries.rst` table, links to the class pages.
xref #24446
| https://api.github.com/repos/pandas-dev/pandas/pulls/24448 | 2018-12-26T23:56:17Z | 2018-12-27T16:46:43Z | 2018-12-27T16:46:43Z | 2018-12-27T16:46:48Z |
API: Simplify repeat signature | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index ef80c42c59ccb..739c8174c7d87 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -605,12 +605,9 @@ def factorize(self, na_sentinel=-1):
The number of repetitions for each element. This should be a
... | - [X] closes #24413
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Doesn't seem like a whatsnew entry is needed here as the behavior from a user perspective should remain the same.
cc @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/24447 | 2018-12-26T23:04:46Z | 2018-12-27T00:06:16Z | 2018-12-27T00:06:16Z | 2018-12-27T01:12:45Z |
DOC: Adding offsets to API ref | diff --git a/doc/source/api.rst b/doc/source/api.rst
index d80c73d4a7c1c..44a7d6f408030 100644
--- a/doc/source/api.rst
+++ b/doc/source/api.rst
@@ -2139,54 +2139,1370 @@ Date Offsets
.. currentmodule:: pandas.tseries.offsets
+DateOffset
+~~~~~~~~~~
+.. autosummary::
+ :toctree: generated/
+
+ DateOffset
+
+P... | - [x] closes #24436
Adding Date Offsets API documentation. Added in the same format as other sections. Detected what are properties and what are methods with the `callable` function. The order of the classes is the one already used. The order inside properties and methods is alphabetical.
@jreback In `timeseries.... | https://api.github.com/repos/pandas-dev/pandas/pulls/24446 | 2018-12-26T22:51:12Z | 2018-12-27T16:46:28Z | 2018-12-27T16:46:28Z | 2018-12-27T16:46:29Z |
DOC: Add dateutil to intersphinx #24437 | diff --git a/doc/source/conf.py b/doc/source/conf.py
index 2d1369499dfda..8e5daf079390a 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -368,13 +368,14 @@
intersphinx_mapping = {
- 'statsmodels': ('http://www.statsmodels.org/devel/', None),
+ 'dateutil': ("https://dateutil.readthedocs.io/en/lates... | - [x] closes #24437
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24443 | 2018-12-26T21:19:41Z | 2018-12-27T16:47:24Z | 2018-12-27T16:47:24Z | 2018-12-27T17:09:14Z |
DOC: Adding cookbook data file, to avoid doc error | diff --git a/doc/data/binary.dat b/doc/data/binary.dat
new file mode 100644
index 0000000000000..e71dcd1e690c3
Binary files /dev/null and b/doc/data/binary.dat differ
diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst
index 1b2e856e979a8..85cdb4a639349 100644
--- a/doc/source/cookbook.rst
+++ b/doc/source/c... | The cookbook shows an example of a file generated from a C program, that then is opened with pandas (numpy). The file doesn't exist, and the example can't run.
Adding the file (generated with the cookbook code shown in the example), and updating the path, so it's loaded form the right location.
https://pandas-doc... | https://api.github.com/repos/pandas-dev/pandas/pulls/24442 | 2018-12-26T20:44:04Z | 2018-12-26T21:16:18Z | null | 2018-12-27T02:48:51Z |
BUG: to_datetime(Timestamp, utc=True) localizes to UTC | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index d12d929470be5..df6c131489726 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1368,6 +1368,7 @@ Timezones
- Bug in :meth:`DatetimeIndex.tz_localize` and :meth:`Timestamp.tz_localize` with ``dateut... | - [x] closes #24415
- [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/24441 | 2018-12-26T20:20:37Z | 2018-12-26T23:51:56Z | 2018-12-26T23:51:56Z | 2018-12-26T23:54:03Z |
DOC: Fixing more doc warnings | diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst
index 1ed365d09152b..e681cb59f627f 100644
--- a/doc/source/advanced.rst
+++ b/doc/source/advanced.rst
@@ -778,12 +778,12 @@ a ``Categorical`` will return a ``CategoricalIndex``, indexed according to the c
of the **passed** ``Categorical`` dtype. This allow... | Follow up of #24430 and #24431. Addressing more doc warnings.
Also, forcing the docs Python code to be executed with the current directory `doc/`, so no matter where the actual current directory, operations like `pd.read_csv('data/baseball.csv')` always work. | https://api.github.com/repos/pandas-dev/pandas/pulls/24438 | 2018-12-26T18:58:35Z | 2018-12-27T00:19:43Z | 2018-12-27T00:19:43Z | 2019-01-04T16:09:46Z |
BUG: Pandas any() returning false with true values present (GH #23070) | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index affef80571fce..8568230dd07b8 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1412,6 +1412,7 @@ Timezones
- Bug in :class:`Timestamp` constructor where a ``dateutil.tz.tzutc`` timezone passed with... | - closes #23070
- 1 test added
- passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24434 | 2018-12-26T15:01:08Z | 2018-12-30T18:43:03Z | 2018-12-30T18:43:03Z | 2018-12-30T18:43:08Z |
DOC: Fixing more doc warnings | diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst
index c39227e67ffe8..be25d7b238a74 100644
--- a/doc/source/tutorials.rst
+++ b/doc/source/tutorials.rst
@@ -33,7 +33,7 @@ repository <http://github.com/jvns/pandas-cookbook>`_.
Learn Pandas by Hernan Rojas
----------------------------
-A set of lesson... | Follow up of #24430. Fixing some more doc warnings. | https://api.github.com/repos/pandas-dev/pandas/pulls/24431 | 2018-12-26T01:49:51Z | 2018-12-26T16:04:29Z | 2018-12-26T16:04:29Z | 2018-12-26T16:04:33Z |
DOC: Fixing several doc warnings | diff --git a/doc/source/basics.rst b/doc/source/basics.rst
index 0f6b5cd0b5e43..91bf96a9e8681 100644
--- a/doc/source/basics.rst
+++ b/doc/source/basics.rst
@@ -374,9 +374,7 @@ To evaluate single-element pandas objects in a boolean context, use the method
>>> df and df2
- These will both raise errors, as y... | Minor fixes to the docs that were causing warnings in the build.
| https://api.github.com/repos/pandas-dev/pandas/pulls/24430 | 2018-12-26T01:13:42Z | 2018-12-26T02:10:30Z | 2018-12-26T02:10:30Z | 2018-12-26T02:10:30Z |
WIP: ensure names are pinned correctly | diff --git a/pandas/core/arrays/sparse.py b/pandas/core/arrays/sparse.py
index 6114e578dc90f..0bea62cc08939 100644
--- a/pandas/core/arrays/sparse.py
+++ b/pandas/core/arrays/sparse.py
@@ -1706,12 +1706,11 @@ def sparse_arithmetic_method(self, other):
@classmethod
def _create_comparison_method(cls, op):
- ... | Discussed in #24397, this defines a metaclass for PandasObject that does two things:
- at class-definition, iterate over all the methods in the class namespace and assert that the method's `__name__` matches the namespace name.
- define comparisons on the _classes_ so we can simplify the `NotImplemented` checks to ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24429 | 2018-12-26T00:21:06Z | 2019-02-02T20:41:57Z | null | 2019-09-17T18:58:05Z |
DOC: Doc build for a single doc made much faster, and clean up | diff --git a/doc/make.py b/doc/make.py
index b3ea2b7a6f5fe..21ebd7303b50d 100755
--- a/doc/make.py
+++ b/doc/make.py
@@ -15,11 +15,9 @@
import sys
import os
import shutil
-# import subprocess
+import subprocess
import argparse
-from contextlib import contextmanager
import webbrowser
-import jinja2
DOC_PATH = ... | The main goal of this PR is to be able to build single pages faster and without building anything else, so detecting and fixing the warnings (and other problems) in doc pages should be much more efficient.
Additionally, those things have been addressed:
- Addressing technical debt in the doc build
- Moved stuff (l... | https://api.github.com/repos/pandas-dev/pandas/pulls/24428 | 2018-12-26T00:00:54Z | 2018-12-30T12:46:38Z | 2018-12-30T12:46:38Z | 2018-12-30T19:45:17Z |
DOC: Removing old release.rst | diff --git a/doc/source/release.rst b/doc/source/release.rst
deleted file mode 100644
index abbba9d6ff8ec..0000000000000
--- a/doc/source/release.rst
+++ /dev/null
@@ -1,6357 +0,0 @@
-.. _release:
-
-{{ header }}
-
-*************
-Release Notes
-*************
-
-This is the list of changes to pandas between each releas... | In #21599 we refactored the whatsnew and release pages. The old `release.rst` was substituted by a `releases.rst`. But wasn't removed, even if it's not rendered by sphinx or linked anywhere.
Deleting the old unused `release.rst` here, which causes several warning because of duplicate labels.
CC: @TomAugspurger | https://api.github.com/repos/pandas-dev/pandas/pulls/24427 | 2018-12-25T22:14:57Z | 2018-12-26T12:48:31Z | 2018-12-26T12:48:31Z | 2018-12-26T12:48:32Z |
BUG-24408 Series.dt does not maintain own copy of index | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 1961ca2febb32..2b8cb81b78c4d 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1321,6 +1321,7 @@ Datetimelike
- Bug in :class:`DatetimeIndex` and :class:`TimedeltaIndex` where indexing with ``Ellip... | - [X] closes #24408
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Previously, the `dt` accessor maintains its own copy of the index, so in-place operations would cause the indexes to be out of sync. This PR changes the accessor so it just gets... | https://api.github.com/repos/pandas-dev/pandas/pulls/24426 | 2018-12-25T20:31:19Z | 2018-12-26T02:14:21Z | 2018-12-26T02:14:21Z | 2018-12-26T02:14:28Z |
Potential bug fixes on shell scripts | diff --git a/.circleci/config.yml b/.circleci/config.yml
deleted file mode 100644
index 6b516b21722ac..0000000000000
--- a/.circleci/config.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-version: 2
-jobs:
- build:
- docker:
- - image: continuumio/miniconda:latest
- # databases configuration
- - image: circleci/... | - Use $(..) instead of legacy `..`.
- Double quote to prevent globbing and word splitting.
- Redirecting `echo` output to `stderr`.
- Checking if `flake8`, `cpplint` and `isort` Python modules are installed.
- Using 'cd ... || exit' or 'cd ... || return' in case cd fails.
- Double quote to prevent globbing and wor... | https://api.github.com/repos/pandas-dev/pandas/pulls/24424 | 2018-12-25T06:27:57Z | 2019-01-11T13:24:56Z | null | 2019-01-11T13:26:47Z |
Decouple xlrd reading from ExcelFile class | diff --git a/pandas/io/excel.py b/pandas/io/excel.py
index c2c9a688f3f0a..9399f36072e5f 100644
--- a/pandas/io/excel.py
+++ b/pandas/io/excel.py
@@ -358,23 +358,16 @@ def read_excel(io,
**kwds)
-class ExcelFile(object):
- """
- Class for parsing tabular excel sheets into DataFrame objects.
- Uses ... | To support community engagement on #11499 I figured it was worth refactoring the existing code for read_excel which very tightly couples xlrd.
There are quite a few ways to go about this but here I am creating a separate private reader class for the xlrd engine which gets dispatched to for parsing and metadata insp... | https://api.github.com/repos/pandas-dev/pandas/pulls/24423 | 2018-12-25T06:17:16Z | 2018-12-28T23:21:03Z | 2018-12-28T23:21:03Z | 2019-03-14T15:23:09Z |
Add ref to docstring of Series:dtype | diff --git a/pandas/core/series.py b/pandas/core/series.py
index 84b81e29cb8a8..1f43e330c186b 100644
--- a/pandas/core/series.py
+++ b/pandas/core/series.py
@@ -130,6 +130,7 @@ class Series(base.IndexOpsMixin, generic.NDFrame):
dtype : str, numpy.dtype, or ExtensionDtype, optional
dtype for the output Ser... | - [x] closes #24325
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
Add ``:ref:`basics.dtypes` `` to the docstring of `dtype` of `pandas.Series`.
@TomAugspurger Should we also add your examples to `basics.dtypes` ?
```python
pd.Series([1, 2], dype=np.dtype("int... | https://api.github.com/repos/pandas-dev/pandas/pulls/24421 | 2018-12-25T02:18:34Z | 2018-12-29T17:03:16Z | 2018-12-29T17:03:16Z | 2019-01-02T20:26:07Z |
DOC: Adding missing module, causing sphinx not to find functions/methods | diff --git a/doc/source/io.rst b/doc/source/io.rst
index 035e8087b416c..9aff1e54d8e98 100644
--- a/doc/source/io.rst
+++ b/doc/source/io.rst
@@ -1,5 +1,8 @@
.. _io:
+.. currentmodule:: pandas
+
+
{{ header }}
.. ipython:: python
| sphinx is generating warnings because we reference API pages that don't exist.
This is because autosummary is processed before the `currentmodule` directive is injected to `{{ header }}`
| https://api.github.com/repos/pandas-dev/pandas/pulls/24420 | 2018-12-25T02:07:47Z | 2018-12-25T17:00:02Z | 2018-12-25T17:00:02Z | 2018-12-25T17:00:04Z |
REF: clearer Categorical/CategoricalIndex construction | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index a47406cded7b4..969add2d3efef 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -316,50 +316,19 @@ class Categorical(ExtensionArray, PandasObject):
def __init__(self, values, categories=N... | Construction ATM of ``Categorical`` and ``CategoricalIndex`` each uses their own ways to construct the dtype. This makes the construction look more complex than it need to.
By collecting the dtype construction in a shared function, a lot of things become more simple. An additional advantage is that we can now have a... | https://api.github.com/repos/pandas-dev/pandas/pulls/24419 | 2018-12-25T00:44:53Z | 2019-01-04T12:14:27Z | 2019-01-04T12:14:27Z | 2019-01-04T12:29:53Z |
TST: move mi tests from tests/indexing/ to tests/indexing/multiindex/ | diff --git a/pandas/tests/indexing/multiindex/test_chaining_and_caching.py b/pandas/tests/indexing/multiindex/test_chaining_and_caching.py
new file mode 100644
index 0000000000000..0ff499155f0c4
--- /dev/null
+++ b/pandas/tests/indexing/multiindex/test_chaining_and_caching.py
@@ -0,0 +1,65 @@
+import numpy as np
+impor... | - [ n/a] xref #23912
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ n/a] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24417 | 2018-12-24T22:24:24Z | 2018-12-25T23:36:02Z | 2018-12-25T23:36:01Z | 2018-12-27T20:44:49Z |
REF/TST: Add more pytest idiom to resample/test_datetime_index.py | diff --git a/pandas/tests/resample/conftest.py b/pandas/tests/resample/conftest.py
index b84f88da85cc0..d0f78f6d5b439 100644
--- a/pandas/tests/resample/conftest.py
+++ b/pandas/tests/resample/conftest.py
@@ -57,53 +57,85 @@ def _simple_period_range_series(start, end, freq='D'):
@pytest.fixture
def _index_start():
... | - [ n/a] xref #17806
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ n/a] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24414 | 2018-12-24T16:49:10Z | 2018-12-28T14:27:23Z | 2018-12-28T14:27:23Z | 2018-12-28T15:24:26Z |
BUG: Fix groupby observed=True when aggregating a column | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 7d39dd27f716f..b531486162ee4 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1567,6 +1567,7 @@ Groupby/Resample/Rolling
- Bug in :meth:`pandas.core.groupby.GroupBy.rank` with ``method='dense'`` a... | - [x] closes #23970
- [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/24412 | 2018-12-24T16:17:19Z | 2018-12-31T13:25:06Z | 2018-12-31T13:25:06Z | 2018-12-31T13:25:09Z |
Bug 23970 | diff --git a/.circleci/config.yml b/.circleci/config.yml
index 6e789d0aafdb4..6b516b21722ac 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -26,7 +26,13 @@ jobs:
name: build
command: |
./ci/circle/install_circle.sh
- ./ci/circle/show_circle.sh
+ e... | - [ ] closes #23970
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| https://api.github.com/repos/pandas-dev/pandas/pulls/24411 | 2018-12-24T15:04:09Z | 2018-12-24T15:17:18Z | null | 2018-12-24T16:16:29Z |
CI: Fixes to the patterns code checks | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 1e4e43ac03815..f0567d76659b6 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -43,6 +43,7 @@ jobs:
ci/incremental/install_miniconda.sh
ci/incremental/setup_conda_environment.sh
displayName: 'Set up environment'
+ condition: ... | Fixing couple of small errors in the CI (detected in https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=5707):
- When the `patterns` (grep unwanted patterns) step fails, the installation of flake8... is cancelled
- When a file has a blank line with whitespaces, the reported error is not clear
| https://api.github.com/repos/pandas-dev/pandas/pulls/24410 | 2018-12-24T12:49:48Z | 2018-12-24T18:25:07Z | 2018-12-24T18:25:07Z | 2018-12-24T18:25:10Z |
REF/TST: Add more pytest idiom to indexing/multiindex/test_getitem.py | diff --git a/pandas/tests/indexing/multiindex/test_getitem.py b/pandas/tests/indexing/multiindex/test_getitem.py
index 1013bb3e90149..6354757de9bb5 100644
--- a/pandas/tests/indexing/multiindex/test_getitem.py
+++ b/pandas/tests/indexing/multiindex/test_getitem.py
@@ -4,8 +4,9 @@
from pandas.compat import lrange, rang... | - [ n/a] xref #24040
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ n/a] whatsnew entry
in this pass:
- follow-on from #24053 | https://api.github.com/repos/pandas-dev/pandas/pulls/24409 | 2018-12-24T11:16:51Z | 2018-12-24T19:25:15Z | 2018-12-24T19:25:15Z | 2018-12-24T21:57:29Z |
BUG: to_datetime ignores argument combinations | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index a2abda019812a..1bc1a28ef0fe9 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1318,6 +1318,7 @@ Datetimelike
- Bug in :class:`DatetimeIndex` where constructing a :class:`DatetimeIndex` from a :cla... | - [x] closes #23760
- [x] closes #23758
- [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/24407 | 2018-12-24T08:07:36Z | 2018-12-24T19:49:36Z | 2018-12-24T19:49:35Z | 2018-12-24T19:50:25Z |
implement astype portion of #24024 | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 16f327a9006da..b2e52bbb3cb8f 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1328,6 +1328,7 @@ Datetimelike
- Bug in :func:`to_datetime` where ``box`` and ``utc`` arguments were ignored when pass... | and accompanying tests
Uses _eadata like #24394
Constitutes ~10% of the diff of #24024, more after that gets rebased. | https://api.github.com/repos/pandas-dev/pandas/pulls/24405 | 2018-12-24T02:58:27Z | 2018-12-28T20:31:28Z | 2018-12-28T20:31:28Z | 2020-04-05T17:43:34Z |
CLN: minor cleaning of Categorical.__init__ | diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py
index 6ccb8dc5d2725..ead8979fa2a91 100644
--- a/pandas/core/arrays/categorical.py
+++ b/pandas/core/arrays/categorical.py
@@ -341,9 +341,6 @@ def __init__(self, values, categories=None, ordered=None, dtype=None,
elif categor... | At a certain point in the Categorical init, we should for clarity only use ``dtype`` and not intermix ``categories`` or ``ordered``.
This small PR does that. | https://api.github.com/repos/pandas-dev/pandas/pulls/24402 | 2018-12-23T09:31:44Z | 2018-12-24T18:52:43Z | 2018-12-24T18:52:43Z | 2018-12-24T23:14:15Z |
CLN: tslibs imports and unused variables | diff --git a/pandas/_libs/tslib.pyx b/pandas/_libs/tslib.pyx
index efabc5ad0b1ba..3f2b49d141e18 100644
--- a/pandas/_libs/tslib.pyx
+++ b/pandas/_libs/tslib.pyx
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
import cython
-from cython import Py_ssize_t
from cpython.datetime cimport (PyDateTime_Check, PyDate_Check,
... | - [x] tests added / passed
- Remove unused imports, mostly `Py_ssize_t`, and variables
- Remove a block that is not hit after the `DatetimeIndex.normalize` performance upgrades https://github.com/pandas-dev/pandas/pull/23634
| https://api.github.com/repos/pandas-dev/pandas/pulls/24401 | 2018-12-23T05:20:27Z | 2018-12-23T15:27:57Z | 2018-12-23T15:27:57Z | 2018-12-23T19:55:15Z |
CLN: Add cdef types to timezones.pyx | diff --git a/pandas/_libs/tslibs/timezones.pxd b/pandas/_libs/tslibs/timezones.pxd
index 50c4a41f97a82..6bd8f5cf84025 100644
--- a/pandas/_libs/tslibs/timezones.pxd
+++ b/pandas/_libs/tslibs/timezones.pxd
@@ -13,4 +13,4 @@ cpdef object maybe_get_tz(object tz)
cdef get_utcoffset(tzinfo, obj)
cdef bint is_fixed_offset(... | - [ ] tests added / passed
| https://api.github.com/repos/pandas-dev/pandas/pulls/24400 | 2018-12-23T02:31:39Z | 2018-12-23T02:59:05Z | null | 2018-12-23T02:59:10Z |
API: Add dtype parameter to Categorical.from_codes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 4bc50695e1ecd..cf5973921fe8a 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -403,6 +403,7 @@ Other Enhancements
- :meth:`pandas.api.types.is_list_like` has gained a keyword ``allow_sets`` which i... | - [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Added parameter ``dtype`` to ``Categorical.from_codes``. | https://api.github.com/repos/pandas-dev/pandas/pulls/24398 | 2018-12-22T20:55:03Z | 2019-01-08T19:47:18Z | 2019-01-08T19:47:18Z | 2019-11-30T07:55:18Z |
BUG: Assorted DTA/TDA/PI bugfixes | diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst
index 1bc1a28ef0fe9..7615f45a76d90 100644
--- a/doc/source/whatsnew/v0.24.0.rst
+++ b/doc/source/whatsnew/v0.24.0.rst
@@ -1319,6 +1319,7 @@ Datetimelike
- Bug in :class:`DatetimeIndex` and :class:`TimedeltaIndex` where indexing with ``Ellip... | Fixes a problem with tz-aware DatetimeArray.round (ref #24038)
Fixes PI, PA, DTA failing to validate lengths when doing comparisons against length-1 instances (ref #23078)
Pins names to a handful of methods that currently don't have them (working on a separate branch that checks these systematically; these are the lo... | https://api.github.com/repos/pandas-dev/pandas/pulls/24397 | 2018-12-22T17:43:06Z | 2018-12-25T23:34:00Z | 2018-12-25T23:34:00Z | 2018-12-26T00:16:02Z |
CLN: Make repeat method consistent | diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py
index a848dafbb06ef..5311d6b8d9d90 100644
--- a/pandas/core/arrays/base.py
+++ b/pandas/core/arrays/base.py
@@ -12,6 +12,7 @@
from pandas.compat import PY3, set_function_name
from pandas.compat.numpy import function as nv
from pandas.errors import ... | Follow-up to changes made in #24349. Basically trying to make the `repeat` method as consistent as possible across the various implementations within the codebase.
Summary:
- Made the function signature consistent: `repeat(self, repeats, *args, **kwargs)`
- I _think_ this could be restricted to `repeat(self, r... | https://api.github.com/repos/pandas-dev/pandas/pulls/24395 | 2018-12-22T05:30:16Z | 2018-12-23T23:08:19Z | 2018-12-23T23:08:19Z | 2018-12-24T16:46:45Z |
POC: _eadata | diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py
index e3d24bfbed7c3..685ad1101efb9 100644
--- a/pandas/core/indexes/datetimelike.py
+++ b/pandas/core/indexes/datetimelike.py
@@ -39,7 +39,6 @@ class DatetimeIndexOpsMixin(DatetimeLikeArrayMixin):
# override DatetimeLikeArrayM... | With _index_data figured out, it is now feasible to implement the DTA/TDA inheritance->composition changeover independently of all of the rest of #24024. This PR is a proof of concept for what that would look like. The steps would be roughly:
1) Instead of dispatching to `self._data`, we temporarily implement `_ea... | https://api.github.com/repos/pandas-dev/pandas/pulls/24394 | 2018-12-22T02:11:37Z | 2018-12-27T23:39:58Z | 2018-12-27T23:39:58Z | 2018-12-28T12:02:27Z |
TST: Add missing match parameter in test_move | diff --git a/pandas/tests/util/test_move.py b/pandas/tests/util/test_move.py
index c12e2f7a167ad..ef98f2032e6ca 100644
--- a/pandas/tests/util/test_move.py
+++ b/pandas/tests/util/test_move.py
@@ -23,7 +23,7 @@ def test_more_than_one_ref():
b = b"testing"
- with pytest.raises(BadMove) as e:
+ with pytest... | Title is self-explanatory.
xref #23922 | https://api.github.com/repos/pandas-dev/pandas/pulls/24393 | 2018-12-22T00:27:44Z | 2018-12-22T01:05:33Z | 2018-12-22T01:05:33Z | 2018-12-22T03:04:11Z |
Rendering Methods portions of #24024 | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index c01b04991e52b..6b2ed2199703d 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -14,7 +14,7 @@
import pandas.compat as compat
from pandas.errors import (
AbstractMethodError, NullFr... | Uses Substitution for the strftime docstring instead of pinning it below the method.
Changes section titles from "Formatting" to "Rendering Methods" to match other classes.
This is a pre-requisite to another push I'm making to split less-trivial pieces off of #24024, figured it was a decent small-scope to get out... | https://api.github.com/repos/pandas-dev/pandas/pulls/24392 | 2018-12-22T00:22:48Z | 2018-12-23T15:36:41Z | 2018-12-23T15:36:41Z | 2018-12-23T16:39:08Z |
PERF: DataFrame dict constructor with columns | diff --git a/asv_bench/benchmarks/frame_ctor.py b/asv_bench/benchmarks/frame_ctor.py
index dfb6ab5b189b2..bd0522daafbd9 100644
--- a/asv_bench/benchmarks/frame_ctor.py
+++ b/asv_bench/benchmarks/frame_ctor.py
@@ -17,6 +17,7 @@ def setup(self):
frame = DataFrame(np.random.randn(N, K), index=self.index,
... | When passing a dict and `column=` to DataFrame, we previously
passed the dict of {column: array} to the Series constructor. This
eventually hit `construct_1d_object_array_from_listlike`[1]. For
extension arrays, this ends up calling `ExtensionArray.__iter__`,
iterating over the elements of the ExtensionArray, which... | https://api.github.com/repos/pandas-dev/pandas/pulls/24387 | 2018-12-21T19:19:15Z | 2019-06-08T20:15:00Z | null | 2019-06-08T20:15:00Z |
BUG: DataFrame.loc/iloc fails to update object with new dtype GH24269 | diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py
index ab4ad693a462e..43d453153febd 100755
--- a/pandas/core/indexing.py
+++ b/pandas/core/indexing.py
@@ -630,6 +630,17 @@ def can_do_equal_len():
self.obj[item_labels[indexer[info_axis]]] = value
return
+ ... | - [ ] closes #24269
- [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/24383 | 2018-12-21T16:15:51Z | 2019-01-14T00:12:42Z | null | 2019-01-14T00:12:42Z |
implement _index_data parts of #24024 | diff --git a/pandas/_libs/reduction.pyx b/pandas/_libs/reduction.pyx
index 6f892c928805e..a61295f781901 100644
--- a/pandas/_libs/reduction.pyx
+++ b/pandas/_libs/reduction.pyx
@@ -265,7 +265,10 @@ cdef class SeriesBinGrouper:
cached_typ = self.typ(vslider.buf, index=cached_ityp,
... | Besides narrowing down the scope of #24024, I _think_ this might fix the segfaults I had in my old DTA branch, which may make it feasible to hugely simplify the composition changeover.
Aside from removing apparently-unused imports in reduction.pyx, the affected code is copied verbatim from #24024. | https://api.github.com/repos/pandas-dev/pandas/pulls/24379 | 2018-12-21T04:48:20Z | 2018-12-21T14:19:49Z | 2018-12-21T14:19:49Z | 2018-12-21T14:40:13Z |
implement ensure_localized in datetimelikeArrayMixin | diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py
index 6d8e41900ce2d..c01b04991e52b 100644
--- a/pandas/core/arrays/datetimelike.py
+++ b/pandas/core/arrays/datetimelike.py
@@ -1079,6 +1079,41 @@ def _evaluate_compare(self, other, op):
result[mask] = filler
return r... | This method is used by `TimelikeOps._round`, so needs to be implemented on the array mixin before we can move forward on #24064.
@TomAugspurger this places the method in a different location than you did in #24024 and made a small docstring edit, but otherwise should be compatible. | https://api.github.com/repos/pandas-dev/pandas/pulls/24378 | 2018-12-21T03:24:02Z | 2018-12-21T16:31:23Z | 2018-12-21T16:31:23Z | 2020-04-05T17:43:39Z |
REF/TST: Add more pytest idiom to resample/test_base.py | diff --git a/pandas/tests/resample/conftest.py b/pandas/tests/resample/conftest.py
index d5b32891ea1df..b84f88da85cc0 100644
--- a/pandas/tests/resample/conftest.py
+++ b/pandas/tests/resample/conftest.py
@@ -86,10 +86,22 @@ def series(index, _series_name, _static_values):
@pytest.fixture
-def frame(index, _static... | - [ n/a] xref #17806
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ n/a] whatsnew entry
in this pass:
- alternative approach to #24324
- parametrize base class tests individually to avoid changing fixtures
cc @jreback | https://api.github.com/repos/pandas-dev/pandas/pulls/24377 | 2018-12-20T19:33:28Z | 2018-12-23T23:06:01Z | 2018-12-23T23:06:01Z | 2018-12-24T08:46:28Z |
REF/TST: Collect Straggler Arithmetic Tests | diff --git a/pandas/tests/arithmetic/test_datetime64.py b/pandas/tests/arithmetic/test_datetime64.py
index 02e9c212b56ef..c7c487a04b2fd 100644
--- a/pandas/tests/arithmetic/test_datetime64.py
+++ b/pandas/tests/arithmetic/test_datetime64.py
@@ -20,6 +20,8 @@
from pandas._libs.tslibs.conversion import localize_pydateti... | After this AFAICT there are only 5 files left with possibly-misplaced arithmetic tests. Leaving those for another pass since some of them are testing type-specific behavior so will need a careful look.
Moved tests are unchanged except for contextifying pytest.raises where appropriate.
There's a hackathon in Feb ... | https://api.github.com/repos/pandas-dev/pandas/pulls/24376 | 2018-12-20T19:16:16Z | 2018-12-21T16:34:53Z | 2018-12-21T16:34:53Z | 2020-04-05T17:43:09Z |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.