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: TypeError in groupby pct_change when fill_method is None
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 96ea682dd3caf..fb636935f1480 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -869,6 +869,7 @@ Groupby/resample/rolling - Bug in :meth:`DataFrame.groupby` when using axis=1 and having a single level co...
- [x] xref one of two issues in #30463 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30532
2019-12-29T06:11:14Z
2019-12-31T12:46:48Z
2019-12-31T12:46:48Z
2019-12-31T12:58:24Z
CLN: ops cleanups
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fc39b264d1598..cd55ee07dbde9 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5148,7 +5148,7 @@ def reorder_levels(self, order, axis=0): # Arithmetic / combination related def _combine_frame(self, other, func, fill_value=None, le...
try to call construct_result in fewer places, do reindexing in more consistent places, and get fstrings out of the way
https://api.github.com/repos/pandas-dev/pandas/pulls/30530
2019-12-28T21:58:10Z
2019-12-30T13:14:22Z
2019-12-30T13:14:22Z
2019-12-30T16:28:30Z
REF: collect Index setops tests
diff --git a/pandas/tests/indexes/categorical/test_category.py b/pandas/tests/indexes/categorical/test_category.py index 9a5f9e40374a3..306ac84ef1832 100644 --- a/pandas/tests/indexes/categorical/test_category.py +++ b/pandas/tests/indexes/categorical/test_category.py @@ -43,7 +43,7 @@ def test_can_hold_identifiers(sel...
https://api.github.com/repos/pandas-dev/pandas/pulls/30529
2019-12-28T21:52:27Z
2019-12-30T13:15:30Z
2019-12-30T13:15:30Z
2019-12-30T16:23:22Z
CLN: remove kwargs from (DataFrame|Series).fillna
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index fc39b264d1598..fac662337b089 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4014,8 +4014,7 @@ def fillna( inplace=False, limit=None, downcast=None, - **kwargs, - ): + ) -> Optional["DataFrame"]: ...
(DataFrame|Series).fillna have the same parameters as NDFrame.fillna, so the **kwargs is not needed. Also make the return type more specific.
https://api.github.com/repos/pandas-dev/pandas/pulls/30528
2019-12-28T16:30:52Z
2019-12-30T13:16:01Z
2019-12-30T13:16:01Z
2019-12-30T13:24:08Z
BUG: pct_change wrong result when there are duplicated indices
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index a6ba7770dadcc..c1a5c452e1df4 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -765,6 +765,7 @@ Numeric - Bug in :class:`NumericIndex` construction that caused :class:`UInt64Index` to be casted to :clas...
- [x] closes #30463 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30526
2019-12-28T06:53:53Z
2020-01-02T18:09:58Z
2020-01-02T18:09:57Z
2020-01-03T11:41:19Z
WARN: Ignore NumbaPerformanceWarning in test suite
diff --git a/pandas/tests/window/test_numba.py b/pandas/tests/window/test_numba.py index 66e4d4e2e7145..2fbf05f678431 100644 --- a/pandas/tests/window/test_numba.py +++ b/pandas/tests/window/test_numba.py @@ -8,6 +8,8 @@ @td.skip_if_no("numba", "0.46.0") +@pytest.mark.filterwarnings("ignore:\\nThe keyword argument...
Followup to #30151; ignoring `NumbaPerformanceWarning` raised in the test suite when `parallel=True` while the function being tested cannot be parallelized. This behavior is fully intended.
https://api.github.com/repos/pandas-dev/pandas/pulls/30525
2019-12-28T04:30:23Z
2019-12-28T16:46:31Z
2019-12-28T16:46:31Z
2019-12-28T18:27:57Z
TST: tests for preserving views
diff --git a/pandas/tests/arrays/test_numpy.py b/pandas/tests/arrays/test_numpy.py index 7a150c35fea09..8828a013aeea1 100644 --- a/pandas/tests/arrays/test_numpy.py +++ b/pandas/tests/arrays/test_numpy.py @@ -226,3 +226,25 @@ def test_setitem_no_coercion(): arr = PandasArray(np.array([1, 2, 3])) with pytest.r...
- [x] xref #28150 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30523
2019-12-28T00:53:11Z
2019-12-30T13:17:03Z
2019-12-30T13:17:03Z
2019-12-30T16:26:30Z
POC/TST: dynamic xfail
diff --git a/pandas/tests/groupby/test_transform.py b/pandas/tests/groupby/test_transform.py index c46180c1d11cd..dde71ee511526 100644 --- a/pandas/tests/groupby/test_transform.py +++ b/pandas/tests/groupby/test_transform.py @@ -765,9 +765,12 @@ def test_transform_with_non_scalar_group(): ], ) @pytest.mark.param...
Motivation: we have a non-trivial number of places where we do `pytest.xfail` within a test (as opposed to via decorator). This has the downside of always being non-strict, so incorrectly-xfailed tests will never show up as xpassing. This uses a workaround to dynamically add the pytest.mark.xfail marker within the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30521
2019-12-28T00:07:25Z
2019-12-30T13:18:55Z
2019-12-30T13:18:55Z
2019-12-30T16:25:05Z
ENH: add support for reading binary Excel files (#15914)
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 1e27496be3e12..b86c99839f4b2 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -900,6 +900,7 @@ I/O - Bug in :class:`PythonParser` where str and bytes were being mixed when dealing with the decimal fiel...
Hi, this is a quick fix for #15914. After reading the issue I'm not sure if this is meant to be supported though, please let me know! I ran into this issue when trying to pass to `read_excel` a binary file downloaded with `requests` so I think it would make sense to support this natively without the user having t...
https://api.github.com/repos/pandas-dev/pandas/pulls/30519
2019-12-27T22:46:28Z
2020-01-03T11:55:36Z
2020-01-03T11:55:36Z
2020-01-03T11:58:55Z
DEPR: tz-aware Series/DatetimIndex.__array__ returns an object array of Timestamps
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 7948b3bf2fd2f..db1dce083b7ad 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -652,6 +652,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Removed the previously deprecated ...
- [x] closes #24716 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30516
2019-12-27T19:17:05Z
2020-01-03T01:17:46Z
2020-01-03T01:17:45Z
2020-01-03T05:23:39Z
BUG: List indexer on PeriodIndex doesn't coerce strings
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 47f67e9c2a4b3..6eedf9dee5266 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -635,6 +635,7 @@ Indexing - Bug in :meth:`Series.__setitem__` with an :class:`IntervalIndex` and a list-like key of integer...
- [x] closes #11278 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry Description: In single object indexer case, datetime string converted to datetime-like object. Because indexing use ".xs" which is ".get_loc" that...
https://api.github.com/repos/pandas-dev/pandas/pulls/30515
2019-12-27T18:38:13Z
2020-05-03T16:09:15Z
2020-05-03T16:09:14Z
2020-05-03T16:49:49Z
DEPR: Remove Series.compress
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 7948b3bf2fd2f..42ff3a8875cd6 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -646,7 +646,7 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - Changed the default "ordered" argu...
- [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry As noted in https://github.com/pandas-dev/pandas/issues/6581, sounds like we are okay breaking compatibility with `np.compress`
https://api.github.com/repos/pandas-dev/pandas/pulls/30514
2019-12-27T18:17:32Z
2019-12-27T19:28:19Z
2019-12-27T19:28:19Z
2019-12-27T19:28:32Z
BUG: hash_pandas_object fails on array containing tuple #28969
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index a6ba7770dadcc..d5231e63b7e6e 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -912,6 +912,7 @@ Other - Bug in :meth:`Series.diff` where a boolean series would incorrectly raise a ``TypeError`` (:issue:...
- [x] closes #28969 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry ATM this implements a smoke-test that the cases don't raise, but I don't have a canonical answer to test them against. Could hard-code the result I...
https://api.github.com/repos/pandas-dev/pandas/pulls/30508
2019-12-27T04:08:57Z
2019-12-31T13:02:56Z
2019-12-31T13:02:56Z
2019-12-31T16:06:42Z
BUG: pass 2D ndarray and EA-dtype to DataFrame, closes #12513
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 5b052823dfb25..c1c74e046fa3c 100755 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -981,7 +981,8 @@ Other - Fixed ``pow`` operations for :class:`IntegerArray` when the other value is ``0`` or ``1`` (:issue:...
- [x] closes #12513 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30507
2019-12-27T03:28:12Z
2020-01-01T16:28:29Z
2020-01-01T16:28:29Z
2020-01-01T16:31:44Z
TST: fix maybe_promote dt64tz case, 323 xfails
diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 946070f8fad98..fa7b45ec4babd 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -6,6 +6,7 @@ from pandas._libs import lib, tslib, tslibs from pandas._libs.tslibs import NaT, OutOfBoundsDatetime, Period, iNaT +from pa...
about a third of our remaining xfailed tests
https://api.github.com/repos/pandas-dev/pandas/pulls/30506
2019-12-27T03:07:41Z
2019-12-30T13:21:21Z
2019-12-30T13:21:21Z
2019-12-30T16:42:36Z
BUG: DTA/TDA/PA iadd/isub should actually be inplace
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 4671170fa79ae..c6c5562af3951 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -716,7 +716,7 @@ Datetimelike - Bug in :class:`DatetimeIndex` addition when adding a non-optimized :class:`DateOffset` inco...
- [x] closes #24115 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30505
2019-12-27T02:20:50Z
2019-12-27T14:09:57Z
2019-12-27T14:09:57Z
2019-12-27T16:19:07Z
Mark unused parameters in objToJSON
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index 5eaebdff8e23f..389e040866f72 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -396,18 +396,21 @@ static PyObject *get_item(PyObject *obj, Py_ssize_t i) { ...
If compiled with `-Wextra` you get 58 warnings; this brings things down to 2 and I think helps the reader
https://api.github.com/repos/pandas-dev/pandas/pulls/30504
2019-12-27T01:57:44Z
2019-12-27T14:12:00Z
2019-12-27T14:12:00Z
2020-01-16T00:33:25Z
REF/TST: method-specific files for test_append
diff --git a/pandas/tests/frame/methods/test_append.py b/pandas/tests/frame/methods/test_append.py new file mode 100644 index 0000000000000..fac6a9139462f --- /dev/null +++ b/pandas/tests/frame/methods/test_append.py @@ -0,0 +1,179 @@ +import numpy as np +import pytest + +import pandas as pd +from pandas import DataFra...
A couple of cleanups and parametrizations.
https://api.github.com/repos/pandas-dev/pandas/pulls/30503
2019-12-27T01:44:27Z
2019-12-27T14:15:04Z
2019-12-27T14:15:04Z
2019-12-27T16:17:01Z
Replace "foo!r" to "repr(foo)" syntax #29886
diff --git a/pandas/_version.py b/pandas/_version.py index dfed9574c7cb0..66e756a4744c8 100644 --- a/pandas/_version.py +++ b/pandas/_version.py @@ -79,17 +79,17 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False): if e.errno == errno.ENOENT: continue ...
xref #29886 Fixed the remaining files in: Replace "foo!r" to "repr(foo)" syntax #29886
https://api.github.com/repos/pandas-dev/pandas/pulls/30502
2019-12-27T01:35:59Z
2019-12-27T15:29:37Z
2019-12-27T15:29:37Z
2020-01-04T11:48:03Z
BUG: Fixed strange behaviour of pd.DataFrame.drop() with inplace argu…
diff --git a/doc/source/whatsnew/v1.1.0.rst b/doc/source/whatsnew/v1.1.0.rst index 8cb80c7c92f8e..2d1f3cd52d152 100644 --- a/doc/source/whatsnew/v1.1.0.rst +++ b/doc/source/whatsnew/v1.1.0.rst @@ -385,6 +385,7 @@ Reshaping - Bug in :func:`concat` where the resulting indices are not copied when ``copy=True`` (:issue:`2...
closes #30484 - [x] closes #xxxx - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry This is my first PR, so pardon me if I did something wrong. To fix this issue I started by creating a failing test based on the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30501
2019-12-27T01:27:01Z
2020-03-26T12:53:14Z
2020-03-26T12:53:14Z
2020-03-26T12:53:19Z
DOC: Make pyplot import explicit in the 10 minutes to pandas page
diff --git a/doc/source/getting_started/10min.rst b/doc/source/getting_started/10min.rst index 66e500131b316..3055a22129b91 100644 --- a/doc/source/getting_started/10min.rst +++ b/doc/source/getting_started/10min.rst @@ -697,8 +697,9 @@ Plotting See the :ref:`Plotting <visualization>` docs. +We use the standard co...
Beginners don't know what is `plt`, thus it is better to show how to import it explicitly. This is a continuation of https://github.com/pandas-dev/pandas/pull/30274 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `black pandas` - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/30499
2019-12-27T01:19:33Z
2020-01-01T03:18:30Z
2020-01-01T03:18:30Z
2020-01-01T03:18:34Z
BLD: catch missing cython instead of tempita NameError
diff --git a/setup.py b/setup.py index d0b077ea8abe6..af70ee3b30095 100755 --- a/setup.py +++ b/setup.py @@ -504,6 +504,10 @@ def maybe_cythonize(extensions, *args, **kwargs): # See https://github.com/cython/cython/issues/1495 return extensions + elif not cython: + # GH#28836 raise a helfp...
- [x] closes #28836 I named this branch "bld-misc" in the optimistic hope I could close a bunch of BLD issues, but nope, just this one.
https://api.github.com/repos/pandas-dev/pandas/pulls/30498
2019-12-27T01:04:42Z
2019-12-27T14:41:05Z
2019-12-27T14:41:05Z
2019-12-27T16:16:00Z
CLN: OrderedDict -> Dict
diff --git a/pandas/core/arrays/sparse/scipy_sparse.py b/pandas/core/arrays/sparse/scipy_sparse.py index 278ad1027d489..88d63071c360f 100644 --- a/pandas/core/arrays/sparse/scipy_sparse.py +++ b/pandas/core/arrays/sparse/scipy_sparse.py @@ -3,8 +3,6 @@ Currently only includes to_coo helpers. """ -from collections i...
- [x] ref #30469
https://api.github.com/repos/pandas-dev/pandas/pulls/30497
2019-12-27T00:59:18Z
2020-01-02T00:33:07Z
2020-01-02T00:33:07Z
2020-01-02T07:45:43Z
Improve ISO Date Performance for JSON
diff --git a/asv_bench/benchmarks/io/json.py b/asv_bench/benchmarks/io/json.py index 8f037e94e0095..27096bcaba78b 100644 --- a/asv_bench/benchmarks/io/json.py +++ b/asv_bench/benchmarks/io/json.py @@ -132,6 +132,30 @@ def peakmem_to_json_wide(self, orient, frame): df.to_json(self.fname, orient=orient) +cla...
benchmarks below ```sh before after ratio [9c6771c5] [5c0f5682] <master> <json-index-dates> - 231±60ms 188±3ms 0.82 io.json.ToJSON.time_iso_format('split', 'df_td_int_ts') - 496±20ms 218±40ms 0.44 io.json.ToJSON.time_iso_...
https://api.github.com/repos/pandas-dev/pandas/pulls/30496
2019-12-26T21:53:14Z
2020-01-02T01:08:40Z
2020-01-02T01:08:40Z
2020-01-02T01:09:59Z
INT: Implement _set_freq for TDI/DTI
diff --git a/pandas/core/indexes/datetimelike.py b/pandas/core/indexes/datetimelike.py index 3bf6dce00a031..868f0553816d0 100644 --- a/pandas/core/indexes/datetimelike.py +++ b/pandas/core/indexes/datetimelike.py @@ -35,7 +35,7 @@ from pandas.core.indexes.base import Index, _index_shared_docs from pandas.core.tools.t...
- [x] closes #29843 - [ ] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30495
2019-12-26T20:48:34Z
2019-12-27T09:06:27Z
2019-12-27T09:06:26Z
2019-12-27T16:17:38Z
BUG: compound dtype ndarray passed to Series
diff --git a/pandas/core/series.py b/pandas/core/series.py index ff780356104fa..6d818aa1684c4 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -235,6 +235,13 @@ def __init__( copy = False elif isinstance(data, np.ndarray): + if len(data.dtype): + ...
- [x] closes #13296 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30494
2019-12-26T20:03:49Z
2019-12-26T21:19:17Z
2019-12-26T21:19:17Z
2019-12-27T00:32:21Z
DOC: standardize wording for changed default args
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 90b970e374a95..4671170fa79ae 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -548,13 +548,13 @@ or ``matplotlib.Axes.plot``. See :ref:`plotting.formatters` for more. - :meth:`DataFrame.hist` and :meth...
last of the standardizations, a few typo fixups, made sure these all specify both the old and new keywords
https://api.github.com/repos/pandas-dev/pandas/pulls/30493
2019-12-26T20:01:30Z
2019-12-26T21:25:22Z
2019-12-26T21:25:22Z
2019-12-27T00:32:47Z
BUG: The setting xrot=0 in DataFrame.hist() doesn't work with by and subplots #30288
diff --git a/doc/source/whatsnew/v1.0.0.rst b/doc/source/whatsnew/v1.0.0.rst index 852694a51e79d..2b45f8a8f0de2 100644 --- a/doc/source/whatsnew/v1.0.0.rst +++ b/doc/source/whatsnew/v1.0.0.rst @@ -828,6 +828,7 @@ Plotting - :func:`set_option` now validates that the plot backend provided to ``'plotting.backend'`` imple...
- [x] closes #30288 - [x] tests added / passed - [x] passes `black pandas` - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/30491
2019-12-26T19:39:04Z
2019-12-27T16:29:54Z
2019-12-27T16:29:54Z
2019-12-27T16:34:28Z
CLN: Remove have_pytz (gh-17251)
diff --git a/pandas/_libs/index.pyx b/pandas/_libs/index.pyx index 273dc06886088..b71963fdef1c1 100644 --- a/pandas/_libs/index.pyx +++ b/pandas/_libs/index.pyx @@ -32,13 +32,9 @@ cdef extern from "datetime.h": cdef int64_t iNaT = util.get_nat() -try: - from dateutil.tz import tzutc as _du_utc - import pytz ...
- [x] closes #17251 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17266
2017-08-16T17:33:34Z
2017-08-16T20:52:30Z
2017-08-16T20:52:30Z
2017-10-30T16:24:02Z
ENH: improve 'incompatible tolerance' error message in merge_asof
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index 0234a5563326c..412c00dc95ec0 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -126,7 +126,7 @@ def _groupby_and_merge(by, on, left, right, _merge_pieces, try: if k in merged: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17260
2017-08-15T16:52:59Z
2017-11-10T23:27:45Z
2017-11-10T23:27:45Z
2017-11-10T23:27:45Z
TST: pytest deprecation warnings GH17197
diff --git a/appveyor.yml b/appveyor.yml index 684b859c206b2..65e62f887554e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -72,7 +72,7 @@ install: - cmd: conda info -a # create our env - - cmd: conda create -n pandas python=%PYTHON_VERSION% cython pytest pytest-xdist + - cmd: conda create -n pandas python=%P...
Test parameters with marks are updated according to the updated API of Pytest. https://docs.pytest.org/en/latest/changelog.html#pytest-3-2-0-2017-07-30 https://docs.pytest.org/en/latest/parametrize.html - [x] closes #17197 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17253
2017-08-15T06:52:55Z
2017-08-17T22:39:38Z
2017-08-17T22:39:37Z
2017-08-19T23:57:10Z
CLN: replace %s syntax with .format in pandas.core.reshape
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index 20d561738dc78..9e180c624963c 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -220,7 +220,7 @@ def __init__(self, objs, axis=0, join='outer', join_axes=None, if isinstance(objs, (NDFrame, compat.st...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in pandas.core.reshape. Additionally, made some of the existing positional `.format` code more explicit.
https://api.github.com/repos/pandas-dev/pandas/pulls/17252
2017-08-15T02:58:14Z
2017-08-15T18:26:07Z
2017-08-15T18:26:06Z
2017-08-15T18:34:23Z
BUG: Have object dtype for empty Categorical.categories
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index e21ee8d7d31f5..a7996ab76a1ca 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -379,6 +379,9 @@ Numeric Categorical ^^^^^^^^^^^ - Bug in :func:`Series.isin` when called with a categorical (:issue`...
Closes https://github.com/pandas-dev/pandas/issues/17248
https://api.github.com/repos/pandas-dev/pandas/pulls/17249
2017-08-14T17:52:25Z
2017-08-19T11:27:06Z
2017-08-19T11:27:06Z
2017-08-19T11:27:09Z
Fix apparent typo in tests
diff --git a/pandas/tests/indexes/datetimes/test_tools.py b/pandas/tests/indexes/datetimes/test_tools.py index 7ff9c2b23cbfb..9764b65d330af 100644 --- a/pandas/tests/indexes/datetimes/test_tools.py +++ b/pandas/tests/indexes/datetimes/test_tools.py @@ -1112,9 +1112,9 @@ def test_parsers(self): result3 = Timest...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17247
2017-08-14T17:22:38Z
2017-08-14T18:19:38Z
2017-08-14T18:19:38Z
2017-10-30T16:24:01Z
Make pd.Period immutable
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index f760d0b6359a2..604d275511fa0 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -291,6 +291,8 @@ Other API Changes - Moved definition of ``MergeError`` to the ``pandas.errors`` module. - The signatu...
Follows @jreback 's suggestion in #17116 to define `_Period.ordinal` and `_Period.freq` as `def readonly` attributes. This requires massaging `__new__/__init__` a bit. Adds a quick test that these attributes can't be changed. Note that this doesn't fully solve the issue of Periods being immutable because `per.fr...
https://api.github.com/repos/pandas-dev/pandas/pulls/17239
2017-08-13T03:05:09Z
2017-08-24T10:03:19Z
2017-08-24T10:03:18Z
2017-08-24T16:18:22Z
Fix bugs in IntervalIndex.is_non_overlapping_monotonic
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index b8f142700b830..c0512137d9437 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -311,6 +311,8 @@ Conversion - Bug in assignment against datetime-like data with ``int`` may incorrectly convert to date...
- [X] closes #17237 - [X] closes #16560 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry I had to modify one of the existing tests, which used an `IntervalIndex` that was overlapping at endpoints but was assumed to be non-overlapping. The test ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17238
2017-08-12T22:44:26Z
2017-08-15T20:42:40Z
2017-08-15T20:42:40Z
2017-09-09T04:57:20Z
API: Have MultiIndex consturctors always return a MI
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 33b7e128ef8bf..87896778bea14 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -273,6 +273,30 @@ named ``.isna()`` and ``.notna()``, these are included for classes ``Categorical The configuration ...
This removes the special case for MultiIndex constructors returning an Index if all the levels are length-1. Now this will return a MultiIndex with a single level. This is a backwards incompatabile change, with no clear method for deprecation, so we're making a clean break. Old Behavior: ```python In [1]: ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17236
2017-08-12T11:11:23Z
2017-08-30T20:30:54Z
2017-08-30T20:30:54Z
2017-08-30T20:30:57Z
Remove import of pandas as pd in core.window
diff --git a/pandas/core/window.py b/pandas/core/window.py index 5866f1e8a76bd..4bd959f52673c 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -17,7 +17,8 @@ ABCDataFrame, ABCDatetimeIndex, ABCTimedeltaIndex, - ABCPeriodIndex) + ABCPeriodIndex, + ABCDateOffset) from pandas.core...
Do `isinstance` checks against `ABCFoo`. - [ ] closes #xxxx - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17233
2017-08-12T01:25:39Z
2017-08-12T17:30:27Z
2017-08-12T17:30:27Z
2017-08-12T18:26:12Z
TST: Move more frame tests to SharedWithSparse
diff --git a/pandas/tests/frame/test_api.py b/pandas/tests/frame/test_api.py index 8c4c13b66ffa9..53a1b9525a0dd 100644 --- a/pandas/tests/frame/test_api.py +++ b/pandas/tests/frame/test_api.py @@ -28,6 +28,20 @@ class SharedWithSparse(object): + """ + A collection of tests DataFrame and SparseDataFrame can s...
- [ ] closes #xxxx - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Doing as was told in https://github.com/pandas-dev/pandas/pull/17050#issuecomment-317203306.
https://api.github.com/repos/pandas-dev/pandas/pulls/17227
2017-08-11T11:40:33Z
2017-08-12T17:33:04Z
2017-08-12T17:33:04Z
2017-08-12T17:33:07Z
CLN: replace %s syntax with .format in pandas.util
diff --git a/pandas/util/_decorators.py b/pandas/util/_decorators.py index f346995c0a1a4..bb7ffe45c689b 100644 --- a/pandas/util/_decorators.py +++ b/pandas/util/_decorators.py @@ -27,8 +27,9 @@ def deprecate(name, alternative, alt_name=None, klass=None, klass = klass or FutureWarning def wrapper(*args, **k...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in pandas.util. Additionally, made some of the existing positional `.format` code more explicit. Left the `Substitution` class in _decorators.py as-is, since it appears to impact docs...
https://api.github.com/repos/pandas-dev/pandas/pulls/17224
2017-08-11T03:21:21Z
2017-08-11T10:22:47Z
2017-08-11T10:22:47Z
2017-08-11T18:32:49Z
DOC: Add 'See also' sections in type conversion functions
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index bd3297f66a469..5a7f37bba91aa 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3681,6 +3681,9 @@ def astype(self, dtype, copy=True, errors='raise', **kwargs): See also -------- + pandas.to_datetime : Convert...
Minor continuation of #17203 + solving the last paragraph of #15550 (*"Furthermore I think we could update the .astype docs (and the .to_*) ones to cross reference."*).
https://api.github.com/repos/pandas-dev/pandas/pulls/17223
2017-08-11T02:34:21Z
2017-08-11T10:23:34Z
2017-08-11T10:23:33Z
2017-09-11T21:12:03Z
MAINT: Remove extra the's in deprecation messages
diff --git a/pandas/json.py b/pandas/json.py index 0b87aa22394b9..16d6580c87951 100644 --- a/pandas/json.py +++ b/pandas/json.py @@ -3,5 +3,5 @@ import warnings warnings.warn("The pandas.json module is deprecated and will be " "removed in a future version. Please import from " - "the panda...
https://api.github.com/repos/pandas-dev/pandas/pulls/17222
2017-08-11T00:12:53Z
2017-08-11T00:13:03Z
2017-08-11T00:13:03Z
2017-08-21T15:24:49Z
Remove import exception handling
diff --git a/pandas/tests/io/parser/compression.py b/pandas/tests/io/parser/compression.py index 55c0506acb132..797c12139656d 100644 --- a/pandas/tests/io/parser/compression.py +++ b/pandas/tests/io/parser/compression.py @@ -13,10 +13,7 @@ class CompressionTests(object): def test_zip(self): - try: - ...
Imports should succeed on all versions of Python that pandas supports.
https://api.github.com/repos/pandas-dev/pandas/pulls/17218
2017-08-10T18:58:52Z
2017-08-10T20:43:37Z
2017-08-10T20:43:37Z
2017-08-10T21:01:56Z
REF: _get_objs_combined_axis
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 2c82fe4c348d5..467ef52de234e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6126,12 +6126,10 @@ def _list_to_arrays(data, columns, coerce_float=False, dtype=None): def _list_of_series_to_arrays(data, columns, coerce_float=False, dtype...
- [x] tests passed - [x] passes `git diff master -u -- "*.py" | flake8 --diff` As proposed [here](https://github.com/pandas-dev/pandas/pull/17011#discussion_r128045375), with the addition of the ``axis`` argument.
https://api.github.com/repos/pandas-dev/pandas/pulls/17217
2017-08-10T18:27:44Z
2017-08-12T17:33:52Z
2017-08-12T17:33:52Z
2017-08-13T00:44:57Z
FIX: define `DataFrame.items` for all versions of python
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 6008ea5d4cbcd..c5fe89282bf52 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -128,6 +128,10 @@ Other Enhancements - :func:`DataFrame.add_prefix` and :func:`DataFrame.add_suffix` now accept strings...
Closes #13918, #17213 This leaves a slight semantic difference between `dict.items` and `DateFrame.items` in python2, however there is no code currently expecting `DataFrame.items` to return a list and in python3 there is no `dict.iteritems`. This eases writing 'native' python3 code that also runs under python...
https://api.github.com/repos/pandas-dev/pandas/pulls/17214
2017-08-10T15:31:38Z
2017-08-19T21:59:20Z
2017-08-19T21:59:19Z
2017-08-19T22:02:21Z
ENH/PERF: Remove frequency inference from .dt accessor
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index efe713639fec9..b7151ad2eaa99 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -510,3 +510,17 @@ def time_begin_incr_rng(self): def time_begin_decr_rng(self): self.rng - s...
null
https://api.github.com/repos/pandas-dev/pandas/pulls/17210
2017-08-10T03:12:44Z
2017-08-14T10:31:42Z
2017-08-14T10:31:42Z
2017-08-14T11:56:14Z
CLN: replace %s syntax with .format in core.computation
diff --git a/pandas/core/computation/align.py b/pandas/core/computation/align.py index 1c75301082297..691eaebfd5fc1 100644 --- a/pandas/core/computation/align.py +++ b/pandas/core/computation/align.py @@ -98,12 +98,11 @@ def _align_core(terms): ordm = np.log10(max(1, abs(reindexer_size - term_axis_si...
Progress towards #16130 - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Replaced `%s` syntax with `.format` in core.computation. Additionally, made some of the existing positional `.format` code more explicit by modifying things like `'{0}'.format(foo)` to `'{foo}'.format(foo=foo)`. Doesn...
https://api.github.com/repos/pandas-dev/pandas/pulls/17209
2017-08-10T03:00:36Z
2017-08-10T10:26:58Z
2017-08-10T10:26:58Z
2017-08-10T16:29:28Z
Minor touch-ups to GitHub PULL_REQUEST_TEMPLATE
diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index e8b6ee21ad104..4e1e9ce017408 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,4 +1,4 @@ - - [ ] closes #xxxx - - [ ] tests added / passed - - [ ] passes ``git diff upstream/master -u -- "*.py...
Previously, `PULL_REQUEST_TEMPLATE.md` included spaces before each item in the [GitHub task list](https://github.com/blog/1375-task-lists-in-gfm-issues-pulls-comments), which caused the tasks to become nested upon GUI reordering. I made minor changes to other aspects of `PULL_REQUEST_TEMPLATE.md`. I removed the `-u`...
https://api.github.com/repos/pandas-dev/pandas/pulls/17207
2017-08-09T19:17:05Z
2017-08-09T20:19:28Z
2017-08-09T20:19:28Z
2017-08-09T20:24:04Z
Infer compression from non-string paths
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index b8f142700b830..4032a7d22d4a2 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -126,6 +126,7 @@ Other Enhancements - :func:`date_range` now accepts 'Y' in addition to 'A' as an alias for end of year...
Currently, `compression='infer'` only works on paths that are strings. However, pandas supports non-string paths, such as `pathlib.Path` objects. This PR adds support for inferring compression for all path types (for io interfaces that use `io.common._infer_compression`). ## Checklist - [x] passes ``git diff upst...
https://api.github.com/repos/pandas-dev/pandas/pulls/17206
2017-08-09T18:18:27Z
2017-08-15T20:23:44Z
2017-08-15T20:23:44Z
2017-08-21T15:25:33Z
CLN/ASV clean-up frame stat ops benchmarks
diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py index 12fbb2478c2a5..1e1eb167b46bf 100644 --- a/asv_bench/benchmarks/stat_ops.py +++ b/asv_bench/benchmarks/stat_ops.py @@ -1,92 +1,36 @@ from .pandas_vb_common import * -class stat_ops_frame_mean_float_axis_0(object): - goal_time ...
Small clean-up and testing of both with/without bottleneck. Also includes a benchmark for https://github.com/pandas-dev/pandas/pull/16509
https://api.github.com/repos/pandas-dev/pandas/pulls/17205
2017-08-09T12:07:57Z
2017-08-10T10:37:40Z
2017-08-10T10:37:40Z
2017-08-10T10:37:43Z
DOCS: Updated NDFrame.astype docs
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2d52eed81d22b..bd3297f66a469 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3610,8 +3610,7 @@ def blocks(self): mapping={True: 'raise', False: 'ignore'}) def astype(self, dtype, copy=True, errors='raise',...
I've had a couple situations where I've doubted if it's ``ser.astype('category')`` or ``ser.astype('categorical')`` and the doc string doesn't say. I think a few examples could help here + illustrate usage of the method. Also some cleanup of the doc string.
https://api.github.com/repos/pandas-dev/pandas/pulls/17203
2017-08-08T21:57:23Z
2017-08-09T11:24:37Z
2017-08-09T11:24:37Z
2017-08-09T17:52:26Z
COMPAT: reading json with lines=True from s3, xref #17200
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 4c6cdb9846305..84583a8b6af67 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -88,7 +88,7 @@ I/O - :func:`read_parquet` now allows to specify kwargs which are passed to the respective engine (:issu...
Attempt to decode the bytes array with `encoding` passed to the call. - [ ] closes #17200
https://api.github.com/repos/pandas-dev/pandas/pulls/17201
2017-08-08T18:39:45Z
2017-11-27T11:34:57Z
2017-11-27T11:34:57Z
2017-12-11T20:21:52Z
Define Series.plot and Series.hist in class definition
diff --git a/pandas/core/series.py b/pandas/core/series.py index e42ba3908a29a..61508c11cae4b 100644 --- a/pandas/core/series.py +++ b/pandas/core/series.py @@ -76,6 +76,8 @@ from pandas._libs import index as libindex, tslib as libts, lib, iNaT from pandas.core.config import get_option +import pandas.plotting._core...
Avoid fragile circular import between core.series and `plotting._core`, `plotting._tools`, `plotting._converter` Ends the saga of #16913, #16931. In the status quo, the tail end of `core.series` does: ``` import pandas.plotting._core as _gfx # noqa Series.plot = base.AccessorProperty(_gfx.SeriesPlotMethods,...
https://api.github.com/repos/pandas-dev/pandas/pulls/17199
2017-08-08T16:00:54Z
2017-08-08T23:28:43Z
2017-08-08T23:28:43Z
2017-10-30T16:24:28Z
BUG: support pandas objects in iloc with old numpy versions
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 2f61b71d06019..2c6b1c5bc1897 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -278,6 +278,7 @@ Indexing - Fixes bug where indexing with ``np.inf`` caused an ``OverflowError`` to be raised (:issue:`...
- [x] closes #17193 - [x] tests added / passed - [x] passes ``git diff master -u -- "*.py" | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17194
2017-08-07T22:07:19Z
2017-08-08T23:30:09Z
2017-08-08T23:30:09Z
2017-08-18T15:28:27Z
TST: Partial Boolean DataFrame Indexing (#17170)
diff --git a/pandas/tests/indexing/test_indexing.py b/pandas/tests/indexing/test_indexing.py index 3ecd1f3029cad..f1f51f26df55c 100644 --- a/pandas/tests/indexing/test_indexing.py +++ b/pandas/tests/indexing/test_indexing.py @@ -861,6 +861,20 @@ def test_maybe_numeric_slice(self): expected = [1] asser...
- [x] closes #17170 - [x] tests added / passed
https://api.github.com/repos/pandas-dev/pandas/pulls/17186
2017-08-07T04:56:42Z
2017-08-07T18:04:08Z
2017-08-07T18:04:08Z
2017-12-20T02:04:15Z
move pivot_table doc-string to DataFrame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 027a427555253..26de1a9c0b1d3 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4146,6 +4146,92 @@ def pivot(self, index=None, columns=None, values=None): from pandas.core.reshape.reshape import pivot return pivot(self, index...
instead of pinning it on over pin `core.reshape.pivot` At the moment `core.reshape.pivot.pivot_table` is pinned to `DataFrame` by writing `DataFrame.pivot_table = pivot_table`. This PR defines `pivot_table` directly in `DataFrame` and then calls to the function. It's the same pattern already used by `DataFrame.piv...
https://api.github.com/repos/pandas-dev/pandas/pulls/17174
2017-08-04T18:45:32Z
2017-08-11T10:36:14Z
2017-08-11T10:36:14Z
2017-10-30T16:24:24Z
use == to test String equality
diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 0a4426b55b323..09603fd6fdcce 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -10,10 +10,10 @@ def get_engine(engine): """ return our implementation """ - if engine is 'auto': + if engine == 'auto': engine = get_option(...
@jreback quick fix following f4330611ff5ac1cbb4a89c4a7dab3d0900f9e64a (see [lgtm report](https://lgtm.com/projects/g/pydata/pandas/rev/f4330611ff5ac1cbb4a89c4a7dab3d0900f9e64a)) Using `is` instead of `==` might work in simple cases such as this one due to the Python implementation being "efficient" but it checks for...
https://api.github.com/repos/pandas-dev/pandas/pulls/17171
2017-08-04T11:20:41Z
2017-08-07T10:46:07Z
2017-08-07T10:46:07Z
2017-08-07T10:46:09Z
Remove unused get methods that would raise AttributeError if called
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 37fc1c01061ec..e62f88f47897c 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -323,10 +323,6 @@ def reindex_axis(self, indexer, method=None, axis=1, fill_value=None, fill_value=fill_value, m...
- [x] closes #17159 - [ ] tests added / passed - [x] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17169
2017-08-04T07:13:48Z
2017-08-07T13:10:37Z
2017-08-07T13:10:37Z
2017-08-07T22:53:03Z
Add chunksize param to read_json when lines=True
diff --git a/asv_bench/benchmarks/io_bench.py b/asv_bench/benchmarks/io_bench.py index 52064d2cdb8a2..93273955a29b9 100644 --- a/asv_bench/benchmarks/io_bench.py +++ b/asv_bench/benchmarks/io_bench.py @@ -1,3 +1,4 @@ +import os from .pandas_vb_common import * from pandas import concat, Timestamp, compat try: @@ -192...
Previous behavior: reading the whole file to memory and then split into lines. New behavior: if `lines=True` and `chunksize` is passed: read in `chunksize` lines at a time, and concat. This only covers some kinds of input to `read_json`. When `chunksize` is passed, `read_json` becomes slower but more memory-effici...
https://api.github.com/repos/pandas-dev/pandas/pulls/17168
2017-08-03T21:20:14Z
2017-09-28T23:42:02Z
2017-09-28T23:42:02Z
2017-09-29T05:06:55Z
Implement _make_accessor classmethod for PandasDelegate
diff --git a/pandas/core/base.py b/pandas/core/base.py index eb785b18bd02b..8f21e3125a27e 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -165,6 +165,12 @@ def __setattr__(self, key, value): class PandasDelegate(PandasObject): """ an abstract base class for delegating methods/properties """ + @...
This is an absolutely minimal subset of the refactor in #17042. It should be obvious and uncontroversial. - Define `_make_accessor` as a classmethod of `PandasDelegate`. - Make `AccessorProperty.__init__` argument `construct_accessor` default to `accessor_cls._make_accessor`. - Remove methods `_make_cat_acce...
https://api.github.com/repos/pandas-dev/pandas/pulls/17166
2017-08-03T17:09:20Z
2017-08-08T23:49:00Z
2017-08-08T23:49:00Z
2017-12-08T19:41:10Z
Create ABCDateOffset
diff --git a/pandas/core/dtypes/generic.py b/pandas/core/dtypes/generic.py index 90608c18ae503..618bcf6495155 100644 --- a/pandas/core/dtypes/generic.py +++ b/pandas/core/dtypes/generic.py @@ -52,6 +52,8 @@ def _check(cls, inst): ABCCategorical = create_pandas_abc_type("ABCCategorical", "_typ", ...
`DateOffset` is one of a small number of commonly-used classes for which no `ABCFoo` class exists. Putting this in place is cheap and gives us an option to use it down the road. Replaced `isinstance(x, DateOffset)` with `isinstance(x, ABCDateOffset)` in a few places where doing so lets us avoid run-time imports. O...
https://api.github.com/repos/pandas-dev/pandas/pulls/17165
2017-08-03T16:47:10Z
2017-08-09T10:27:35Z
2017-08-09T10:27:35Z
2017-10-30T16:24:26Z
ENH: Support strings containing '%' in add_prefix/add_suffix (#17151)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 2a2e08c2ccf5d..cb906374840c4 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -81,6 +81,7 @@ Other Enhancements - :func:`date_range` now accepts 'YS' in addition to 'AS' as an alias for start of ye...
- [X] closes #17151 - [X] tests added / passed - [X] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [X] whatsnew entry Updated the `DataFrame.add_prefix` and `DataFrame.add_suffix` methods to use the new style `.format` syntax to perform the string formatting. These previously used the ol...
https://api.github.com/repos/pandas-dev/pandas/pulls/17162
2017-08-03T05:08:23Z
2017-08-03T21:06:06Z
2017-08-03T21:06:06Z
2017-08-08T12:12:14Z
BUG: Rolling apply on DataFrame with Datetime index returns NaN
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index cc9ab81ce0955..6aee779151003 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -349,6 +349,8 @@ Groupby/Resample/Rolling - Bug in ``.rolling(...).quantile()`` which incorrectly used different defaul...
- [x] #15305 - [x] changing the order of 'calling roll_sum' and 'get_window_indexer' in 'roll_generic' could fix #15305 The bug caused by the return values from get_window_indexer. It changes value of 'win', which is not supposed to be passed to roll_sum.
https://api.github.com/repos/pandas-dev/pandas/pulls/17156
2017-08-02T20:29:11Z
2017-08-10T12:32:47Z
2017-08-10T12:32:47Z
2017-08-10T12:32:50Z
TST: test for categorical index monotonicity
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 411428e001c81..4aecc75d95971 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -1195,7 +1195,7 @@ def _mpl_repr(self): @property def is_monotonic(self): """ alias for is_monotonic_increasing (depr...
- xref occasional failures here: https://travis-ci.org/MacPython/pandas-wheels/jobs/259998677 - incorrect version detection in #17142 of bottleneck
https://api.github.com/repos/pandas-dev/pandas/pulls/17152
2017-08-02T10:17:42Z
2017-08-03T01:02:13Z
2017-08-03T01:02:13Z
2017-08-03T01:03:30Z
DOC: Additions/updates to documentation
diff --git a/README.md b/README.md index dc74828ba9863..ac043f5586498 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ <tr> <td>Conda</td> <td> - <a href="http://pandas.pydata.org"> + <a href="https://pandas.pydata.org"> <img src="http://pubbadges.s3-website-us-east-1.amazonaws.com/pkgs-downlo...
- Minor grammar fixes - Added some extra details - Added link to LICENSE - Made explicit HTTPS calls - Minor URL cleanup
https://api.github.com/repos/pandas-dev/pandas/pulls/17150
2017-08-02T07:21:12Z
2017-08-02T09:47:00Z
2017-08-02T09:47:00Z
2017-08-02T09:47:02Z
BUG: resample and apply modify the index type for empty Series
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index fad6647d4de8d..72175f877532b 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -299,6 +299,7 @@ Groupby/Resample/Rolling - Bug in :func:`infer_freq` causing indices with 2-day gaps during the workin...
- [x] closes #14313 - [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/17149
2017-08-02T05:20:41Z
2017-08-09T10:37:21Z
2017-08-09T10:37:21Z
2017-08-09T10:37:24Z
DOC: Clean up instructions in ISSUE_TEMPLATE
diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 1f614b54b1f71..6ab03c9907475 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -8,11 +8,18 @@ [this should explain **why** the current behaviour is a problem and why the expected output is a better solution.] +**Note**...
* Minor grammar fixes + clarification on where to paste the output of `pd.show_versions()` to ensure that it renders properly. * Additional notes about ways to filter out duplicates and / or resolve issues by upgrading.
https://api.github.com/repos/pandas-dev/pandas/pulls/17146
2017-08-01T16:33:54Z
2017-08-01T22:33:00Z
2017-08-01T22:33:00Z
2017-08-03T08:42:27Z
REF: repr - allow block to override values that get formatted
diff --git a/pandas/core/internals.py b/pandas/core/internals.py index 25c367fcbd968..880fc7db4b6eb 100644 --- a/pandas/core/internals.py +++ b/pandas/core/internals.py @@ -159,6 +159,10 @@ def internal_values(self, dtype=None): """ return self.values + def formatting_values(self): + """Re...
This change allows an external defined Block to override which values are used by the SeriesFormatter and DataFrameFormatter. By default, the 'internal values' are used (currently it uses `Series._values` which calles Block.internal_values()), so for pandas itself nothing should change. #xref https://github.com/pa...
https://api.github.com/repos/pandas-dev/pandas/pulls/17143
2017-08-01T14:38:25Z
2017-08-04T07:44:53Z
2017-08-04T07:44:53Z
2019-06-24T16:20:26Z
CI: remove no-longer-available conda versions
diff --git a/ci/install_travis.sh b/ci/install_travis.sh index 8cf6f2ce636da..dcc1656ce3dd7 100755 --- a/ci/install_travis.sh +++ b/ci/install_travis.sh @@ -52,9 +52,6 @@ conda update -q conda echo echo "[add channels]" -# add the pandas channel to take priority -# to add extra packages -conda config --add channels...
closes #15214, remove bottleneck < 1.0.0 changes CI min of xlsxwriter to 0.5.2 removing our ``pandas`` channel as well (which held some really old versions of things).
https://api.github.com/repos/pandas-dev/pandas/pulls/17142
2017-08-01T10:43:10Z
2017-08-01T20:09:23Z
2017-08-01T20:09:23Z
2017-08-01T20:09:23Z
Add missing space to the NotImplementedError's message for compound d…
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index fbd26655798bd..ec44dce0da9bc 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -152,7 +152,7 @@ def _validate_dtype(self, dtype): # a compound dtype if dtype.kind == 'V': raise NotImplementedE...
https://api.github.com/repos/pandas-dev/pandas/pulls/17140
2017-08-01T07:46:09Z
2017-08-01T22:36:40Z
2017-08-01T22:36:40Z
2017-08-01T22:39:54Z
COMPAT: make sure use_inf_as_null is deprecated
diff --git a/pandas/core/config_init.py b/pandas/core/config_init.py index 3e753aacf7c71..875ab8249f953 100644 --- a/pandas/core/config_init.py +++ b/pandas/core/config_init.py @@ -412,8 +412,11 @@ def use_inf_as_na_cb(key): _use_inf_as_na(key) -cf.register_option('mode.use_inf_as_na', False, use_inf_as_na_doc...
closes #17115
https://api.github.com/repos/pandas-dev/pandas/pulls/17126
2017-07-31T11:08:36Z
2017-08-01T18:19:16Z
2017-08-01T18:19:16Z
2017-08-01T18:20:43Z
DOC: (de)type the return value of concat (#17079)
diff --git a/pandas/core/reshape/concat.py b/pandas/core/reshape/concat.py index 96603b6adc3b0..e199ec2710367 100644 --- a/pandas/core/reshape/concat.py +++ b/pandas/core/reshape/concat.py @@ -65,7 +65,7 @@ def concat(objs, axis=0, join='outer', join_axes=None, ignore_index=False, Returns ------- - conca...
Was being parsed by Pycharm as being type "type". - [ ] closes #17079 - [ ] tests added / passed - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17119
2017-07-30T08:31:39Z
2017-08-01T22:38:19Z
2017-08-01T22:38:18Z
2017-08-18T15:28:36Z
Unify Index._dir_* with Series implementation
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py new file mode 100644 index 0000000000000..9f8556d1e6961 --- /dev/null +++ b/pandas/core/accessor.py @@ -0,0 +1,35 @@ +# -*- coding: utf-8 -*- +""" + +accessor.py contains base classes for implementing accessor properties +that can be mixed into or pinned on...
Have `Index` use the same implementation of `_dir_additions` and `_dir_deletions` that `Series` currently uses. Move that implementation into a shared base class. @jreback suggested that shared base class `DirNamesMixin` be moved from `core.base` to `core.accessor`. <s>De-duplicate `_dir_additions` and `_dir_deletio...
https://api.github.com/repos/pandas-dev/pandas/pulls/17117
2017-07-29T22:54:44Z
2017-08-29T13:23:39Z
2017-08-29T13:23:39Z
2017-10-30T16:23:53Z
DOC: further clean-up null/na changes
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index c8138d795b836..fe20a7eb2b786 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -511,7 +511,7 @@ optional ``level`` parameter which applies only if the object has a :header: "Function", "Description" :widths: 20, 80 - ``count...
Old whatsnew example was failing -> converted to static code-block (+ some additional minor fixes)
https://api.github.com/repos/pandas-dev/pandas/pulls/17113
2017-07-29T19:02:19Z
2017-07-29T21:58:03Z
2017-07-29T21:58:03Z
2017-07-29T22:18:09Z
API: Localize Series when calling to_datetime with utc=True (#6415)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 273cbd8357f85..e0963a1908bbc 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -298,6 +298,36 @@ length 2+ levels, so a :class:`MultiIndex` is always returned from all of the pd.MultiIndex.from...
- [x] closes #6415 - [x] tests added / passed - [x] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [x] whatsnew entry When `_convert_listlike` passes a `np.array` into a `Series`, the `Series` seems to initially be of naive datetime dtype. Localized `Series` if `utc=True`. I made one m...
https://api.github.com/repos/pandas-dev/pandas/pulls/17109
2017-07-29T06:19:28Z
2017-09-01T12:19:31Z
2017-09-01T12:19:31Z
2017-12-20T02:04:38Z
BUG: Allow pd.unique to accept tuple of strings
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 0025f8d098d81..2d55144848e42 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -327,3 +327,4 @@ Other ^^^^^ - Bug in :func:`eval` where the ``inplace`` parameter was being incorrectly handled (:iss...
- [x] tests added / passed - [x] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [x] whatsnew entry xref #17077 `pd.unique()` calls `_ensure_arraylike` which did not accept tuples that contains strings. Converts tuple to list first before dispatching to `list_to_object_array`
https://api.github.com/repos/pandas-dev/pandas/pulls/17108
2017-07-29T05:44:39Z
2017-07-30T09:43:25Z
2017-07-30T09:43:25Z
2017-12-20T02:04:12Z
Bugfix for multilevel columns with empty strings in Python 2
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index c2eb371059955..f601c4e8a321b 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -323,6 +323,7 @@ Indexing - Bug in reindexing on an empty ``CategoricalIndex`` (:issue:`16770`) - Fixes ``DataFrame.lo...
Allow unicode empty strings to be used as placeholders in multilevel column names in Python 2. The code in `Frame._getitem_multilevel()` only treats empty strings as placeholders in multilevel columns if they are of type `str`. Since in Python 2 this means bytestrings, this means a unicode empty string is not treat...
https://api.github.com/repos/pandas-dev/pandas/pulls/17099
2017-07-27T18:10:13Z
2017-08-10T10:36:51Z
2017-08-10T10:36:51Z
2017-08-10T13:38:45Z
BUG: Thoroughly dedup column names in read_csv
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 0025f8d098d81..db710e73a1286 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -278,6 +278,7 @@ I/O ^^^ - Bug in :func:`read_csv` in which columns were not being thoroughly de-duplicated (:issue:...
Caught after merging in #17060. This is for when we specify the parameter `names=(...)`.
https://api.github.com/repos/pandas-dev/pandas/pulls/17095
2017-07-27T09:58:26Z
2017-08-01T22:44:10Z
2017-08-01T22:44:10Z
2017-08-02T15:16:29Z
BUG: #7757 Fix CSV parsing of singleton list header
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index aed00ca578984..424b496c93f31 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -283,6 +283,7 @@ I/O - Bug in :func:`read_csv` in which non integer values for the header argument generated an unhelpf...
- [ ] closes #7757 - [ ] added ```test_singleton_header``` in ```pandas/tests/io/parser/header.py``` / passed - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [ ] what's new entry I fixed an issue with CSV parsing where passing a single-row header as a list to ```pd.read_csv``` would ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17090
2017-07-27T04:43:13Z
2017-08-03T16:37:27Z
2017-08-03T16:37:27Z
2017-08-18T15:28:46Z
MAINT: Remove non-standard and inconsistently-used imports
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9d63bd2e120aa..027a427555253 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -20,7 +20,6 @@ import warnings from textwrap import dedent -from numpy import nan as NA import numpy as np import numpy.ma as ma @@ -436,7 +435,7 @@ def _in...
of nan and ndarray. Wrap some docstring lines. Split off from #17083 - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17085
2017-07-26T21:40:20Z
2017-08-03T01:03:08Z
2017-08-03T01:03:08Z
2017-08-03T01:08:39Z
PERF: Add cache keyword to to_datetime (#11665)
diff --git a/asv_bench/benchmarks/timeseries.py b/asv_bench/benchmarks/timeseries.py index 779fc0bd20964..9614a63332609 100644 --- a/asv_bench/benchmarks/timeseries.py +++ b/asv_bench/benchmarks/timeseries.py @@ -346,17 +346,22 @@ class ToDatetime(object): def setup(self): self.rng = date_range(start='1...
- [x] closes #11665 - [x] tests added / passed - [x] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [x] whatsnew entry Added a `cache` keyword to `to_datetime` to speedup parsing of duplicate dates: Some notes: 1) I defaulted `cache=False` i.e. don't use a cache to parse the dates. S...
https://api.github.com/repos/pandas-dev/pandas/pulls/17077
2017-07-26T05:45:13Z
2017-11-11T21:00:37Z
2017-11-11T21:00:37Z
2017-12-20T02:04:17Z
TST: Add tests/indexing/ and reshape/ to setup.py
diff --git a/setup.py b/setup.py index 31a3cddc3f9fd..d5791862cfb19 100755 --- a/setup.py +++ b/setup.py @@ -665,6 +665,7 @@ def pxd(name): 'pandas.tests.computation', 'pandas.tests.sparse', 'pandas.tests.frame', + 'pandas.tests.indexing', ...
Oops.
https://api.github.com/repos/pandas-dev/pandas/pulls/17076
2017-07-26T04:24:11Z
2017-07-26T05:54:36Z
2017-07-26T05:54:36Z
2017-07-26T05:55:05Z
TST: Check more error messages in tests
diff --git a/pandas/tests/frame/test_validate.py b/pandas/tests/frame/test_validate.py index d6065e6042908..2de0e866f6e70 100644 --- a/pandas/tests/frame/test_validate.py +++ b/pandas/tests/frame/test_validate.py @@ -1,34 +1,33 @@ from pandas.core.frame import DataFrame import pytest +import pandas.util.testing as ...
Just replaces some `pytest.raises` with more useful (I think) `tm.assert_raises_regexp`. xref #16521.
https://api.github.com/repos/pandas-dev/pandas/pulls/17075
2017-07-26T04:13:40Z
2017-07-26T23:43:50Z
2017-07-26T23:43:50Z
2017-07-27T04:00:40Z
BUG: Fix parser field type compatability on 32-bit systems.
diff --git a/pandas/_libs/src/parser/tokenizer.c b/pandas/_libs/src/parser/tokenizer.c index ab92290f87719..416bf039623d5 100644 --- a/pandas/_libs/src/parser/tokenizer.c +++ b/pandas/_libs/src/parser/tokenizer.c @@ -196,14 +196,14 @@ int parser_init(parser_t *self) { sz = STREAM_INIT_SIZE / 10; sz = sz ? sz ...
- [ ] closes #17063 - [ ] tests added / passed - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17071
2017-07-24T23:09:12Z
2017-07-25T03:59:02Z
2017-07-25T03:59:02Z
2017-07-25T13:49:43Z
ENH: Add skipna parameter to infer_dtype
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 5a5ea827e74ad..5fd245cee7d88 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -24,6 +24,8 @@ New features <https://www.python.org/dev/peps/pep-0519/>`_ on most readers and writers (:issue:`13823`...
closes #17059 - [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/17066
2017-07-24T16:41:31Z
2017-07-25T17:27:46Z
2017-07-25T17:27:45Z
2017-07-25T18:23:18Z
BLD: add more versions
diff --git a/ci/requirements-2.7.sh b/ci/requirements-2.7.sh index 64d470e5c6e0e..5b20617f55759 100644 --- a/ci/requirements-2.7.sh +++ b/ci/requirements-2.7.sh @@ -4,4 +4,4 @@ source activate pandas echo "install 27" -conda install -n pandas -c conda-forge feather-format +conda install -n pandas -c conda-forge fe...
xref #17064.
https://api.github.com/repos/pandas-dev/pandas/pulls/17065
2017-07-24T11:59:04Z
2017-07-24T21:05:15Z
2017-07-24T21:05:15Z
2017-07-24T21:06:47Z
BUG: Thoroughly dedup columns in read_csv
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index e6764178d1f25..1fcf580e6bdc6 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -265,11 +265,11 @@ Indexing I/O ^^^ +- Bug in :func:`read_csv` in which columns were not being thoroughly de-duplica...
When the user specifies `mangle_dupe_cols=False`, the columns should be thoroughly deduped. However, `master` fails on examples like this: ~~~python data = "a,a,a.1,a.1.1" read_csv(StringIO(data)) a a.1 a.1.1 a.1.1 0 1 2 3 4 ~~~ Note how there are two "a.1.1" columns. Now, the output of t...
https://api.github.com/repos/pandas-dev/pandas/pulls/17060
2017-07-24T03:57:44Z
2017-07-25T15:17:23Z
2017-07-25T15:17:23Z
2017-08-21T15:28:57Z
TST: remove some test warnings in parser tests
diff --git a/pandas/conftest.py b/pandas/conftest.py index bae45743bbcfb..101af46a63db4 100644 --- a/pandas/conftest.py +++ b/pandas/conftest.py @@ -10,7 +10,7 @@ def pytest_addoption(parser): help="skip slow tests") parser.addoption("--skip-network", action="store_true", ...
TST: move highmemory test to proper location in c_parser_only xref #16798
https://api.github.com/repos/pandas-dev/pandas/pulls/17057
2017-07-23T16:50:17Z
2017-07-23T17:43:59Z
2017-07-23T17:43:59Z
2017-07-23T18:53:26Z
DOC: Add more examples for reset_index
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9514ab8f3b27f..2ceb62dc7a349 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3060,7 +3060,7 @@ class max_speed ... ('mammal', 'monkey')], ... names=['cl...
Expands documentation for `col_fill`. Follow-up to #16975.
https://api.github.com/repos/pandas-dev/pandas/pulls/17055
2017-07-23T10:19:49Z
2017-07-23T17:44:25Z
2017-07-23T17:44:25Z
2017-07-23T18:02:41Z
TST: np.argsort comparision
diff --git a/pandas/tests/indexes/test_base.py b/pandas/tests/indexes/test_base.py index 692cdd4957947..842e8fea0df9b 100644 --- a/pandas/tests/indexes/test_base.py +++ b/pandas/tests/indexes/test_base.py @@ -1846,7 +1846,7 @@ def create_index(self): def test_argsort(self): idx = self.create_index() ...
- [ ] closes #17046 - [ ] tests added / passed - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17051
2017-07-21T23:33:53Z
2017-07-22T04:58:42Z
2017-07-22T04:58:42Z
2017-07-22T07:08:28Z
TST: Move some Series ctor tests to SharedWithSparse
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 91d3e9e7b935b..37b4981c039f5 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -282,7 +282,7 @@ Groupby/Resample/Rolling Sparse ^^^^^^ -- Bug in ``SparseSeries`` raises ``AttributeError`` when a ...
- [x] closes https://github.com/pandas-dev/pandas/pull/16906 - [x] tests added / passed - [x] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [x] whatsnew entry Continues https://github.com/pandas-dev/pandas/pull/16906.
https://api.github.com/repos/pandas-dev/pandas/pulls/17050
2017-07-21T23:07:44Z
2017-07-22T18:56:28Z
2017-07-22T18:56:27Z
2017-07-22T18:56:47Z
Fixed 'add_methods' when the 'select' argument is specified.
diff --git a/pandas/core/ops.py b/pandas/core/ops.py index 55473ec8d7cad..b3d30f58c528e 100644 --- a/pandas/core/ops.py +++ b/pandas/core/ops.py @@ -149,13 +149,15 @@ def names(x): def add_methods(cls, new_methods, force, select, exclude): if select and exclude: raise TypeError("May only pass either sele...
The 'add_methods' function was not behaving correctly when the 'select' argument was specified. This case was not covered by tests - https://codecov.io/gh/pandas-dev/pandas/src/master/pandas/core/ops.py#L149 . The function is not fully tested and it is unclear how to write a proper test for it. The function is current...
https://api.github.com/repos/pandas-dev/pandas/pulls/17045
2017-07-21T12:00:21Z
2017-07-22T01:21:51Z
2017-07-22T01:21:51Z
2017-07-22T01:21:57Z
Fixed Minor Typo
diff --git a/doc/source/io.rst b/doc/source/io.rst index 495d4e9c3a5a3..149c86aead135 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4892,7 +4892,7 @@ pandas integrates with this external package. if ``pandas-gbq`` is installed, yo use the pandas methods ``pd.read_gbq`` and ``DataFrame.to_gbq``, which will...
Cocumentation to Documentation - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/17043
2017-07-20T22:00:36Z
2017-07-20T22:04:07Z
2017-07-20T22:04:07Z
2017-07-22T01:01:48Z
CLN: move safe_sort from core.algorithms to core.sorting
diff --git a/pandas/core/algorithms.py b/pandas/core/algorithms.py index 79beb95d93ea1..3ccd7216fa81a 100644 --- a/pandas/core/algorithms.py +++ b/pandas/core/algorithms.py @@ -30,7 +30,6 @@ from pandas.core.dtypes.missing import isnull from pandas.core import common as com -from pandas.compat import string_types ...
COMPAT: safe_sort will only coerce list-likes to object, not a numpy string type xref: https://github.com/pandas-dev/pandas/pull/17003#discussion_r128332208
https://api.github.com/repos/pandas-dev/pandas/pulls/17034
2017-07-20T11:04:00Z
2017-07-20T14:23:40Z
2017-07-20T14:23:40Z
2017-07-20T14:25:42Z
Fix double ` in 'Reshaping by Melt' section
diff --git a/doc/source/reshaping.rst b/doc/source/reshaping.rst index 5f125e329f6f1..3dce73b302c7c 100644 --- a/doc/source/reshaping.rst +++ b/doc/source/reshaping.rst @@ -265,7 +265,7 @@ the right thing: Reshaping by Melt ----------------- -The top-level :func:``melt` and :func:`~DataFrame.melt` functions are use...
See current stable docs for the issue: https://pandas.pydata.org/pandas-docs/stable/reshaping.html#reshaping-by-melt The double ` is causing the entire paragraph to be fixed width until the next double `. This commit removes the extra ` - [ ] closes #xxxx - [ ] tests added / passed - [ ] passes ``git diff up...
https://api.github.com/repos/pandas-dev/pandas/pulls/17030
2017-07-20T05:30:04Z
2017-07-20T06:48:23Z
2017-07-20T06:48:23Z
2017-07-20T06:57:57Z
DOC: Document business frequency aliases
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index 8f02a86adbd48..ce4a920ad77b5 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -1093,9 +1093,9 @@ frequencies. We will refer to these aliases as *offset aliases* "QS", "quarter start frequency" "BQS", "business qu...
Follow-up to #16978.
https://api.github.com/repos/pandas-dev/pandas/pulls/17028
2017-07-19T15:33:19Z
2017-07-19T16:33:44Z
2017-07-19T16:33:44Z
2017-07-19T16:33:51Z
DOC remove redundant backtick.
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 48006b11993c7..b2083a4454f84 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3161,7 +3161,7 @@ def pipe(self, func, *args, **kwargs): _shared_docs['transform'] = (""" Call function producing a like-indexed %(klass)s - ...
https://api.github.com/repos/pandas-dev/pandas/pulls/17025
2017-07-19T14:05:33Z
2017-07-19T16:00:22Z
2017-07-19T16:00:22Z
2017-07-19T16:00:29Z
Set pd.options.display.max_columns=0 by default
diff --git a/doc/source/_static/print_df_new.png b/doc/source/_static/print_df_new.png new file mode 100644 index 0000000000000..767d7d3f0ef06 Binary files /dev/null and b/doc/source/_static/print_df_new.png differ diff --git a/doc/source/_static/print_df_old.png b/doc/source/_static/print_df_old.png new file mode 1006...
Update: Remove everything related to `max_rows` and only deal with `max_columns` in this PR. Changed `max_columns` to `0` (automatically adapt the number of displayed columns to the actual terminal width) when run in a terminal ~~and `max_rows` to `20` (because I'd like to see the "whole" data frame at a glance like...
https://api.github.com/repos/pandas-dev/pandas/pulls/17023
2017-07-19T11:04:00Z
2018-03-28T07:51:23Z
2018-03-28T07:51:23Z
2018-03-28T08:30:45Z
Define DataFrame plot methods in DataFrame
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 9a79ca1d4eab1..0cd1c0e05ce21 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -5651,12 +5651,21 @@ def isin(self, values): values).reshape(self.shape), self.index, self.columns) + # -----...
instead of pinning them on at the bottom of the module. This is a follow-up to <s>#16391</s>#16931 with a smaller scope, avoiding the as-yet-unresolved circular import problem. - [x] passes ``git diff upstream/master -u -- "*.py" | flake8 --diff``
https://api.github.com/repos/pandas-dev/pandas/pulls/17020
2017-07-19T07:24:39Z
2017-07-20T10:36:36Z
2017-07-20T10:36:35Z
2017-07-20T18:16:17Z
DOC: Fixing EX01 - Added examples
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 4915997277006..4962469dbf429 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -82,14 +82,8 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then $BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=EX01 --ignore_functions \ ...
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit). Towards https://github.com/pandas-dev/pandas/issues/37875
https://api.github.com/repos/pandas-dev/pandas/pulls/53502
2023-06-02T16:58:48Z
2023-06-02T18:48:23Z
2023-06-02T18:48:23Z
2023-06-03T15:40:41Z