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
TST: test custom _formatter for ExtensionArray + revert ExtensionArrayFormatter removal
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 18aa0580d7df7..24fcb32d09d27 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1061,9 +1061,11 @@ def _format_with_header(self, header, **kwargs): def _format_native_types(self, na_rep='NaN',...
xref https://github.com/pandas-dev/pandas/pull/26833#issuecomment-502012046 @simonjayhawkins this would be a test for the `_formatter` functionality (it is passing on master before the removal of ExtensionArrayFormatter Adds an actual test for EA._formatter + reverts https://github.com/pandas-dev/pandas/pull/2683...
https://api.github.com/repos/pandas-dev/pandas/pulls/26845
2019-06-14T08:17:02Z
2019-06-14T12:51:06Z
2019-06-14T12:51:05Z
2019-06-14T13:01:35Z
DEPR: deprecate Timedelta.resolution
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index fd47ca14dc788..d3851662c34ec 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -501,7 +501,7 @@ Other Deprecations Use the public attributes :attr:`~RangeIndex.start`, :attr:`~RangeIndex.stop` and...
- [x] closes #21344 - [x] tests added / passed - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [x] whatsnew entry AFAICT we don't have any tests specifically for Timedelta.resolution, so added one for reso_str.
https://api.github.com/repos/pandas-dev/pandas/pulls/26839
2019-06-13T23:00:13Z
2019-06-17T11:44:40Z
2019-06-17T11:44:40Z
2019-06-17T17:06:27Z
BUG: Handle NA values for ExtensionArrays in Series.count
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 76ee21b4c9a50..d7cf8f6a24f6e 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -729,11 +729,16 @@ Sparse - Bug in :class:`SparseDataFrame` when adding a column in which the length of values does not...
- [X] closes #26835 - [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/26836
2019-06-13T18:22:27Z
2019-06-21T21:19:59Z
2019-06-21T21:19:58Z
2019-06-22T03:02:48Z
DOC: array class docstring pages without autosummary tables
diff --git a/doc/source/reference/arrays.rst b/doc/source/reference/arrays.rst index fb9a95b6736d5..38406bf5b2656 100644 --- a/doc/source/reference/arrays.rst +++ b/doc/source/reference/arrays.rst @@ -144,6 +144,7 @@ If the data are tz-aware, then every value in the array must have the same timez .. autosummary:: ...
See discussion in https://github.com/pandas-dev/pandas/pull/26810 This just adds the "class_without_autosummary". Longer term, we could choose to add certain methods of the Array API to the html api pages, but for now just wanted to do this to get rid of the warnings.
https://api.github.com/repos/pandas-dev/pandas/pulls/26834
2019-06-13T17:48:09Z
2019-06-14T06:43:55Z
2019-06-14T06:43:54Z
2019-06-14T06:43:58Z
REF: remove ExtensionArrayFormatter
diff --git a/pandas/core/indexes/interval.py b/pandas/core/indexes/interval.py index 24fcb32d09d27..18aa0580d7df7 100644 --- a/pandas/core/indexes/interval.py +++ b/pandas/core/indexes/interval.py @@ -1061,11 +1061,9 @@ def _format_with_header(self, header, **kwargs): def _format_native_types(self, na_rep='NaN',...
- [ ] precursor #26000 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/26833
2019-06-13T17:42:06Z
2019-06-13T19:04:29Z
2019-06-13T19:04:29Z
2019-06-21T09:53:42Z
Bump minimum verions
diff --git a/ci/deps/azure-35-compat.yaml b/ci/deps/azure-35-compat.yaml index 6643f804eb6f7..c783670e78d52 100644 --- a/ci/deps/azure-35-compat.yaml +++ b/ci/deps/azure-35-compat.yaml @@ -3,20 +3,20 @@ channels: - defaults - conda-forge dependencies: - - beautifulsoup4=4.4.1 + - beautifulsoup4=4.6.0 - bott...
xref https://github.com/pandas-dev/pandas/pull/26595#issuecomment-500934897
https://api.github.com/repos/pandas-dev/pandas/pulls/26832
2019-06-13T16:56:52Z
2019-06-13T19:53:56Z
2019-06-13T19:53:56Z
2019-06-13T19:53:57Z
DOC: Replacing travis doc deps by environment.yml
diff --git a/.travis.yml b/.travis.yml index fd59544d9b3c6..4d1281819e2cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -51,14 +51,14 @@ matrix: # In allow_failures - dist: trusty env: - - JOB="3.6, doc" ENV_FILE="ci/deps/travis-36-doc.yaml" DOC=true + - JOB="3.6, doc" ENV_FILE="environme...
Let's see if #26656 is now fixed. We shouldn't see the pyarrow warnings in either travis or azure builds. CC: @minggli
https://api.github.com/repos/pandas-dev/pandas/pulls/26829
2019-06-13T11:36:17Z
2019-06-18T11:38:29Z
2019-06-18T11:38:29Z
2019-06-18T11:38:29Z
DOC: Fixing more doc warnings
diff --git a/doc/source/reference/indexing.rst b/doc/source/reference/indexing.rst index 6d27e225b681e..8931caf394388 100644 --- a/doc/source/reference/indexing.rst +++ b/doc/source/reference/indexing.rst @@ -190,6 +190,9 @@ Numeric Index .. autosummary:: :toctree: api/ + RangeIndex.start + RangeIndex.stop +...
- [X] xref #24173 - [ ] tests added / passed - [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` - [ ] whatsnew entry Another set of doc warning fixes. CC: @jorisvandenbossche
https://api.github.com/repos/pandas-dev/pandas/pulls/26826
2019-06-13T07:33:15Z
2019-06-13T08:17:21Z
2019-06-13T08:17:21Z
2019-06-13T08:17:21Z
BUG: fix tzaware dataframe transpose bug
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 18a3785867714..0d6e94cb1e3d0 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -775,6 +775,7 @@ Reshaping - Bug in :func:`DataFrame.sort_index` where an error is thrown when a multi-indexed ``DataFr...
This allows us to get rid of a bunch of xfails and FIXMEs in arithmetic tests. Changes in groupby are the most likely to need attention; this is not an area of the code I know well. Not sure if TestTranspose belongs somewhere else. Suggestions welcome. Split a couple of too-widely-scoped groupby tests. Will ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26825
2019-06-13T04:10:08Z
2019-06-27T20:39:25Z
2019-06-27T20:39:25Z
2019-06-27T20:40:20Z
Remove annotations to make CI happy
diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index a3c0e6691dd22..f36ff5c2b8abd 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -1,7 +1,6 @@ import distutils.version import importlib import types -from typing import Optional import warnings # Update install.rst...
I must have been a little quick in merging #26802 as it looks like this is causing mypy failures in CI. Most of these are pretty niche and I think a result of import machinery. Will try to dive deeper later but this should get things green for now
https://api.github.com/repos/pandas-dev/pandas/pulls/26820
2019-06-12T21:12:05Z
2019-06-13T00:00:11Z
2019-06-13T00:00:11Z
2019-06-13T00:00:15Z
CLN: remove util._decorators.make_signature and make related changes
diff --git a/pandas/_typing.py b/pandas/_typing.py index a2bb168c1e2da..0044b269eb7b5 100644 --- a/pandas/_typing.py +++ b/pandas/_typing.py @@ -9,7 +9,7 @@ from pandas.core.dtypes.dtypes import ExtensionDtype from pandas.core.dtypes.generic import ( - ABCExtensionArray, ABCIndexClass, ABCSeries, ABCSparseSeries...
``util._decorators.make_signature`` is only used in ``core.groupby.base.whitelist_method_generator``. However, in that function it is only used inside an if statement, that is conditional upon an attribute being a method. That however can not happen, as the function parameter only takes classes as an input, so that ...
https://api.github.com/repos/pandas-dev/pandas/pulls/26819
2019-06-12T20:56:14Z
2019-06-14T14:22:42Z
2019-06-14T14:22:42Z
2019-06-14T15:54:01Z
COMPAT: reading generic PyTables Table format fails with sub-selection
diff --git a/doc/source/whatsnew/v0.25.0.rst b/doc/source/whatsnew/v0.25.0.rst index 77b689569d57f..467cb5a40213c 100644 --- a/doc/source/whatsnew/v0.25.0.rst +++ b/doc/source/whatsnew/v0.25.0.rst @@ -699,6 +699,7 @@ I/O - Bug in :func:`read_csv` not properly interpreting the UTF8 encoded filenames on Windows on Pytho...
- [x] closes #11188 - [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/26818
2019-06-12T20:05:26Z
2019-06-21T14:19:43Z
2019-06-21T14:19:43Z
2019-06-21T16:09:46Z
make null lowercase a missing value
diff --git a/doc/source/io.rst b/doc/source/io.rst index bca23dd18a0e3..82cb7abde4b38 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -227,7 +227,7 @@ na_values : scalar, str, list-like, or dict, default ``None`` Additional strings to recognize as NA/NaN. If dict passed, specific per-column NA values. B...
xref #16079 closes https://github.com/pandas-dev/pandas/issues/16471
https://api.github.com/repos/pandas-dev/pandas/pulls/16534
2017-05-29T20:02:46Z
2017-06-01T22:19:11Z
2017-06-01T22:19:11Z
2017-06-03T12:43:39Z
COMPAT: Consider Python 2.x tarfiles file-like
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 9f88d629880ed..b21ea88bf177f 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -70,6 +70,7 @@ I/O - Bug in pd.read_csv() when comment is passed in space deliminted text files (:issue:`16472`) - Bug...
`Tarfile.ExFileObject` has no `next` method in Python 2.x, making it an invalid file-like object in `read_csv`. However, they can be read in just fine, meaning our check is too strict for file-like. This commit relaxes the check to just look for the `__iter__` attribute. Closes #16530.
https://api.github.com/repos/pandas-dev/pandas/pulls/16533
2017-05-29T17:15:56Z
2017-06-01T10:38:51Z
2017-06-01T10:38:51Z
2017-06-04T17:02:56Z
CLN: raise correct error for Panel sort_values
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e541f1532d0a0..98999ec267c82 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2366,9 +2366,14 @@ def add_suffix(self, suffix): 1 A 1 1 """ - def sort_values(self, by, axis=0, ascending=True, inplace=Fal...
- [x] closes #15960 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry I do not believe there is a need for tests or whatsnew entry. I modified the error raised (I think NotImplementedError should reflect better the situation) an...
https://api.github.com/repos/pandas-dev/pandas/pulls/16532
2017-05-29T16:55:09Z
2017-05-31T23:10:24Z
2017-05-31T23:10:24Z
2017-05-31T23:10:29Z
TST: Skip test_database_uri_string if pg8000 importable
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 7b3717281bf89..23ec1ab820f8a 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -938,6 +938,13 @@ def test_database_uri_string(self): # using driver that will not be installed on Travis to trigger error ...
- [x] closes #16527 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16528
2017-05-28T20:02:16Z
2017-06-01T19:50:38Z
2017-06-01T19:50:37Z
2018-02-11T23:41:09Z
TST: Specify HTML file encoding on PY3
diff --git a/pandas/tests/io/test_html.py b/pandas/tests/io/test_html.py index 6da77bf423609..1e1d653cf94d1 100644 --- a/pandas/tests/io/test_html.py +++ b/pandas/tests/io/test_html.py @@ -20,7 +20,7 @@ from pandas import (DataFrame, MultiIndex, read_csv, Timestamp, Index, date_range, Series) fro...
- [x] closes #16525 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16526
2017-05-28T18:59:57Z
2017-05-29T16:00:42Z
2017-05-29T16:00:42Z
2019-01-30T22:16:42Z
BUG: read_msgpack raise an error when passed an non existent path in Python 2
diff --git a/doc/source/whatsnew/v0.22.0.txt b/doc/source/whatsnew/v0.22.0.txt index e85ba505887b4..4b2999416ffbe 100644 --- a/doc/source/whatsnew/v0.22.0.txt +++ b/doc/source/whatsnew/v0.22.0.txt @@ -86,6 +86,8 @@ Documentation Changes Bug Fixes ~~~~~~~~~ +- Bug in ``pd.read_msgpack()`` with a non existent file is...
- [ ] closes #15296 - [x] 11 tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry This PR adds tests to check that a suitable error is raised when a non existent path is passed to `pd.read_xxxxx()`. A fix is also included for `read_msgpac...
https://api.github.com/repos/pandas-dev/pandas/pulls/16523
2017-05-28T10:20:00Z
2017-10-30T12:53:40Z
2017-10-30T12:53:40Z
2017-10-30T13:02:31Z
MAINT: Drop has_index_names input from read_excel
diff --git a/doc/source/io.rst b/doc/source/io.rst index bca23dd18a0e3..af337d770c7f7 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -2739,11 +2739,6 @@ should be passed to ``index_col`` and ``header`` import os os.remove('path_to_file.xlsx') -.. warning:: - - Excel files saved in version 0.16.2 ...
Deprecated since 0.17.0 xref #10967
https://api.github.com/repos/pandas-dev/pandas/pulls/16522
2017-05-28T09:56:03Z
2017-06-01T22:24:20Z
2017-06-01T22:24:19Z
2017-06-03T08:40:45Z
DOC: Improving docstring of pop method (#16416)
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 5722539b87aec..a4bb746722c1e 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -547,6 +547,43 @@ def swapaxes(self, axis1, axis2, copy=True): def pop(self, item): """ Return item and drop from frame. Raise KeyErr...
- [ ] closes #xxxx - [ ] tests added / passed - [X] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry As discussed in gitter, it'd be nice to have more and better examples in the API documentation. I think it'd be nice to have as many examples as possible with the ...
https://api.github.com/repos/pandas-dev/pandas/pulls/16520
2017-05-27T21:03:38Z
2017-07-15T15:38:23Z
2017-07-15T15:38:23Z
2017-07-15T15:38:26Z
DOC: Remove preference for pytest paradigm in assert_raises_regex
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index f987045c27d5f..17e09b38b20e0 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -2424,15 +2424,8 @@ def assert_raises_regex(_exception, _regexp, _callable=None, Check that the specified Exception is raised and that the error messag...
`tm.assert_raises_regex` is a more compact version of the following: ~~~python with pytest.raises(<exc_type>) as exc_info: f(...) exc_info.match(<regex>) ~~~ No reason for the docs to say that we prefer the `pytest` paradigm over our own. xref <a href="https://github.com/pandas-dev/pandas/pull/16511#dis...
https://api.github.com/repos/pandas-dev/pandas/pulls/16518
2017-05-27T00:57:28Z
2017-05-27T01:35:12Z
2017-05-27T01:35:12Z
2017-05-27T16:39:26Z
DOC: Update Sphinx Deprecated Directive
diff --git a/doc/source/io.rst b/doc/source/io.rst index e7c1cc13d103d..74a604339cddb 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -137,8 +137,10 @@ usecols : array-like or callable, default ``None`` Using this parameter results in much faster parsing time and lower memory usage. as_recarray : boolea...
- [x] closes #16507 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry XR #6581 for version numbers. Hopefully whitespace is okay.
https://api.github.com/repos/pandas-dev/pandas/pulls/16512
2017-05-26T07:07:31Z
2017-06-27T07:23:40Z
2017-06-27T07:23:40Z
2017-09-11T07:39:30Z
Fix unbound local with bad engine
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 13365401f1d1c..48c2d772ab35f 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -39,6 +39,9 @@ Bug Fixes - Bug in using ``pathlib.Path`` or ``py.path.local`` objects with io functions (:issue:`1629...
This was so small I figured simpler to put up a PR rather than issue then PR. :) Previously, passing a bad engine to read_csv gave an less-than-informative UnboundLocalError: ``` Traceback (most recent call last): File "example_test.py", line 9, in <module> pd.read_csv(tfp.name, engine='pyt') File "/U...
https://api.github.com/repos/pandas-dev/pandas/pulls/16511
2017-05-26T04:53:34Z
2017-05-31T10:39:46Z
2017-05-31T10:39:46Z
2017-06-04T17:02:56Z
PERF: optimized median func when bottleneck not present
diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index fe5342c520196..5fa0c1ff9253f 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -379,6 +379,8 @@ Performance Improvements - Improved performance of :func:`IntervalIndex.symmetric_difference()` (:issu...
closes #16468 Uses np.nanmedian to compute median instead of internal algos.median when bottleneck is not present/turned off. Has order of magnitude performance benefits `df = pd.DataFrame(np.random.randn(10000, 2), columns=list('AB'))` Before ``` >>> pd.set_option('use_bottleneck', False) >>> %timeit df.m...
https://api.github.com/repos/pandas-dev/pandas/pulls/16509
2017-05-25T22:10:38Z
2018-01-22T11:11:55Z
2018-01-22T11:11:55Z
2018-01-22T11:11:55Z
Add inplace support for rename_axis
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 36ca79e8b8714..48d835272537f 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -33,6 +33,7 @@ Other Enhancements - The ``validate`` argument for :func:`merge` function now checks whether a merge is ...
- [x] closes #15704 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
https://api.github.com/repos/pandas-dev/pandas/pulls/16505
2017-05-25T21:14:54Z
2017-06-13T23:07:52Z
2017-06-13T23:07:52Z
2017-06-13T23:07:59Z
BUG: clip dataframe column-wise #15390
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 5515d093f39e4..ce0d40d327c15 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -135,6 +135,7 @@ Reshaping Numeric ^^^^^^^ +- Bug in ``.clip()`` with ``axis=1`` and a list-like for ``threshold`` i...
The bug is due to that `where` doesn't take array-like as argument other, as documented. I just casted array like stuff to Series with appropriate index. - [X] closes #15390 - [X] test_clip_against_list in frame/test_analytics and series/test_analytics - [X] passes ``git diff upstream/master --name-only -- '*....
https://api.github.com/repos/pandas-dev/pandas/pulls/16504
2017-05-25T20:53:50Z
2017-07-01T08:41:37Z
2017-07-01T08:41:37Z
2017-07-01T08:41:42Z
TST: ujson tests are not being run (#16499)
diff --git a/pandas/tests/io/json/test_ujson.py b/pandas/tests/io/json/test_ujson.py index 662f06dbb725e..76fb6d442a25a 100644 --- a/pandas/tests/io/json/test_ujson.py +++ b/pandas/tests/io/json/test_ujson.py @@ -27,7 +27,7 @@ else partial(json.dumps, encoding="utf-8")) -class UltraJSONTests(object...
add Test prefix on classes to enable PyTest picking them up. add underscore in test method where applicable. E.G. testBool() to test_Bool(). - [X] closes #16499 - [X] tests added / passed - [X] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16500
2017-05-25T18:33:05Z
2017-05-26T19:11:56Z
2017-05-26T19:11:56Z
2017-05-30T12:20:23Z
DOC: added string processing comparison with SAS
diff --git a/doc/source/comparison_with_sas.rst b/doc/source/comparison_with_sas.rst index 875358521173a..02e0f46d36c84 100644 --- a/doc/source/comparison_with_sas.rst +++ b/doc/source/comparison_with_sas.rst @@ -357,6 +357,146 @@ takes a list of columns to sort by. tips = tips.sort_values(['sex', 'total_bill']) ...
#13229 Added string processing section to comparison_with_sas DOC. Used info from http://blog.dominodatalab.com/using-r-and-python-for-common-sas-functions. This completes half of the issue. Working on R next.
https://api.github.com/repos/pandas-dev/pandas/pulls/16497
2017-05-25T17:12:21Z
2017-08-07T12:56:54Z
2017-08-07T12:56:54Z
2017-08-07T12:58:36Z
BUG: Fixed tput output on windows
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 86e7812765b40..ea02ed78ea413 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -36,6 +36,8 @@ Performance Improvements Bug Fixes ~~~~~~~~~ +- Silenced a warning on some Windows environments about...
This came up in [dask]( https://ci.appveyor.com/project/daskdev/dask/build/1.0.1397#L477). For reasons I don't understand, you can end up with a bunch of warnings like `tput: terminal attributes: No such device or address` when pandas calls `get_terminal_size` I was able to monkey patch those calls with `shutil.get...
https://api.github.com/repos/pandas-dev/pandas/pulls/16496
2017-05-25T16:17:09Z
2017-05-30T22:52:56Z
2017-05-30T22:52:56Z
2017-06-04T20:29:32Z
CLN: Small linting failures
diff --git a/pandas/tests/frame/test_combine_concat.py b/pandas/tests/frame/test_combine_concat.py index f32efccf85fc6..e82faaeef2986 100644 --- a/pandas/tests/frame/test_combine_concat.py +++ b/pandas/tests/frame/test_combine_concat.py @@ -778,10 +778,11 @@ def test_update_nan(self): tm.assert_frame_equal(df1...
Some slipped in.
https://api.github.com/repos/pandas-dev/pandas/pulls/16491
2017-05-25T02:13:30Z
2017-05-25T03:24:05Z
2017-05-25T03:24:05Z
2017-05-30T12:20:23Z
ENH #15972 added margins_name parameter for crosstab
diff --git a/doc/source/whatsnew/v0.20.0.txt b/doc/source/whatsnew/v0.20.0.txt index a0bf2f9b3758a..9d475390175b2 100644 --- a/doc/source/whatsnew/v0.20.0.txt +++ b/doc/source/whatsnew/v0.20.0.txt @@ -515,7 +515,6 @@ Other Enhancements - Options added to allow one to turn on/off using ``bottleneck`` and ``numexpr``, s...
- closes #15972 - 1 tests added / passed - passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16489
2017-05-24T22:55:01Z
2017-05-26T14:43:13Z
2017-05-26T14:43:13Z
2017-05-26T14:43:20Z
DOC: Update to docstring of DataFrame(dtype) (#14764)
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 743d623ee5e44..907959c42323e 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -241,17 +241,47 @@ class DataFrame(NDFrame): Column labels to use for resulting frame. Will default to np.arange(n) if no column labels are provid...
- [ ] closes #14764 - [ ] tests added / passed - [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16487
2017-05-24T21:21:15Z
2017-05-31T08:54:26Z
2017-05-31T08:54:26Z
2017-05-31T15:34:09Z
return empty MultiIndex for symmetrical difference on equal MultiIndexes
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 90146aa176b31..692e0c02606ad 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -40,6 +40,7 @@ Bug Fixes - Silenced a warning on some Windows environments about "tput: terminal attributes: No such de...
- [X] closes #13490 - [X] tests added / passed - [X] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
https://api.github.com/repos/pandas-dev/pandas/pulls/16486
2017-05-24T20:40:41Z
2017-05-31T11:56:52Z
2017-05-31T11:56:52Z
2017-06-04T17:02:56Z
[Issue: #16483] Adding GroupBy Filter to API docs.
diff --git a/doc/source/api.rst b/doc/source/api.rst index cb5136df1ff8b..83abd84d36eb4 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -1738,6 +1738,7 @@ application to columns of a specific data type. DataFrameGroupBy.diff DataFrameGroupBy.ffill DataFrameGroupBy.fillna + DataFrameGroupBy.fil...
- [ ] closes #16483 - [ ] tests added / passed - [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16484
2017-05-24T19:05:07Z
2017-05-24T23:03:46Z
2017-05-24T23:03:46Z
2017-05-24T23:04:11Z
TST: Fix excel test discovery
diff --git a/pandas/io/excel.py b/pandas/io/excel.py index 81a36b21b3617..aa08e5fd378f0 100644 --- a/pandas/io/excel.py +++ b/pandas/io/excel.py @@ -8,6 +8,7 @@ import os import abc +import warnings import numpy as np from pandas.core.dtypes.common import ( @@ -30,7 +31,7 @@ import pandas.compat.openpyxl_compa...
closes #16477 Locally: ``` ======================================== 26 failed, 358 passed, 48 skipped, 1 xfailed, 61 warnings in 20.85 seconds ======================================== ```
https://api.github.com/repos/pandas-dev/pandas/pulls/16478
2017-05-24T12:04:01Z
2017-05-26T12:48:06Z
2017-05-26T12:48:06Z
2017-05-29T20:43:32Z
ENH: add nthreads option to feather-format IO
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 4cb55ec6b117b..13e0d677b79e8 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -35,6 +35,7 @@ Other Enhancements - ``RangeIndex.append`` now returns a ``RangeIndex`` object when possible (:issue:`16...
closes #16359
https://api.github.com/repos/pandas-dev/pandas/pulls/16476
2017-05-24T10:37:02Z
2017-05-24T22:48:12Z
2017-05-24T22:48:11Z
2017-05-24T22:49:36Z
COMPAT: feather-format 0.4.0 compat
diff --git a/ci/requirements-3.5_OSX.sh b/ci/requirements-3.5_OSX.sh index cfbd2882a8a2d..39ea1a0cf67bf 100644 --- a/ci/requirements-3.5_OSX.sh +++ b/ci/requirements-3.5_OSX.sh @@ -4,4 +4,4 @@ source activate pandas echo "install 35_OSX" -conda install -n pandas -c conda-forge feather-format +conda install -n pand...
https://api.github.com/repos/pandas-dev/pandas/pulls/16475
2017-05-24T10:14:29Z
2017-05-24T10:35:21Z
2017-05-24T10:35:21Z
2017-05-30T12:22:44Z
TST: Fix test assertions
diff --git a/pandas/tests/groupby/test_nth.py b/pandas/tests/groupby/test_nth.py index 7912b4bf3bdf6..47e6e7839422a 100644 --- a/pandas/tests/groupby/test_nth.py +++ b/pandas/tests/groupby/test_nth.py @@ -153,8 +153,8 @@ def test_nth(self): expected = s.groupby(g).first() expected2 = s.groupby(g).appl...
- [ ] closes #xxxx - [ ] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry This fixes some test assertions that were only checking the truthiness of a value when they should have been comparing two values. Initially, through typos, tests ...
https://api.github.com/repos/pandas-dev/pandas/pulls/16470
2017-05-24T03:23:29Z
2017-05-24T10:38:03Z
2017-05-24T10:38:03Z
2017-05-24T10:38:07Z
DOC: add examples to set_index method
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 78a369761afc1..574db33d93b36 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2947,9 +2947,44 @@ def set_index(self, keys, drop=True, append=False, inplace=False, Examples -------- - >>> indexed_df = df.set_index([...
- [x] related to #16416 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry Added better examples in the doc for the dataframe set_index() method.
https://api.github.com/repos/pandas-dev/pandas/pulls/16467
2017-05-23T23:04:04Z
2017-05-25T02:19:33Z
2017-05-25T02:19:33Z
2017-05-26T17:28:26Z
ENH: Add to_latex() method to Series (#16180)
diff --git a/doc/source/api.rst b/doc/source/api.rst index cb5136df1ff8b..e7d12df56d260 100644 --- a/doc/source/api.rst +++ b/doc/source/api.rst @@ -724,6 +724,7 @@ Serialization / IO / Conversion Series.to_dense Series.to_string Series.to_clipboard + Series.to_latex Sparse ~~~~~~ diff --git a/doc/sou...
This changeset adds _repr_latex_ to the Series class and moves the to_latex() method from the DataFrame class to the NDFrame class. - [ ] closes #16180 - [ ] tests added / passed - [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16465
2017-05-23T22:41:59Z
2017-05-26T11:47:45Z
2017-05-26T11:47:44Z
2017-05-30T12:20:22Z
BUG: writing invalid table names to sqlite
diff --git a/pandas/tests/io/test_sql.py b/pandas/tests/io/test_sql.py index 7b3717281bf89..a6ad44ba31422 100644 --- a/pandas/tests/io/test_sql.py +++ b/pandas/tests/io/test_sql.py @@ -816,6 +816,16 @@ def test_unicode_column_name(self): df = DataFrame([[1, 2], [3, 4]], columns=[u'\xe9', u'b']) df.to_...
I verified that the test exposes the bug prior to the fix for bug #13206. Pandas from master ``` >>> import sqlite3 >>> import pandas as pd >>> import numpy as np >>> conn = sqlite3.connect(':memory:') >>> df = pd.DataFrame({'A': [0, 1, 2], 'B': [0.2, np.nan, 5.6]}) >>> df.to_sql('d1187b08-4943-4c8d-a7f6-6c06...
https://api.github.com/repos/pandas-dev/pandas/pulls/16464
2017-05-23T22:03:08Z
2017-06-01T19:31:53Z
2017-06-01T19:31:53Z
2017-06-01T19:32:11Z
ENH: Support inplace clip (#15388)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index f1289c490e4fb..b4ca3f011a81d 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -36,6 +36,7 @@ Other Enhancements - :func:`to_pickle` has gained a protocol parameter (:issue:`16252`). By default, thi...
- [V] closes #15388 - [V] tests added / passed - [V] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16462
2017-05-23T20:06:46Z
2017-05-25T10:21:48Z
2017-05-25T10:21:48Z
2017-05-25T10:21:52Z
BUG: strange timeseries plot behavior
diff --git a/pandas/tests/plotting/test_datetimelike.py b/pandas/tests/plotting/test_datetimelike.py index 92537059218d6..d9bdafb37a321 100644 --- a/pandas/tests/plotting/test_datetimelike.py +++ b/pandas/tests/plotting/test_datetimelike.py @@ -1349,6 +1349,22 @@ def test_hist(self): w2 = np.arange(0, 1, .1)[:...
I added a test with the simple repro at the top of bug #6608, which appears to be the missing piece for the bug to be closed. I went back in time to a previous version of pandas, and I confirmed the issue. ``` Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC v.1500 32 bit (Intel)] on win32 Type "h...
https://api.github.com/repos/pandas-dev/pandas/pulls/16461
2017-05-23T19:33:46Z
2017-05-24T12:11:58Z
2017-05-24T12:11:58Z
2017-05-24T20:50:08Z
Raise error in usecols when column doesn't exist but length matches
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index c9486954258c8..ea92c45b7e35b 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -72,6 +72,7 @@ I/O ^^^ - Bug in :func:`read_csv` when ``comment`` is passed in a space delimited text file (:issue:`...
- [ ] closes #14671 - [ ] tests added / passed - [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] Bug fix: In parser.py added check that usecols option in read_csv raises an error if it contains strings not in the names option. 'test_raise_on_usecols_names_mismatch' added to te...
https://api.github.com/repos/pandas-dev/pandas/pulls/16460
2017-05-23T18:09:11Z
2017-06-04T10:47:15Z
2017-06-04T10:47:15Z
2017-06-04T17:51:23Z
BUG: Allow non-callable attributes in aggregate function. Fixes GH16405
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 1f71710d19e44..ecbfee862353a 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -89,6 +89,7 @@ Reshaping - Bug in ``pd.wide_to_long()`` where no error was raised when ``i`` was not a unique identifie...
- [x] closes #16405 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16458
2017-05-23T16:07:13Z
2017-06-01T10:35:19Z
2017-06-01T10:35:19Z
2017-06-04T17:02:55Z
DOC: update make.py script
diff --git a/doc/make.py b/doc/make.py index 316ce58812f82..acef563f301e4 100755 --- a/doc/make.py +++ b/doc/make.py @@ -34,39 +34,52 @@ SPHINX_BUILD = 'sphinxbuild' -def upload_dev(user='pandas'): +def _process_user(user): + if user is None or user is False: + user = '' + else: + user = user +...
@TomAugspurger I updated the docs yesterday with this. Not sure if it is needed to keep the possibility to pass a user (if you specify this in `.ssh/config` you don't need this, but the current code allows you to not have the user specified there) But I could also simplify and just remove the whole user thing. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/16456
2017-05-23T15:15:15Z
2017-05-23T17:33:19Z
2017-05-23T17:33:19Z
2017-05-30T12:20:22Z
Fix correct warning with c engine when skipping lines
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 6d6a148ed025f..6c9728191f5b6 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -53,6 +53,7 @@ Indexing I/O ^^^ +- Bug in pd.read_csv() when comment is passed in space deliminted text files (:issu...
Fixed bug where c engine would not print warnings for lines it skipped in case the skipped line had an inline comment. Also, its accounting of number of fields in such lines would be off by one. - [x] closes #16472 - [x] tests added - [x] tests passed - [x] passes ``git diff upstream/master --name-only --...
https://api.github.com/repos/pandas-dev/pandas/pulls/16455
2017-05-23T14:40:51Z
2017-05-24T17:36:06Z
2017-05-24T17:36:05Z
2017-05-30T12:20:22Z
DOC: remove prominence of installing from source instructions in README
diff --git a/README.md b/README.md index 01182d7b7b4b5..dc74828ba9863 100644 --- a/README.md +++ b/README.md @@ -197,14 +197,7 @@ mode](https://pip.pypa.io/en/latest/reference/pip_install.html#editable-installs pip install -e . ``` -On Windows, you will need to install MinGW and execute: - -```sh -python setup.py b...
these are wrong for windows anyhow
https://api.github.com/repos/pandas-dev/pandas/pulls/16451
2017-05-23T11:07:01Z
2017-05-23T11:07:19Z
2017-05-23T11:07:19Z
2017-05-23T11:07:19Z
BUG: Series.argmax() fails with np.inf
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 8b2c4d16f4e1a..03508b02625c8 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -265,7 +265,7 @@ Other API Changes - Removed the ``@slow`` decorator from ``pandas.util.testing``, which caused issues ...
closes #13595 This PR changes the behavior of two functions in the `nanops` module to address #13595, `nanargmax` and `nanargmin`. Previously, these two functions used a flag on the `_get_values` helper that caused it to 1) always mask out and ignore infinite values in the input, and 2) attempt to coerce the input t...
https://api.github.com/repos/pandas-dev/pandas/pulls/16449
2017-05-23T03:46:29Z
2017-08-15T22:44:55Z
2017-08-15T22:44:54Z
2017-08-16T01:42:01Z
Don't ignore figsize in df.boxplot
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index d5fd879d3f9bf..c199564a4dab6 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -61,6 +61,7 @@ Plotting - Bug in ``DataFrame.plot`` with a single column and a list-like ``color`` (:issue:`3486`) -...
Work in progress from PyCon sprints Fix for https://github.com/pandas-dev/pandas/issues/11959 It really doesn't feel like a proper fix, but I'm not sure what a proper fix would be (without changing matplotlib). The matplotlib `gca()` ends up calling `figure()`, but doesn't let us pass in a `figsize` to `gca()`. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/16445
2017-05-23T00:26:20Z
2017-05-24T01:24:42Z
2017-05-24T01:24:42Z
2017-05-30T12:20:22Z
BUG: Handle numpy strings in index names in HDF #13492
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 379249b6e55d6..7bca4174da297 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -70,6 +70,7 @@ I/O - Bug that raised IndexError HTML-rendering an empty DataFrame (:issue:`15953`) - Bug in ``pd.read_...
Work in progress! - [ ] closes #13492 - [ ] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16444
2017-05-23T00:11:36Z
2017-06-04T10:44:26Z
2017-06-04T10:44:26Z
2017-06-04T17:02:55Z
BUG: .iloc[:] and .loc[:] return a copy of the original object #13873
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 79f2816f43a6f..d6b699abdba2d 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -97,6 +97,7 @@ Conversion Indexing ^^^^^^^^ +- When called with a null slice (e.g. ``df.iloc[:]``), the``iloc`` and ...
Previously they returned the original. This PR should make it consistent with numpy and list. - [x] closes #13873 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16443
2017-05-23T00:00:37Z
2017-06-14T23:03:28Z
2017-06-14T23:03:27Z
2017-06-14T23:03:49Z
GH10559: Minor improvement: Change read_excel sheet name
diff --git a/doc/source/io.rst b/doc/source/io.rst index 9692766505d7a..bca23dd18a0e3 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -2561,12 +2561,12 @@ Reading Excel Files ''''''''''''''''''' In the most basic use-case, ``read_excel`` takes a path to an Excel -file, and the ``sheetname`` indicating whi...
modify io/excel.py and relevant docs (io.rst) to use sheet_name for read_excel but allow sheetname to still be used for backwards compatibility. add test_excel to verify that sheet_name and sheetname args produce the same result. - [X] closes #10559 - [X] tests added / passed - [X] passes ``git diff upstrea...
https://api.github.com/repos/pandas-dev/pandas/pulls/16442
2017-05-22T23:49:13Z
2017-05-23T19:36:28Z
2017-05-23T19:36:28Z
2017-05-27T16:39:51Z
BUG: Render empty DataFrame as empty HTML table w/o raising IndexError.
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 57625b725ddba..6813518bdd9ec 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -54,6 +54,7 @@ I/O ^^^ - Bug that would force importing of the clipboard routines unnecessarily, potentially causing...
- [X] closes #15953 - [X] 1 test added / passed - [X] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry A one line change to add an ``if clabels`` guard to clabels enumeration. Returns HTML string consisting of empty table. Help requested with format and pla...
https://api.github.com/repos/pandas-dev/pandas/pulls/16441
2017-05-22T23:33:21Z
2017-05-23T16:52:45Z
2017-05-23T16:52:45Z
2017-05-30T12:20:22Z
DOC: add example on json_normalize
diff --git a/doc/source/io.rst b/doc/source/io.rst index e6b51b7e2f45c..e338407361705 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -2020,6 +2020,13 @@ into a flat table. .. ipython:: python from pandas.io.json import json_normalize + data = [{'id': 1, 'name': {'first': 'Coleen', 'last': 'Volk'}}, ...
- [v ] closes #16415 - [v ] tests added / passed - [v ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16438
2017-05-22T21:59:17Z
2017-08-18T15:27:21Z
2017-08-18T15:27:20Z
2017-08-18T16:02:38Z
[Issue: #16416] Adding examples for some DataFrame methods
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 2e7d8693d48dd..126e6846c8970 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2055,6 +2055,37 @@ def drop(self, labels, axis=0, level=None, inplace=False, errors='raise'): Returns ------- dropped : type of ...
Adding examples for [`fillna`](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.fillna.html), [`drop`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.drop.html), and [`sort_values`](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.sort_values.html). ...
https://api.github.com/repos/pandas-dev/pandas/pulls/16437
2017-05-22T21:57:33Z
2017-05-25T17:44:37Z
2017-05-25T17:44:37Z
2017-05-25T17:44:45Z
change merge validate errors to MergeError from ValueError
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 3734dc15be2e9..d01b097ee1529 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -30,7 +30,7 @@ New features Other Enhancements ^^^^^^^^^^^^^^^^^^ -- The ``validate`` argument for :func:`merge` fun...
Final changes from #16275 that failed to push before merge. Converts errors from `validate` argument of `merge` command to `MergeError`s from `ValueError`s.
https://api.github.com/repos/pandas-dev/pandas/pulls/16436
2017-05-22T21:12:23Z
2017-05-23T09:10:12Z
2017-05-23T09:10:12Z
2017-05-23T09:10:21Z
Add README improvements.
diff --git a/README.md b/README.md index e05f1405419fc..01182d7b7b4b5 100644 --- a/README.md +++ b/README.md @@ -204,13 +204,13 @@ python setup.py build --compiler=mingw32 python setup.py install ``` -See http://pandas.pydata.org/ for more information. +See **[the docs](http://pandas.pydata.org/pandas-docs/stable/i...
- [Y] closes #16427 - [Y] whatsnew entry ** Included reference to contribute guide in READEME. ** In the "installation from source" section, refer to the actual section in the docs, instead of to the general website ** Update "Discussion and Development" section: remove reference to scipy mailing list, but add o...
https://api.github.com/repos/pandas-dev/pandas/pulls/16435
2017-05-22T21:10:34Z
2017-05-23T08:17:00Z
2017-05-23T08:17:00Z
2017-05-24T00:17:21Z
BUG: fix isin with Series of tuples values (#16394)
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index e0857019d2fd4..57625b725ddba 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -80,7 +80,7 @@ Reshaping ^^^^^^^^^ - Bug in ``DataFrame.stack`` with unsorted levels in MultiIndex columns (:issue:`...
Switched out values = np.array(list(values), dtype='object') for values = lib.list_to_object_array(list(values)) in the isin() method found in core/algorithms.py Added test for comparing to a list of tuples - [ ] closes #16394 - [ ] tests added / passed - [ ] passes ``git diff upstream/master --name-on...
https://api.github.com/repos/pandas-dev/pandas/pulls/16434
2017-05-22T20:03:21Z
2017-05-23T07:51:07Z
2017-05-23T07:51:07Z
2017-05-30T12:20:22Z
BUG: adding numpy errstate to dataframe/series broadcasting (GH16378)
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index e0857019d2fd4..04a63f98e0f7a 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -42,6 +42,7 @@ Conversion ^^^^^^^^^^ - Bug in ``pd.to_numeric()`` in which empty data inputs were causing Python to ...
closes #16378 closes #16306
https://api.github.com/repos/pandas-dev/pandas/pulls/16433
2017-05-22T19:48:26Z
2017-05-25T02:09:25Z
2017-05-25T02:09:25Z
2017-05-30T12:20:22Z
DOC: correct docstring examples (#3439)
diff --git a/ci/build_docs.sh b/ci/build_docs.sh index 26917b8f9b792..a038304fe0f7a 100755 --- a/ci/build_docs.sh +++ b/ci/build_docs.sh @@ -59,6 +59,15 @@ if [ "$DOC" ]; then git remote -v git push origin gh-pages -f + + echo "Running doctests" + cd "$TRAVIS_BUILD_DIR" + pytest --doctest-modules \...
xref #3439
https://api.github.com/repos/pandas-dev/pandas/pulls/16432
2017-05-22T19:48:17Z
2017-05-31T09:37:49Z
2017-05-31T09:37:49Z
2017-05-31T09:37:49Z
15819 rolling window on empty df
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index e0857019d2fd4..03afc11156cc2 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -38,6 +38,7 @@ Bug Fixes - Bug in using ``pathlib.Path`` or ``py.path.local`` objects with io functions (:issue:`1629...
- [x] closes #15819 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16431
2017-05-22T19:46:27Z
2017-05-25T10:23:19Z
2017-05-25T10:23:19Z
2017-05-30T12:20:22Z
BUG: handle nan values in DataFrame.update when overwrite=False (#15593)
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 6d6a148ed025f..737de38cbc3e2 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -37,6 +37,7 @@ Bug Fixes ~~~~~~~~~ - Bug in using ``pathlib.Path`` or ``py.path.local`` objects with io functions (:...
BUG: handle nan values in DataFrame.update when overwrite=False (#15593) add nan test for DataFrame.update update whatsnew v0.20.2 - [x] closes #15593 closes #15617 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16430
2017-05-22T19:38:49Z
2017-05-24T23:15:32Z
2017-05-24T23:15:32Z
2017-05-30T12:20:22Z
BUG: Interpolate limit=n GH16282
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index e0a8065d9a507..74a0212e9a4f7 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -77,7 +77,7 @@ Reshaping Numeric ^^^^^^^ - +- Bug in .interpolate(), where limit_direction was not respected when li...
- [x] closes #16282 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16429
2017-05-22T19:32:28Z
2017-05-23T15:59:17Z
2017-05-23T15:59:16Z
2017-06-03T00:14:50Z
Error with .drop([]) on non-unique index
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index e0857019d2fd4..7231b497c4bd4 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -93,3 +93,5 @@ Categorical Other ^^^^^ + +- Bug in ``pd.drop([])`` for DataFrame with non-unique indices (:issue:`16...
Wraps the labels array in `_ensure_object`. The labels array is being cast to a float by default, causing the error raised in #16398. - [X] closes #16398 - [X] tests added / passed - [X] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16428
2017-05-22T19:10:05Z
2017-05-24T23:24:14Z
2017-05-24T23:24:14Z
2017-05-30T12:20:22Z
ENH: Add the decimal.Decimal type to infer_dtypes (#15690)
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 3734dc15be2e9..857f1aaf48b42 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -34,6 +34,7 @@ Other Enhancements - ``Series.to_dict()`` and ``DataFrame.to_dict()`` now support an ``into`` keyword wh...
- [x] closes #15690 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16426
2017-05-22T18:55:46Z
2017-05-23T10:56:31Z
2017-05-23T10:56:31Z
2017-05-23T10:56:35Z
Option Page Typos
diff --git a/doc/source/options.rst b/doc/source/options.rst index 5f6bf2fbb9662..6ff5b76014c95 100644 --- a/doc/source/options.rst +++ b/doc/source/options.rst @@ -28,7 +28,7 @@ You can get/set options directly as attributes of the top-level ``options`` attr pd.options.display.max_rows = 999 pd.options.display...
#### Problem description There are typos on this page and one confusing sentence. Trying to learn the workflow.
https://api.github.com/repos/pandas-dev/pandas/pulls/16421
2017-05-22T17:34:53Z
2017-05-22T17:47:49Z
2017-05-22T17:47:49Z
2017-05-22T18:31:21Z
SAS DOC update - add documentation for sas_read(format='sas7bdat')
diff --git a/doc/source/comparison_with_sas.rst b/doc/source/comparison_with_sas.rst index 7ec91d251f15d..875358521173a 100644 --- a/doc/source/comparison_with_sas.rst +++ b/doc/source/comparison_with_sas.rst @@ -577,9 +577,8 @@ Data Interop ~~~~~~~~~~~~ pandas provides a :func:`read_sas` method that can read SAS d...
- [ ] closes #12700
https://api.github.com/repos/pandas-dev/pandas/pulls/16420
2017-05-22T17:31:20Z
2017-05-22T17:49:50Z
2017-05-22T17:49:50Z
2017-05-22T18:18:38Z
COMPAT: Catch warnings on tab-complete in IPy 6
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index 1f71710d19e44..eb9e31279616e 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -40,6 +40,10 @@ Bug Fixes - Bug in ``DataFrame.update()`` with ``overwrite=False`` and ``NaN values`` (:issue:`15593`) ...
Properties may run code with Jedi completion in IPython 6 Closes https://github.com/pandas-dev/pandas/issues/16409 I want to leave this open for a couple days to see if I can find other places that trigger this warning. I'm pretty sure I've seen other instances, but they may have been from other libraries.
https://api.github.com/repos/pandas-dev/pandas/pulls/16414
2017-05-22T14:12:28Z
2017-05-26T12:32:53Z
2017-05-26T12:32:53Z
2017-05-30T12:20:22Z
PERF: don't materialize arrays on checking in groupby
diff --git a/asv_bench/benchmarks/groupby.py b/asv_bench/benchmarks/groupby.py index c0c3a42cc4464..13b5cd2b06032 100644 --- a/asv_bench/benchmarks/groupby.py +++ b/asv_bench/benchmarks/groupby.py @@ -368,6 +368,11 @@ def setup(self): self.dates = (np.datetime64('now') + self.offsets) self.df = DataFr...
``` before after ratio [a6fcec6c] [6edcdc0d] - 15.41ms 9.48ms 0.62 groupby.groupby_size.time_groupby_size ``` this is more dramatic as the size increases as this should be pretty much a constant time operation (the actual size computation itself).
https://api.github.com/repos/pandas-dev/pandas/pulls/16413
2017-05-22T11:08:31Z
2017-05-22T13:10:28Z
2017-05-22T13:10:28Z
2017-05-30T12:23:25Z
DOC: add google analytics to the documentation
diff --git a/doc/source/themes/nature_with_gtoc/layout.html b/doc/source/themes/nature_with_gtoc/layout.html index ddf1e861f5f81..a2106605c5562 100644 --- a/doc/source/themes/nature_with_gtoc/layout.html +++ b/doc/source/themes/nature_with_gtoc/layout.html @@ -94,4 +94,15 @@ <h3 style="margin-top: 1.5em;">{{ _('Search'...
The main pandas website (pandas.pydata.org) has google analytics tracking, but I think it would be interesting to also have this on the docs, so adding it to the theme.
https://api.github.com/repos/pandas-dev/pandas/pulls/16412
2017-05-22T09:23:22Z
2017-05-22T13:02:09Z
2017-05-22T13:02:09Z
2017-05-30T12:20:21Z
Update tutorials.rst
diff --git a/doc/source/tutorials.rst b/doc/source/tutorials.rst index 2489b787560d0..9a97294d4e6d6 100644 --- a/doc/source/tutorials.rst +++ b/doc/source/tutorials.rst @@ -178,3 +178,4 @@ Various Tutorials - `Pandas and Python: Top 10, by Manish Amde <http://manishamde.github.io/blog/2013/03/07/pandas-and-python-top-...
- [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
https://api.github.com/repos/pandas-dev/pandas/pulls/16411
2017-05-22T07:42:17Z
2017-05-22T09:11:42Z
2017-05-22T09:11:42Z
2017-05-22T10:45:35Z
BUG: wide_to_long should check for unique id vars (#16382)
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index d5fd879d3f9bf..b53a9dd06b2a5 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -80,8 +80,10 @@ Reshaping ^^^^^^^^^ - Bug in ``DataFrame.stack`` with unsorted levels in MultiIndex columns (:issue:...
- [x] closes #16382 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` Input validation: raise a ValueError in case `i` does not uniquely identify each row.
https://api.github.com/repos/pandas-dev/pandas/pulls/16403
2017-05-20T19:04:40Z
2017-05-23T19:52:23Z
2017-05-23T19:52:23Z
2017-05-30T12:20:21Z
DOC: Added examples for union_categoricals
diff --git a/pandas/core/dtypes/concat.py b/pandas/core/dtypes/concat.py index ddff78c9d511f..292d5f608d4cb 100644 --- a/pandas/core/dtypes/concat.py +++ b/pandas/core/dtypes/concat.py @@ -242,6 +242,74 @@ def union_categoricals(to_union, sort_categories=False, ignore_order=False): - sort_categories=True and C...
- [x] closes #16390 - [ ] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [ ] whatsnew entry Copied and posted over examples into the doc string; added link.
https://api.github.com/repos/pandas-dev/pandas/pulls/16397
2017-05-20T09:14:50Z
2017-05-22T08:24:01Z
2017-05-22T08:24:01Z
2017-09-07T20:49:57Z
DOC: Try with new token
diff --git a/.travis.yml b/.travis.yml index 0156f17aa32a5..8386dce478eb3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,10 +20,10 @@ env: # pandas-docs/pandas-docs-travis GH # # # create a github personal access token - # cd pandas-docs/pandas-docs-travis - # travis encrypt - # PANDAS_GH_TOKEN=personal_...
Let's see if this works @jreback. I think you have to be in the `pandas` git repo when you `travis-encrypt`, since that's the Travis build that's accessing the env var.
https://api.github.com/repos/pandas-dev/pandas/pulls/16389
2017-05-18T22:08:46Z
2017-05-18T22:39:22Z
2017-05-18T22:39:22Z
2017-05-27T16:40:24Z
TST: remove some Panel/Panel4D deprecation warnings from tests
diff --git a/pandas/util/testing.py b/pandas/util/testing.py index 81d452318d0b4..f987045c27d5f 100644 --- a/pandas/util/testing.py +++ b/pandas/util/testing.py @@ -1802,22 +1802,24 @@ def makePeriodFrame(nper=None): def makePanel(nper=None): - cols = ['Item' + c for c in string.ascii_uppercase[:K - 1]] - da...
https://api.github.com/repos/pandas-dev/pandas/pulls/16387
2017-05-18T20:48:49Z
2017-05-18T22:00:12Z
2017-05-18T22:00:12Z
2017-05-18T22:01:49Z
New Interval / IntervalIndex behavior spec
diff --git a/pandas/tests/indexes/interval/__init__.py b/pandas/tests/indexes/interval/__init__.py new file mode 100644 index 0000000000000..e69de29bb2d1d diff --git a/pandas/tests/indexes/test_interval.py b/pandas/tests/indexes/interval/test_interval.py similarity index 98% rename from pandas/tests/indexes/test_interv...
- [x] part of #16316 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` @jreback
https://api.github.com/repos/pandas-dev/pandas/pulls/16386
2017-05-18T19:48:02Z
2017-12-28T14:29:07Z
2017-12-28T14:29:07Z
2020-02-04T17:15:32Z
TST: remove pandas-datareader xfail as 0.4.0 works
diff --git a/pandas/tests/test_downstream.py b/pandas/tests/test_downstream.py index 12976272cb8b1..27e3c29a70a9f 100644 --- a/pandas/tests/test_downstream.py +++ b/pandas/tests/test_downstream.py @@ -84,12 +84,10 @@ def test_pandas_gbq(df): pandas_gbq = import_module('pandas_gbq') # noqa -@pytest.mark.xfail(...
https://api.github.com/repos/pandas-dev/pandas/pulls/16374
2017-05-17T00:52:50Z
2017-05-17T02:14:45Z
2017-05-17T02:14:45Z
2017-05-30T12:21:46Z
TST: followup to #16364, catch errstate warnings
diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3e1c5c3f354fd..c33b30c78d812 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -4113,11 +4113,15 @@ def _clip_with_scalar(self, lower, upper): result = self.values mask = isnull(result) - if upper is not None...
fixing the int/float issue is quite hard actually.
https://api.github.com/repos/pandas-dev/pandas/pulls/16373
2017-05-16T22:58:17Z
2017-05-17T00:53:28Z
2017-05-17T00:53:28Z
2017-05-30T12:23:31Z
TST: Add test for clip-na
diff --git a/pandas/tests/frame/test_analytics.py b/pandas/tests/frame/test_analytics.py index be89b27912d1c..1b6471fcef565 100644 --- a/pandas/tests/frame/test_analytics.py +++ b/pandas/tests/frame/test_analytics.py @@ -1863,6 +1863,23 @@ def test_clip_against_frame(self): tm.assert_frame_equal(clipped_df[ub_...
Additional test cases for https://github.com/pandas-dev/pandas/pull/16364 when upper and / or lower is nan. cc @jreback [this line](https://github.com/pandas-dev/pandas/pull/16364/files#diff-03b380f521c43cf003207b0711bac67fR4112) was missing tests I think.
https://api.github.com/repos/pandas-dev/pandas/pulls/16369
2017-05-16T15:31:33Z
2017-05-16T22:37:14Z
2017-05-16T22:37:14Z
2017-05-30T12:20:21Z
MAINT: Add .iml to .gitignore
diff --git a/.gitignore b/.gitignore index 495429fcde429..ff0a6aef47163 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ *$ *.bak *flymake* +*.iml *.kdev4 *.log *.swp
Title is self-explanatory. No need to run tests given that this is just a change to the `.gitignore`.
https://api.github.com/repos/pandas-dev/pandas/pulls/16368
2017-05-16T15:22:20Z
2017-05-16T22:21:03Z
2017-05-16T22:21:03Z
2017-05-16T22:22:07Z
Fixes truncated error message "C extension: umpy.core.multiarray failed to import"
diff --git a/pandas/__init__.py b/pandas/__init__.py index 48ac9d173559d..8d9b75ccd6c2c 100644 --- a/pandas/__init__.py +++ b/pandas/__init__.py @@ -28,7 +28,7 @@ tslib as _tslib) except ImportError as e: # pragma: no cover # hack but overkill to use re - module = str(e).lstrip('...
This occurred because lstrip is the wrong tool here: ``` >>> e = 'cannot import name numpy.core.multiarray' >>> str(e).lstrip('cannot import name ') 'umpy.core.multiarray' ``` Better: ``` >>> str(e).replace('cannot import name ', '') 'numpy.core.multiarray' ``` -- - [ ] closes #xxxx - [ ] tests added /...
https://api.github.com/repos/pandas-dev/pandas/pulls/16366
2017-05-16T09:43:30Z
2017-05-18T20:43:25Z
2017-05-18T20:43:25Z
2017-06-07T10:56:22Z
PERF: improved clip performance
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index c66654ee1e006..3c0e2869357ae 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -111,6 +111,7 @@ def setup(self): def time_series_dropna_int64(self): self.s.d...
closes #15400 In [1]: np.random.seed(1234) In [2]: s = pd.Series(np.random.randn(50)) master ``` In [3]: %timeit s.clip(0, 1) 1.65 ms ± 48.2 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each) ``` PR ``` In [3]: %timeit s.clip(0, 1) 124 µs ± 2.79 µs per loop (mean ± std. dev. of 7 runs, 10000 loo...
https://api.github.com/repos/pandas-dev/pandas/pulls/16364
2017-05-16T02:33:08Z
2017-05-16T11:02:41Z
2017-05-16T11:02:40Z
2017-05-30T12:22:29Z
GH15943 Fixed defaults for compression in HDF5
diff --git a/doc/source/io.rst b/doc/source/io.rst index 7ea476514e88d..c8a9bfb658e6e 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -4066,26 +4066,64 @@ Compression +++++++++++ ``PyTables`` allows the stored data to be compressed. This applies to -all kinds of stores, not just tables. +all kinds of stor...
- [x] closes #15943 - [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry
https://api.github.com/repos/pandas-dev/pandas/pulls/16355
2017-05-15T11:41:29Z
2017-06-13T23:20:59Z
2017-06-13T23:20:59Z
2017-06-14T06:10:37Z
ENH: Improve error message for header argument containing non int types. GH16338
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index 3df0a21facb02..861bde7161519 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -83,6 +83,7 @@ Indexing I/O ^^^ +- Bug in ``pd.read_csv()`` in which non integer values for the header argument gene...
Adds error "header must be integer or list of integers" when the header argument is a list, tuple or numpy array containing non-integers. Initially intended to read_csv, but applies to other functions with similar header arguments. GH16338 refers to a case in which the user mixes up the "names" and "header" arguments. ...
https://api.github.com/repos/pandas-dev/pandas/pulls/16351
2017-05-14T05:42:09Z
2017-05-24T13:28:05Z
2017-05-24T13:28:05Z
2017-05-24T13:28:07Z
DOC: add dataframe construction in merge_asof example
diff --git a/pandas/core/reshape/merge.py b/pandas/core/reshape/merge.py index c55f4b5bf935f..7bf25e37340c4 100644 --- a/pandas/core/reshape/merge.py +++ b/pandas/core/reshape/merge.py @@ -347,12 +347,15 @@ def merge_asof(left, right, on=None, Examples -------- + >>> left = pd.DataFrame({'a': [1, 5, 10],...
https://api.github.com/repos/pandas-dev/pandas/pulls/16348
2017-05-12T21:45:29Z
2017-05-13T12:10:53Z
2017-05-13T12:10:53Z
2017-05-13T12:10:53Z
PERF: improve MultiIndex get_loc performance
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index e1676715853a4..6a2c9d48c4a28 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -227,12 +227,24 @@ def time_multiindex_get_indexer(self): def time_multiindex_large_get_loc(self): sel...
While I was timing the MultiIndex get_loc in https://github.com/pandas-dev/pandas/pull/16324, I saw some 'quick wins' with some further profiling. Rationale: - big part of the time was spent in checking for a hash collision: `_check_for_collisions`. This function was a generic one for one or multiple labels. I ad...
https://api.github.com/repos/pandas-dev/pandas/pulls/16346
2017-05-12T21:15:35Z
2017-05-17T07:36:52Z
2017-05-17T07:36:52Z
2017-11-27T19:51:31Z
DOC: minor enhancement of DataFrame.insert docstring
diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 3b0cc5619a1cd..3d3d56c1e0331 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -2559,15 +2559,17 @@ def insert(self, loc, column, value, allow_duplicates=False): """ Insert column into DataFrame at specified location. - ...
- [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` (but not clear to me if I did properly, because the first of the pipe only reports the filename of the changed file, no actual diff.) My first objective was to clarify the role of `column` vs `value` keyword. For the reference, this ...
https://api.github.com/repos/pandas-dev/pandas/pulls/16341
2017-05-12T13:41:17Z
2017-05-18T20:22:31Z
2017-05-18T20:22:31Z
2017-05-18T20:22:40Z
BUG: Categorical constructor scalar categories
diff --git a/doc/source/whatsnew/v0.21.0.txt b/doc/source/whatsnew/v0.21.0.txt index f392687a0a3fd..afee6a0c2025e 100644 --- a/doc/source/whatsnew/v0.21.0.txt +++ b/doc/source/whatsnew/v0.21.0.txt @@ -36,6 +36,8 @@ Backwards incompatible API changes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - Support has been dropped for ...
Categorical constructor no longer accepts scalars for categories. Closes #16022
https://api.github.com/repos/pandas-dev/pandas/pulls/16340
2017-05-12T13:30:29Z
2017-05-16T17:33:59Z
2017-05-16T17:33:59Z
2017-05-27T16:36:48Z
BUG: Categorical comparison with unordered
diff --git a/doc/source/categorical.rst b/doc/source/categorical.rst index a508e84465107..ef558381c5e6f 100644 --- a/doc/source/categorical.rst +++ b/doc/source/categorical.rst @@ -453,6 +453,14 @@ the original values: np.asarray(cat) > base +When you compare two unordered categoricals with the same categories...
Fixes categorical comparison operations improperly considering ordering when two unordered categoricals are compared. Closes #16014
https://api.github.com/repos/pandas-dev/pandas/pulls/16339
2017-05-12T13:07:14Z
2017-05-18T14:05:55Z
2017-05-18T14:05:55Z
2017-05-30T12:20:38Z
Correctly redirect to SetupTools documentations
diff --git a/doc/source/install.rst b/doc/source/install.rst index 578caae605471..48d51e1200447 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -202,7 +202,7 @@ installed), make sure you have `pytest Dependencies ------------ -* `setuptools <http://pythonhosted.org/setuptools>`__ +* `setuptools ...
- [x] closes #16332 - [x] tests added / passed - [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] Correct doc string from http://pythonhosted.org/setuptools to https://setuptools.readthedocs.io/en/latest
https://api.github.com/repos/pandas-dev/pandas/pulls/16333
2017-05-11T18:58:19Z
2017-05-11T19:24:47Z
2017-05-11T19:24:47Z
2017-05-30T12:20:38Z
DOC: Handle missing nbconvert in html build
diff --git a/doc/make.py b/doc/make.py index e70655c3e2f92..316ce58812f82 100755 --- a/doc/make.py +++ b/doc/make.py @@ -115,15 +115,28 @@ def maybe_exclude_notebooks(): notebooks = [os.path.join(base, 'source', nb) for nb in ['style.ipynb']] contents = {} - try: - import nbconvert...
Closes https://github.com/pandas-dev/pandas/issues/16329
https://api.github.com/repos/pandas-dev/pandas/pulls/16330
2017-05-11T14:17:32Z
2017-05-12T15:32:11Z
2017-05-12T15:32:11Z
2017-05-27T16:36:45Z
ENH: _dir_additions returns also the first level of a MultiIndex
diff --git a/asv_bench/benchmarks/series_methods.py b/asv_bench/benchmarks/series_methods.py index 81c43f7bc975f..0ce003d1a9277 100644 --- a/asv_bench/benchmarks/series_methods.py +++ b/asv_bench/benchmarks/series_methods.py @@ -177,3 +177,13 @@ def time_value_counts_float64(self): def time_value_counts_strings(...
- [x] tests added / passed - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [x] whatsnew entry Assuming a DataFrame with MultiIndex columns like this: ```python >> df foo bar foo bar 0 0.32 0.15 0.45 1 0.62 0.73 0.36 2 0.21 0.68 0.10 3 0...
https://api.github.com/repos/pandas-dev/pandas/pulls/16326
2017-05-11T09:29:24Z
2017-12-11T11:23:44Z
2017-12-11T11:23:44Z
2017-12-11T13:16:34Z
BUG: Preserve data order when stacking unsorted levels (#16323)
diff --git a/doc/source/whatsnew/v0.20.2.txt b/doc/source/whatsnew/v0.20.2.txt index bca92137891a0..983f3edfa2f46 100644 --- a/doc/source/whatsnew/v0.20.2.txt +++ b/doc/source/whatsnew/v0.20.2.txt @@ -73,7 +73,7 @@ Sparse Reshaping ^^^^^^^^^ - +- Bug in ``DataFrame.stack`` with unsorted levels in MultiIndex columns...
This should fix the df.stack() problems in #16323-- the levels being used to build the new index were those of the original frame, which fails when the levels get sorted. - [X] closes #16323 - [X] tests added / passed - [X] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff`` - [X] whatsn...
https://api.github.com/repos/pandas-dev/pandas/pulls/16325
2017-05-11T03:41:10Z
2017-05-11T11:25:14Z
2017-05-11T11:25:14Z
2017-05-30T12:20:38Z
PERF: improved performance of small multiindexes
diff --git a/asv_bench/benchmarks/indexing.py b/asv_bench/benchmarks/indexing.py index 31af56b3715a5..e1676715853a4 100644 --- a/asv_bench/benchmarks/indexing.py +++ b/asv_bench/benchmarks/indexing.py @@ -193,9 +193,15 @@ def setup(self): np.arange(1000)], names=['one', 'two']) import string - ...
closes #16319 When I did #15245 the goal was two fold - Reduce the hashtable creation time for a MultiIndex - Reduce the memory footprint original impl ------------- These are interrelated, as the original impl of a MI constructed a list of tuples for each value (the len of the tuple is the number of levels...
https://api.github.com/repos/pandas-dev/pandas/pulls/16324
2017-05-11T02:50:50Z
2017-05-11T23:14:21Z
2017-05-11T23:14:21Z
2017-05-30T12:23:23Z
Lint rule to catch incorrect sphinx directives
diff --git a/ci/lint.sh b/ci/lint.sh index 4027737900bf9..5d9fafe6c9064 100755 --- a/ci/lint.sh +++ b/ci/lint.sh @@ -90,13 +90,26 @@ if [ "$LINT" ]; then # # Check the following functions: # any(), all(), sum(), max(), min(), list(), dict(), set(), frozenset(), tuple(), str.join() - grep -R --include=...
- [x] closes #18425 - [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
https://api.github.com/repos/pandas-dev/pandas/pulls/18437
2017-11-22T23:28:18Z
2017-11-24T16:57:04Z
2017-11-24T16:57:03Z
2017-11-24T16:57:10Z
BUG: Copy categorical codes if empty (fixes #18051)
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 5829481cdb731..682776de2e62c 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -135,6 +135,7 @@ Categorical - Bug in :meth:`DataFrame.astype` where casting to 'category' on an empty ``DataFrame`` ca...
In [agreement with @ghasemnaddaf](https://github.com/pandas-dev/pandas/pull/18279#issuecomment-346488176) , I've finished up his PR #18279 (added correct tests). Is it time still to get this into v0.21.1? - [ x] closes #18051 - [ x] tests added / passed - [x ] passes `git diff upstream/master -u -- "*.py" | flake...
https://api.github.com/repos/pandas-dev/pandas/pulls/18436
2017-11-22T22:41:06Z
2017-11-23T16:13:48Z
2017-11-23T16:13:47Z
2017-12-11T20:22:53Z
DOC: add whatsnew for #17882
diff --git a/doc/source/whatsnew/v0.21.1.txt b/doc/source/whatsnew/v0.21.1.txt index 558dd14f24b4f..5829481cdb731 100644 --- a/doc/source/whatsnew/v0.21.1.txt +++ b/doc/source/whatsnew/v0.21.1.txt @@ -86,6 +86,8 @@ I/O - Bug in :meth:`DataFrame.to_csv` when the table had ``MultiIndex`` columns, and a list of strings w...
Whatsnew for https://github.com/pandas-dev/pandas/pull/17882
https://api.github.com/repos/pandas-dev/pandas/pulls/18433
2017-11-22T19:31:37Z
2017-11-22T19:32:02Z
2017-11-22T19:32:02Z
2017-11-22T19:32:02Z
TST: move melt tests to separate file
diff --git a/pandas/tests/reshape/test_melt.py b/pandas/tests/reshape/test_melt.py new file mode 100644 index 0000000000000..3c38512548c70 --- /dev/null +++ b/pandas/tests/reshape/test_melt.py @@ -0,0 +1,537 @@ +# -*- coding: utf-8 -*- +# pylint: disable-msg=W0612,E1101 + +import pytest + +from pandas import DataFrame ...
- [x] closes #18367 This breaks out melt, lreshape, and wide_to_long tests into their own module.
https://api.github.com/repos/pandas-dev/pandas/pulls/18428
2017-11-22T16:08:28Z
2017-11-23T23:34:43Z
2017-11-23T23:34:43Z
2017-11-24T18:03:48Z
TST: Skipif decorator for matplotlib #18190
diff --git a/pandas/tests/io/formats/test_style.py b/pandas/tests/io/formats/test_style.py index 0160371dc413d..4b0ca872da326 100644 --- a/pandas/tests/io/formats/test_style.py +++ b/pandas/tests/io/formats/test_style.py @@ -7,6 +7,7 @@ import pandas as pd from pandas import DataFrame import pandas.util.testing as t...
- [X] progress towards #18190 - [X] tests added / passed - [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff` The behavior here is slightly different than before when the function was used at the module level. Previously, an entire module being skipped would count as one skip entry. Now with the de...
https://api.github.com/repos/pandas-dev/pandas/pulls/18427
2017-11-22T14:33:02Z
2017-11-27T18:17:16Z
2017-11-27T18:17:16Z
2017-11-27T18:18:37Z