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/PERF: Sparse get_dummies uses concat
diff --git a/asv_bench/benchmarks/join_merge.py b/asv_bench/benchmarks/join_merge.py index 88a59fea375ea..a1cdb00260fc4 100644 --- a/asv_bench/benchmarks/join_merge.py +++ b/asv_bench/benchmarks/join_merge.py @@ -50,7 +50,7 @@ def setup(self, axis): self.empty_right = [df, DataFrame()] def time_concat_s...
Working around the DataFrame constructor perf issue in https://github.com/pandas-dev/pandas/issues/24368 Fixes deprecation warnings in the ASV files so there's something to run. Closes https://github.com/pandas-dev/pandas/issues/24371
https://api.github.com/repos/pandas-dev/pandas/pulls/24372
2018-12-20T12:43:51Z
2018-12-21T17:11:50Z
2018-12-21T17:11:49Z
2019-01-02T20:17:52Z
REF/TST: Add more pytest idiom to indexing/multiindex/test_xs.py
diff --git a/pandas/tests/indexing/multiindex/test_xs.py b/pandas/tests/indexing/multiindex/test_xs.py index b8380e3a95f2a..4a8e95b240e39 100644 --- a/pandas/tests/indexing/multiindex/test_xs.py +++ b/pandas/tests/indexing/multiindex/test_xs.py @@ -1,164 +1,213 @@ import numpy as np import pytest -from pandas.compa...
- [ n/a] xref #24040 - [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/24370
2018-12-20T11:02:12Z
2018-12-21T16:36:22Z
2018-12-21T16:36:22Z
2018-12-22T10:37:11Z
REF/TST: Add pytest idiom to test_testing
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 0c9a24801f98c..b594f6a2f8df6 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -145,7 +145,7 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then RET=$(($RET + $?)) ; echo $MSG "DONE" MSG='Check that the deprecated `assert_raises_regex` is ...
Splits test file into multiple new files and delegates remaining tests to the miscellaneous `test_util.py`
https://api.github.com/repos/pandas-dev/pandas/pulls/24369
2018-12-20T10:53:06Z
2018-12-21T16:46:11Z
2018-12-21T16:46:11Z
2018-12-21T23:43:30Z
REF/TST: collect reduction tests
diff --git a/pandas/tests/reductions/__init__.py b/pandas/tests/reductions/__init__.py new file mode 100644 index 0000000000000..e3851753b6742 --- /dev/null +++ b/pandas/tests/reductions/__init__.py @@ -0,0 +1,4 @@ +""" +Tests for reductions where we want to test for matching behavior across +Array, Index, Series, and ...
Similar to how to have tests.arithmetic for tests where we expect EA/Index/Series/DataFrame behavior to be analogous, this starts collecting the tests for reduction operations. This is motivated by #24293. This does not yet collect tests from tests.frame.test_analytics or any of tests.arrays or tests.indexes. Op...
https://api.github.com/repos/pandas-dev/pandas/pulls/24367
2018-12-20T02:00:18Z
2018-12-23T15:45:32Z
2018-12-23T15:45:32Z
2018-12-23T16:40:30Z
[ENH] Add DataFrame method to explode a list-like column (GH #16538)
diff --git a/asv_bench/benchmarks/reshape.py b/asv_bench/benchmarks/reshape.py index 678403d837805..eee81fea20501 100644 --- a/asv_bench/benchmarks/reshape.py +++ b/asv_bench/benchmarks/reshape.py @@ -228,4 +228,22 @@ def time_qcut_datetime(self, bins): pd.qcut(self.datetime_series, bins) +class Explode(ob...
Sometimes a values column is presented with list-like values on one row. Instead we may want to split each individual value onto its own row, keeping the same mapping to the other key columns. While it's possible to chain together existing pandas operations (in fact that's exactly what this implementation is) to do...
https://api.github.com/repos/pandas-dev/pandas/pulls/24366
2018-12-20T00:13:32Z
2019-07-15T01:07:52Z
null
2019-07-15T01:07:52Z
CLN: post-post numpy bump
diff --git a/pandas/_libs/lib.pyx b/pandas/_libs/lib.pyx index 2736133a79d8e..3bc39979b0fc1 100644 --- a/pandas/_libs/lib.pyx +++ b/pandas/_libs/lib.pyx @@ -153,10 +153,10 @@ def is_scalar(val: object) -> bool: """ return (cnp.PyArray_IsAnyScalar(val) - # As of numpy-1.9, PyArray_IsAnyScalar miss...
Even after #23062 and #23796, I still keep finding occurrences of old numpy references in the code. Gotta catch 'em all...
https://api.github.com/repos/pandas-dev/pandas/pulls/24365
2018-12-19T23:11:26Z
2018-12-22T01:07:32Z
2018-12-22T01:07:32Z
2018-12-22T23:47:40Z
REF: Pieces broken off of #24024
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index 6d8e41900ce2d..87e93f4be96d4 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -295,9 +295,22 @@ def __iter__(self): @property def asi8(self): + # type: () -> ndarray +...
cc @TomAugspurger If I did this right, this shouldn't cause rebasing headaches. LMK if I messed up on that and I'll try to fix. Nearly everything here is verbatim from #24024. I'll comment inline with pieces that are not.
https://api.github.com/repos/pandas-dev/pandas/pulls/24364
2018-12-19T23:03:20Z
2018-12-23T15:47:07Z
2018-12-23T15:47:07Z
2018-12-23T16:37:43Z
DOC: fix flake8 issue in groupby.rst
diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 76481b8cc765a..a37aa2644a805 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -66,12 +66,21 @@ pandas objects can be split on any of their axes. The abstract definition of grouping is to provide a mapping of labels to group names. To...
Fixed flake8 issue in groupby.rst, see Issue #24178 for more info. The following flake8 'errors' have been fixed: - doc/source/groupby.rst:72:18: F821 undefined name 'obj' - doc/source/groupby.rst:72:30: F821 undefined name 'key' - doc/source/groupby.rst:73:18: F821 undefined name 'obj' - doc/source/groupby.rst:...
https://api.github.com/repos/pandas-dev/pandas/pulls/24363
2018-12-19T21:20:24Z
2018-12-27T16:44:26Z
2018-12-27T16:44:25Z
2018-12-27T16:44:30Z
REF/TST: Add more pytest idiom to test_read_fwf.py
diff --git a/pandas/tests/io/parser/test_compression.py b/pandas/tests/io/parser/test_compression.py index 9922e1bbf1613..6e615e795e53c 100644 --- a/pandas/tests/io/parser/test_compression.py +++ b/pandas/tests/io/parser/test_compression.py @@ -5,73 +5,15 @@ of the parsers defined in parsers.py """ -import bz2 -imp...
Also refactors out a compression writing utility function originally just for `test_compression.py`. xref https://github.com/pandas-dev/pandas/pull/22200#issuecomment-448525434
https://api.github.com/repos/pandas-dev/pandas/pulls/24361
2018-12-19T20:41:32Z
2018-12-19T22:53:01Z
2018-12-19T22:53:00Z
2018-12-19T23:00:17Z
Pin travis build to 3.6.6
diff --git a/ci/deps/travis-36.yaml b/ci/deps/travis-36.yaml index 37cea281d48a6..1085ecd008fa6 100644 --- a/ci/deps/travis-36.yaml +++ b/ci/deps/travis-36.yaml @@ -21,7 +21,7 @@ dependencies: - pymysql - pytables - python-snappy - - python=3.6* + - python=3.6.6 - pytz - s3fs - scikit-learn
xref #24359
https://api.github.com/repos/pandas-dev/pandas/pulls/24360
2018-12-19T20:14:02Z
2018-12-19T20:51:11Z
2018-12-19T20:51:10Z
2018-12-19T20:53:16Z
COMPAT: Add keepdims and friends to validation
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 1fb43de5f4c5a..82ec5fe0a3f06 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1398,6 +1398,7 @@ Numeric - Added ``log10`` to the list of supported functions in :meth:`DataFrame.eval` (:issue:`2413...
xref https://github.com/pandas-dev/pandas/pull/24227
https://api.github.com/repos/pandas-dev/pandas/pulls/24356
2018-12-19T17:29:21Z
2018-12-21T17:09:57Z
2018-12-21T17:09:57Z
2019-01-02T20:17:51Z
Floor and ceil methods during pandas.eval which are provided by numexpr
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index a84fd118061bc..f51235e1e1f58 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1440,7 +1440,7 @@ Numeric - :meth:`Series.agg` can now handle numpy NaN-aware methods like :func:`numpy.nansum` (:issu...
- [x] closes #24353 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24355
2018-12-19T17:11:51Z
2018-12-30T19:28:48Z
2018-12-30T19:28:48Z
2018-12-30T19:29:04Z
DEPR: Deprecate range-based PeriodIndex construction
diff --git a/asv_bench/benchmarks/period.py b/asv_bench/benchmarks/period.py index 1af1ba1fb7b0b..8f341c8b415fe 100644 --- a/asv_bench/benchmarks/period.py +++ b/asv_bench/benchmarks/period.py @@ -1,5 +1,5 @@ -from pandas import (DataFrame, Series, Period, PeriodIndex, date_range, - period_range) +fr...
Closes https://github.com/pandas-dev/pandas/issues/20535
https://api.github.com/repos/pandas-dev/pandas/pulls/24354
2018-12-19T17:08:33Z
2018-12-28T14:18:54Z
2018-12-28T14:18:54Z
2018-12-28T14:28:30Z
DEPR: Undeprecate period - integer addition
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index fe5e4a57c557a..f5652165daf6b 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1149,25 +1149,19 @@ Deprecations .. _whatsnew_0240.deprecations.datetimelike_int_ops: -Integer Addition/Subtractio...
Closes https://github.com/pandas-dev/pandas/issues/24305
https://api.github.com/repos/pandas-dev/pandas/pulls/24352
2018-12-19T16:04:44Z
2018-12-23T15:15:42Z
2018-12-23T15:15:42Z
2019-01-02T20:17:49Z
ENH: ExtensionArray.searchsorted
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 16f327a9006da..9ecd7db873a4c 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -996,6 +996,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your - :meth:`~pandas.api.type...
https://api.github.com/repos/pandas-dev/pandas/pulls/24350
2018-12-19T13:22:05Z
2018-12-28T21:15:20Z
2018-12-28T21:15:20Z
2019-01-02T20:17:59Z
ENH: ExtensionArray.repeat
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index fe5e4a57c557a..a71c3018aae4e 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -987,7 +987,8 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your **Other changes** -- ...
cc @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/24349
2018-12-19T12:49:57Z
2018-12-20T14:47:36Z
2018-12-20T14:47:36Z
2019-01-02T20:17:48Z
CLN: Resample time bin cruft
diff --git a/pandas/core/resample.py b/pandas/core/resample.py index d992a06156aa2..06b488787d81b 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -1393,7 +1393,6 @@ def _get_time_bins(self, ax): self.freq, ...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Passes locally. Removes some old code for determining the time bins for resample.
https://api.github.com/repos/pandas-dev/pandas/pulls/24347
2018-12-19T07:11:36Z
2018-12-19T12:29:57Z
2018-12-19T12:29:57Z
2018-12-19T15:39:55Z
PERF: speed up factorization of categoricals
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 6ccb8dc5d2725..f73a24c37d6cb 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -2644,26 +2644,16 @@ def _factorize_from_iterable(values): If `values` has a categorical dtype, then `c...
Factorizing Categoricals/CategoricalIndexes in ``_factorize_from_iterable`` is unneccesary slow, because a unneeded CategoricalIndex is created. This fixes that. ```python >>> n = 1_000_000 >>> c = pd.Categorical(list('a' * n) + (['bcd'] * n), categories=['a', 'bcd']) >>> %timeit pd.core.arrays.categorical._facto...
https://api.github.com/repos/pandas-dev/pandas/pulls/24346
2018-12-19T00:42:47Z
2018-12-19T02:19:00Z
null
2018-12-19T02:19:01Z
CLN: simplify CategoricalIndex internals
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index f1a05ec607b59..0ef7422555fe6 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -133,8 +133,7 @@ def __new__(cls, data=None, categories=None, ordered=None, dtype=None, return cls._simple_ne...
Simplify method signatures of some internal methods of ``CategoricalIndex``.
https://api.github.com/repos/pandas-dev/pandas/pulls/24343
2018-12-18T21:51:50Z
2018-12-18T23:22:36Z
2018-12-18T23:22:36Z
2018-12-18T23:28:09Z
DOC: Fixes additional flake8 issues in whatsnew v0.14.0 #24240
diff --git a/doc/source/whatsnew/v0.14.0.rst b/doc/source/whatsnew/v0.14.0.rst index ecb062c7d3680..d61b9a40438f8 100644 --- a/doc/source/whatsnew/v0.14.0.rst +++ b/doc/source/whatsnew/v0.14.0.rst @@ -824,22 +824,29 @@ Enhancements .. ipython:: python - import datetime - df = pd.DataFrame({ - 'Branch'...
Related to #24240 Fixed an indentation error that revealed more flake8 issues.
https://api.github.com/repos/pandas-dev/pandas/pulls/24342
2018-12-18T20:36:02Z
2018-12-18T22:48:30Z
2018-12-18T22:48:30Z
2018-12-18T22:48:32Z
API: Standard signature for to_numpy
diff --git a/doc/source/basics.rst b/doc/source/basics.rst index a188a5716f7bc..0f6b5cd0b5e43 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -86,6 +86,27 @@ be the same as :attr:`~Series.array`. When the Series or Index is backed by a :class:`~pandas.api.extension.ExtensionArray`, :meth:`~Series.to_...
This is part 1 of https://github.com/pandas-dev/pandas/issues/23995 We make the signature `to_numpy(dtype : Union[str, np.dtype], copy : bool) -> ndarray`
https://api.github.com/repos/pandas-dev/pandas/pulls/24341
2018-12-18T19:55:05Z
2018-12-19T12:34:43Z
2018-12-19T12:34:43Z
2019-01-02T20:17:46Z
DOC: Fix flake8 issues in doc/source/whatsnew/v0.17.*.rst
diff --git a/doc/source/whatsnew/v0.17.0.rst b/doc/source/whatsnew/v0.17.0.rst index 38d2ec2d8d1bf..4884d99d8fc91 100644 --- a/doc/source/whatsnew/v0.17.0.rst +++ b/doc/source/whatsnew/v0.17.0.rst @@ -8,7 +8,6 @@ v0.17.0 (October 9, 2015) .. ipython:: python :suppress: - from pandas import * # noqa F401, F403 ...
- [x] closes #24235 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24340
2018-12-18T16:30:41Z
2019-01-02T02:28:23Z
2019-01-02T02:28:22Z
2019-01-02T02:28:27Z
DOC: Minor indentation issue
diff --git a/doc/source/whatsnew/v0.20.0.rst b/doc/source/whatsnew/v0.20.0.rst index 2002c4bb9bc51..11e2fbad6595b 100644 --- a/doc/source/whatsnew/v0.20.0.rst +++ b/doc/source/whatsnew/v0.20.0.rst @@ -1027,7 +1027,7 @@ Retrieving a correlation matrix for a cross-section df.rolling(12).corr().loc['2016-04-07'] -...
- [ ] closes - No Issue available. - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24339
2018-12-18T14:33:40Z
2018-12-18T18:13:18Z
2018-12-18T18:13:18Z
2019-01-01T02:10:18Z
DOC: Fix flake 8 errors for whatsnew v0.16*
diff --git a/doc/source/whatsnew/v0.16.0.rst b/doc/source/whatsnew/v0.16.0.rst index 8d2d589c44e1b..7ae17febe168d 100644 --- a/doc/source/whatsnew/v0.16.0.rst +++ b/doc/source/whatsnew/v0.16.0.rst @@ -5,11 +5,6 @@ v0.16.0 (March 22, 2015) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * ...
- [x] closes #24237 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24338
2018-12-18T14:06:20Z
2018-12-18T18:32:04Z
2018-12-18T18:32:04Z
2019-01-01T02:07:56Z
BUG: Fix GSO values when writing latin-1 strLs
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 0bd695f5a40ea..689f5cc7951af 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1576,6 +1576,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`DataFrame....
The size calculation of the string is incorrect when writing characters that have a different encoding in latin-1 and utf-8. The utf-8 size needs to be written instead of the latin-1 size. - [x] closes #23573 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] w...
https://api.github.com/repos/pandas-dev/pandas/pulls/24337
2018-12-18T13:03:13Z
2018-12-18T14:11:00Z
2018-12-18T14:10:59Z
2019-03-21T13:27:32Z
add to_frame method to DataFrame
diff --git a/doc/source/api.rst b/doc/source/api.rst index d80c73d4a7c1c..96f75615a5bf9 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1221,6 +1221,7 @@ Serialization / IO / Conversion DataFrame.to_msgpack DataFrame.to_gbq DataFrame.to_records + DataFrame.to_frame DataFrame.to_sparse ...
Add convenience method which makes sure that we can safely call `to_frame` on any method returning both `Series` and `DataFrame` instances, such as `groupby` etc. - [ ] ~~closes #11292 xxx~~ (there is no issue, should I open one?) - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | fla...
https://api.github.com/repos/pandas-dev/pandas/pulls/24336
2018-12-18T13:03:07Z
2019-01-14T00:13:52Z
null
2019-01-14T00:13:52Z
BUG: Fixed msgpack roundtrip with PeriodIndex
diff --git a/pandas/core/indexes/period.py b/pandas/core/indexes/period.py index 7188c1e059125..7ece1eaf547c8 100644 --- a/pandas/core/indexes/period.py +++ b/pandas/core/indexes/period.py @@ -227,6 +227,8 @@ def _simple_new(cls, values, name=None, freq=None, **kwargs): values = np.asarray(values) ...
Closes https://github.com/pandas-dev/pandas/issues/24135
https://api.github.com/repos/pandas-dev/pandas/pulls/24335
2018-12-18T12:15:10Z
2018-12-18T13:37:37Z
2018-12-18T13:37:36Z
2018-12-18T13:37:39Z
DOC: Fix a few warnings
diff --git a/doc/source/ecosystem.rst b/doc/source/ecosystem.rst index e0c47e2f2ba7e..a5d1ec7b257d8 100644 --- a/doc/source/ecosystem.rst +++ b/doc/source/ecosystem.rst @@ -142,7 +142,7 @@ which are utilized by Jupyter Notebook for displaying (Note: HTML tables may or may not be compatible with non-HTML Jupyter outpu...
https://api.github.com/repos/pandas-dev/pandas/pulls/24334
2018-12-18T12:10:35Z
2018-12-18T13:02:53Z
2018-12-18T13:02:53Z
2018-12-18T13:05:04Z
STY: Check pytest.raises is used context manager
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index ac92cf492b91d..028a9c71a0d2d 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -148,6 +148,15 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -R --exclude=*.pyc --exclude=testing.py --exclude=test_testing.py assert_raises_regex pandas...
Follow-up to https://github.com/pandas-dev/pandas/pull/24297#issuecomment-447675032.
https://api.github.com/repos/pandas-dev/pandas/pulls/24332
2018-12-18T11:15:09Z
2018-12-19T12:35:23Z
2018-12-19T12:35:23Z
2019-03-04T20:28:09Z
DOC: Update compiler guidance for Windows
diff --git a/doc/source/contributing.rst b/doc/source/contributing.rst index b88f0d3c33fc7..281dbd72db161 100644 --- a/doc/source/contributing.rst +++ b/doc/source/contributing.rst @@ -125,7 +125,7 @@ requires a C compiler and Python environment. If you're making documentation changes, you can skip to :ref:`contributi...
... to make it a bit more encouraging.
https://api.github.com/repos/pandas-dev/pandas/pulls/24331
2018-12-18T11:08:58Z
2018-12-19T22:53:43Z
2018-12-19T22:53:43Z
2018-12-20T12:38:33Z
API: Remove CalendarDay
diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index c29b9593fa59d..04cda63e0f910 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -408,7 +408,7 @@ In practice this becomes very cumbersome because we often need a very long index with a large number of timestamps. If we need...
- [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Given that we want to ship 0.24.0 soon and that converting `'D'` and `Day` to always act as calendar day warrants more game-planning, this PR just simply removes `CalendarDay` and reverts `'D'` and `Day` to their prior b...
https://api.github.com/repos/pandas-dev/pandas/pulls/24330
2018-12-18T06:16:42Z
2018-12-18T22:41:14Z
2018-12-18T22:41:14Z
2018-12-18T23:55:39Z
Fixed PEP8 errors in doc/source/whatsnew/v0.15.*
diff --git a/doc/source/whatsnew/v0.15.0.rst b/doc/source/whatsnew/v0.15.0.rst index 6f74f0393d123..5ab8e89fef987 100644 --- a/doc/source/whatsnew/v0.15.0.rst +++ b/doc/source/whatsnew/v0.15.0.rst @@ -5,12 +5,6 @@ v0.15.0 (October 18, 2014) {{ header }} -.. ipython:: python - :suppress: - - from pandas import ...
- [x] closes #24239 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fixed PEP8 errors in **doc/source/whatsnew/v0.15.***, still can't get rid of **line too long ( x >79)** where x is the number of characters in line.
https://api.github.com/repos/pandas-dev/pandas/pulls/24328
2018-12-18T04:44:49Z
2019-01-05T00:58:39Z
null
2019-01-05T00:58:39Z
ERR: Improve error message for cut with infinity in input and integer bins
diff --git a/pandas/core/reshape/tile.py b/pandas/core/reshape/tile.py index 5d5f6cf8102be..f8e917a1a8688 100644 --- a/pandas/core/reshape/tile.py +++ b/pandas/core/reshape/tile.py @@ -205,7 +205,11 @@ def cut(x, bins, right=True, labels=None, retbins=False, precision=3, rng = (nanops.nanmin(x), nanops.nanmax(...
- [X] closes #24314 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` Doesn't seem like a whatsnew entry is needed, since this is just changing the error message and not the actual behavior of `cut`. Can add an entry if deemed appropriate.
https://api.github.com/repos/pandas-dev/pandas/pulls/24327
2018-12-18T01:40:07Z
2018-12-18T13:03:50Z
2018-12-18T13:03:50Z
2019-02-05T19:51:36Z
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..8dbd0b2a6f97a 100644 --- a/pandas/tests/resample/conftest.py +++ b/pandas/tests/resample/conftest.py @@ -6,6 +6,7 @@ from pandas import DataFrame, Series from pandas.core.indexes.datetimes import date_range from p...
- [ 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: - restructure fixtures in order to parametrize base class tests - remove test base class
https://api.github.com/repos/pandas-dev/pandas/pulls/24324
2018-12-17T20:21:40Z
2018-12-20T16:48:08Z
null
2018-12-24T09:20:09Z
DOC: Fixes flake8 issues in whatsnew v0.13.* #24256
diff --git a/doc/source/whatsnew/v0.13.0.rst b/doc/source/whatsnew/v0.13.0.rst index b11aed9284ab7..7495e9fe25339 100644 --- a/doc/source/whatsnew/v0.13.0.rst +++ b/doc/source/whatsnew/v0.13.0.rst @@ -5,10 +5,6 @@ v0.13.0 (January 3, 2014) {{ header }} -.. ipython:: python - :suppress: - - from pandas import *...
- [ ] closes #24256
https://api.github.com/repos/pandas-dev/pandas/pulls/24322
2018-12-17T19:23:41Z
2018-12-18T18:58:38Z
2018-12-18T18:58:38Z
2018-12-18T19:41:41Z
DOC: Use sphinx link for internal link to contributing guide
diff --git a/doc/source/install.rst b/doc/source/install.rst index d939b14fd064a..b020507528642 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -193,7 +193,7 @@ methods described above. Installing from source ~~~~~~~~~~~~~~~~~~~~~~ -See the :ref:`contributing documentation <contributing>` for co...
As requested in #24172. - [x] closes #24172
https://api.github.com/repos/pandas-dev/pandas/pulls/24320
2018-12-17T15:09:23Z
2018-12-17T15:47:43Z
2018-12-17T15:47:43Z
2018-12-17T16:26:12Z
BUG: Ensure incomplete stata files are deleted
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 689f5cc7951af..a9826041e987d 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1576,6 +1576,7 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form - :func:`DataFrame....
Attempt to delete failed writes and warn if not able to delete - [x] closes N/A - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24319
2018-12-17T14:39:49Z
2018-12-18T22:35:24Z
2018-12-18T22:35:24Z
2019-03-21T13:27:31Z
Try conda canary
diff --git a/ci/circle/install_circle.sh b/ci/circle/install_circle.sh index 0918e8790fca2..da1cd29d009ed 100755 --- a/ci/circle/install_circle.sh +++ b/ci/circle/install_circle.sh @@ -16,9 +16,12 @@ conda update -q conda # add the pandas channel to take priority # to add extra packages echo "[add channels]" +conda ...
The next release of conda is due soon. Seeing if anything will break. Don't actually merge this.
https://api.github.com/repos/pandas-dev/pandas/pulls/24317
2018-12-17T13:21:53Z
2018-12-17T13:56:17Z
null
2018-12-17T13:56:38Z
DOC: Not pushing the docs to github pages in PRs
diff --git a/ci/build_docs.sh b/ci/build_docs.sh index 0b1ea2329636d..fbb27286e9566 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -25,28 +25,33 @@ if [ "$DOC" ]; then echo # Create and send docs # echo ######################## - cd build/html - git config --global user.email "pandas-docs-bot...
In #24292 we made the doc build fail when there is a failure. But in PR builds, pushing to github pages is expected to fail, so the build job is failing for every PR now. Pushing docs to github pages only for `master` builds in this PR (we still build the docs, to make sure it doesn't fail).
https://api.github.com/repos/pandas-dev/pandas/pulls/24316
2018-12-17T00:55:32Z
2018-12-17T12:42:56Z
2018-12-17T12:42:56Z
2018-12-17T12:43:00Z
CLN: Add issue number
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index 8e9f617c2eed8..3a9572bdedaab 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -1140,6 +1140,7 @@ def test_agg_cython_table_raises(self, df, func, expected, axis): @pytest.mark.parametrize...
Minor follow up on #24307. Based on @h-vetinari 's comment
https://api.github.com/repos/pandas-dev/pandas/pulls/24313
2018-12-16T22:32:58Z
2018-12-17T01:37:00Z
2018-12-17T01:36:59Z
2019-12-25T20:21:30Z
DOC: flake8 fix for whatsnew v.0.12.*
diff --git a/doc/source/whatsnew/v0.12.0.rst b/doc/source/whatsnew/v0.12.0.rst index f2816915955cf..4413fc5cec2a9 100644 --- a/doc/source/whatsnew/v0.12.0.rst +++ b/doc/source/whatsnew/v0.12.0.rst @@ -5,11 +5,6 @@ v0.12.0 (July 24, 2013) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * #...
- [x] closes #24257 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24309
2018-12-16T16:05:16Z
2018-12-16T20:52:59Z
2018-12-16T20:52:58Z
2018-12-17T01:05:42Z
PERF: Period plotting performance
diff --git a/pandas/plotting/_converter.py b/pandas/plotting/_converter.py index 8139694138a84..3a3ebe7c56f67 100644 --- a/pandas/plotting/_converter.py +++ b/pandas/plotting/_converter.py @@ -9,14 +9,14 @@ import matplotlib.units as units import numpy as np -from pandas._libs import tslibs +from pandas._libs impor...
Setup ```python In [3]: N = 2000 ...: M = 5 ...: idx = date_range('1/1/1975', periods=N) ...: df = DataFrame(np.random.randn(N, M), index=idx) ``` 0.23.4: ```python In [3]: %time df.plot() CPU times: user 274 ms, sys: 66.7 ms, total: 340 ms Wall time: 377 ms Out[3]: <matplotlib.axes._subplots...
https://api.github.com/repos/pandas-dev/pandas/pulls/24308
2018-12-16T13:24:41Z
2018-12-17T13:57:13Z
2018-12-17T13:57:12Z
2018-12-17T13:58:51Z
TST: Fix flakey hypothesis apply test
diff --git a/pandas/tests/frame/test_apply.py b/pandas/tests/frame/test_apply.py index a3b72d223f957..4c8268f02b211 100644 --- a/pandas/tests/frame/test_apply.py +++ b/pandas/tests/frame/test_apply.py @@ -11,8 +11,6 @@ import warnings import numpy as np -from hypothesis import given, settings -from hypothesis.strat...
Follow up based on comments in #23849 - [x] closes #24242 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` @mroeschke mind reviewing?
https://api.github.com/repos/pandas-dev/pandas/pulls/24307
2018-12-16T11:57:05Z
2018-12-16T19:56:16Z
2018-12-16T19:56:16Z
2018-12-17T03:52:11Z
DOC: Fix flake8 issues with whatsnew v0.18.*
diff --git a/doc/source/whatsnew/v0.18.0.rst b/doc/source/whatsnew/v0.18.0.rst index da7d409fb8922..e9d4891df70c5 100644 --- a/doc/source/whatsnew/v0.18.0.rst +++ b/doc/source/whatsnew/v0.18.0.rst @@ -5,11 +5,6 @@ v0.18.0 (March 13, 2016) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * ...
Fixed almost every flake8 issues in v0.18.*.rst except one issue about tab-completion. - [x] closes #24233 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I fixed almost every flake8 issues except one. An issue about **tab-completion** and...
https://api.github.com/repos/pandas-dev/pandas/pulls/24303
2018-12-16T08:31:02Z
2018-12-18T12:39:47Z
2018-12-18T12:39:47Z
2018-12-18T12:39:51Z
Series.value_counts: Preserve original ordering
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 78f864f0dcb73..4d64997ccfe56 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -385,6 +385,7 @@ Backwards incompatible API changes - :func:`read_csv` will now raise a ``ValueError`` if a column with...
Ensure that value_counts returns the same ordering of the indices than the input object when sorting the values no matter if it is ascending or descending. - [x] closes #12679 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry - [ ] About 10 test...
https://api.github.com/repos/pandas-dev/pandas/pulls/24302
2018-12-16T03:26:07Z
2019-03-19T03:43:11Z
null
2019-03-19T03:43:11Z
BLD: make bottleneck required
diff --git a/asv_bench/benchmarks/stat_ops.py b/asv_bench/benchmarks/stat_ops.py index 500e4d74d4c4f..90680afd5eecd 100644 --- a/asv_bench/benchmarks/stat_ops.py +++ b/asv_bench/benchmarks/stat_ops.py @@ -8,19 +8,14 @@ class FrameOps(object): - params = [ops, ['float', 'int'], [0, 1], [True, False]] - param_...
- [x] closes #12149 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24300
2018-12-16T02:55:25Z
2018-12-16T15:43:49Z
null
2018-12-16T16:38:42Z
DOC: Removing remaining spellcheck related stuff (deps, docs, code, whatsnew)
diff --git a/doc/make.py b/doc/make.py index 0a3a7483fcc91..bb6a90c371f81 100755 --- a/doc/make.py +++ b/doc/make.py @@ -229,9 +229,9 @@ def _sphinx_build(self, kind): -------- >>> DocBuilder(num_jobs=4)._sphinx_build('html') """ - if kind not in ('html', 'latex', 'spelling'): - ...
In #24287 the sphinx spellcheck system has been removed. But some parts were forgot, and they are removed here.
https://api.github.com/repos/pandas-dev/pandas/pulls/24299
2018-12-16T00:46:09Z
2018-12-16T08:04:40Z
2018-12-16T08:04:40Z
2018-12-16T08:05:20Z
DOC: whatsnew 0.24.0 corrections & edits & remove some warnings
diff --git a/doc/source/api.rst b/doc/source/api.rst index d9e3cb177511a..d80c73d4a7c1c 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -113,6 +113,7 @@ HDFStore: PyTables (HDF5) HDFStore.select HDFStore.info HDFStore.keys + HDFStore.groups HDFStore.walk Feather @@ -611,6 +612,16 @@ The...
https://api.github.com/repos/pandas-dev/pandas/pulls/24298
2018-12-15T21:49:05Z
2018-12-17T14:36:42Z
2018-12-17T14:36:42Z
2018-12-17T14:36:43Z
STY: use pytest.raises context syntax
diff --git a/pandas/tests/api/test_types.py b/pandas/tests/api/test_types.py index 3468a4db617b0..9a7e42cb9c4e2 100644 --- a/pandas/tests/api/test_types.py +++ b/pandas/tests/api/test_types.py @@ -42,9 +42,11 @@ def check_deprecation(self, fold, fnew): expected = fnew('foo') assert res...
There are still about a thousand non-context usages of pytest.raises. @gfyoung if there is a subset of these that especially merit match kwargs, let me know. I'm not eager to manually go through all of them, but doing something systematic or manually doing a few I'd be up for.
https://api.github.com/repos/pandas-dev/pandas/pulls/24297
2018-12-15T18:37:21Z
2018-12-16T20:54:31Z
2018-12-16T20:54:31Z
2018-12-17T01:10:19Z
BUG: Fix index bug due to parse_time_string GH24091
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 610463ec3422b..bec45d877cb19 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1611,6 +1611,7 @@ Other - Bug in :meth:`DataFrame.combine_first` in which column types were unexpectedly converted to ...
- [x] closes #24091 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry In Issue #24091 I detailed the root cause of the bug, and implemented the @toobaz suggestion. I added a single line to test this case in the existing test, ran the full UT su...
https://api.github.com/repos/pandas-dev/pandas/pulls/24294
2018-12-15T08:38:13Z
2019-02-27T23:55:10Z
null
2019-02-27T23:55:11Z
standardize signature for Index reductions, implement nanmean for datetime64 dtypes
diff --git a/pandas/core/base.py b/pandas/core/base.py index b8ee50765e070..8af4b59c4634b 100644 --- a/pandas/core/base.py +++ b/pandas/core/base.py @@ -973,10 +973,16 @@ def _ndarray_values(self): def empty(self): return not self.size - def max(self): + def max(self, axis=None, skipna=True): ...
Same basic goal as #23890, but focusing on nanops (a module I'm not all that familiar with) first, with the array methods later, instead of vice-versa. I think the only user-facing change (i.e. need for whatsnew) is that `Series[datetime64].mean()` now works. I need to see if there are any more tests from #23890 ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24293
2018-12-15T04:09:54Z
2018-12-29T14:26:20Z
2018-12-29T14:26:20Z
2018-12-29T15:31:05Z
DOC: Making the build fail if the doc build fails
diff --git a/.travis.yml b/.travis.yml index e0ab770ac46ba..c30a7f3f58f55 100644 --- a/.travis.yml +++ b/.travis.yml @@ -112,7 +112,7 @@ before_script: script: - echo "script start" - source activate pandas-dev - - ci/run_build_docs.sh + - ci/build_docs.sh - ci/run_tests.sh after_script: diff --git a/ci/...
The doc build is failing silently if sphinx fails. This PR makes the CI red when something goes wrong building the docs. CC: @jreback It has been tested here: https://travis-ci.org/pandas-dev/pandas/jobs/468243202
https://api.github.com/repos/pandas-dev/pandas/pulls/24292
2018-12-15T01:45:52Z
2018-12-16T01:16:59Z
2018-12-16T01:16:59Z
2018-12-16T07:48:57Z
DOC: Add new required sphinx setting latex_elements
diff --git a/doc/source/conf.py b/doc/source/conf.py index 56f77f667df88..f4bf2b66ee849 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -351,6 +351,8 @@ # -- Options for LaTeX output -------------------------------------------- +latex_elements = {} + # The paper size ('letter' or 'a4'). # latex_paper...
nbsphinx released a new version, `0.4.0`, and it requires a sphinx setting that we don't have. This is making the doc build fail, this PR adds it so the doc build works again. CC: @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/24291
2018-12-15T01:41:01Z
2018-12-15T16:38:43Z
2018-12-15T16:38:43Z
2018-12-16T02:07:49Z
Revert #21394
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 610463ec3422b..df34c78f4408e 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1082,7 +1082,6 @@ Other API Changes has an improved ``KeyError`` message, and will not fail on duplicate column name...
Until after 0.24.0
https://api.github.com/repos/pandas-dev/pandas/pulls/24289
2018-12-15T00:11:12Z
2018-12-15T18:04:51Z
2018-12-15T18:04:51Z
2018-12-15T18:05:41Z
DOC: Fix docstrings with the sections in the wrong order #24280
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index ac92cf492b91d..a8ca81bde9dcd 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -212,8 +212,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL09, GL06, SS04, PR03, PR05, EX04)' ; echo $MS...
- [x] closes #24280 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/24288
2018-12-15T00:02:27Z
2018-12-19T12:32:57Z
2018-12-19T12:32:56Z
2018-12-19T12:33:00Z
DOC: Remove doc spellcheck
diff --git a/doc/source/conf.py b/doc/source/conf.py index 56f77f667df88..0b826ccfe9e97 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -77,19 +77,8 @@ 'contributors', # custom pandas extension ] -try: - import sphinxcontrib.spelling # noqa -except ImportError as err: - ...
The spellcheck system was implemented, but with dependencies (i.e. `enchant`) that are no longer maintained, and there is no reasonable way to set them up. This means that can't be added to the CI, and can't be even set up into our local environments with a decent amount of work installing dependencies manually (I didn...
https://api.github.com/repos/pandas-dev/pandas/pulls/24287
2018-12-14T23:34:18Z
2018-12-15T16:38:19Z
2018-12-15T16:38:19Z
2018-12-16T00:47:28Z
CLN: Linting tailing whitespaces, and fixing remaining cases
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8462d9ad83431..0fa4a261a3824 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -148,6 +148,9 @@ if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then invgrep -R --exclude=*.pyc --exclude=testing.py --exclude=test_testing.py assert_raises_regex pandas ...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry @jreback I guess this makes sense. Not sure if there is any reason to exclude html or csv files, let me know if that's the case.
https://api.github.com/repos/pandas-dev/pandas/pulls/24286
2018-12-14T21:00:44Z
2018-12-14T22:11:18Z
2018-12-14T22:11:18Z
2019-06-13T22:59:03Z
REF: Period check compatabile with
diff --git a/pandas/core/arrays/period.py b/pandas/core/arrays/period.py index f4bdd44b9ec39..178efbe6f8376 100644 --- a/pandas/core/arrays/period.py +++ b/pandas/core/arrays/period.py @@ -62,15 +62,11 @@ def wrapper(self, other): other = other._values if isinstance(other, Period): - ...
Split from #24024 cc @jbrockmendel There are a couple cases in `PeriodArray.__setitem__` that I didn't update, because `PeriodArray.__setitem__` is being remove entirely in #24024.
https://api.github.com/repos/pandas-dev/pandas/pulls/24285
2018-12-14T20:38:22Z
2018-12-14T21:43:04Z
2018-12-14T21:43:04Z
2018-12-14T22:21:08Z
API: Always return DataFrame from get_dummies
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index df34c78f4408e..a6b973fb82073 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -707,6 +707,51 @@ Finally, a ``Series.sparse`` accessor was added to provide sparse-specific metho s = pd.Series([0,...
xref https://github.com/pandas-dev/pandas/issues/19239 In preparation for hopefully deprecating SparseDataFrame / SparseSeries. Right now, I've just made this an API breaking change. If we want to do this via deprecation, we'd need a new keyword argument to control the result type. I opted against that, because t...
https://api.github.com/repos/pandas-dev/pandas/pulls/24284
2018-12-14T20:10:59Z
2018-12-15T21:13:52Z
2018-12-15T21:13:52Z
2018-12-15T21:13:54Z
CLN: standardize different freq message
diff --git a/pandas/_libs/tslibs/period.pyx b/pandas/_libs/tslibs/period.pyx index 1ad2688b70a03..7f5305065382c 100644 --- a/pandas/_libs/tslibs/period.pyx +++ b/pandas/_libs/tslibs/period.pyx @@ -1455,7 +1455,9 @@ def extract_ordinals(object[:] values, freq): ordinals[i] = p.ordinal ...
In #24282 some of the PeriodArray/PeriodIndex methods couldn't accept the decorator because of mismatches between _DIFFERENT_FREQ and DIFFERENT_FREQ_INDEX. This unifies the two. The remaining case to figure out is what to render for `other_freq` when dealing with an ndarray. Right now the placeholder is "FIXME".
https://api.github.com/repos/pandas-dev/pandas/pulls/24283
2018-12-14T19:50:49Z
2018-12-16T13:54:03Z
2018-12-16T13:54:03Z
2018-12-16T15:41:07Z
WIP: decorator for ops boilerplate
diff --git a/pandas/core/arrays/categorical.py b/pandas/core/arrays/categorical.py index 6ccb8dc5d2725..5f46d27fe243a 100644 --- a/pandas/core/arrays/categorical.py +++ b/pandas/core/arrays/categorical.py @@ -27,6 +27,7 @@ from pandas.core.dtypes.inference import is_hashable from pandas.core.dtypes.missing import isn...
- [x] closes #23583 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry There are a handful of places where this decorator is applied but commented-out. This is the "WIP" part of things.
https://api.github.com/repos/pandas-dev/pandas/pulls/24282
2018-12-14T19:13:16Z
2019-01-05T03:56:11Z
null
2019-01-05T03:56:16Z
DOC: Removing tailing whitespaces in .rst files
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 6b30f0226ecff..1ed365d09152b 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -54,7 +54,7 @@ can think of ``MultiIndex`` as an array of tuples where each tuple is unique. A ``MultiIndex`` can be created from a list of arrays (usi...
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry In #24216 we will start linting formatting errors in `.rst` files. Removing all the tailing whitespaces here, so we don't mix the cleaning with the code in that PR.
https://api.github.com/repos/pandas-dev/pandas/pulls/24281
2018-12-14T19:01:10Z
2018-12-14T19:44:02Z
2018-12-14T19:44:02Z
2018-12-14T19:44:05Z
Added extra info section to EA repr
diff --git a/pandas/core/arrays/base.py b/pandas/core/arrays/base.py index cf145064fd7b1..9f0551276fd02 100644 --- a/pandas/core/arrays/base.py +++ b/pandas/core/arrays/base.py @@ -53,6 +53,7 @@ class ExtensionArray(object): * __repr__ : A default repr for the ExtensionArray. * _formatter : Print scalars in...
Closes https://github.com/pandas-dev/pandas/issues/24278
https://api.github.com/repos/pandas-dev/pandas/pulls/24279
2018-12-14T18:13:49Z
2019-06-08T20:13:54Z
null
2019-06-08T20:13:55Z
DOC: Fix flake8 issues in whatsnew v10* and v11*
diff --git a/doc/source/whatsnew/v0.10.0.rst b/doc/source/whatsnew/v0.10.0.rst index 9e45efca02eed..bc2a4918bc27b 100644 --- a/doc/source/whatsnew/v0.10.0.rst +++ b/doc/source/whatsnew/v0.10.0.rst @@ -5,11 +5,6 @@ v0.10.0 (December 17, 2012) {{ header }} -.. ipython:: python - :suppress: - - from pandas import...
closes #24258 closes #24259 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24277
2018-12-14T07:31:58Z
2018-12-14T19:31:44Z
2018-12-14T19:31:43Z
2018-12-16T07:04:20Z
implement independent parts of #24024
diff --git a/pandas/core/arrays/datetimelike.py b/pandas/core/arrays/datetimelike.py index ceaf9e748fe5a..0d96732093a8c 100644 --- a/pandas/core/arrays/datetimelike.py +++ b/pandas/core/arrays/datetimelike.py @@ -5,7 +5,7 @@ import numpy as np -from pandas._libs import NaT, iNaT, lib +from pandas._libs import NaT,...
@TomAugspurger just for kicks I went through to see how much of #24024 could be implemented without actually changing anything. Could've squeezed out a little bit more; as-is only about 6% by line-count. If it's not worth the rebasing hassle, I'll close.
https://api.github.com/repos/pandas-dev/pandas/pulls/24276
2018-12-14T04:15:03Z
2018-12-14T13:48:55Z
2018-12-14T13:48:55Z
2018-12-14T16:13:07Z
GH24241 make Categorical.map transform nans
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index 721e032b8bb92..ff37fbbb4aa24 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -1145,7 +1145,8 @@ dtype in apply Pandas currently does not preserve the dtype in apply functions: If you apply along rows you get a `Se...
- [ ] closes #24241 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [X] whatsnew entry Alters `Categorical.map` so that the mapper function is also applied to NaN values. The mentioned bug report brings up the example of calling `apply(pd.isna)` on a categorical s...
https://api.github.com/repos/pandas-dev/pandas/pulls/24275
2018-12-13T21:27:36Z
2018-12-20T14:25:07Z
2018-12-20T14:25:06Z
2018-12-20T14:25:07Z
BLD: for C extension builds on mac, target macOS 10.9 where possible
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 78f864f0dcb73..18bbcd96067fb 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1628,6 +1628,7 @@ Build Changes - Building pandas for development now requires ``cython >= 0.28.2`` (:issue:`21688`)...
- [x] closes #23424 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry For extension builds, `distutils` targets the same macOS version as python was built for, even if the host system is newer. This can cause problems when building on a 10.9+ sys...
https://api.github.com/repos/pandas-dev/pandas/pulls/24274
2018-12-13T20:33:37Z
2018-12-28T00:27:45Z
2018-12-28T00:27:45Z
2018-12-28T00:27:45Z
DOC: FIx flake8 errors for whatsnew v0.7.* -v0.9.* rst
diff --git a/doc/source/whatsnew/v0.7.0.rst b/doc/source/whatsnew/v0.7.0.rst index 7049e836e2034..d63b4a3cb4df1 100644 --- a/doc/source/whatsnew/v0.7.0.rst +++ b/doc/source/whatsnew/v0.7.0.rst @@ -5,11 +5,6 @@ v.0.7.0 (February 9, 2012) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * # ...
- [x] closes #24260 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24273
2018-12-13T16:36:50Z
2018-12-14T20:33:54Z
2018-12-14T20:33:54Z
2018-12-16T07:11:20Z
REF/TST: Add more pytest idiom to indexing/multiindex/test_iloc.py
diff --git a/pandas/tests/indexing/multiindex/test_iloc.py b/pandas/tests/indexing/multiindex/test_iloc.py index c0d05197d89c4..b72b2aedf2037 100644 --- a/pandas/tests/indexing/multiindex/test_iloc.py +++ b/pandas/tests/indexing/multiindex/test_iloc.py @@ -1,5 +1,3 @@ -from warnings import catch_warnings - import nump...
- [ n/a] xref #24040 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ n/a] whatsnew entry in this PR: - unskip `test_iloc_getitem_multiindex2`. difference in series name resolved. some tests were duplicated in `test_iloc_getitem_multiindex` - `.ix` removed. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24272
2018-12-13T16:15:47Z
2018-12-14T13:44:40Z
2018-12-14T13:44:40Z
2018-12-15T11:20:10Z
EHN: Add filename to FileNotFoundError
diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 0b7edaf04a1ed..e0fcf102701f4 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -6,6 +6,7 @@ import time import warnings from csv import QUOTE_MINIMAL, QUOTE_NONNUMERIC, QUOTE_NONE +from errno import ENOENT from libc.stdl...
When pandas raises a `FileNotFoundError`, it was not setting the [`filename`](https://docs.python.org/3/library/exceptions.html#OSError.filename) component. This adds in that feature as well a test for it.
https://api.github.com/repos/pandas-dev/pandas/pulls/24266
2018-12-13T13:05:38Z
2019-01-05T22:02:42Z
2019-01-05T22:02:41Z
2019-01-07T09:39:31Z
BUG: Fix overflow bugs in date_Range
diff --git a/pandas/core/arrays/_ranges.py b/pandas/core/arrays/_ranges.py new file mode 100644 index 0000000000000..66c1b8e158672 --- /dev/null +++ b/pandas/core/arrays/_ranges.py @@ -0,0 +1,188 @@ +# -*- coding: utf-8 -*- +""" +Helper functions to generate range-like data for DatetimeArray +(and possibly TimedeltaArr...
- [x] closes #24123 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Fixing this turned out to be a small beast. The overflows of interest fall into three categories. First: overflows when computing `periods * stride` that ATM are _not_ caught,...
https://api.github.com/repos/pandas-dev/pandas/pulls/24255
2018-12-12T21:26:34Z
2018-12-23T17:32:50Z
2018-12-23T17:32:50Z
2018-12-23T17:33:57Z
BLD: json deprecated unicode capi
diff --git a/pandas/_libs/src/ujson/python/objToJSON.c b/pandas/_libs/src/ujson/python/objToJSON.c index a5e93640742aa..9662c59dddf4c 100644 --- a/pandas/_libs/src/ujson/python/objToJSON.c +++ b/pandas/_libs/src/ujson/python/objToJSON.c @@ -433,8 +433,7 @@ static void *PyUnicodeToUTF8(JSOBJ _obj, JSONTypeContext *tc, v...
closes #24221 just copying the upstream fix https://github.com/esnme/ultrajson/commit/ab8f41954a282c67acda7f07a670bb953b98b7c9
https://api.github.com/repos/pandas-dev/pandas/pulls/24254
2018-12-12T19:30:46Z
2018-12-13T00:44:44Z
2018-12-13T00:44:43Z
2018-12-13T00:44:51Z
Flake8 rst v0.14.x.rst
diff --git a/doc/source/whatsnew/v0.14.0.rst b/doc/source/whatsnew/v0.14.0.rst index 6ef2a61228ad2..ecb062c7d3680 100644 --- a/doc/source/whatsnew/v0.14.0.rst +++ b/doc/source/whatsnew/v0.14.0.rst @@ -5,11 +5,6 @@ v0.14.0 (May 31 , 2014) {{ header }} -.. ipython:: python - :suppress: - - from pandas import * #...
- [ ] closes #24240
https://api.github.com/repos/pandas-dev/pandas/pulls/24253
2018-12-12T18:56:12Z
2018-12-14T13:54:40Z
2018-12-14T13:54:40Z
2018-12-14T13:54:43Z
DOC: Fix quotes position in Timestamp and Timedelta
diff --git a/pandas/_libs/tslibs/timedeltas.pyx b/pandas/_libs/tslibs/timedeltas.pyx index b0bead2f66ce4..baca22f28f5c3 100644 --- a/pandas/_libs/tslibs/timedeltas.pyx +++ b/pandas/_libs/tslibs/timedeltas.pyx @@ -253,8 +253,10 @@ def array_to_timedelta64(object[:] values, unit='ns', errors='raise'): cdef inline in...
The validate_docstrings.py validator was returning errors for methods with no comments. I only worked on the methods that already had comments in this PR. - works on #24070
https://api.github.com/repos/pandas-dev/pandas/pulls/24243
2018-12-11T21:58:37Z
2018-12-13T14:44:32Z
null
2018-12-14T14:08:09Z
DOC: avoid warnings ipython 'Code input with no code'
diff --git a/doc/source/advanced.rst b/doc/source/advanced.rst index 483921393f3ea..6b30f0226ecff 100644 --- a/doc/source/advanced.rst +++ b/doc/source/advanced.rst @@ -694,7 +694,7 @@ Finally, as a small note on performance, because the ``take`` method handles a narrower range of inputs, it can offer performance that...
Need to check in the doc build log if this actually solves some of the warnings like ``` /home/travis/miniconda3/envs/pandas-dev/lib/python3.6/site-packages/IPython/sphinxext/ipython_directive.py:1020: UserWarning: Code input with no code at /home/travis/build/pandas-dev/pandas/doc/source/whatsnew/v0.24.0.rst, line...
https://api.github.com/repos/pandas-dev/pandas/pulls/24238
2018-12-11T18:16:27Z
2018-12-13T17:00:06Z
2018-12-13T17:00:06Z
2018-12-15T11:36:12Z
Fix flake8 issues on v19, v20 and v21.0.rst
diff --git a/doc/source/whatsnew/v0.19.0.rst b/doc/source/whatsnew/v0.19.0.rst index 1e4e7a6c80fa4..6f4e8e36cdc04 100644 --- a/doc/source/whatsnew/v0.19.0.rst +++ b/doc/source/whatsnew/v0.19.0.rst @@ -5,12 +5,6 @@ v0.19.0 (October 2, 2016) {{ header }} -.. ipython:: python - :suppress: - - from pandas import *...
closes #24219 closes #24220 closes #24222 - [x] run `python make.py --single whatsnew/v0.19.0`, `python make.py --single whatsnew/v0.20.0` etc. Related to: #24177
https://api.github.com/repos/pandas-dev/pandas/pulls/24236
2018-12-11T17:47:16Z
2018-12-13T02:00:03Z
2018-12-13T02:00:02Z
2019-01-02T20:26:09Z
CI: Not forcing imports to be sorted alphabetically
diff --git a/setup.cfg b/setup.cfg index 30b4d13bd0a66..f3d4f0116c189 100644 --- a/setup.cfg +++ b/setup.cfg @@ -142,7 +142,7 @@ known_third_party=Cython,numpy,python-dateutil,pytz,pyarrow,pytest multi_line_output=4 force_grid_wrap=0 combine_as_imports=True -force_sort_within_sections=True +force_sort_within_section...
Not sure what's your experience with it since we added the validation of the order of the imports. But most files are skipped and there is no work anymore on sorting the imports, and for the ones that we validate, the super strict order is bothering more than adding any value. I'm +1 on enforcing PEP8 and sorting im...
https://api.github.com/repos/pandas-dev/pandas/pulls/24234
2018-12-11T17:35:36Z
2018-12-11T22:52:39Z
null
2018-12-11T22:52:39Z
DOC: add back currentmodule to api.rst
diff --git a/doc/source/api.rst b/doc/source/api.rst index bcef5567c23e5..b785a2ce717f4 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1,3 +1,9 @@ +.. The currentmodule is needed here because the autosummary generation of files +.. happens before reading the files / substituting the header. +.. See https:...
xref https://github.com/pandas-dev/pandas/pull/24191 @datapythonista I don't understand why, but the `.. currentmodule:: pandas` does not seem to be picked up from `header.rst`, giving extra warnings and missing links (because in api.rst, everything up to the first inline `currentmodule`, is not found) See eg htt...
https://api.github.com/repos/pandas-dev/pandas/pulls/24232
2018-12-11T16:53:50Z
2018-12-11T22:54:45Z
2018-12-11T22:54:45Z
2018-12-11T22:54:46Z
REF/TST: Add more pytest idiom to tests/resample
diff --git a/pandas/tests/resample/conftest.py b/pandas/tests/resample/conftest.py index 2130bd635b180..d5b32891ea1df 100644 --- a/pandas/tests/resample/conftest.py +++ b/pandas/tests/resample/conftest.py @@ -1,7 +1,18 @@ +from datetime import datetime + +import numpy as np import pytest -from pandas.tests.resample....
xref #17806 follow-on from #24013 This pass replaces imports from tests/resample/test_base.py with fixtures and only parametrizes tests where necessary to accomplish this.
https://api.github.com/repos/pandas-dev/pandas/pulls/24230
2018-12-11T16:30:43Z
2018-12-13T13:05:03Z
2018-12-13T13:05:02Z
2018-12-13T19:37:31Z
Patch for pandas.core.computation.eval with str/byte ndarrays
diff --git a/pandas/core/computation/engines.py b/pandas/core/computation/engines.py index bccd37131c81a..ba8c733aa7f9e 100644 --- a/pandas/core/computation/engines.py +++ b/pandas/core/computation/engines.py @@ -58,7 +58,7 @@ def convert(self): """ return printing.pprint_thing(self.expr) - def e...
Hello, I am interested in using Pandas as a numexpr replacement, since its eval/query syntax is much cleaner. However, it doesn't quite work for me, since I rely on byte ndarrays, and I want to avoid DataFrames. Here is an example script that shows the problems I had, and how they are solved in a patched version. I am...
https://api.github.com/repos/pandas-dev/pandas/pulls/24228
2018-12-11T16:03:01Z
2018-12-15T21:24:17Z
null
2018-12-15T21:24:17Z
NumPyBackedExtensionArray
diff --git a/doc/source/api.rst b/doc/source/api.rst index 44a7d6f408030..2e9acfc1e09ed 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -3997,6 +3997,7 @@ objects. api.extensions.register_index_accessor api.extensions.ExtensionDtype api.extensions.ExtensionArray + arrays.PandasArray .. This...
Adds a NumPyBckedExtensionArray, a thin wrapper around ndarray implementing the EA interface. We use this to ensure that `Series.array -> ExtensionArray`, rather than a `Union[ndarray, ExtensionArray]`. xref #23995 --- cc @jreback @jorisvandenbossche @shoyer. Some idle thoughts: 1. I'm not sure whe...
https://api.github.com/repos/pandas-dev/pandas/pulls/24227
2018-12-11T15:21:55Z
2018-12-28T18:20:57Z
2018-12-28T18:20:57Z
2018-12-28T20:03:25Z
Fix flake8 issues on v22, v23 and v24rst
diff --git a/doc/source/whatsnew/v0.22.0.rst b/doc/source/whatsnew/v0.22.0.rst index 1fb87c9f5433f..b38fcd9d62af4 100644 --- a/doc/source/whatsnew/v0.22.0.rst +++ b/doc/source/whatsnew/v0.22.0.rst @@ -137,8 +137,8 @@ sum and ``1`` for product. .. code-block:: ipython In [11]: s = pd.Series([1, 1, np.nan, np.nan]...
- [x] closes #24200, #24201 and #24202 - [x] `flake8-rst source/whatsnew/v0.22.0.rst` and `flake8-rst source/whatsnew/v0.23.0.rst` This is related to #24177
https://api.github.com/repos/pandas-dev/pandas/pulls/24217
2018-12-11T00:57:15Z
2018-12-11T05:45:36Z
2018-12-11T05:45:36Z
2019-01-02T20:26:10Z
DOC/TST: Validate documentation pages
diff --git a/ci/run_tests.sh b/ci/run_tests.sh index ee46da9f52eab..27176a1c71789 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -3,8 +3,14 @@ set -e if [ "$DOC" ]; then - echo "We are not running pytest as this is a doc-build" - exit 0 + echo ############################### + echo # Lint doc...
- [x] closes #21520 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/24216
2018-12-10T23:57:52Z
2018-12-30T23:39:30Z
null
2018-12-30T23:39:30Z
Fix docstring of functions created with the deprecate() function
diff --git a/pandas/tests/util/test_deprecate.py b/pandas/tests/util/test_deprecate.py new file mode 100644 index 0000000000000..7fa7989eff690 --- /dev/null +++ b/pandas/tests/util/test_deprecate.py @@ -0,0 +1,63 @@ +from textwrap import dedent + +import pytest + +from pandas.util._decorators import deprecate + +import...
Functions created with `deprecate` function in `pandas.util._decorators` are causing us some problems, for example in #24188, as the docstring is created automatically, and the `.. deprecate::` directive was added at the start. This PR fixes the docstring of the functions created with `deprecate` and adds tests to the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24215
2018-12-10T23:18:45Z
2018-12-13T21:50:52Z
2018-12-13T21:50:52Z
2018-12-13T21:50:53Z
PERF: expand asv benchmark coverage
diff --git a/asv_bench/benchmarks/algorithms.py b/asv_bench/benchmarks/algorithms.py index 7dcd7b284d66d..34fb161e5afcb 100644 --- a/asv_bench/benchmarks/algorithms.py +++ b/asv_bench/benchmarks/algorithms.py @@ -16,63 +16,75 @@ class Factorize(object): - params = [True, False] - param_names = ['sort'] + ...
Continuing on the approach in #23935, I've identified significant functions with no benchmark coverage in the `asv` suite - this time extending the line tracing analysis down to the Cython layer. Of interest: - `merge_asof()` is only benchmarked in the default direction, despite the other two directions having uniqu...
https://api.github.com/repos/pandas-dev/pandas/pulls/24214
2018-12-10T22:03:08Z
2019-01-09T15:54:41Z
2019-01-09T15:54:40Z
2019-01-09T15:54:48Z
Alternative implementation for `.where` on EA-backed Indexes
diff --git a/pandas/core/indexes/category.py b/pandas/core/indexes/category.py index f1a05ec607b59..7233780843c48 100644 --- a/pandas/core/indexes/category.py +++ b/pandas/core/indexes/category.py @@ -507,8 +507,10 @@ def where(self, cond, other=None): # 3. Rebuild CategoricalIndex. if other is None: ...
- [ ] closes #24144 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24213
2018-12-10T21:29:20Z
2018-12-11T18:21:40Z
null
2018-12-11T18:21:56Z
BUG/PERF: Use EA in Index.get_value
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index 6b8d548251061..11673f332876f 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1209,6 +1209,7 @@ Performance Improvements - Improved performance of :func:`Series.describe` in case of numeric dtpyes...
Avoid converting the ExtensionArray to an ndarray. Before ``` pandas/tests/arrays/categorical/test_indexing.py F [100%] ========================================================================= FAILURES =========...
https://api.github.com/repos/pandas-dev/pandas/pulls/24204
2018-12-10T14:51:12Z
2018-12-10T17:59:27Z
2018-12-10T17:59:27Z
2018-12-10T17:59:31Z
DEPR: Deprecating .clip_lower and .clip_upper
diff --git a/doc/source/whatsnew/v0.24.0.rst b/doc/source/whatsnew/v0.24.0.rst index a18c26f911f1d..fdfd6c8c26a52 100644 --- a/doc/source/whatsnew/v0.24.0.rst +++ b/doc/source/whatsnew/v0.24.0.rst @@ -1115,6 +1115,7 @@ Deprecations - Creating a :class:`TimedeltaIndex` or :class:`DatetimeIndex` by passing range argumen...
- [X] xref #18262 - [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/24203
2018-12-10T13:20:33Z
2018-12-10T17:23:16Z
2018-12-10T17:23:16Z
2018-12-10T17:23:16Z
DOC: Fixed implicit imports for whatsnew (v >= version 20.0)
diff --git a/doc/source/whatsnew/v0.23.1.rst b/doc/source/whatsnew/v0.23.1.rst index f8bfced171a7c..f6af2990c935b 100644 --- a/doc/source/whatsnew/v0.23.1.rst +++ b/doc/source/whatsnew/v0.23.1.rst @@ -5,11 +5,6 @@ What's New in 0.23.1 (June 12, 2018) {{ header }} -.. ipython:: python - :suppress: - - from pand...
- [x] xref #24177 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry This partially resolves #24177 .
https://api.github.com/repos/pandas-dev/pandas/pulls/24199
2018-12-10T10:55:25Z
2018-12-11T16:34:24Z
2018-12-11T16:34:24Z
2018-12-11T16:43:58Z
CLN: Remove tmp.xlsx
diff --git a/tmp.xlsx b/tmp.xlsx deleted file mode 100644 index 199e9049bfa96..0000000000000 Binary files a/tmp.xlsx and /dev/null differ
For some reason a file, `tmp.xlsx`, got included in this commit. https://github.com/pandas-dev/pandas/pull/24086/files#diff-0a840748858a9d8ed007d67b7c7c5fef Contents are the same as this docstring: https://github.com/pandas-dev/pandas/blob/master/pandas/io/excel.py#L251
https://api.github.com/repos/pandas-dev/pandas/pulls/24194
2018-12-10T06:35:32Z
2018-12-10T11:47:11Z
2018-12-10T11:47:11Z
2018-12-10T16:10:44Z
TST: Add test case when the key is a reserved key
diff --git a/pandas/tests/test_config.py b/pandas/tests/test_config.py index fd8e98c483f78..4e746c49b928b 100644 --- a/pandas/tests/test_config.py +++ b/pandas/tests/test_config.py @@ -62,6 +62,10 @@ def test_register_option(self): pytest.raises(KeyError, self.cf.register_option, 'a.b.c.d2', 1, ...
- [ ] closes #24192 - [ ] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry I saw the reserved_key array on top of the `pandas/core/config.py` file. ``` _reserved_keys = ['all'] # keys which have a special meaning ``` So, I added the test case f...
https://api.github.com/repos/pandas-dev/pandas/pulls/24193
2018-12-10T02:47:36Z
2018-12-10T12:24:53Z
null
2018-12-10T12:24:53Z
DOC: Adding header to the rst files that don't have it
diff --git a/doc/source/api.rst b/doc/source/api.rst index 49c89a53e7b17..bcef5567c23e5 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1,6 +1,7 @@ -.. currentmodule:: pandas .. _api: +{{ header }} + ************* API Reference ************* diff --git a/doc/source/contributing_docstring.rst b/doc/so...
When using the new style for the pandas documentation, we'll be using the `{{ header }}` context to set the `:tocdepth:` of all pages (sphinx does not have a setting to set all the `:tocdepth:` at once). In #24086 we added to most `.rst` files the header, that it's also used to import pandas and numpy, and set some ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24191
2018-12-10T01:52:25Z
2018-12-10T17:24:11Z
2018-12-10T17:24:11Z
2018-12-11T16:55:59Z
DOC: Fix summaries not ending with a period
diff --git a/pandas/core/accessor.py b/pandas/core/accessor.py index fa1dc751c17da..93b4ce31a1e25 100644 --- a/pandas/core/accessor.py +++ b/pandas/core/accessor.py @@ -59,7 +59,7 @@ def _delegate_method(self, name, *args, **kwargs): def _add_delegate_accessors(cls, delegate, accessors, typ, ...
I have fixed all 'Summary does not end with a period' issue except these two: ![image](https://user-images.githubusercontent.com/25010571/49705373-ed2f8180-fbeb-11e8-9f7c-5cf8d2b3aa81.png) I couldn't find the linenumbers in the corresponding file, and also couldn't fix it by looking for 'argmin' or 'argmax' in Panda ...
https://api.github.com/repos/pandas-dev/pandas/pulls/24190
2018-12-10T00:54:12Z
2018-12-11T23:15:43Z
2018-12-11T23:15:43Z
2018-12-12T01:04:55Z
DOC: Fix 10min.rst flake8 issues
diff --git a/doc/source/10min.rst b/doc/source/10min.rst index 53618e008a403..a7557e6e1d1c2 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -51,7 +51,7 @@ Creating a ``DataFrame`` by passing a dict of objects that can be converted to s 'F': 'foo'}) df2 -The columns of the r...
Also removes some trailing whitespaces. - [x] closes #24174 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/24189
2018-12-09T23:43:38Z
2018-12-10T12:17:51Z
2018-12-10T12:17:51Z
2018-12-10T12:17:53Z
DOC: Deprecation directive in Docstrings should be placed before the extended summary
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 8462d9ad83431..5b2411ddab6fd 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -209,8 +209,8 @@ fi ### DOCSTRINGS ### if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then - MSG='Validate docstrings (GL06, SS04, PR03, PR05, EX04)' ; echo $MSG - ...
- [x] closes #24143 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Two methods still show errors due to their docstrings being generated by the [deprecate](https://github.com/pandas-dev/pandas/blob/v0.23.4/pandas/util/_decorators.py#L10) method...
https://api.github.com/repos/pandas-dev/pandas/pulls/24188
2018-12-09T23:33:51Z
2018-12-16T01:59:13Z
2018-12-16T01:59:13Z
2018-12-16T02:01:26Z
DOC: Fix dsintro.rst flake8 issues
diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst index 8bdb0005de53c..d4a83b6807fd5 100644 --- a/doc/source/dsintro.rst +++ b/doc/source/dsintro.rst @@ -71,7 +71,7 @@ Series can be instantiated from dicts: .. ipython:: python - d = {'b' : 1, 'a' : 0, 'c' : 2} + d = {'b': 1, 'a': 0, 'c': 2} pd.S...
- [x] closes #24175 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/24187
2018-12-09T23:19:35Z
2018-12-10T12:22:36Z
2018-12-10T12:22:36Z
2018-12-10T12:22:40Z
DOC: Fix visualization.rst flake8 issues
diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst index ce3c335b431ad..23207a0e11a65 100644 --- a/doc/source/visualization.rst +++ b/doc/source/visualization.rst @@ -26,7 +26,7 @@ libraries that go beyond the basics documented here. Basic Plotting: ``plot`` ------------------------ -We will d...
Removes a number of trailing whitespaces as well - [x] closes #24181 - [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/24186
2018-12-09T21:31:08Z
2018-12-10T12:20:19Z
2018-12-10T12:20:19Z
2018-12-10T12:20:19Z
DOC: Repair doc/source/merging.rst flake8 issues
diff --git a/doc/source/merging.rst b/doc/source/merging.rst index 4cd262cd03f00..6f7ee4917f494 100644 --- a/doc/source/merging.rst +++ b/doc/source/merging.rst @@ -39,19 +39,19 @@ a simple example: 'B': ['B0', 'B1', 'B2', 'B3'], 'C': ['C0', 'C1', 'C2', 'C3'], ...
Repairs flake8 issues, removes exclusion from ``setup.cfg``. - [x] closes #24179 - [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/24185
2018-12-09T21:00:05Z
2018-12-10T12:21:13Z
2018-12-10T12:21:13Z
2018-12-10T12:21:18Z
DOC: Fix docstring of window.Expanding/Rolling.apply and document *args and **kwargs
diff --git a/pandas/core/window.py b/pandas/core/window.py index f7c23172172ac..5a9157b43ecd6 100644 --- a/pandas/core/window.py +++ b/pandas/core/window.py @@ -32,12 +32,13 @@ _doc_template = """ Returns ------- - same type as input + Series or DataFrame + Return type is det...
This pull request will - Fix docstring formatting for ```pandas.core.window.Expanding.apply``` and ```pandas.core.window.Rolling.apply``` - Document ```*args``` and ```**kwargs``` parameters: The following functions had ```*args``` and ```**kwargs``` added to their docstring: ```Rolling.max``` ```Expanding.m...
https://api.github.com/repos/pandas-dev/pandas/pulls/24184
2018-12-09T19:47:34Z
2019-01-07T16:11:09Z
2019-01-07T16:11:09Z
2019-01-07T16:11:18Z
DOC: Fix flake8 issues in doc/source/reshaping.rst
diff --git a/doc/source/reshaping.rst b/doc/source/reshaping.rst index 059e6eb2138f3..d9fbb52f2e56a 100644 --- a/doc/source/reshaping.rst +++ b/doc/source/reshaping.rst @@ -18,12 +18,12 @@ Reshaping by pivoting DataFrame objects tm.N = 3 def unpivot(frame): - N, K = frame.shape - data = {'value': fr...
- [x] closes #24180 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/24183
2018-12-09T19:42:43Z
2018-12-10T13:36:50Z
2018-12-10T13:36:49Z
2018-12-10T15:41:44Z