url
stringlengths
55
59
repository_url
stringclasses
1 value
labels_url
stringlengths
69
73
comments_url
stringlengths
64
68
events_url
stringlengths
62
66
html_url
stringlengths
44
49
id
int64
338k
1.06B
node_id
stringlengths
18
32
number
int64
1
44.6k
title
stringlengths
1
590
user
dict
labels
listlengths
0
9
state
stringclasses
2 values
locked
bool
2 classes
assignee
dict
assignees
listlengths
0
5
milestone
dict
comments
int64
0
477
created_at
timestamp[us, tz=UTC]
updated_at
timestamp[us, tz=UTC]
closed_at
timestamp[us, tz=UTC]
author_association
stringclasses
3 values
active_lock_reason
stringclasses
4 values
body
stringlengths
0
251k
reactions
dict
timeline_url
stringlengths
64
68
performed_via_github_app
float64
draft
float64
0
1
pull_request
dict
https://api.github.com/repos/pandas-dev/pandas/issues/14808
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14808/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14808/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14808/events
https://github.com/pandas-dev/pandas/issues/14808
193,751,314
MDU6SXNzdWUxOTM3NTEzMTQ=
14,808
TST: failing builds on master
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
15
2016-12-06T11:42:59Z
2016-12-24T10:50:47Z
2016-12-24T10:50:47Z
CONTRIBUTOR
null
- [ ] 3.4 slow https://travis-ci.org/pandas-dev/pandas/jobs/181534281 ``` ====================================================================== FAIL: test_bar_log_no_subplots (pandas.tests.plotting.test_frame.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/pandas-dev/pandas/pandas/tests/plotting/test_frame.py", line 1130, in test_bar_log_no_subplots tm.assert_numpy_array_equal(ax.yaxis.get_ticklocs(), expected) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1079, in assert_numpy_array_equal _raise(left, right, err_msg) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1062, in _raise .format(obj), left.shape, right.shape) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: numpy array are different numpy array shapes are different [left]: (5,) [right]: (4,) ====================================================================== FAIL: test_bar_log_subplots (pandas.tests.plotting.test_frame.TestDataFramePlots) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/pandas-dev/pandas/pandas/tests/plotting/test_frame.py", line 1141, in test_bar_log_subplots tm.assert_numpy_array_equal(ax[0].yaxis.get_ticklocs(), expected) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1079, in assert_numpy_array_equal _raise(left, right, err_msg) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1062, in _raise .format(obj), left.shape, right.shape) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: numpy array are different numpy array shapes are different [left]: (7,) [right]: (6,) ====================================================================== FAIL: test_bar_log (pandas.tests.plotting.test_series.TestSeriesPlots) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/pandas-dev/pandas/pandas/tests/plotting/test_series.py", line 207, in test_bar_log tm.assert_numpy_array_equal(ax.yaxis.get_ticklocs(), expected) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1079, in assert_numpy_array_equal _raise(left, right, err_msg) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1062, in _raise .format(obj), left.shape, right.shape) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: numpy array are different numpy array shapes are different [left]: (7,) [right]: (6,) ---------------------------------------------------------------------- Ran 252 tests in 1103.335s ``` - [x] numpy-dev build: https://travis-ci.org/pandas-dev/pandas/jobs/181534284, closed by #14809 ``` ====================================================================== ERROR: test_scalar_na_cmp_corners (pandas.tests.series.test_operators.TestSeriesOperators) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/travis/build/pandas-dev/pandas/pandas/core/ops.py", line 1170, in na_op raise_on_error=True, **eval_kwargs) File "/home/travis/build/pandas-dev/pandas/pandas/computation/expressions.py", line 210, in evaluate **eval_kwargs) File "/home/travis/build/pandas-dev/pandas/pandas/computation/expressions.py", line 63, in _evaluate_standard return op(a, b) TypeError: unsupported operand type(s) for &: 'float' and 'float' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/travis/build/pandas-dev/pandas/pandas/core/internals.py", line 1160, in eval result = get_result(other) File "/home/travis/build/pandas-dev/pandas/pandas/core/internals.py", line 1129, in get_result result = func(values, other) File "/home/travis/build/pandas-dev/pandas/pandas/core/ops.py", line 1179, in na_op yrav = yrav[mask] IndexError: boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 9 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/travis/build/pandas-dev/pandas/pandas/tests/series/test_operators.py", line 1417, in test_scalar_na_cmp_corners self.assertRaises(ValueError, lambda: d.__and__(s, axis='columns')) File "/home/travis/build/pandas-dev/pandas/pandas/util/testing.py", line 2380, in assertRaises _callable(*args, **kwargs) File "/home/travis/build/pandas-dev/pandas/pandas/tests/series/test_operators.py", line 1417, in <lambda> self.assertRaises(ValueError, lambda: d.__and__(s, axis='columns')) File "/home/travis/build/pandas-dev/pandas/pandas/core/ops.py", line 1223, in f return self._combine_series(other, na_op, fill_value, axis, level) File "/home/travis/build/pandas-dev/pandas/pandas/core/frame.py", line 3539, in _combine_series fill_value=fill_value) File "/home/travis/build/pandas-dev/pandas/pandas/core/frame.py", line 3573, in _combine_match_columns axes=[left.columns, self.index]) File "/home/travis/build/pandas-dev/pandas/pandas/core/internals.py", line 3163, in eval return self.apply('eval', **kwargs) File "/home/travis/build/pandas-dev/pandas/pandas/core/internals.py", line 3057, in apply applied = getattr(b, f)(**kwargs) File "/home/travis/build/pandas-dev/pandas/pandas/core/internals.py", line 1167, in eval result = handle_error() File "/home/travis/build/pandas-dev/pandas/pandas/core/internals.py", line 1150, in handle_error (repr(other), str(detail))) # noqa TypeError: Could not operate array([nan], dtype=object) with block values boolean index did not match indexed array along dimension 0; dimension is 1 but corresponding boolean dimension is 9 ---------------------------------------------------------------------- ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14808/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14808/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14809
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14809/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14809/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14809/events
https://github.com/pandas-dev/pandas/pull/14809
193,754,428
MDExOlB1bGxSZXF1ZXN0OTY3MTA5MTY=
14,809
COMPAT: numpy compat with 1-ndim object array compat and broadcasting
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
0
2016-12-06T11:58:47Z
2016-12-06T13:00:30Z
2016-12-06T13:00:30Z
CONTRIBUTOR
null
xref #14808
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14809/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14809/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14809.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14809", "merged_at": "2016-12-06T13:00:30Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14809.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14809" }
https://api.github.com/repos/pandas-dev/pandas/issues/14810
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14810/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14810/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14810/events
https://github.com/pandas-dev/pandas/issues/14810
193,840,867
MDU6SXNzdWUxOTM4NDA4Njc=
14,810
groupby function: different printed result after irrelevant change
{ "avatar_url": "https://avatars.githubusercontent.com/u/8281969?v=4", "events_url": "https://api.github.com/users/elDan101/events{/privacy}", "followers_url": "https://api.github.com/users/elDan101/followers", "following_url": "https://api.github.com/users/elDan101/following{/other_user}", "gists_url": "https://api.github.com/users/elDan101/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/elDan101", "id": 8281969, "login": "elDan101", "node_id": "MDQ6VXNlcjgyODE5Njk=", "organizations_url": "https://api.github.com/users/elDan101/orgs", "received_events_url": "https://api.github.com/users/elDan101/received_events", "repos_url": "https://api.github.com/users/elDan101/repos", "site_admin": false, "starred_url": "https://api.github.com/users/elDan101/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/elDan101/subscriptions", "type": "User", "url": "https://api.github.com/users/elDan101" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
11
2016-12-06T17:55:25Z
2016-12-14T11:37:40Z
2016-12-06T22:41:08Z
NONE
null
(1) ```python def groupby_func(x): #computing speedup, relative to first line return x.iloc[0, :] / x.iloc[0: , :] # (with '0') sdf_size = odf.loc[:, cols].groupby(by="size").apply(groupby_func) ``` (2) ```python def groupby_func(x): #computing speedup, relative to first line return x.iloc[0, :] / x.iloc[: , :] # (without '0') sdf_size = odf.loc[:, cols].groupby(by="size").apply(groupby_func) ``` #### Problem description For the version (1) and (2) I get two different outputs. When I print 'sdf_size' on the console: (1) ![with](https://cloud.githubusercontent.com/assets/8281969/20936632/98a9b652-bbe3-11e6-8f81-da527b2ff065.png) (2) ![without](https://cloud.githubusercontent.com/assets/8281969/20936638/9db080e0-bbe3-11e6-8017-5ecf58e95351.png) Somehow, **with** '0:' the (printed) result is how I wanted it to be (see screenshots, grouping of size in index). But after deleting the 0, which I expected to be unnecessary, I got a different result, which I didn't expect to be different (I think '0:' and ':' to be same -- correct me if I am wrong on this). An explicit setting of "group_keys=True" didn't change anything. Just ask if something is unclear. Thank you. #### Output of ``pd.show_versions()`` <details> commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-51-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 0.6 Cython: None numpy: 1.11.2 scipy: 0.18.0 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: 0.999 httplib2: 0.9.1 apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14810/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14810/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14811
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14811/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14811/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14811/events
https://github.com/pandas-dev/pandas/issues/14811
193,881,415
MDU6SXNzdWUxOTM4ODE0MTU=
14,811
Calling shift(n != 0) on an empty DatetimeIndex raises an IndexError
{ "avatar_url": "https://avatars.githubusercontent.com/u/3009237?v=4", "events_url": "https://api.github.com/users/chazmo03/events{/privacy}", "followers_url": "https://api.github.com/users/chazmo03/followers", "following_url": "https://api.github.com/users/chazmo03/following{/other_user}", "gists_url": "https://api.github.com/users/chazmo03/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chazmo03", "id": 3009237, "login": "chazmo03", "node_id": "MDQ6VXNlcjMwMDkyMzc=", "organizations_url": "https://api.github.com/users/chazmo03/orgs", "received_events_url": "https://api.github.com/users/chazmo03/received_events", "repos_url": "https://api.github.com/users/chazmo03/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chazmo03/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chazmo03/subscriptions", "type": "User", "url": "https://api.github.com/users/chazmo03" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2020-12-26T13:57:50Z", "closed_issues": 1768, "created_at": "2020-05-29T23:47:32Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "on-merge: backport to 1.2.x", "due_on": "2020-12-15T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/73", "id": 5479819, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels", "node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==", "number": 73, "open_issues": 0, "state": "closed", "title": "1.2", "updated_at": "2021-04-13T15:46:43Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73" }
2
2016-12-06T20:54:53Z
2020-09-30T02:12:04Z
2020-09-30T02:12:04Z
NONE
null
Calling `shift(0)` on an empty DatetimeIndex seems to return an empty index, but calling `shift(n)` with a non-zero `n` raises an IndexError. I would expect this to return an empty index. ```python # this works pd.date_range(start='20161021', end='20161021', freq='BM').shift(0) # this raises pd.date_range(start='20161021', end='20161021', freq='BM').shift(1) # IndexError: index 0 is out of bounds for axis 0 with size 0 pd.__version__ # u'0.18.1' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14811/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14811/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14812
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14812/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14812/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14812/events
https://github.com/pandas-dev/pandas/pull/14812
193,899,351
MDExOlB1bGxSZXF1ZXN0OTY4MTY0MDI=
14,812
Apply min_itemsize to index even when not appending
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
5
2016-12-06T22:07:52Z
2016-12-11T21:54:59Z
2016-12-11T21:54:59Z
MEMBER
null
- [x] closes #10381 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14812/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14812/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14812.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14812", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14812.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14812" }
https://api.github.com/repos/pandas-dev/pandas/issues/14813
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14813/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14813/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14813/events
https://github.com/pandas-dev/pandas/issues/14813
193,919,277
MDU6SXNzdWUxOTM5MTkyNzc=
14,813
TST: reorg groupby tests
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
3
2016-12-06T23:48:39Z
2016-12-17T15:43:50Z
2016-12-17T15:43:50Z
CONTRIBUTOR
null
see suggestions here: https://github.com/pandas-dev/pandas/pull/12607#issuecomment-265310458 we have lots and lots of groupby tests and so getting pretty unweidly so should reorg to a sub-dir setup like we have for other things eg. pandas/tests/groupby/.....
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14813/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14813/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14814
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14814/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14814/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14814/events
https://github.com/pandas-dev/pandas/pull/14814
193,961,981
MDExOlB1bGxSZXF1ZXN0OTY4NjE0MjA=
14,814
MAINT: Style check *.c and *.h files
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "eb6420", "default": false, "description": "Code style, linting, code_checks", "id": 106935113, "name": "Code Style", "node_id": "MDU6TGFiZWwxMDY5MzUxMTM=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
8
2016-12-07T05:33:24Z
2016-12-19T16:12:25Z
2016-12-15T11:23:52Z
MEMBER
null
`cpplint` was introduced #14740, and this commit extends to check other `*.c` and `*.h` files. Currently, they all reside in `pandas/src`, and this commit expands the lint to check all of the following: 1) `datetime` (dir) 2) `ujson` (dir) 3) `period_helper.c` 4) `All header files` The parser directory was handled in #14740, and the others have been deliberately omitted per the discussion <a href="https://github.com/pandas-dev/pandas/pull/14740#issuecomment-265260209">here</a>.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14814/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14814/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14814.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14814", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14814.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14814" }
https://api.github.com/repos/pandas-dev/pandas/issues/14815
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14815/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14815/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14815/events
https://github.com/pandas-dev/pandas/pull/14815
193,967,871
MDExOlB1bGxSZXF1ZXN0OTY4NjU0NjM=
14,815
BUG: Fix linux clipboard QApplication() creation
{ "avatar_url": "https://avatars.githubusercontent.com/u/776111?v=4", "events_url": "https://api.github.com/users/pankajp/events{/privacy}", "followers_url": "https://api.github.com/users/pankajp/followers", "following_url": "https://api.github.com/users/pankajp/following{/other_user}", "gists_url": "https://api.github.com/users/pankajp/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/pankajp", "id": 776111, "login": "pankajp", "node_id": "MDQ6VXNlcjc3NjExMQ==", "organizations_url": "https://api.github.com/users/pankajp/orgs", "received_events_url": "https://api.github.com/users/pankajp/received_events", "repos_url": "https://api.github.com/users/pankajp/repos", "site_admin": false, "starred_url": "https://api.github.com/users/pankajp/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/pankajp/subscriptions", "type": "User", "url": "https://api.github.com/users/pankajp" }
[ { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
4
2016-12-07T06:24:15Z
2017-03-20T13:47:15Z
2017-03-20T13:47:14Z
CONTRIBUTOR
null
- [x] closes #14372 A Qt application cannot instantiate multiple `QApplication` instances, so we create a new `QApplication` only when the global `QApplication.instance()` is None. Failing sample (gtk should not be installed for pandas to use qt clipboard): ``` from PyQt4.QtGui import QApplication myapp = QApplication([]) from pandas.util.clipboard import clipboard_get # <--- ERROR File "prefix/lib/python2.7/site-packages/pandas/util/clipboard.py", line 164, in <module> app = qt4.QtGui.QApplication([]) RuntimeError: A QApplication instance already exists. ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14815/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14815/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14815.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14815", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14815.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14815" }
https://api.github.com/repos/pandas-dev/pandas/issues/14816
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14816/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14816/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14816/events
https://github.com/pandas-dev/pandas/pull/14816
194,086,115
MDExOlB1bGxSZXF1ZXN0OTY5NDk1ODI=
14,816
BUG: Prevent addition overflow with TimedeltaIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
20
2016-12-07T15:50:04Z
2016-12-24T02:15:57Z
2016-12-17T23:25:08Z
MEMBER
null
Expands checked-add array addition introduced in #14237 to include all other addition cases (i.e. `TimedeltaIndex` and `Timedelta`). Follow-up to #14453.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14816/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14816/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14816.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14816", "merged_at": "2016-12-17T23:25:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14816.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14816" }
https://api.github.com/repos/pandas-dev/pandas/issues/14817
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14817/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14817/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14817/events
https://github.com/pandas-dev/pandas/pull/14817
194,131,968
MDExOlB1bGxSZXF1ZXN0OTY5ODIyOTE=
14,817
Groupby tests restructure
{ "avatar_url": "https://avatars.githubusercontent.com/u/4158294?v=4", "events_url": "https://api.github.com/users/aileronajay/events{/privacy}", "followers_url": "https://api.github.com/users/aileronajay/followers", "following_url": "https://api.github.com/users/aileronajay/following{/other_user}", "gists_url": "https://api.github.com/users/aileronajay/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aileronajay", "id": 4158294, "login": "aileronajay", "node_id": "MDQ6VXNlcjQxNTgyOTQ=", "organizations_url": "https://api.github.com/users/aileronajay/orgs", "received_events_url": "https://api.github.com/users/aileronajay/received_events", "repos_url": "https://api.github.com/users/aileronajay/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aileronajay/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aileronajay/subscriptions", "type": "User", "url": "https://api.github.com/users/aileronajay" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
13
2016-12-07T18:40:10Z
2016-12-17T15:47:12Z
2016-12-17T15:43:50Z
CONTRIBUTOR
null
closes #14813
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14817/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14817/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14817.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14817", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14817.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14817" }
https://api.github.com/repos/pandas-dev/pandas/issues/14818
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14818/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14818/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14818/events
https://github.com/pandas-dev/pandas/pull/14818
194,162,698
MDExOlB1bGxSZXF1ZXN0OTcwMDI1MzM=
14,818
Changed pandas-qt python2/3 friendly qtpandas.
{ "avatar_url": "https://avatars.githubusercontent.com/u/22569604?v=4", "events_url": "https://api.github.com/users/draperjames/events{/privacy}", "followers_url": "https://api.github.com/users/draperjames/followers", "following_url": "https://api.github.com/users/draperjames/following{/other_user}", "gists_url": "https://api.github.com/users/draperjames/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/draperjames", "id": 22569604, "login": "draperjames", "node_id": "MDQ6VXNlcjIyNTY5NjA0", "organizations_url": "https://api.github.com/users/draperjames/orgs", "received_events_url": "https://api.github.com/users/draperjames/received_events", "repos_url": "https://api.github.com/users/draperjames/repos", "site_admin": false, "starred_url": "https://api.github.com/users/draperjames/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/draperjames/subscriptions", "type": "User", "url": "https://api.github.com/users/draperjames" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
8
2016-12-07T20:38:44Z
2016-12-29T22:27:38Z
2016-12-29T14:56:29Z
CONTRIBUTOR
null
Just changed the link to the abandoned repository python 2 only pandas-qt to the new functional Python 2/3 friendly qtpandas.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14818/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14818/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14818.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14818", "merged_at": "2016-12-29T14:56:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14818.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14818" }
https://api.github.com/repos/pandas-dev/pandas/issues/14819
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14819/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14819/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14819/events
https://github.com/pandas-dev/pandas/issues/14819
194,183,748
MDU6SXNzdWUxOTQxODM3NDg=
14,819
Feature Request: symbol datatype (for string compression)
{ "avatar_url": "https://avatars.githubusercontent.com/u/4165406?v=4", "events_url": "https://api.github.com/users/samkennerly/events{/privacy}", "followers_url": "https://api.github.com/users/samkennerly/followers", "following_url": "https://api.github.com/users/samkennerly/following{/other_user}", "gists_url": "https://api.github.com/users/samkennerly/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/samkennerly", "id": 4165406, "login": "samkennerly", "node_id": "MDQ6VXNlcjQxNjU0MDY=", "organizations_url": "https://api.github.com/users/samkennerly/orgs", "received_events_url": "https://api.github.com/users/samkennerly/received_events", "repos_url": "https://api.github.com/users/samkennerly/repos", "site_admin": false, "starred_url": "https://api.github.com/users/samkennerly/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/samkennerly/subscriptions", "type": "User", "url": "https://api.github.com/users/samkennerly" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-12-07T22:02:14Z
2016-12-15T04:14:03Z
2016-12-07T22:30:38Z
NONE
null
Should pandas have a _Symbol_ datatype for strings which are frequently re-used? For example, consider a table of stock trades with columns ['Timestamp','Price','Size','StockSymbol']. Suppose there are 10 million trades, but only 500 different stock symbols. Instead of storing 10 million strings, we could fill the 'StockSymbol' column with integers 0-499 where 0 represents AAPL, 1 represents AMZN, etc. The _Symbol_ type in Ruby, Scala, and Q does this compression/expansion automatically. It's a big memory saver in big tables, and _Symbol_ comparison can be much faster than string comparison. I often use `.astype('category')` for string compression in pandas. But at a talk I saw recently, @wesm suggested this might not be a great idea. I've definitely caused several confusing problems by abusing categoricals this way: comparing two columns with different levels, appending rows with new symbols, wrongly assuming `sort_values()` will sort symbols lexicographically, etc. Related question: Without a _Symbol_ datatype, is there a consensus on best practice for storing repetitive strings in a Series or DataFrame? Should we leave them as `Object` type? Compress them as un-ordered categoricals? Do something else I haven't thought of?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14819/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14819/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14820
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14820/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14820/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14820/events
https://github.com/pandas-dev/pandas/pull/14820
194,224,828
MDExOlB1bGxSZXF1ZXN0OTcwNDM3MjI=
14,820
Fixed KDE Plot to drop the missing values
{ "avatar_url": "https://avatars.githubusercontent.com/u/6829331?v=4", "events_url": "https://api.github.com/users/keshavramaswamy/events{/privacy}", "followers_url": "https://api.github.com/users/keshavramaswamy/followers", "following_url": "https://api.github.com/users/keshavramaswamy/following{/other_user}", "gists_url": "https://api.github.com/users/keshavramaswamy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/keshavramaswamy", "id": 6829331, "login": "keshavramaswamy", "node_id": "MDQ6VXNlcjY4MjkzMzE=", "organizations_url": "https://api.github.com/users/keshavramaswamy/orgs", "received_events_url": "https://api.github.com/users/keshavramaswamy/received_events", "repos_url": "https://api.github.com/users/keshavramaswamy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/keshavramaswamy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keshavramaswamy/subscriptions", "type": "User", "url": "https://api.github.com/users/keshavramaswamy" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
10
2016-12-08T01:38:48Z
2016-12-24T02:07:26Z
2016-12-15T15:40:38Z
CONTRIBUTOR
null
- [x] closes https://github.com/pandas-dev/pandas/issues/14821 - [x] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14820/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14820/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14820.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14820", "merged_at": "2016-12-15T15:40:38Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14820.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14820" }
https://api.github.com/repos/pandas-dev/pandas/issues/14821
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14821/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14821/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14821/events
https://github.com/pandas-dev/pandas/issues/14821
194,224,985
MDU6SXNzdWUxOTQyMjQ5ODU=
14,821
KDE Plot does not drop missing values
{ "avatar_url": "https://avatars.githubusercontent.com/u/6829331?v=4", "events_url": "https://api.github.com/users/keshavramaswamy/events{/privacy}", "followers_url": "https://api.github.com/users/keshavramaswamy/followers", "following_url": "https://api.github.com/users/keshavramaswamy/following{/other_user}", "gists_url": "https://api.github.com/users/keshavramaswamy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/keshavramaswamy", "id": 6829331, "login": "keshavramaswamy", "node_id": "MDQ6VXNlcjY4MjkzMzE=", "organizations_url": "https://api.github.com/users/keshavramaswamy/orgs", "received_events_url": "https://api.github.com/users/keshavramaswamy/received_events", "repos_url": "https://api.github.com/users/keshavramaswamy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/keshavramaswamy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/keshavramaswamy/subscriptions", "type": "User", "url": "https://api.github.com/users/keshavramaswamy" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
0
2016-12-08T01:40:01Z
2016-12-24T02:07:34Z
2016-12-15T15:40:38Z
CONTRIBUTOR
null
```python df = pd.Series([np.nan, 4.0,5.0,6.0,np.nan,1.0,4.0,4.0,2.0,np.nan,np.nan,6.0,2.0,np.nan,np.nan,np.nan,np.nan,np.nan, 3.0,2.0,1.0,10.0,np.nan,np.nan,np.nan,np.nan,1.0,np.nan,np.nan,3.0]) df.plot(kind='kde') df.plot(kind='hist') ``` The KDE Plot of a series with missing values fails, producing an empty plot whereas the histogram is able to drop the missing values. #### Expected Output * The KDE Plot is generated when the missing values are removed manually or by using `dropna()` * According to the [Pandas doc on plotting with missing data](http://pandas.pydata.org/pandas-docs/version/0.18.1/visualization.html#plotting-with-missing-data), the default way NaNs are handled is by dropping them. But this does not happen - an empty plot is generated * I have created a PR to fix this: [#14820](https://github.com/pandas-dev/pandas/pull/14820) <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-92-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.2.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: 1.1.0 tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.40.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14821/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14821/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14822
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14822/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14822/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14822/events
https://github.com/pandas-dev/pandas/issues/14822
194,242,039
MDU6SXNzdWUxOTQyNDIwMzk=
14,822
PERF: PeriodIndex.size
{ "avatar_url": "https://avatars.githubusercontent.com/u/5635139?v=4", "events_url": "https://api.github.com/users/max-sixty/events{/privacy}", "followers_url": "https://api.github.com/users/max-sixty/followers", "following_url": "https://api.github.com/users/max-sixty/following{/other_user}", "gists_url": "https://api.github.com/users/max-sixty/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/max-sixty", "id": 5635139, "login": "max-sixty", "node_id": "MDQ6VXNlcjU2MzUxMzk=", "organizations_url": "https://api.github.com/users/max-sixty/orgs", "received_events_url": "https://api.github.com/users/max-sixty/received_events", "repos_url": "https://api.github.com/users/max-sixty/repos", "site_admin": false, "starred_url": "https://api.github.com/users/max-sixty/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/max-sixty/subscriptions", "type": "User", "url": "https://api.github.com/users/max-sixty" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
17
2016-12-08T04:03:54Z
2016-12-21T11:11:36Z
2016-12-21T11:11:36Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python In [1]: import pandas as pd In [2]: index = pd.PeriodIndex(start='1952', periods=50000, freq='B') In [3]: %timeit index.size 10 loops, best of 3: 102 ms per loop In [4]: %timeit index._values.size The slowest run took 24.79 times longer than the fastest. This could mean that an intermediate result is being cached. 1000000 loops, best of 3: 233 ns per loop ``` #### Problem description @sinhrks - now that the `PeriodIndex` call to `.values` unboxes all the periods, operations like `PeriodIndex.size` are much slower. What's the best way around this? Should we override more methods so that they call into `._values` rather than `.values`? #### Output of ``pd.show_versions()`` <details> In [6]: pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 28.8.0 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: 0.8.2 IPython: 5.1.0 sphinx: None patsy: 0.4.1 dateutil: 2.6.0 pytz: 2016.7 blosc: None bottleneck: 1.2.0 tables: None numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: 1.1.2 xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: 0.9.2 apiclient: 1.5.5 sqlalchemy: 1.1.4 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.43.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14822/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14822/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14823
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14823/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14823/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14823/events
https://github.com/pandas-dev/pandas/pull/14823
194,249,142
MDExOlB1bGxSZXF1ZXN0OTcwNjA1MTY=
14,823
BUG: MutliIndex variable length tuples
{ "avatar_url": "https://avatars.githubusercontent.com/u/10678620?v=4", "events_url": "https://api.github.com/users/groutr/events{/privacy}", "followers_url": "https://api.github.com/users/groutr/followers", "following_url": "https://api.github.com/users/groutr/following{/other_user}", "gists_url": "https://api.github.com/users/groutr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/groutr", "id": 10678620, "login": "groutr", "node_id": "MDQ6VXNlcjEwNjc4NjIw", "organizations_url": "https://api.github.com/users/groutr/orgs", "received_events_url": "https://api.github.com/users/groutr/received_events", "repos_url": "https://api.github.com/users/groutr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/groutr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/groutr/subscriptions", "type": "User", "url": "https://api.github.com/users/groutr" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
null
16
2016-12-08T05:15:34Z
2017-09-07T00:42:45Z
2017-09-07T00:42:45Z
CONTRIBUTOR
null
- [ ] closes #14794 - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14823/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14823/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14823.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14823", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14823.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14823" }
https://api.github.com/repos/pandas-dev/pandas/issues/14824
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14824/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14824/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14824/events
https://github.com/pandas-dev/pandas/pull/14824
194,252,731
MDExOlB1bGxSZXF1ZXN0OTcwNjI5NzM=
14,824
frame_methods benchmarking sum instead of mean
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
4
2016-12-08T05:49:12Z
2016-12-10T21:31:15Z
2016-12-10T21:31:12Z
MEMBER
null
Not sure if the function name or the method call is incorrect, but it looks like this should be benchmarking `mean` instead of `sum`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14824/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14824/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14824.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14824", "merged_at": "2016-12-10T21:31:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14824.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14824" }
https://api.github.com/repos/pandas-dev/pandas/issues/14825
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14825/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14825/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14825/events
https://github.com/pandas-dev/pandas/issues/14825
194,264,855
MDU6SXNzdWUxOTQyNjQ4NTU=
14,825
to_json() output format issue
{ "avatar_url": "https://avatars.githubusercontent.com/u/1227160?v=4", "events_url": "https://api.github.com/users/hupili/events{/privacy}", "followers_url": "https://api.github.com/users/hupili/followers", "following_url": "https://api.github.com/users/hupili/following{/other_user}", "gists_url": "https://api.github.com/users/hupili/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hupili", "id": 1227160, "login": "hupili", "node_id": "MDQ6VXNlcjEyMjcxNjA=", "organizations_url": "https://api.github.com/users/hupili/orgs", "received_events_url": "https://api.github.com/users/hupili/received_events", "repos_url": "https://api.github.com/users/hupili/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hupili/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hupili/subscriptions", "type": "User", "url": "https://api.github.com/users/hupili" }
[ { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
1
2016-12-08T07:22:40Z
2016-12-08T15:01:33Z
2016-12-08T15:01:08Z
NONE
null
https://github.com/hupili/pandas-to-json-multi-index-issue/blob/master/pandas%20to_json%20test.ipynb #### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame( [ ['1', '2', 'a'], ['1', '3', 'b'], ['2', '4', 'c'], ['3', '5', 'd'] ], columns=['key1', 'key2', 'key3'] ) j = df.set_index(['key1', 'key2']).to_json() json.loads(j) ``` #### Problem description The exported JSON is ill-formatted ``` --------------------------------------------------------------------------- JSONDecodeError Traceback (most recent call last) <ipython-input-8-5f4db1ed154c> in <module>() ----> 1 json.loads(j) /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/__init__.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw) 317 parse_int is None and parse_float is None and 318 parse_constant is None and object_pairs_hook is None and not kw): --> 319 return _default_decoder.decode(s) 320 if cls is None: 321 cls = JSONDecoder /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py in decode(self, s, _w) 337 338 """ --> 339 obj, end = self.raw_decode(s, idx=_w(s, 0).end()) 340 end = _w(s, end).end() 341 if end != len(s): /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/json/decoder.py in raw_decode(self, s, idx) 353 """ 354 try: --> 355 obj, end = self.scan_once(s, idx) 356 except StopIteration as err: 357 raise JSONDecodeError("Expecting value", s, err.value) from None JSONDecodeError: Expecting ':' delimiter: line 1 column 13 (char 12) ``` #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 7.1.2 setuptools: 28.6.1 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.4.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: None httplib2: 0.9.2 apiclient: 1.5.4 sqlalchemy: 1.1.2 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.43.0 pandas_datareader: None In [4]: </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14825/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14825/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14826
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14826/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14826/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14826/events
https://github.com/pandas-dev/pandas/issues/14826
194,290,059
MDU6SXNzdWUxOTQyOTAwNTk=
14,826
Inconsistent behavior of DatetimeIndex Partial String Indexing on Series and DataFrames
{ "avatar_url": "https://avatars.githubusercontent.com/u/2717321?v=4", "events_url": "https://api.github.com/users/ischurov/events{/privacy}", "followers_url": "https://api.github.com/users/ischurov/followers", "following_url": "https://api.github.com/users/ischurov/following{/other_user}", "gists_url": "https://api.github.com/users/ischurov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischurov", "id": 2717321, "login": "ischurov", "node_id": "MDQ6VXNlcjI3MTczMjE=", "organizations_url": "https://api.github.com/users/ischurov/orgs", "received_events_url": "https://api.github.com/users/ischurov/received_events", "repos_url": "https://api.github.com/users/ischurov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischurov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischurov/subscriptions", "type": "User", "url": "https://api.github.com/users/ischurov" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
18
2016-12-08T09:48:33Z
2016-12-22T20:27:58Z
2016-12-20T17:44:52Z
CONTRIBUTOR
null
This bugreport is related to [this](http://stackoverflow.com/questions/40999840/why-is-pandas-not-returing-a-scalar-string-instead-of-a-series-when-accessing-a) SO question and the discussion there. #### Summary I believe that current [DatetimeIndex Partial String Indexing](http://pandas.pydata.org/pandas-docs/stable/timeseries.html#datetimeindex-partial-string-indexing) behavior is either inconsistent or underdocumented as the result depends nontrivially on whether we are working with `Series` or `DataFrame` and whether `DateTimeIndex` is periodic or not. #### `Series` vs. `DataFrame` ```python series = pd.Series([1, 2, 3], pd.DatetimeIndex(['2016-12-07 09:00:00', '2016-12-08 09:00:00', '2016-12-09 09:00:00'])) print(type(series["2016-12-07 09:00:00"])) # <class 'numpy.int64'> ``` ```python df = pd.DataFrame(series) df["2016-12-07 09:00:00"] KeyError: '2016-12-07 09:00:00' ``` Here we see that the behaviour depends on what we are indexing: `Series` returns scalar while `DataFrame` raises an exception. This exception is consistent with the documentation notice: > **Warning** The following selection will raise a KeyError; otherwise this selection methodology would be inconsistent with other selection methods in pandas (as this is not a slice, nor does it resolve to one) Why we do not get the same exception for `Series` object? #### Periodic vs. Non-periodic ```python series = pd.Series([1, 2, 3], pd.DatetimeIndex(['2016-12-07 09:00:00', '2016-12-08 09:00:00', '2016-12-09 09:00:01'])) # now it is not periodic due to 1 second in the last timestamp print(type(series["2016-12-07 09:00:00"])) # <class 'pandas.core.series.Series'> ``` In contrast with the previous example, we get an instance of `Series` here, so the same timestamp is considered as a slice, not index. Why it depends in such a way on periodicity of the index? ```python df = pd.DataFrame(series) print(type(df["2016-12-07 09:00:00"])) # <class 'pandas.core.frame.DataFrame'> ``` No exceptions here, in contrast with periodic case. Is it intended behavior? If yes, I believe that this should be clearly documented and rationale provided. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0+157.g2466ecb nose: 1.3.7 pip: 9.0.1 setuptools: 27.2.0 Cython: 0.25.1 numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14826/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14826/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14827
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14827/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14827/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14827/events
https://github.com/pandas-dev/pandas/issues/14827
194,320,148
MDU6SXNzdWUxOTQzMjAxNDg=
14,827
Pandas.to_numeric raises ValueError when applied to python Decimal object
{ "avatar_url": "https://avatars.githubusercontent.com/u/3211163?v=4", "events_url": "https://api.github.com/users/RogerThomas/events{/privacy}", "followers_url": "https://api.github.com/users/RogerThomas/followers", "following_url": "https://api.github.com/users/RogerThomas/following{/other_user}", "gists_url": "https://api.github.com/users/RogerThomas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RogerThomas", "id": 3211163, "login": "RogerThomas", "node_id": "MDQ6VXNlcjMyMTExNjM=", "organizations_url": "https://api.github.com/users/RogerThomas/orgs", "received_events_url": "https://api.github.com/users/RogerThomas/received_events", "repos_url": "https://api.github.com/users/RogerThomas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RogerThomas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RogerThomas/subscriptions", "type": "User", "url": "https://api.github.com/users/RogerThomas" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-12-08T12:10:41Z
2016-12-20T13:29:23Z
2016-12-20T13:29:23Z
NONE
null
When pandas tries to convert columns to numeric using to_numeric a value error is raised Example ```python import decimal df = pd.DataFrame(dict(col=[decimal.Decimal(9.1)])) df['col'] = df['col'].apply(pd.to_numeric) ``` however ```python import decimal df = pd.DataFrame(dict(col=[decimal.Decimal(9.1)])) df['col'] = df['col'].astype(float) ``` works fine #### Problem description to_numeric should be able to convert decimal objects to float types #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-53-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_IE.UTF-8 LOCALE: None.None pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 28.3.0 Cython: 0.23.4 numpy: 1.11.2 scipy: 0.16.1 statsmodels: 0.6.1 xarray: None IPython: None sphinx: 1.3.1 patsy: 0.4.1 dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: 3.2.0 numexpr: 2.4.6 matplotlib: 1.5.0 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: 0.9.2 apiclient: None sqlalchemy: 1.0.9 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.38.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14827/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14827/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14828
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14828/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14828/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14828/events
https://github.com/pandas-dev/pandas/issues/14828
194,383,972
MDU6SXNzdWUxOTQzODM5NzI=
14,828
Pandas can not import CSV file
{ "avatar_url": "https://avatars.githubusercontent.com/u/4984147?v=4", "events_url": "https://api.github.com/users/vmesel/events{/privacy}", "followers_url": "https://api.github.com/users/vmesel/followers", "following_url": "https://api.github.com/users/vmesel/following{/other_user}", "gists_url": "https://api.github.com/users/vmesel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vmesel", "id": 4984147, "login": "vmesel", "node_id": "MDQ6VXNlcjQ5ODQxNDc=", "organizations_url": "https://api.github.com/users/vmesel/orgs", "received_events_url": "https://api.github.com/users/vmesel/received_events", "repos_url": "https://api.github.com/users/vmesel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vmesel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vmesel/subscriptions", "type": "User", "url": "https://api.github.com/users/vmesel" }
[ { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "color": "207de5", "default": false, "description": "Clarification about behavior needed to assess issue", "id": 307649777, "name": "Needs Info", "node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info" } ]
closed
false
null
[]
null
2
2016-12-08T16:39:12Z
2017-02-03T21:50:46Z
2017-02-03T21:50:46Z
NONE
null
#### Code Sample ```python import pandas as pd import numpy as np reimbursements = pd.read_csv('../data/2016-11-19-reimbursements.xz', dtype={'cnpj_cpf': np.str, 'reimbursement_numbers': np.str}, low_memory=False) print(reimbursements.columns) ``` #### Problem description I'm running Pandas and Jupyter on Windows 10 Enterprise, and I cant import my csv file. When I run pandas on PyCharm, on terminal or even in Jupyter, the code runs flawlessly until we load the dataset, but to make a request or operation on the dataframe, the output is the following: ``` --------------------------------------------------------------------------- CParserError Traceback (most recent call last) <ipython-input-6-445ca5d3e350> in <module>() 4 dtype={'cnpj_cpf': np.str, 5 'reimbursement_numbers': np.str}, ----> 6 low_memory=False) 7 8 reimbursements.columns c:\users\vinicius\appdata\local\programs\python\python35-32\lib\site-packages\pandas\io\parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, skipfooter, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision) 560 skip_blank_lines=skip_blank_lines) 561 --> 562 return _read(filepath_or_buffer, kwds) 563 564 parser_f.__name__ = name c:\users\vinicius\appdata\local\programs\python\python35-32\lib\site-packages\pandas\io\parsers.py in _read(filepath_or_buffer, kwds) 323 return parser 324 --> 325 return parser.read() 326 327 _parser_defaults = { c:\users\vinicius\appdata\local\programs\python\python35-32\lib\site-packages\pandas\io\parsers.py in read(self, nrows) 813 raise ValueError('skip_footer not supported for iteration') 814 --> 815 ret = self._engine.read(nrows) 816 817 if self.options.get('as_recarray'): c:\users\vinicius\appdata\local\programs\python\python35-32\lib\site-packages\pandas\io\parsers.py in read(self, nrows) 1312 def read(self, nrows=None): 1313 try: -> 1314 data = self._reader.read(nrows) 1315 except StopIteration: 1316 if self._first_chunk: pandas\parser.pyx in pandas.parser.TextReader.read (pandas\parser.c:8643)() pandas\parser.pyx in pandas.parser.TextReader._read_rows (pandas\parser.c:9772)() pandas\parser.pyx in pandas.parser.raise_parser_error (pandas\parser.c:23295)() CParserError: Error tokenizing data. C error: out of memory ``` #### Expected Output ``` Index(['year', 'applicant_id', 'document_id', 'reimbursement_value_total', 'total_net_value', 'reimbursement_numbers', 'congressperson_name', 'congressperson_id', 'congressperson_document', 'term', 'state', 'party', 'term_id', 'subquota_number', 'subquota_description', 'subquota_group_id', 'subquota_group_description', 'supplier', 'cnpj_cpf', 'document_number', 'document_type', 'issue_date', 'document_value', 'remark_value', 'net_values', 'month', 'installment', 'passenger', 'leg_of_the_trip', 'batch_number', 'reimbursement_values'], dtype='object') ``` #### Output of ``pd.show_versions()`` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 32 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 9.0.1 setuptools: 20.7.0 Cython: None numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: 4.1.2 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext) jinja2: 2.8 boto: None pandas_datareader: None None ``` </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14828/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14828/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14829
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14829/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14829/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14829/events
https://github.com/pandas-dev/pandas/issues/14829
194,384,400
MDU6SXNzdWUxOTQzODQ0MDA=
14,829
API: allow DataFrame.rename to take a list-like of colums
{ "avatar_url": "https://avatars.githubusercontent.com/u/1924092?v=4", "events_url": "https://api.github.com/users/chris-b1/events{/privacy}", "followers_url": "https://api.github.com/users/chris-b1/followers", "following_url": "https://api.github.com/users/chris-b1/following{/other_user}", "gists_url": "https://api.github.com/users/chris-b1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chris-b1", "id": 1924092, "login": "chris-b1", "node_id": "MDQ6VXNlcjE5MjQwOTI=", "organizations_url": "https://api.github.com/users/chris-b1/orgs", "received_events_url": "https://api.github.com/users/chris-b1/received_events", "repos_url": "https://api.github.com/users/chris-b1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chris-b1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chris-b1/subscriptions", "type": "User", "url": "https://api.github.com/users/chris-b1" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "e99695", "default": false, "description": "", "id": 3498152761, "name": "rename", "node_id": "LA_kwDOAA0YD87QgZM5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/rename" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
16
2016-12-08T16:40:49Z
2021-10-29T02:01:53Z
null
CONTRIBUTOR
null
This is closely related to #12392, but I think separate issue. Proposal would be to be able to pass a list-like to `DataFrame.rename` to make method-chaining easier. I think it would also be consistent with #11980 (Series rename) ```python df = pd.DataFrame({'a': [1,2], 'b': [3, 4]}) # make this df = df.rename(columns=['j', 'k']) # equivalent to df.columns = ['j', 'k'] ```
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14829/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14829/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14830
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14830/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14830/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14830/events
https://github.com/pandas-dev/pandas/issues/14830
194,392,805
MDU6SXNzdWUxOTQzOTI4MDU=
14,830
hardcoded expectations on endianness in the tests -- feature or a bug? ;)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
3
2016-12-08T17:13:04Z
2016-12-09T19:34:32Z
2016-12-09T19:34:32Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible looking at code of pandas/tests/series/test_datetime_values.py which was introduced in c76ca444fd42675982e81394736d941e2f2629db I believe: ```python period_index = period_range('20150301', periods=5) result = period_index.strftime("%Y/%m/%d") expected = np.array(['2015/03/01', '2015/03/02', '2015/03/03', '2015/03/04', '2015/03/05'], dtype='<U10') self.assert_numpy_array_equal(result, expected) ``` #### Problem description above (and some other tests... see e.g. https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=s390x&ver=0.19.1-2&stamp=1480348101) lead to failed tests... which sometimes look as informative as ``` numpy array values are different (0.0 %) [left]: [2015/03/01, 2015/03/02, 2015/03/03, 2015/03/04, 2015/03/05] [right]: [2015/03/01, 2015/03/02, 2015/03/03, 2015/03/04, 2015/03/05] ``` ;-) but the real reason is different endianness: ``` (Pdb) l 325 326 period_index = period_range('20150301', periods=5) 327 result = period_index.strftime("%Y/%m/%d") 328 expected = np.array(['2015/03/01', '2015/03/02', '2015/03/03', 329 '2015/03/04', '2015/03/05'], dtype='<U10') 330 -> self.assert_numpy_array_equal(result, expected) 331 332 s = Series([datetime(2013, 1, 1, 2, 32, 59), datetime(2013, 1, 2, 14, 333 32, 1)]) 334 result = s.dt.strftime('%Y-%m-%d %H:%M:%S') 335 expected = Series(["2013-01-01 02:32:59", "2013-01-02 14:32:01"]) (Pdb) p expected array([u'2015/03/01', u'2015/03/02', u'2015/03/03', u'2015/03/04', u'2015/03/05'], dtype='<U10') (Pdb) p result array([u'2015/03/01', u'2015/03/02', u'2015/03/03', u'2015/03/04', u'2015/03/05'], dtype='>U10') ``` tentative *fix* is easy -- remove '>' from type definition. But I wondered if that is desired -- does pandas assume to enforce little-endianness or not? if it doesn't force -- then actually a proper fix, to maintain the same check of consistent endianness, would be to prefix with `=` and not `<`. Please advise!
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14830/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14830/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14831
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14831/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14831/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14831/events
https://github.com/pandas-dev/pandas/pull/14831
194,402,404
MDExOlB1bGxSZXF1ZXN0OTcxNzAyMTY=
14,831
BF: boost min cython to 0.23
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "75507B", "default": false, "description": "Library building on various platforms", "id": 129350, "name": "Build", "node_id": "MDU6TGFiZWwxMjkzNTA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Build" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
11
2016-12-08T17:56:35Z
2016-12-12T11:48:25Z
2016-12-12T11:48:25Z
CONTRIBUTOR
null
closes #14699 closes #14508
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14831/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14831/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14831.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14831", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14831.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14831" }
https://api.github.com/repos/pandas-dev/pandas/issues/14832
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14832/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14832/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14832/events
https://github.com/pandas-dev/pandas/pull/14832
194,403,125
MDExOlB1bGxSZXF1ZXN0OTcxNzA3NDA=
14,832
BF(TST): use = (native) instead of < (little endian) for target data types
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
3
2016-12-08T17:59:51Z
2017-01-12T14:44:57Z
2016-12-09T19:34:32Z
CONTRIBUTOR
null
- [ ] closes #14830 - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry It is still WiP -- just thought to submit a PR to see how travis etc reacts on typical platforms
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14832/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14832/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14832.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14832", "merged_at": "2016-12-09T19:34:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14832.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14832" }
https://api.github.com/repos/pandas-dev/pandas/issues/14833
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14833/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14833/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14833/events
https://github.com/pandas-dev/pandas/issues/14833
194,404,072
MDU6SXNzdWUxOTQ0MDQwNzI=
14,833
Multiarray searchsorted fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/1579723?v=4", "events_url": "https://api.github.com/users/Anaphory/events{/privacy}", "followers_url": "https://api.github.com/users/Anaphory/followers", "following_url": "https://api.github.com/users/Anaphory/following{/other_user}", "gists_url": "https://api.github.com/users/Anaphory/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Anaphory", "id": 1579723, "login": "Anaphory", "node_id": "MDQ6VXNlcjE1Nzk3MjM=", "organizations_url": "https://api.github.com/users/Anaphory/orgs", "received_events_url": "https://api.github.com/users/Anaphory/received_events", "repos_url": "https://api.github.com/users/Anaphory/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Anaphory/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Anaphory/subscriptions", "type": "User", "url": "https://api.github.com/users/Anaphory" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
12
2016-12-08T18:04:17Z
2021-05-02T00:55:15Z
null
NONE
null
#### Code Sample, a copy-pastable example if possible ```python pandas.MultiIndex([[0],["a"]], [[0],[0]]).searchsorted((1,"b")) ``` #### Problem description The entry `(1,"b")` should come after the existing `(0,"a")` in the `MultiIndex`. (Alternatively, MultiIndex could throw a clean error message.) Instead, an intransparent exception is raised: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.5/site-packages/pandas/core/base.py", line 1156, in searchsorted return self.values.searchsorted(key, side=side, sorter=sorter) TypeError: unorderable types: tuple() > str() ``` This is because `Index.searchsorted` naïvely passes its arguments to `numpy.searchsorted`, which is unaware that its second argument is a sequence of tuples, not a plain array just of dimension one higher. #### Expected Output 1 #### Output of ``pd.show_versions()`` <details> # Paste the output here pd.show_versions() here NSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.8.10-1-ARCH machine: x86_64 processor:  byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 28.8.0 Cython: 0.25.1 numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: None xlrd: 1.0.0 xlwt: 0.8.0 xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: 0.9999999 httplib2: 0.9.2 apiclient: None sqlalchemy: 1.1.4 pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14833/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14833/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14834
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14834/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14834/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14834/events
https://github.com/pandas-dev/pandas/issues/14834
194,405,292
MDU6SXNzdWUxOTQ0MDUyOTI=
14,834
test_round_trip_exception_ got stuck (on s390x)
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-12-08T18:10:05Z
2016-12-11T20:33:21Z
2016-12-09T14:02:59Z
CONTRIBUTOR
null
Just FYI and for reference (feel free to close)... was running all the tests and they got stuck on this one then tried to rerun this one specifically and just lead to certificate verification problem :-/ ```shell (sid_s390x-dchroot)yoh@zelenka:~/pandas$ HOME=$PWD/build LC_ALL=C.UTF-8 xvfb-run -a -s "-screen 0 1280x1024x24 -noreset" nosetests -s -v pandas/io/tests/json/test_pandas.py:TestPandasContainer.test_round_trip_exception_ test_round_trip_exception_ (pandas.io.tests.json.test_pandas.TestPandasContainer) ... ERROR ====================================================================== ERROR: test_round_trip_exception_ (pandas.io.tests.json.test_pandas.TestPandasContainer) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/yoh/pandas/pandas/util/testing.py", line 2259, in wrapper return t(*args, **kwargs) File "/home/yoh/pandas/pandas/io/tests/json/test_pandas.py", line 762, in test_round_trip_exception_ df = pd.read_csv(csv) File "/home/yoh/pandas/pandas/io/parsers.py", line 655, in parser_f return _read(filepath_or_buffer, kwds) File "/home/yoh/pandas/pandas/io/parsers.py", line 385, in _read compression=kwds.get('compression', None)) File "/home/yoh/pandas/pandas/io/common.py", line 240, in get_filepath_or_buffer req = _urlopen(str(filepath_or_buffer)) File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 429, in open response = self._open(req, data) File "/usr/lib/python2.7/urllib2.py", line 447, in _open '_open', req) File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open context=self._context) File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open raise URLError(err) URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661)> ---------------------------------------------------------------------- Ran 1 test in 0.120s FAILED (errors=1) ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14834/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14834/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14835
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14835/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14835/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14835/events
https://github.com/pandas-dev/pandas/issues/14835
194,445,753
MDU6SXNzdWUxOTQ0NDU3NTM=
14,835
Efficient way to create a DataFrame iteratively
{ "avatar_url": "https://avatars.githubusercontent.com/u/8008840?v=4", "events_url": "https://api.github.com/users/MartinPyka/events{/privacy}", "followers_url": "https://api.github.com/users/MartinPyka/followers", "following_url": "https://api.github.com/users/MartinPyka/following{/other_user}", "gists_url": "https://api.github.com/users/MartinPyka/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MartinPyka", "id": 8008840, "login": "MartinPyka", "node_id": "MDQ6VXNlcjgwMDg4NDA=", "organizations_url": "https://api.github.com/users/MartinPyka/orgs", "received_events_url": "https://api.github.com/users/MartinPyka/received_events", "repos_url": "https://api.github.com/users/MartinPyka/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MartinPyka/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MartinPyka/subscriptions", "type": "User", "url": "https://api.github.com/users/MartinPyka" }
[ { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-12-08T21:11:59Z
2016-12-09T08:36:09Z
2016-12-09T07:11:04Z
NONE
null
I am working on a financial simulation ([financial_life](https://github.com/MartinPyka/financial_life)), in which I would like to collect my timeseries data in a DataFrame during simulation. However, while looking through several posts on StackOverflow and experimenting with timeit, I noticed that appending data to a Dataframe (e.g. via append or via loc-expansion) is far more inefficient than the append-function for a simple list and then transforming everything to a dataframe, if requested. The latter one is, what I am doing now. So I was wondering, whether there is any performant way of creating a DataFrame in an iterative manner?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14835/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14835/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14836
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14836/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14836/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14836/events
https://github.com/pandas-dev/pandas/issues/14836
194,473,208
MDU6SXNzdWUxOTQ0NzMyMDg=
14,836
BUG: label-based indexing fails with certain list indexers in case of mixed integers/strings columns names
{ "avatar_url": "https://avatars.githubusercontent.com/u/5479063?v=4", "events_url": "https://api.github.com/users/jmarrec/events{/privacy}", "followers_url": "https://api.github.com/users/jmarrec/followers", "following_url": "https://api.github.com/users/jmarrec/following{/other_user}", "gists_url": "https://api.github.com/users/jmarrec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jmarrec", "id": 5479063, "login": "jmarrec", "node_id": "MDQ6VXNlcjU0NzkwNjM=", "organizations_url": "https://api.github.com/users/jmarrec/orgs", "received_events_url": "https://api.github.com/users/jmarrec/received_events", "repos_url": "https://api.github.com/users/jmarrec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jmarrec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jmarrec/subscriptions", "type": "User", "url": "https://api.github.com/users/jmarrec" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2020-01-30T12:18:05Z", "closed_issues": 2207, "created_at": "2012-09-13T02:13:00Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4", "events_url": "https://api.github.com/users/wesm/events{/privacy}", "followers_url": "https://api.github.com/users/wesm/followers", "following_url": "https://api.github.com/users/wesm/following{/other_user}", "gists_url": "https://api.github.com/users/wesm/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wesm", "id": 329591, "login": "wesm", "node_id": "MDQ6VXNlcjMyOTU5MQ==", "organizations_url": "https://api.github.com/users/wesm/orgs", "received_events_url": "https://api.github.com/users/wesm/received_events", "repos_url": "https://api.github.com/users/wesm/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wesm/subscriptions", "type": "User", "url": "https://api.github.com/users/wesm" }, "description": "on-merge: backport to 1.0.x", "due_on": "2020-02-01T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/16", "id": 174211, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels", "node_id": "MDk6TWlsZXN0b25lMTc0MjEx", "number": 16, "open_issues": 0, "state": "closed", "title": "1.0.0", "updated_at": "2020-01-30T12:18:05Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16" }
4
2016-12-08T23:30:48Z
2019-07-23T21:16:16Z
2019-07-23T21:16:16Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible This works, when all columns are integer labels: ```python df = pd.DataFrame(np.random.rand(3,3), columns=[2011,2012,2013], index=list('ABC')) df.ix[pd.IndexSlice[['A','B','C'],[2011,2012]]] Out: 2011 2012 A 0.289341 0.651091 B 0.528271 0.682148 C 0.742617 0.578734 ``` This doesn't, when columns are a mix of integers and strings: ```python df = pd.DataFrame(np.random.rand(3,3), columns=[2011,2012,'All'], index=list('ABC')) # This crashes df.ix[pd.IndexSlice[['A','B','C'],[2011,2012]]] > IndexError: index 2011 is out of bounds for axis 0 with size 3 # this works though: df.ix[pd.IndexSlice[['A','B','C'],[2011,'All']]] ``` #### Problem description It seems that in the second case it's trying to find it by position rather than label. #### Expected Output I would expect pandas to understand that I'm trying to lookup by label rather than position. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 28.7.1 Cython: 0.25.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: 0.8.2 IPython: 5.1.0 sphinx: None patsy: 0.4.1 dateutil: 2.6.0 pytz: 2016.7 blosc: None bottleneck: 1.2.0 tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.3 lxml: None bs4: 4.5.1 html5lib: 0.999999999 httplib2: None apiclient: None sqlalchemy: 1.1.4 pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: 0.2.1 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14836/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14836/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14837
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14837/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14837/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14837/events
https://github.com/pandas-dev/pandas/pull/14837
194,581,062
MDExOlB1bGxSZXF1ZXN0OTcyOTgxNTc=
14,837
DOC: astype now takes dict mapping col names to datatypes (#14761)
{ "avatar_url": "https://avatars.githubusercontent.com/u/7031487?v=4", "events_url": "https://api.github.com/users/m-charlton/events{/privacy}", "followers_url": "https://api.github.com/users/m-charlton/followers", "following_url": "https://api.github.com/users/m-charlton/following{/other_user}", "gists_url": "https://api.github.com/users/m-charlton/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/m-charlton", "id": 7031487, "login": "m-charlton", "node_id": "MDQ6VXNlcjcwMzE0ODc=", "organizations_url": "https://api.github.com/users/m-charlton/orgs", "received_events_url": "https://api.github.com/users/m-charlton/received_events", "repos_url": "https://api.github.com/users/m-charlton/repos", "site_admin": false, "starred_url": "https://api.github.com/users/m-charlton/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/m-charlton/subscriptions", "type": "User", "url": "https://api.github.com/users/m-charlton" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
7
2016-12-09T12:06:00Z
2016-12-22T13:37:19Z
2016-12-22T13:37:19Z
CONTRIBUTOR
null
- [x] closes https://github.com/pandas-dev/pandas/issues/14761 - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry Updating documentation to reflect change
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14837/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14837/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14837.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14837", "merged_at": "2016-12-22T13:37:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14837.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14837" }
https://api.github.com/repos/pandas-dev/pandas/issues/14838
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14838/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14838/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14838/events
https://github.com/pandas-dev/pandas/issues/14838
194,611,909
MDU6SXNzdWUxOTQ2MTE5MDk=
14,838
Plot does not work in the 10 Minutes tutorial
{ "avatar_url": "https://avatars.githubusercontent.com/u/5608511?v=4", "events_url": "https://api.github.com/users/hiiwave/events{/privacy}", "followers_url": "https://api.github.com/users/hiiwave/followers", "following_url": "https://api.github.com/users/hiiwave/following{/other_user}", "gists_url": "https://api.github.com/users/hiiwave/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hiiwave", "id": 5608511, "login": "hiiwave", "node_id": "MDQ6VXNlcjU2MDg1MTE=", "organizations_url": "https://api.github.com/users/hiiwave/orgs", "received_events_url": "https://api.github.com/users/hiiwave/received_events", "repos_url": "https://api.github.com/users/hiiwave/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hiiwave/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hiiwave/subscriptions", "type": "User", "url": "https://api.github.com/users/hiiwave" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
12
2016-12-09T14:40:34Z
2017-03-01T16:41:40Z
2016-12-19T17:53:36Z
NONE
null
The following codes from [10 Minutes to pandas](http://pandas.pydata.org/pandas-docs/stable/10min.html) could not be run properly. ```python In [135]: ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000)) In [136]: ts = ts.cumsum() In [137]: ts.plot() ``` #### Problem description It gives error as follows. Is that caused by some dependency problem or other issues? Thanks. ```python --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-154-72917dc50e90> in <module>() 3 ts = ts.cumsum() 4 ----> 5 ts.plot() /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in __call__(self, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds) 3597 colormap=colormap, table=table, yerr=yerr, 3598 xerr=xerr, label=label, secondary_y=secondary_y, -> 3599 **kwds) 3600 __call__.__doc__ = plot_series.__doc__ 3601 /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in plot_series(data, kind, ax, figsize, use_index, title, grid, legend, style, logx, logy, loglog, xticks, yticks, xlim, ylim, rot, fontsize, colormap, table, yerr, xerr, label, secondary_y, **kwds) 2671 yerr=yerr, xerr=xerr, 2672 label=label, secondary_y=secondary_y, -> 2673 **kwds) 2674 2675 /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in _plot(data, x, y, subplots, ax, kind, **kwds) 2467 plot_obj = klass(data, subplots=subplots, ax=ax, kind=kind, **kwds) 2468 -> 2469 plot_obj.generate() 2470 plot_obj.draw() 2471 return plot_obj.result /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in generate(self) 1041 self._compute_plot_data() 1042 self._setup_subplots() -> 1043 self._make_plot() 1044 self._add_table() 1045 self._make_legend() /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in _make_plot(self) 1724 stacking_id=stacking_id, 1725 is_errorbar=is_errorbar, -> 1726 **kwds) 1727 self._add_legend_handle(newlines[0], label, index=i) 1728 /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in _ts_plot(cls, ax, x, data, style, **kwds) 1762 ax._plot_data.append((data, cls._kind, kwds)) 1763 -> 1764 lines = cls._plot(ax, data.index, data.values, style=style, **kwds) 1765 # set date formatter, locators and rescale limits 1766 format_dateaxis(ax, ax.freq) /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in _plot(cls, ax, x, y, style, column_num, stacking_id, **kwds) 1739 cls._initialize_stacker(ax, stacking_id, len(y)) 1740 y_values = cls._get_stacked_values(ax, stacking_id, y, kwds['label']) -> 1741 lines = MPLPlot._plot(ax, x, y_values, style=style, **kwds) 1742 cls._update_stacker(ax, stacking_id, y) 1743 return lines /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/pandas/tools/plotting.py in _plot(cls, ax, x, y, style, is_errorbar, **kwds) 1359 else: 1360 args = (x, y) -> 1361 return ax.plot(*args, **kwds) 1362 1363 def _get_index_name(self): /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs) 1817 warnings.warn(msg % (label_namer, func.__name__), 1818 RuntimeWarning, stacklevel=2) -> 1819 return func(ax, *args, **kwargs) 1820 pre_doc = inner.__doc__ 1821 if pre_doc is None: /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/matplotlib/axes/_axes.py in plot(self, *args, **kwargs) 1381 1382 for line in self._get_lines(*args, **kwargs): -> 1383 self.add_line(line) 1384 lines.append(line) 1385 /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/matplotlib/axes/_base.py in add_line(self, line) 1701 line.set_clip_path(self.patch) 1702 -> 1703 self._update_line_limits(line) 1704 if not line.get_label(): 1705 line.set_label('_line%d' % len(self.lines)) /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/matplotlib/axes/_base.py in _update_line_limits(self, line) 1723 Figures out the data limit of the given line, updating self.dataLim. 1724 """ -> 1725 path = line.get_path() 1726 if path.vertices.size == 0: 1727 return /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/matplotlib/lines.py in get_path(self) 936 """ 937 if self._invalidy or self._invalidx: --> 938 self.recache() 939 return self._path 940 /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/matplotlib/lines.py in recache(self, always) 623 x = ma.asarray(xconv, np.float_).filled(np.nan) 624 else: --> 625 x = np.asarray(xconv, np.float_) 626 x = x.ravel() 627 else: /home/myubuntu/anaconda2/envs/tensorflow3/lib/python3.5/site-packages/numpy/core/numeric.py in asarray(a, dtype, order) 480 481 """ --> 482 return array(a, dtype, copy=False, order=order) 483 484 def asanyarray(a, dtype=None, order=None): TypeError: float() argument must be a string or a number, not 'Period' ``` #### Output of ``pd.show_versions()`` <details> # Paste the output here pd.show_versions() here INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-38-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 27.2.0 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14838/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14838/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14839
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14839/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14839/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14839/events
https://github.com/pandas-dev/pandas/pull/14839
194,612,647
MDExOlB1bGxSZXF1ZXN0OTczMjA1Mjc=
14,839
Fix To Numeric on Decimal Fields
{ "avatar_url": "https://avatars.githubusercontent.com/u/3211163?v=4", "events_url": "https://api.github.com/users/RogerThomas/events{/privacy}", "followers_url": "https://api.github.com/users/RogerThomas/followers", "following_url": "https://api.github.com/users/RogerThomas/following{/other_user}", "gists_url": "https://api.github.com/users/RogerThomas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RogerThomas", "id": 3211163, "login": "RogerThomas", "node_id": "MDQ6VXNlcjMyMTExNjM=", "organizations_url": "https://api.github.com/users/RogerThomas/orgs", "received_events_url": "https://api.github.com/users/RogerThomas/received_events", "repos_url": "https://api.github.com/users/RogerThomas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RogerThomas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RogerThomas/subscriptions", "type": "User", "url": "https://api.github.com/users/RogerThomas" }
[]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-12-09T14:43:49Z
2016-12-09T15:38:57Z
2016-12-09T14:53:47Z
NONE
null
- [x] closes #14827 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14839/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14839/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14839.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14839", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14839.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14839" }
https://api.github.com/repos/pandas-dev/pandas/issues/14840
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14840/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14840/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14840/events
https://github.com/pandas-dev/pandas/issues/14840
194,615,148
MDU6SXNzdWUxOTQ2MTUxNDg=
14,840
Data corruption in numerical DataFrame using joblib and shared memory
{ "avatar_url": "https://avatars.githubusercontent.com/u/23166127?v=4", "events_url": "https://api.github.com/users/jbalfer/events{/privacy}", "followers_url": "https://api.github.com/users/jbalfer/followers", "following_url": "https://api.github.com/users/jbalfer/following{/other_user}", "gists_url": "https://api.github.com/users/jbalfer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbalfer", "id": 23166127, "login": "jbalfer", "node_id": "MDQ6VXNlcjIzMTY2MTI3", "organizations_url": "https://api.github.com/users/jbalfer/orgs", "received_events_url": "https://api.github.com/users/jbalfer/received_events", "repos_url": "https://api.github.com/users/jbalfer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbalfer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbalfer/subscriptions", "type": "User", "url": "https://api.github.com/users/jbalfer" }
[ { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" } ]
closed
false
null
[]
null
1
2016-12-09T14:54:15Z
2016-12-09T15:33:44Z
2016-12-09T15:33:35Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import joblib import multiprocessing import numpy as np import os import pandas as pd import tempfile df = pd.DataFrame(np.random.random((1000,3))) # df.head() is # 0 1 2 # 0 0.204271 0.250022 0.333579 # 1 0.894605 0.262193 0.412623 # 2 0.260175 0.056537 0.084432 # 3 0.774219 0.824558 0.521398 # 4 0.414248 0.913390 0.735691 temp_folder = tempfile.mkdtemp() filename = os.path.join(temp_folder, 'joblib_test.mmap') if os.path.exists(filename): os.unlink(filename) _ = joblib.dump(df, filename) memmap = joblib.load(filename, mmap_mode='r') def myFunc(df) : return df results = joblib.Parallel(n_jobs=2)(joblib.delayed(myFunc)(memmap) for _ in range(10)) # results[0].head() is # 0 1 2 # 0 1.105907e+169 5.745991e+169 5.298748e+180 # 1 3.036710e+213 9.708092e+189 5.587160e+238 # 2 2.379254e+233 7.281947e+223 1.278075e+161 # 3 7.658495e+151 1.452701e-253 6.235120e-85 # 4 6.240245e-85 6.340871e+160 9.041151e+271 np.allclose(results[0], df) # False! ``` #### Problem description When a Pandas DataFrame is used as a shared memory object for parallel computing using ```joblib``` and ```multiprocessing```, the data gets corrupted. In the above example, the column name and index stays correct, while the internal data (```df.values```) shows random values. However, if not a DataFrame but a NumPy array (simply ```df.values```) is stored in the memory map, everything works as expected. We found that the error only occurs if all of the following criteria are met: - a Pandas DataFrame is used - the DataFrame contains numerical data (strings and other objects work as expected) - the DataFrame has a certain size, e.g., the above example works as expected with small data - the DataFrame is stored and loaded using ```joblib.dump``` and ```joblib.load``` - more than one processor is used #### Expected Output We would expect that the all of the elements in results are the same as the original DataFrame and that ```np.allclose(results[0], df)``` is True. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.8.12-moby machine: x86_64 processor: byteorder: little LC_ALL: C.UTF-8 LANG: C.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: 1.3.7 pip: 8.1.2 setuptools: 27.2.0 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.6 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.3 lxml: 3.6.4 bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.42.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14840/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14840/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14841
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14841/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14841/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14841/events
https://github.com/pandas-dev/pandas/issues/14841
194,619,086
MDU6SXNzdWUxOTQ2MTkwODY=
14,841
Groupby iteration fails when one of the key's values is None
{ "avatar_url": "https://avatars.githubusercontent.com/u/2919482?v=4", "events_url": "https://api.github.com/users/nsfinkelstein/events{/privacy}", "followers_url": "https://api.github.com/users/nsfinkelstein/followers", "following_url": "https://api.github.com/users/nsfinkelstein/following{/other_user}", "gists_url": "https://api.github.com/users/nsfinkelstein/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nsfinkelstein", "id": 2919482, "login": "nsfinkelstein", "node_id": "MDQ6VXNlcjI5MTk0ODI=", "organizations_url": "https://api.github.com/users/nsfinkelstein/orgs", "received_events_url": "https://api.github.com/users/nsfinkelstein/received_events", "repos_url": "https://api.github.com/users/nsfinkelstein/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nsfinkelstein/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nsfinkelstein/subscriptions", "type": "User", "url": "https://api.github.com/users/nsfinkelstein" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-12-09T15:10:43Z
2016-12-09T15:30:15Z
2016-12-09T15:23:34Z
NONE
null
#### Code Sample ```python import pandas as pd df = pd.DataFrame({ 'a': [1, 1, 2, 3], 'b': [None, 1, 2, 3], 'c': [1,2,3,4], }) grouped = df.groupby(('a', 'b')) print('Number of groups:', len(grouped)) # Number of groups: 4 num_iterations = 0 for _ in grouped: num_iterations += 1 print('Number of groups iterated over:', num_iterations) # Number of groups iterated over: 3 ``` #### Problem description Presently, when a `GroupBy` object is iterated over, any group where one of the columns grouped by is `None` is skipped. This is a problem because when iterating over groups, we expect to iterate over all groups. It is also a problem because it is not sensible to say the length of an iterable is `x` when iterating over it only performs some `y < x` number of iterations. #### Expected Output I'd expect iterating over a `GroupBy` object to iterate over all groups, regardless of the value in the key columns. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-504.12.2.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 9.0.1 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: 1.1.0 tables: 3.3.0 numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext) jinja2: 2.8 boto: 2.40.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14841/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14841/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14842
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14842/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14842/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14842/events
https://github.com/pandas-dev/pandas/pull/14842
194,625,128
MDExOlB1bGxSZXF1ZXN0OTczMjkxODQ=
14,842
Fix to numeric on decimal fields
{ "avatar_url": "https://avatars.githubusercontent.com/u/3211163?v=4", "events_url": "https://api.github.com/users/RogerThomas/events{/privacy}", "followers_url": "https://api.github.com/users/RogerThomas/followers", "following_url": "https://api.github.com/users/RogerThomas/following{/other_user}", "gists_url": "https://api.github.com/users/RogerThomas/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RogerThomas", "id": 3211163, "login": "RogerThomas", "node_id": "MDQ6VXNlcjMyMTExNjM=", "organizations_url": "https://api.github.com/users/RogerThomas/orgs", "received_events_url": "https://api.github.com/users/RogerThomas/received_events", "repos_url": "https://api.github.com/users/RogerThomas/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RogerThomas/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RogerThomas/subscriptions", "type": "User", "url": "https://api.github.com/users/RogerThomas" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "006b75", "default": false, "description": "Arithmetic, Comparison, and Logical operations", "id": 47223669, "name": "Numeric Operations", "node_id": "MDU6TGFiZWw0NzIyMzY2OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
10
2016-12-09T15:35:21Z
2016-12-20T13:32:02Z
2016-12-20T13:29:23Z
NONE
null
- [X] closes #14827 - [X] tests added / passed - [X] passes ``git diff upstream/master | flake8 --diff`` - [X] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14842/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14842/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14842.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14842", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14842.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14842" }
https://api.github.com/repos/pandas-dev/pandas/issues/14843
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14843/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14843/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14843/events
https://github.com/pandas-dev/pandas/issues/14843
194,674,453
MDU6SXNzdWUxOTQ2NzQ0NTM=
14,843
DOC: DataFrame.resample docs could be improved
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2016-12-09T19:15:43Z
2017-03-09T16:49:20Z
2017-03-09T16:49:20Z
CONTRIBUTOR
null
http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.resample.html?highlight=dataframe%20resample#pandas.DataFrame.resample These are the *same* docs for both Series & DataFrame. so might be nice to add some DataFrame examples (and use on / axis parameters). So may need to move these to a ``shared_docs`` template to suppport this.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14843/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14843/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14844
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14844/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14844/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14844/events
https://github.com/pandas-dev/pandas/issues/14844
194,682,166
MDU6SXNzdWUxOTQ2ODIxNjY=
14,844
merge_asof() must be able to operate with timezone-aware DatetimeIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4", "events_url": "https://api.github.com/users/chrisaycock/events{/privacy}", "followers_url": "https://api.github.com/users/chrisaycock/followers", "following_url": "https://api.github.com/users/chrisaycock/following{/other_user}", "gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chrisaycock", "id": 453745, "login": "chrisaycock", "node_id": "MDQ6VXNlcjQ1Mzc0NQ==", "organizations_url": "https://api.github.com/users/chrisaycock/orgs", "received_events_url": "https://api.github.com/users/chrisaycock/received_events", "repos_url": "https://api.github.com/users/chrisaycock/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions", "type": "User", "url": "https://api.github.com/users/chrisaycock" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
0
2016-12-09T19:52:08Z
2016-12-10T15:41:42Z
2016-12-10T15:41:42Z
CONTRIBUTOR
null
I can perform the following merge just fine: ```python left = pd.DataFrame({'date': pd.DatetimeIndex(start=pd.to_datetime('2016-01-02'), freq='D', periods=5), 'value1':np.arange(5)}) right = pd.DataFrame({'date': pd.DatetimeIndex(start=pd.to_datetime('2016-01-01'), freq='D', periods=5), 'value2':list("ABCDE")}) pd.merge_asof(left, right, on='date', tolerance=pd.Timedelta('1 day')) ``` However, adding a timezone to the DatetimeIndex doesn't work: ```python import pytz left = pd.DataFrame({'date': pd.DatetimeIndex(start=pd.to_datetime('2016-01-02'), freq='D', periods=5, tz=pytz.timezone('UTC')), 'value1':np.arange(5)}) right = pd.DataFrame({'date': pd.DatetimeIndex(start=pd.to_datetime('2016-01-01'), freq='D', periods=5, tz=pytz.timezone('UTC')), 'value2':list("ABCDE")}) pd.merge_asof(left, right, on='date', tolerance=pd.Timedelta('1 day')) ``` I get the oddly worded ```python MergeError: incompatible tolerance, must be compat with type <class 'pandas.tseries.index.DatetimeIndex'> ``` The solution is actually very simple. `_AsOfMerge._get_merge_keys()` needs to check for `is_datetime64tz_dtype()` in addition to `is_datetime64_dtype()` when there is a tolerance. I should also fix the error message to be clearer.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14844/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14844/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14845
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14845/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14845/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14845/events
https://github.com/pandas-dev/pandas/pull/14845
194,686,906
MDExOlB1bGxSZXF1ZXN0OTczNzMwMTk=
14,845
BUG: Allow TZ-aware DatetimeIndex in merge_asof() (#14844)
{ "avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4", "events_url": "https://api.github.com/users/chrisaycock/events{/privacy}", "followers_url": "https://api.github.com/users/chrisaycock/followers", "following_url": "https://api.github.com/users/chrisaycock/following{/other_user}", "gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chrisaycock", "id": 453745, "login": "chrisaycock", "node_id": "MDQ6VXNlcjQ1Mzc0NQ==", "organizations_url": "https://api.github.com/users/chrisaycock/orgs", "received_events_url": "https://api.github.com/users/chrisaycock/received_events", "repos_url": "https://api.github.com/users/chrisaycock/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions", "type": "User", "url": "https://api.github.com/users/chrisaycock" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
4
2016-12-09T20:15:26Z
2016-12-10T15:41:42Z
2016-12-10T15:41:42Z
CONTRIBUTOR
null
- [x] closes #14844 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14845/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14845/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14845.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14845", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14845.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14845" }
https://api.github.com/repos/pandas-dev/pandas/issues/14846
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14846/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14846/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14846/events
https://github.com/pandas-dev/pandas/issues/14846
194,695,863
MDU6SXNzdWUxOTQ2OTU4NjM=
14,846
BUG: DataFrame.nlargest() returns incorrect result when DataFrame has non-unique index
{ "avatar_url": "https://avatars.githubusercontent.com/u/15113894?v=4", "events_url": "https://api.github.com/users/Dr-Irv/events{/privacy}", "followers_url": "https://api.github.com/users/Dr-Irv/followers", "following_url": "https://api.github.com/users/Dr-Irv/following{/other_user}", "gists_url": "https://api.github.com/users/Dr-Irv/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Dr-Irv", "id": 15113894, "login": "Dr-Irv", "node_id": "MDQ6VXNlcjE1MTEzODk0", "organizations_url": "https://api.github.com/users/Dr-Irv/orgs", "received_events_url": "https://api.github.com/users/Dr-Irv/received_events", "repos_url": "https://api.github.com/users/Dr-Irv/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Dr-Irv/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Dr-Irv/subscriptions", "type": "User", "url": "https://api.github.com/users/Dr-Irv" }
[]
closed
false
null
[]
null
3
2016-12-09T21:01:30Z
2017-02-21T14:44:18Z
2016-12-09T21:25:38Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd df=pd.DataFrame({'variable': ['a','a','b','b','c','c'], 'value' : [1000,2000,10,20,100,200]}, index=[1,2]*3) df.nlargest(3,'value') ``` #### Problem description The result should only have 3 rows. If the index has unique values, it is correct. But when the index has duplicate values, the incorrect result is produced. The example produces the following output: ``` value variable 2 2000 a 2 2000 a 1 1000 a 2 200 c 2 200 c 1 100 c 2 20 b 2 20 b 1 10 b ``` #### Expected Output ``` value variable 2 2000 a 1 1000 a 2 200 c ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.19.0 nose: None pip: 8.1.2 setuptools: 27.2.0 Cython: None numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: 0.999 httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14846/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14846/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14847
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14847/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14847/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14847/events
https://github.com/pandas-dev/pandas/issues/14847
194,718,728
MDU6SXNzdWUxOTQ3MTg3Mjg=
14,847
what is a KeyError in Python 3.5/Pandas?
{ "avatar_url": "https://avatars.githubusercontent.com/u/8148060?v=4", "events_url": "https://api.github.com/users/chienthan9x/events{/privacy}", "followers_url": "https://api.github.com/users/chienthan9x/followers", "following_url": "https://api.github.com/users/chienthan9x/following{/other_user}", "gists_url": "https://api.github.com/users/chienthan9x/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chienthan9x", "id": 8148060, "login": "chienthan9x", "node_id": "MDQ6VXNlcjgxNDgwNjA=", "organizations_url": "https://api.github.com/users/chienthan9x/orgs", "received_events_url": "https://api.github.com/users/chienthan9x/received_events", "repos_url": "https://api.github.com/users/chienthan9x/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chienthan9x/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chienthan9x/subscriptions", "type": "User", "url": "https://api.github.com/users/chienthan9x" }
[]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-12-09T23:05:34Z
2016-12-10T09:59:01Z
2016-12-09T23:15:58Z
NONE
null
I work with files were exported from stream twitter . but when run code then error : KeyError: 'text' on tweets['python'] = tweets['text'].apply(lambda tweet: word_in_text('python', tweet)). how to fix it ? thank everyone..!. `import re import json import string import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib tweets_data_path = '...\\..\\log1000.txt' tweets_data = [] tweets_file = open(tweets_data_path, "r") for line in tweets_file: try: tweet = json.loads(line) tweets_data.append(tweet) except: continue def word_in_text(word, text): word = word.lower() text = text.lower() match = re.search(word, text) if match: return True return False #------------------------DataFrame-------------------------- tweets = pd.DataFrame() #------------------------------------------------------------------------ tweets['python'] = tweets['text'].apply(lambda tweet: word_in_text('python', tweet)) #---------------------------------------------------------------- print (tweets['python'].value_counts()[True])`
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14847/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14847/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14848
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14848/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14848/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14848/events
https://github.com/pandas-dev/pandas/issues/14848
194,729,732
MDU6SXNzdWUxOTQ3Mjk3MzI=
14,848
BUG: DataFrame.groupby() on tuple column works only when column name is "key"
{ "avatar_url": "https://avatars.githubusercontent.com/u/8196363?v=4", "events_url": "https://api.github.com/users/dragonator4/events{/privacy}", "followers_url": "https://api.github.com/users/dragonator4/followers", "following_url": "https://api.github.com/users/dragonator4/following{/other_user}", "gists_url": "https://api.github.com/users/dragonator4/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dragonator4", "id": 8196363, "login": "dragonator4", "node_id": "MDQ6VXNlcjgxOTYzNjM=", "organizations_url": "https://api.github.com/users/dragonator4/orgs", "received_events_url": "https://api.github.com/users/dragonator4/received_events", "repos_url": "https://api.github.com/users/dragonator4/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dragonator4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dragonator4/subscriptions", "type": "User", "url": "https://api.github.com/users/dragonator4" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
3
2016-12-10T00:31:23Z
2017-01-13T17:38:20Z
2017-01-13T17:38:20Z
NONE
null
This is the weirdest bug I have seen in Pandas. But I am guessing (hoping) the fix will not be too difficult. #### Code Sample Consider the following two code blocks: **Block 1: key column is called "k"** ``` >>> df1 = pd.DataFrame({'x' : [1,2,3,4,5]*3, 'y' : [10,20,30,40,50]*3, 'z' : [100,200,300,400,500]*3}) >>> df1['k'] = [(0,0,1),(0,1,0),(1,0,0)]*5 ``` **Block 2: key column is called "key"** ``` >>> df2 = pd.DataFrame({'x' : [1,2,3,4,5]*3, 'y' : [10,20,30,40,50]*3, 'z' : [100,200,300,400,500]*3}) >>> df2['key'] = [(0,0,1),(0,1,0),(1,0,0)]*5 ``` Note that the same, static data is used, so that nothing else may be different, and hence culpable. #### Problem description Running a simple `.groupby().describe()` operation produces the following results: ``` >>> df1.groupby('k').describe() # No Result >>> df2.groupby('key').describe() x y z key (0, 0, 1) count 5.000000 5.000000 5.000000 mean 3.000000 30.000000 300.000000 std 1.581139 15.811388 158.113883 min 1.000000 10.000000 100.000000 25% 2.000000 20.000000 200.000000 50% 3.000000 30.000000 300.000000 75% 4.000000 40.000000 400.000000 max 5.000000 50.000000 500.000000 (0, 1, 0) count 5.000000 5.000000 5.000000 mean 3.000000 30.000000 300.000000 std 1.581139 15.811388 158.113883 min 1.000000 10.000000 100.000000 25% 2.000000 20.000000 200.000000 50% 3.000000 30.000000 300.000000 75% 4.000000 40.000000 400.000000 max 5.000000 50.000000 500.000000 (1, 0, 0) count 5.000000 5.000000 5.000000 mean 3.000000 30.000000 300.000000 std 1.581139 15.811388 158.113883 min 1.000000 10.000000 100.000000 25% 2.000000 20.000000 200.000000 50% 3.000000 30.000000 300.000000 75% 4.000000 40.000000 400.000000 max 5.000000 50.000000 500.000000 ``` Note that `groupby().mean()`, `sum()`, and a few others work fine. `describe()` is the only one I think is causing the problem. #### Expected Output Obviously, the expected output for `df1.groupby('k').describe()` should be the same as `df2.groupby('key').describe()`. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-53-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 27.2.0 Cython: 0.25.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: 0.8.2 IPython: 5.1.0 sphinx: None patsy: 0.4.1 dateutil: 2.6.0 pytz: 2016.7 blosc: None bottleneck: 1.1.0 tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: 0.9.4 lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14848/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14848/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14849
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14849/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14849/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14849/events
https://github.com/pandas-dev/pandas/issues/14849
194,730,027
MDU6SXNzdWUxOTQ3MzAwMjc=
14,849
groupby type coercion dependent on presence of datetime column in grouped data
{ "avatar_url": "https://avatars.githubusercontent.com/u/12002965?v=4", "events_url": "https://api.github.com/users/wes-turner/events{/privacy}", "followers_url": "https://api.github.com/users/wes-turner/followers", "following_url": "https://api.github.com/users/wes-turner/following{/other_user}", "gists_url": "https://api.github.com/users/wes-turner/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wes-turner", "id": 12002965, "login": "wes-turner", "node_id": "MDQ6VXNlcjEyMDAyOTY1", "organizations_url": "https://api.github.com/users/wes-turner/orgs", "received_events_url": "https://api.github.com/users/wes-turner/received_events", "repos_url": "https://api.github.com/users/wes-turner/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wes-turner/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wes-turner/subscriptions", "type": "User", "url": "https://api.github.com/users/wes-turner" }
[ { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
null
[]
{ "closed_at": "2020-07-28T18:13:47Z", "closed_issues": 2378, "created_at": "2019-12-02T12:52:48Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2020-08-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/68", "id": 4894670, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels", "node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==", "number": 68, "open_issues": 0, "state": "closed", "title": "1.1", "updated_at": "2021-07-17T17:25:28Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68" }
3
2016-12-10T00:34:17Z
2020-01-21T01:06:10Z
2020-01-21T01:06:10Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd foo = pd.DataFrame.from_records( [ (pd.datetime(2016,1,1), 'red', 'dark', 1, '8'), (pd.datetime(2015,1,1), 'green', 'stormy', 2, '9'), (pd.datetime(2014,1,1), 'blue', 'bright', 3, '10'), (pd.datetime(2013,1,1), 'blue', 'calm', 4, 'potato') ], columns=['observation', 'color', 'mood', 'intensity', 'score']) # The type of 'score' changes depending on the types passed through the groupby print(pd.concat( [ foo.dtypes, foo.loc[:,['observation', 'color', 'mood', 'intensity', 'score']].groupby('color').apply(lambda g: g.iloc[0]).dtypes, foo.loc[:,[ 'color', 'mood', 'intensity', 'score']].groupby('color').apply(lambda g: g.iloc[0]).dtypes ], axis=1, keys=['original DF', 'w/ datetime', 'w/o datetime'])) ``` #### Problem description When the results of a groupby contain a Series with a datetime and are aggregated back into a DataFrame, columns of object type are cast numeric when possible. When that Series contains no datetime, they are not. The presence of a datetime elsewhere in the Series should not have effects on unrelated columns. Doing no implicit type coercion seems (to me) like the safest option (especially in a language where "1" != 1). But regardless, whether or not type coercion is done for a column 'A' should not depend on the types of all the column 'B's. Issue #14423 is a different problem over the same code. #### Expected Output Current: ``` original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object int64 object ``` Expected: ``` original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object object object ``` **-or-** ``` original DF w/ datetime w/o datetime color object object object intensity int64 int64 int64 mood object object object observation datetime64[ns] datetime64[ns] NaN score object int64 int64 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-101-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: 1.3.1 pip: 1.5.4 setuptools: 3.3 Cython: 0.24.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: 2.4.0 xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: 3.3.3 bs4: 4.2.1 html5lib: 0.999 httplib2: 0.8 apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14849/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14849/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14850
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14850/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14850/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14850/events
https://github.com/pandas-dev/pandas/pull/14850
194,754,983
MDExOlB1bGxSZXF1ZXN0OTc0MTg2OTI=
14,850
BUG: Spurious IncompatibleFrequency error prevented plotting of non-standard intervals (Fixes #14763)
{ "avatar_url": "https://avatars.githubusercontent.com/u/10188148?v=4", "events_url": "https://api.github.com/users/jeffcarey/events{/privacy}", "followers_url": "https://api.github.com/users/jeffcarey/followers", "following_url": "https://api.github.com/users/jeffcarey/following{/other_user}", "gists_url": "https://api.github.com/users/jeffcarey/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeffcarey", "id": 10188148, "login": "jeffcarey", "node_id": "MDQ6VXNlcjEwMTg4MTQ4", "organizations_url": "https://api.github.com/users/jeffcarey/orgs", "received_events_url": "https://api.github.com/users/jeffcarey/received_events", "repos_url": "https://api.github.com/users/jeffcarey/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeffcarey/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeffcarey/subscriptions", "type": "User", "url": "https://api.github.com/users/jeffcarey" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
null
3
2016-12-10T09:04:31Z
2016-12-18T20:21:01Z
2016-12-18T20:21:01Z
CONTRIBUTOR
null
- [x] closes #14763 - [x] tests added: tests/plotting/test_series.py: test_non_standard_intervals - [x] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry - Confirm version and I'll add Fix Summary: A check on frequency compatibility was unnecessarily strict. Now IncompatibleFrequency exceptions will only get raised if the unit types differ.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14850/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14850/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14850.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14850", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14850.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14850" }
https://api.github.com/repos/pandas-dev/pandas/issues/14851
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14851/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14851/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14851/events
https://github.com/pandas-dev/pandas/pull/14851
194,772,140
MDExOlB1bGxSZXF1ZXN0OTc0MjczMzA=
14,851
TST: skip testing on windows for specific formatting which sometimes hang
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "fbca04", "default": false, "description": "Windows OS", "id": 57186974, "name": "Windows", "node_id": "MDU6TGFiZWw1NzE4Njk3NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Windows" }, { "color": "5319e7", "default": false, "description": "Unit tests that occasionally fail", "id": 76939933, "name": "Unreliable Test", "node_id": "MDU6TGFiZWw3NjkzOTkzMw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unreliable%20Test" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
3
2016-12-10T14:52:35Z
2016-12-10T15:31:53Z
2016-12-10T15:31:53Z
CONTRIBUTOR
null
xref #14626
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14851/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14851/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14851.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14851", "merged_at": "2016-12-10T15:31:53Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14851.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14851" }
https://api.github.com/repos/pandas-dev/pandas/issues/14852
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14852/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14852/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14852/events
https://github.com/pandas-dev/pandas/issues/14852
194,782,800
MDU6SXNzdWUxOTQ3ODI4MDA=
14,852
SystemError: ../Objects/listobject.c:290: bad argument to internal function [i386,armel,...]
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" }, { "color": "5319e7", "default": false, "description": "Unit tests that occasionally fail", "id": 76939933, "name": "Unreliable Test", "node_id": "MDU6TGFiZWw3NjkzOTkzMw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unreliable%20Test" }, { "color": "0e8a16", "default": false, "description": "32-bit systems", "id": 563047854, "name": "32bit", "node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit" }, { "color": "f9c1b1", "default": false, "description": "Linux OS", "id": 1233745380, "name": "Linux", "node_id": "MDU6TGFiZWwxMjMzNzQ1Mzgw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Linux" } ]
closed
false
null
[]
null
6
2016-12-10T18:07:57Z
2021-05-02T00:57:14Z
2021-05-02T00:57:14Z
CONTRIBUTOR
null
Any idea on what could cause such an exception on 32bit platform (Debian sid i386), 0.19.1 ``` ====================================================================== ERROR: test_frame_from_json_to_json (pandas.io.tests.json.test_pandas.TestPandasContainer) ---------------------------------------------------------------------- Traceback (most recent call last): File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/json/test_pandas.py", line 272, in test_frame_from_json_to_json _check_all_orients(self.frame) File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/json/test_pandas.py", line 246, in _check_all_orients check_index_type=False, check_column_type=False) File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/json/test_pandas.py", line 165, in _check_orient numpy=numpy, convert_axes=convert_axes) File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/json.py", line 281, in read_json date_unit).parse() File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/json.py", line 346, in parse self._parse_numpy() File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/json.py", line 541, in _parse_numpy precise_float=self.precise_float) SystemError: ../Objects/listobject.c:290: bad argument to internal function ====================================================================== ERROR: test_misc_example (pandas.io.tests.json.test_pandas.TestPandasContainer) ---------------------------------------------------------------------- Traceback (most recent call last): File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/json/test_pandas.py", line 743, in test_misc_example result = read_json('[{"a": 1, "b": 2}, {"b":2, "a" :1}]', numpy=True) File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/json.py", line 281, in read_json date_unit).parse() File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/json.py", line 346, in parse self._parse_numpy() File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/json.py", line 541, in _parse_numpy precise_float=self.precise_float) SystemError: ../Objects/listobject.c:290: bad argument to internal function ====================================================================== ERROR: testArrayNumpyLabelled (pandas.io.tests.json.test_ujson.NumpyJSONTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/json/test_ujson.py", line 1178, in testArrayNumpyLabelled output = ujson.loads(input_dumps, numpy=True, labelled=True) SystemError: ../Objects/listobject.c:290: bad argument to internal function ====================================================================== ERROR: testDataFrameNumpyLabelled (pandas.io.tests.json.test_ujson.PandasJSONTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/«PKGBUILDDIR»/debian/tmp/usr/lib/python2.7/dist-packages/pandas/io/tests/json/test_ujson.py", line 1286, in testDataFrameNumpyLabelled numpy=True, labelled=True)) SystemError: ../Objects/listobject.c:290: bad argument to internal function ``` full build log: https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=i386&ver=0.19.1-3&stamp=1481348917 happens also on some other architectures: e.g. armel https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=armel&ver=0.19.1-3&stamp=1481359184
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14852/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14852/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14853
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14853/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14853/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14853/events
https://github.com/pandas-dev/pandas/pull/14853
194,794,942
MDExOlB1bGxSZXF1ZXN0OTc0Mzg1MTM=
14,853
TST: Test DatetimeIndex weekend offset
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-12-10T21:23:26Z
2016-12-11T14:07:20Z
2016-12-11T14:06:54Z
MEMBER
null
closes #5348 closes #5115 closes #5152 The original issues pass on master as of 0.19.1. These related issues might have been fixed part of #5004, but it doesn't look like that any PRs fixed this recently.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14853/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14853/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14853.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14853", "merged_at": "2016-12-11T14:06:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14853.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14853" }
https://api.github.com/repos/pandas-dev/pandas/issues/14854
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14854/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14854/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14854/events
https://github.com/pandas-dev/pandas/issues/14854
194,797,074
MDU6SXNzdWUxOTQ3OTcwNzQ=
14,854
TST: timeseries tests reorg
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
6
2016-12-10T22:08:22Z
2017-02-09T23:40:59Z
2017-02-09T23:40:59Z
CONTRIBUTOR
null
Datetime ------------ - [x] We have *some* DatetimeIndex tests in [here](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_timeseries.py) and some in [here](https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/test_datetimelike.py) and *a lot* [here](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_base.py) (PR #15266) we can separate these out to a single file in ``pandas/tests/indexes/test_datetime.py`` The ``Base`` class (which powers lots of tests for the sub-classes ``DatetimeIndex``, ``PeriodIndex``, ``TimedeltaIndex``), can move to ``pandas/tests/indexes/tests_datetimelike.py`` (and merge with the existing ``Datetimelike`` class). - [ ] create a ``pandas/tests/scalar/test_timestamp.py`` with ``Timestamp`` specific tests There are a lot of tests also in [tseries/test_tslib.py](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_tslib.py), that can be merged into ``test_timestamp.py`` - [ ] the residuals (from ``tests_timeseries.py`` are Series tests speficially, these can move to ``pandas/tests/series/test_timeseries.py`` ``Legacy Tests`` --------------- - [ ] [timeseries_legacy](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_timeseries_legacy.py) need a look, but can prob be deleted ``Period`` ---------- - [ ] same idea with Period, the actual ``Period`` tests can be moved to ``tests/scalar/test_period.py``, but move the index tests to ``tests/indexes/test_period.py`` (which can be stripped from [here](https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/test_datetimelike.py) and [here](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_base.py)) ``Timedelta`` ----------- - [ ] same idea with Timedelta, the actual ``Timedelta`` tests can be moved to ``tests/scalar/test_timedelta.py`` but move the index tests to ``tests/indexes/test_timedelta.py`` (which can be stripped from [here](https://github.com/pandas-dev/pandas/blob/master/pandas/tests/indexes/test_datetimelike.py) and [here](https://github.com/pandas-dev/pandas/blob/master/pandas/tseries/tests/test_base.py))
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14854/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14854/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14855
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14855/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14855/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14855/events
https://github.com/pandas-dev/pandas/issues/14855
194,805,872
MDU6SXNzdWUxOTQ4MDU4NzI=
14,855
scatter_matrix `color` vs `c`
{ "avatar_url": "https://avatars.githubusercontent.com/u/3786727?v=4", "events_url": "https://api.github.com/users/smartinsightsfromdata/events{/privacy}", "followers_url": "https://api.github.com/users/smartinsightsfromdata/followers", "following_url": "https://api.github.com/users/smartinsightsfromdata/following{/other_user}", "gists_url": "https://api.github.com/users/smartinsightsfromdata/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smartinsightsfromdata", "id": 3786727, "login": "smartinsightsfromdata", "node_id": "MDQ6VXNlcjM3ODY3Mjc=", "organizations_url": "https://api.github.com/users/smartinsightsfromdata/orgs", "received_events_url": "https://api.github.com/users/smartinsightsfromdata/received_events", "repos_url": "https://api.github.com/users/smartinsightsfromdata/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smartinsightsfromdata/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smartinsightsfromdata/subscriptions", "type": "User", "url": "https://api.github.com/users/smartinsightsfromdata" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-12-11T01:30:23Z
2017-04-05T21:47:34Z
2017-04-05T21:47:34Z
NONE
null
I reported the issue below to matplotlib [here](https://github.com/matplotlib/matplotlib/issues/7603#issuecomment-266250371), but they have requested to report it here as it appears (to the matplotlib folks) related to pandas. The following code gives error, but works replacing `color=` with `c=` I suspect is either a bug, or some piece of documentation missing? (matplotlib folks think it is a pandas / scatter_matrix bug - see below) I'm using: matplotlib 1.5.3 pandas 0.19.1 python 3.5 This is a sample code: ``` import pandas as pd import numpy as np from sklearn.datasets import load_iris %matplotlib inline iris = load_iris() colors = list() palette = {0: "red", 1: "green", 2: "blue"} for c in np.nditer(iris.target): colors.append(palette[int(c)]) # using the palette dictionary, we convert # each numeric class into a color string dataframe = pd.DataFrame(iris.data, columns=iris.feature_names) scatterplot = pd.scatter_matrix(dataframe, alpha=0.3, figsize=(10, 10), diagonal='hist', color=colors, marker='o', grid=True) ``` This is the error trace: ``` --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-4-f3d30057e124> in <module>() 14 columns=iris.feature_names) 15 scatterplot = pd.scatter_matrix(dataframe, alpha=0.3, ---> 16 figsize=(10, 10), diagonal='hist', color=colors, marker='o', grid=True) /Users/e/anaconda/lib/python3.5/site-packages/pandas/tools/plotting.py in scatter_matrix(frame, alpha, figsize, ax, grid, diagonal, marker, density_kwds, hist_kwds, range_padding, **kwds) 393 394 ax.scatter(df[b][common], df[a][common], --> 395 marker=marker, alpha=alpha, **kwds) 396 397 ax.set_xlim(boundaries_list[j]) /Users/e/anaconda/lib/python3.5/site-packages/matplotlib/__init__.py in inner(ax, *args, **kwargs) 1817 warnings.warn(msg % (label_namer, func.__name__), 1818 RuntimeWarning, stacklevel=2) -> 1819 return func(ax, *args, **kwargs) 1820 pre_doc = inner.__doc__ 1821 if pre_doc is None: /Users/e/anaconda/lib/python3.5/site-packages/matplotlib/axes/_axes.py in scatter(self, x, y, s, c, marker, cmap, norm, vmin, vmax, alpha, linewidths, verts, edgecolors, **kwargs) 3787 facecolors = co 3788 if c is not None: -> 3789 raise ValueError("Supply a 'c' kwarg or a 'color' kwarg" 3790 " but not both; they differ but" 3791 " their functionalities overlap.") ValueError: Supply a 'c' kwarg or a 'color' kwarg but not both; they differ but their functionalities overlap. ``` According to @goyodiaz: > It looks like a pandas issue. pandas.scatter_matrix always pass c to scatter but the caller can optionally pass more keywords arguments, including color. If the caller pass only color then scatter_matrix will pass both c and color and matplotlib will raise with a message that is confusing to the user because they did not pass c. Probably scatter_matrix should either raise with a clearer message or drop the c keyword argument when the user pass color .
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14855/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14855/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14856
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14856/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14856/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14856/events
https://github.com/pandas-dev/pandas/pull/14856
194,817,988
MDExOlB1bGxSZXF1ZXN0OTc0NTExMDg=
14,856
Fix inconsistency in Partial String Index with 'second' resolution
{ "avatar_url": "https://avatars.githubusercontent.com/u/2717321?v=4", "events_url": "https://api.github.com/users/ischurov/events{/privacy}", "followers_url": "https://api.github.com/users/ischurov/followers", "following_url": "https://api.github.com/users/ischurov/following{/other_user}", "gists_url": "https://api.github.com/users/ischurov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischurov", "id": 2717321, "login": "ischurov", "node_id": "MDQ6VXNlcjI3MTczMjE=", "organizations_url": "https://api.github.com/users/ischurov/orgs", "received_events_url": "https://api.github.com/users/ischurov/received_events", "repos_url": "https://api.github.com/users/ischurov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischurov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischurov/subscriptions", "type": "User", "url": "https://api.github.com/users/ischurov" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
9
2016-12-11T07:27:14Z
2016-12-22T22:10:08Z
2016-12-20T17:44:52Z
CONTRIBUTOR
null
- Closes #14826 - Tests added: test_partial_string_indexes. Comprehensive testing of partial string indexes. ## Whatsnew entry Fix inconsistency in Partial String Index with 'second' resolution. See #14826. Now if the timestamp and the index both have resolution `second`, timestamp is considered as an exact match try and not a slice. Therefore, for `Series`, scalar will be returned, for `DataFrame` `KeyError` raised.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14856/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14856/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14856.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14856", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14856.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14856" }
https://api.github.com/repos/pandas-dev/pandas/issues/14857
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14857/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14857/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14857/events
https://github.com/pandas-dev/pandas/issues/14857
194,830,085
MDU6SXNzdWUxOTQ4MzAwODU=
14,857
df.info() returning negative byte value
{ "avatar_url": "https://avatars.githubusercontent.com/u/1430861?v=4", "events_url": "https://api.github.com/users/apiszcz/events{/privacy}", "followers_url": "https://api.github.com/users/apiszcz/followers", "following_url": "https://api.github.com/users/apiszcz/following{/other_user}", "gists_url": "https://api.github.com/users/apiszcz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/apiszcz", "id": 1430861, "login": "apiszcz", "node_id": "MDQ6VXNlcjE0MzA4NjE=", "organizations_url": "https://api.github.com/users/apiszcz/orgs", "received_events_url": "https://api.github.com/users/apiszcz/received_events", "repos_url": "https://api.github.com/users/apiszcz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/apiszcz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/apiszcz/subscriptions", "type": "User", "url": "https://api.github.com/users/apiszcz" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
18
2016-12-11T12:47:00Z
2017-10-14T21:39:14Z
2017-10-14T21:39:14Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python # Your code here df.info() dtypes: float64(9), int64(1), object(17) memory usage: -611431520.0+ bytes ``` #### Problem description Value returned is negative and should be positive. [this should explain **why** the current behaviour is a problem and why the expected output is a better solution.] #### Expected Output Positive value > 4GB #### Output of ``pd.show_versions()`` <details> # Paste the output here pd.show_versions() here INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 20.10.1 Cython: 0.25.2 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: 0.8.1 IPython: 5.1.0 sphinx: None patsy: 0.4.1 dateutil: 2.6.0 pytz: 2016.2 blosc: 1.4.4 bottleneck: 1.2.0 tables: None numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.3 lxml: 3.6.2 bs4: 4.5.1 html5lib: 0.9999999 httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.39.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14857/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14857/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14858
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14858/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14858/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14858/events
https://github.com/pandas-dev/pandas/issues/14858
194,846,226
MDU6SXNzdWUxOTQ4NDYyMjY=
14,858
BUG: fillna with inplace does not work with multiple columns selection by loc
{ "avatar_url": "https://avatars.githubusercontent.com/u/5608511?v=4", "events_url": "https://api.github.com/users/hiiwave/events{/privacy}", "followers_url": "https://api.github.com/users/hiiwave/followers", "following_url": "https://api.github.com/users/hiiwave/following{/other_user}", "gists_url": "https://api.github.com/users/hiiwave/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hiiwave", "id": 5608511, "login": "hiiwave", "node_id": "MDQ6VXNlcjU2MDg1MTE=", "organizations_url": "https://api.github.com/users/hiiwave/orgs", "received_events_url": "https://api.github.com/users/hiiwave/received_events", "repos_url": "https://api.github.com/users/hiiwave/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hiiwave/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hiiwave/subscriptions", "type": "User", "url": "https://api.github.com/users/hiiwave" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-12-11T18:08:23Z
2018-10-11T14:35:27Z
2016-12-11T19:55:54Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python df = pd.DataFrame(np.random.randn(3, 4), columns=list('ABCD')) df.iloc[1, 2:4] = np.nan df.loc[:, ['C', 'D']].fillna(-1, inplace=True) display(df) ``` Output: ``` A B C D 0 1.387547 -1.299578 0.360015 1.290783 1 -0.395182 -0.112581 NaN NaN 2 -0.649372 -1.831869 -0.103746 0.533153 ``` #### Problem description It's expected to modify the Nan to -1 but it does **NOT**. Please see the following comparisons. #### Comparison (1) On contrary, the following codes behave as expected. (The **only difference** is selection by **iloc** or by **loc**) ```python df = pd.DataFrame(np.random.randn(3, 4), columns=list('ABCD')) df.iloc[1, 2:4] = np.nan df.iloc[:, 2:4].fillna(-1, inplace=True) display(df) ``` Output: ``` A B C D 0 -0.522821 -1.600520 -1.468871 0.715790 1 0.493071 0.722474 -1.000000 -1.000000 2 0.545852 -0.877946 0.993169 -0.582661 ``` #### Comparison (2) When only **one** column is selected with loc, it behaves properly. ```python df = pd.DataFrame(np.random.randn(3, 4), columns=list('ABCD')) df.iloc[1, 2:4] = np.nan df.loc[:, 'C'].fillna(-1, inplace=True) display(df) ``` Output: ``` A B C D 0 -0.549106 0.261093 -1.278554 2.017178 1 -1.424498 0.439482 -1.000000 NaN 2 -1.281520 1.190736 0.356319 0.416363 ``` #### Expected Output of the first code sample ``` A B C D 0 1.181106 1.101231 -0.198445 0.295238 1 -0.654265 -1.129840 -1.000000 -1.000000 2 -1.070404 0.096556 0.499020 -1.835347 ``` #### Output of ``pd.show_versions()`` <details> # Paste the output here pd.show_versions() here INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-358.14.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: zh_TW.big5 LOCALE: zh_TW.big5 pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 27.2.0 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 2, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14858/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14858/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14859
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14859/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14859/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14859/events
https://github.com/pandas-dev/pandas/pull/14859
194,869,252
MDExOlB1bGxSZXF1ZXN0OTc0ODA2NzE=
14,859
PERF: use StringHasTable for strings
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
4
2016-12-12T00:31:17Z
2016-12-15T23:09:37Z
2016-12-15T23:09:37Z
CONTRIBUTOR
null
xref #13745 provides a modest speedup for all string hashing. The key thing is, it will release the GIL on more operations where this is possible (mainly ``factorize``). can be easily extended to ``.value_counts()`` and ``.duplicated()`` (for strings), new issue for that one ``` In [9]: np.random.seed(1234) In [10]: strings = tm.makeStringIndex(1000000) In [11]: def f(): ...: for i in range(2): ...: pd.factorize(strings) ...: In [12]: @tm.test_parallel(num_threads=2) ...: def g(): ...: pd.factorize(strings) ...: In [13]: %timeit f() 1 loop, best of 3: 685 ms per loop In [14]: %timeit g() 1 loop, best of 3: 446 ms per loop In [15]: strings = strings.take(np.random.randint(0,1000,size=len(strings))) In [16]: strings.nunique() Out[16]: 1000 In [17]: %timeit f() 1 loop, best of 3: 222 ms per loop In [18]: %timeit g() 10 loops, best of 3: 190 ms per loop ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 1, "laugh": 1, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14859/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14859/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14859.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14859", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14859.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14859" }
https://api.github.com/repos/pandas-dev/pandas/issues/14860
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14860/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14860/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14860/events
https://github.com/pandas-dev/pandas/issues/14860
194,869,337
MDU6SXNzdWUxOTQ4NjkzMzc=
14,860
PERF: use StringHashTable for value_counts / duplicated with strings
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
0
2016-12-12T00:32:24Z
2020-04-03T03:47:10Z
null
CONTRIBUTOR
null
xref https://github.com/pandas-dev/pandas/pull/14859 - [ ] ``.value_counts()`` - [ ] ``.duplicated()``
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14860/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14860/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14861
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14861/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14861/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14861/events
https://github.com/pandas-dev/pandas/issues/14861
194,873,796
MDU6SXNzdWUxOTQ4NzM3OTY=
14,861
DOC: groupby.rst examples broken
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-12-12T01:37:45Z
2016-12-14T10:43:59Z
2016-12-12T11:16:15Z
CONTRIBUTOR
null
the df for the groupby.resample examples are hiding the correct frame that was previously being used by the docs below http://pandas-docs.github.io/pandas-docs-travis/groupby.html#dispatching-to-instance-methods
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14861/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14861/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14862
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14862/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14862/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14862/events
https://github.com/pandas-dev/pandas/pull/14862
194,891,805
MDExOlB1bGxSZXF1ZXN0OTc0OTUzOTQ=
14,862
TST: Parse dates with empty space (#6428)
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-12-12T05:07:13Z
2016-12-14T11:07:36Z
2016-12-14T11:07:26Z
MEMBER
null
- [x] closes #6428 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` Parsing a date with an empty space no longer returns today's date on master 0.19.1. Not sure when this was fixed, but it doesn't seem like it occurred recently.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14862/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14862/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14862.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14862", "merged_at": "2016-12-14T11:07:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14862.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14862" }
https://api.github.com/repos/pandas-dev/pandas/issues/14863
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14863/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14863/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14863/events
https://github.com/pandas-dev/pandas/pull/14863
194,918,043
MDExOlB1bGxSZXF1ZXN0OTc1MTMyMjU=
14,863
DOC: fix groupby.rst building errors #14861
{ "avatar_url": "https://avatars.githubusercontent.com/u/190029?v=4", "events_url": "https://api.github.com/users/gr8h/events{/privacy}", "followers_url": "https://api.github.com/users/gr8h/followers", "following_url": "https://api.github.com/users/gr8h/following{/other_user}", "gists_url": "https://api.github.com/users/gr8h/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gr8h", "id": 190029, "login": "gr8h", "node_id": "MDQ6VXNlcjE5MDAyOQ==", "organizations_url": "https://api.github.com/users/gr8h/orgs", "received_events_url": "https://api.github.com/users/gr8h/received_events", "repos_url": "https://api.github.com/users/gr8h/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gr8h/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gr8h/subscriptions", "type": "User", "url": "https://api.github.com/users/gr8h" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-12-12T08:44:23Z
2016-12-14T10:42:37Z
2016-12-12T11:16:15Z
CONTRIBUTOR
null
Rename _resample()_ `df` to `df_re` under **New syntax to window and resample operations** section.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14863/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14863/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14863.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14863", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14863.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14863" }
https://api.github.com/repos/pandas-dev/pandas/issues/14864
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14864/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14864/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14864/events
https://github.com/pandas-dev/pandas/pull/14864
194,937,053
MDExOlB1bGxSZXF1ZXN0OTc1MjY0NjA=
14,864
DOC: add floats and ints missing as acceptable arguments for pandas.t…
{ "avatar_url": "https://avatars.githubusercontent.com/u/15869616?v=4", "events_url": "https://api.github.com/users/patniharshit/events{/privacy}", "followers_url": "https://api.github.com/users/patniharshit/followers", "following_url": "https://api.github.com/users/patniharshit/following{/other_user}", "gists_url": "https://api.github.com/users/patniharshit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/patniharshit", "id": 15869616, "login": "patniharshit", "node_id": "MDQ6VXNlcjE1ODY5NjE2", "organizations_url": "https://api.github.com/users/patniharshit/orgs", "received_events_url": "https://api.github.com/users/patniharshit/received_events", "repos_url": "https://api.github.com/users/patniharshit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/patniharshit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/patniharshit/subscriptions", "type": "User", "url": "https://api.github.com/users/patniharshit" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-12-12T10:21:00Z
2017-03-24T20:14:03Z
2016-12-12T11:10:35Z
CONTRIBUTOR
null
- [ ] closes #14556 - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry …o_datetime
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14864/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14864/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14864.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14864", "merged_at": "2016-12-12T11:10:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14864.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14864" }
https://api.github.com/repos/pandas-dev/pandas/issues/14865
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14865/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14865/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14865/events
https://github.com/pandas-dev/pandas/issues/14865
194,947,965
MDU6SXNzdWUxOTQ5NDc5NjU=
14,865
Series values cannot be accessed by numeric categorical index
{ "avatar_url": "https://avatars.githubusercontent.com/u/4473791?v=4", "events_url": "https://api.github.com/users/alex-filatov/events{/privacy}", "followers_url": "https://api.github.com/users/alex-filatov/followers", "following_url": "https://api.github.com/users/alex-filatov/following{/other_user}", "gists_url": "https://api.github.com/users/alex-filatov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alex-filatov", "id": 4473791, "login": "alex-filatov", "node_id": "MDQ6VXNlcjQ0NzM3OTE=", "organizations_url": "https://api.github.com/users/alex-filatov/orgs", "received_events_url": "https://api.github.com/users/alex-filatov/received_events", "repos_url": "https://api.github.com/users/alex-filatov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alex-filatov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alex-filatov/subscriptions", "type": "User", "url": "https://api.github.com/users/alex-filatov" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
24
2016-12-12T11:12:32Z
2021-05-02T00:58:24Z
null
NONE
null
#### Code Sample ```python >>> s1 = pd.Series(['a', 'b', 'c'], index=pd.Series([1, 2, 3])) >>> s1.get(3) 'c' >>> s2 = pd.Series(['a', 'b', 'c'], index=pd.Series([1, 2, 3], dtype='category')) >>> s2.get(3) is None True >>> s2.get(0) 'a' ``` #### Problem description In my opinion behavior in the second case can be error-prone (when there is an overlap between positional index and categorical one) and inconvenient (forces to use positional index). #### Expected Output ```python >>> s2.get(3) 'c' ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 27.2.0 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14865/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14865/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14866
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14866/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14866/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14866/events
https://github.com/pandas-dev/pandas/issues/14866
195,009,685
MDU6SXNzdWUxOTUwMDk2ODU=
14,866
on 32bit -- Series is int64 but cut produces int32 series
{ "avatar_url": "https://avatars.githubusercontent.com/u/39889?v=4", "events_url": "https://api.github.com/users/yarikoptic/events{/privacy}", "followers_url": "https://api.github.com/users/yarikoptic/followers", "following_url": "https://api.github.com/users/yarikoptic/following{/other_user}", "gists_url": "https://api.github.com/users/yarikoptic/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yarikoptic", "id": 39889, "login": "yarikoptic", "node_id": "MDQ6VXNlcjM5ODg5", "organizations_url": "https://api.github.com/users/yarikoptic/orgs", "received_events_url": "https://api.github.com/users/yarikoptic/received_events", "repos_url": "https://api.github.com/users/yarikoptic/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yarikoptic/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yarikoptic/subscriptions", "type": "User", "url": "https://api.github.com/users/yarikoptic" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "0e8a16", "default": false, "description": "32-bit systems", "id": 563047854, "name": "32bit", "node_id": "MDU6TGFiZWw1NjMwNDc4NTQ=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/32bit" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
6
2016-12-12T15:53:59Z
2017-03-21T17:41:03Z
2017-03-21T17:41:02Z
CONTRIBUTOR
null
#### Code Sample, a copy-pastable example if possible failing on 32bit test ```python def test_single_bin(self): # issue 14652 expected = Series([0, 0]) s = Series([9., 9.]) result = cut(s, 1, labels=False) tm.assert_series_equal(result, expected) s = Series([-9., -9.]) result = cut(s, 1, labels=False) tm.assert_series_equal(result, expected) ``` #### Problem description orig: https://buildd.debian.org/status/fetch.php?pkg=pandas&arch=i386&ver=0.19.1%2Bgit174-g81a2f79-1&stamp=1481436461 (still don't know about "bad argument to internal function" -- can't replicate locally, so ignore for this one): ``` ====================================================================== FAIL: test_single_bin (pandas.tools.tests.test_tile.TestCut) ---------------------------------------------------------------------- Traceback (most recent call last): File "/«BUILDDIR»/pandas-0.19.1+git174-g81a2f79/debian/tmp/usr/lib/python2.7/dist-packages/pandas/tools/tests/test_tile.py", line 281, in test_single_bin tm.assert_series_equal(result, expected) File "/«BUILDDIR»/pandas-0.19.1+git174-g81a2f79/debian/tmp/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 1154, in assert_series_equal assert_attr_equal('dtype', left, right) File "/«BUILDDIR»/pandas-0.19.1+git174-g81a2f79/debian/tmp/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 878, in assert_attr_equal left_attr, right_attr) File "/«BUILDDIR»/pandas-0.19.1+git174-g81a2f79/debian/tmp/usr/lib/python2.7/dist-packages/pandas/util/testing.py", line 1018, in raise_assert_detail raise AssertionError(msg) AssertionError: Attributes are different Attribute "dtype" are different [left]: int32 [right]: int64 ``` ``` (Pdb) p expected 0 0 1 0 dtype: int64 (Pdb) p result 0 0 1 0 dtype: int32 (Pdb) p s 0 9.0 1 9.0 dtype: float64 ``` so I guess if Series should use int64 regardless of underlying architecture default type, then cut should also produce int64, I guess.... or should Series have arch-default int??
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14866/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14866/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14867
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14867/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14867/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14867/events
https://github.com/pandas-dev/pandas/issues/14867
195,076,085
MDU6SXNzdWUxOTUwNzYwODU=
14,867
TST: `read_csv` with chunksize set returns empty `DataFrame` Instead of `TextFileReader`
{ "avatar_url": "https://avatars.githubusercontent.com/u/20629897?v=4", "events_url": "https://api.github.com/users/craymichael/events{/privacy}", "followers_url": "https://api.github.com/users/craymichael/followers", "following_url": "https://api.github.com/users/craymichael/following{/other_user}", "gists_url": "https://api.github.com/users/craymichael/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/craymichael", "id": 20629897, "login": "craymichael", "node_id": "MDQ6VXNlcjIwNjI5ODk3", "organizations_url": "https://api.github.com/users/craymichael/orgs", "received_events_url": "https://api.github.com/users/craymichael/received_events", "repos_url": "https://api.github.com/users/craymichael/repos", "site_admin": false, "starred_url": "https://api.github.com/users/craymichael/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/craymichael/subscriptions", "type": "User", "url": "https://api.github.com/users/craymichael" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-12-12T20:24:01Z
2016-12-20T16:03:24Z
2016-12-20T16:03:24Z
NONE
null
#### Code Sample ```python import pandas as pd # data.csv is an empty file df = pd.read_csv('data.csv', chunksize=20, header=None, names=['a', 'b', 'c']) ``` #### Problem description `read_csv` returns an empty DataFrame instead of a `pandas.io.parsers.TextFileReader` object when the above code is run. While this isn't a big issue, it is unexpected and the only way to tell the file is empty (through Pandas) is to check if a DataFrame was returned by `read_csv`. It would make more sense if `None` was returned instead, or the `TextFileReader`. #### Expected Output `pandas.io.parsers.TextFileReader` object #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-47-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 9.0.1 setuptools: 25.1.1 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14867/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14867/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14868
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14868/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14868/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14868/events
https://github.com/pandas-dev/pandas/pull/14868
195,080,968
MDExOlB1bGxSZXF1ZXN0OTc2Mjk4NTk=
14,868
DOC: Update to docstring of pd.DataFrame(dtype)
{ "avatar_url": "https://avatars.githubusercontent.com/u/15869616?v=4", "events_url": "https://api.github.com/users/patniharshit/events{/privacy}", "followers_url": "https://api.github.com/users/patniharshit/followers", "following_url": "https://api.github.com/users/patniharshit/following{/other_user}", "gists_url": "https://api.github.com/users/patniharshit/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/patniharshit", "id": 15869616, "login": "patniharshit", "node_id": "MDQ6VXNlcjE1ODY5NjE2", "organizations_url": "https://api.github.com/users/patniharshit/orgs", "received_events_url": "https://api.github.com/users/patniharshit/received_events", "repos_url": "https://api.github.com/users/patniharshit/repos", "site_admin": false, "starred_url": "https://api.github.com/users/patniharshit/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/patniharshit/subscriptions", "type": "User", "url": "https://api.github.com/users/patniharshit" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
7
2016-12-12T20:45:59Z
2017-05-24T21:40:36Z
2017-02-27T17:15:05Z
CONTRIBUTOR
null
- [ ] closes #14764 - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry All suggestions to improve this are welcome.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14868/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14868/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14868.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14868", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14868.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14868" }
https://api.github.com/repos/pandas-dev/pandas/issues/14869
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14869/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14869/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14869/events
https://github.com/pandas-dev/pandas/issues/14869
195,099,987
MDU6SXNzdWUxOTUwOTk5ODc=
14,869
CustomBusinessMonthBegin offset parameter
{ "avatar_url": "https://avatars.githubusercontent.com/u/19216350?v=4", "events_url": "https://api.github.com/users/LingnanLemon/events{/privacy}", "followers_url": "https://api.github.com/users/LingnanLemon/followers", "following_url": "https://api.github.com/users/LingnanLemon/following{/other_user}", "gists_url": "https://api.github.com/users/LingnanLemon/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/LingnanLemon", "id": 19216350, "login": "LingnanLemon", "node_id": "MDQ6VXNlcjE5MjE2MzUw", "organizations_url": "https://api.github.com/users/LingnanLemon/orgs", "received_events_url": "https://api.github.com/users/LingnanLemon/received_events", "repos_url": "https://api.github.com/users/LingnanLemon/repos", "site_admin": false, "starred_url": "https://api.github.com/users/LingnanLemon/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/LingnanLemon/subscriptions", "type": "User", "url": "https://api.github.com/users/LingnanLemon" }
[ { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 1203, "created_at": "2021-06-09T18:28:42Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2021-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/86", "id": 6840253, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels", "node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==", "number": 86, "open_issues": 77, "state": "open", "title": "1.4", "updated_at": "2021-11-21T02:34:31Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86" }
4
2016-12-12T22:09:36Z
2021-10-31T02:16:24Z
2021-10-31T02:16:24Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python from pandas.tseries.offsets import CustomBusinessMonthBegin my_offset= CustomBusinessMonthBegin(offset=timedelta(days=5)) ``` #### Problem description when creating the offset instance with specific day offset, shows 'offset' is an invalid keyword. #### Expected Output Trying to use the CustomBusinessMonthBegin together with my customized calender and a day offset to get the N_th business day of a certain calender. Return value should be a caloffset instance. MonthBegin to get the first business day works well. What if I want to get the second/third/...n_th business day? #### Output of ``pd.show_versions()`` 0.18.0 <details> # Paste the output here pd.show_versions() here </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14869/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14869/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14870
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14870/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14870/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14870/events
https://github.com/pandas-dev/pandas/issues/14870
195,106,821
MDU6SXNzdWUxOTUxMDY4MjE=
14,870
.plot() method breaks for two ostensibly identical time series DataFrames
{ "avatar_url": "https://avatars.githubusercontent.com/u/9990778?v=4", "events_url": "https://api.github.com/users/alexpetralia/events{/privacy}", "followers_url": "https://api.github.com/users/alexpetralia/followers", "following_url": "https://api.github.com/users/alexpetralia/following{/other_user}", "gists_url": "https://api.github.com/users/alexpetralia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexpetralia", "id": 9990778, "login": "alexpetralia", "node_id": "MDQ6VXNlcjk5OTA3Nzg=", "organizations_url": "https://api.github.com/users/alexpetralia/orgs", "received_events_url": "https://api.github.com/users/alexpetralia/received_events", "repos_url": "https://api.github.com/users/alexpetralia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexpetralia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexpetralia/subscriptions", "type": "User", "url": "https://api.github.com/users/alexpetralia" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
4
2016-12-12T22:39:04Z
2017-01-05T22:19:20Z
2017-01-05T22:13:41Z
NONE
null
pd.__version__ == 0.19.0 I have two DataFrames which have the same index types, dtypes & columns. For some reason, the first DataFrame plots while the second does not. However, when I store them as .csv's and read them back in again, the problem is solved. I suspect it has something to do with the columnar index or the DateTime index. Since saving them as .csv files wouldn't capture the issue I'm having, I saved them as .pkl files and zipped them below. [dataframes.zip](https://github.com/pandas-dev/pandas/files/647451/dataframes.zip) Finally, to replicate the issue, I ran `a.plot()` and `b.plot()`. Upon running `b.plot()` I get: ``` Traceback (most recent call last): File "<ipython-input-507-904a8054cbcc>", line 1, in <module> b.plot() File "/.../site-packages/pandas/tools/plotting.py", line 3773, in __call__ sort_columns=sort_columns, **kwds) File "/.../site-packages/pandas/tools/plotting.py", line 2642, in plot_frame **kwds) File "/.../site-packages/pandas/tools/plotting.py", line 2469, in _plot plot_obj.generate() File "/.../site-packages/pandas/tools/plotting.py", line 1043, in generate self._make_plot() File "/.../site-packages/pandas/tools/plotting.py", line 1698, in _make_plot data = _maybe_convert_index(self._get_ax(0), self.data) File "/.../site-packages/pandas/tseries/plotting.py", line 255, in _maybe_convert_index data = data.to_period(freq=freq) File "/.../site-packages/pandas/core/frame.py", line 5224, in to_period new_data.set_axis(1, self.index.to_period(freq=freq)) File "/.../site-packages/pandas/tseries/index.py", line 928, in to_period return PeriodIndex(self.values, name=self.name, freq=freq, tz=self.tz) File "/.../site-packages/pandas/tseries/period.py", line 213, in __new__ ordinal, freq = cls._from_arraylike(data, freq, tz) File "/.../site-packages/pandas/tseries/period.py", line 292, in _from_arraylike data = dt64arr_to_periodarr(data, freq, tz) File "/.../site-packages/pandas/tseries/period.py", line 62, in dt64arr_to_periodarr base, mult = _gfc(freq) File "/.../site-packages/pandas/tseries/frequencies.py", line 282, in get_freq_code base, stride = _base_and_stride(freqstr) File "/.../site-packages/pandas/tseries/frequencies.py", line 507, in _base_and_stride groups = opattern.match(freqstr) TypeError: expected string or buffer ``` Update: the issue seems to disappear when I reassign the index with `b.index = b.index.map(str)`; that is, I drop the datetime datatype.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14870/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14870/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14871
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14871/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14871/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14871/events
https://github.com/pandas-dev/pandas/pull/14871
195,127,456
MDExOlB1bGxSZXF1ZXN0OTc2NjQ2OTA=
14,871
BUG: addresses #14855 by fixing color kwarg conflict
{ "avatar_url": "https://avatars.githubusercontent.com/u/15242567?v=4", "events_url": "https://api.github.com/users/alexandercbooth/events{/privacy}", "followers_url": "https://api.github.com/users/alexandercbooth/followers", "following_url": "https://api.github.com/users/alexandercbooth/following{/other_user}", "gists_url": "https://api.github.com/users/alexandercbooth/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexandercbooth", "id": 15242567, "login": "alexandercbooth", "node_id": "MDQ6VXNlcjE1MjQyNTY3", "organizations_url": "https://api.github.com/users/alexandercbooth/orgs", "received_events_url": "https://api.github.com/users/alexandercbooth/received_events", "repos_url": "https://api.github.com/users/alexandercbooth/repos", "site_admin": true, "starred_url": "https://api.github.com/users/alexandercbooth/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexandercbooth/subscriptions", "type": "User", "url": "https://api.github.com/users/alexandercbooth" }
[ { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
17
2016-12-13T00:34:57Z
2017-04-05T21:57:36Z
2017-04-05T21:47:34Z
CONTRIBUTOR
null
- [x] closes #14855 - [x] tests passed - [x] passes ``git diff upstream/master | flake8 --diff``
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14871/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14871/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14871.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14871", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14871.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14871" }
https://api.github.com/repos/pandas-dev/pandas/issues/14872
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14872/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14872/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14872/events
https://github.com/pandas-dev/pandas/issues/14872
195,151,893
MDU6SXNzdWUxOTUxNTE4OTM=
14,872
fillna() containing timezone aware datetime64 rounded
{ "avatar_url": "https://avatars.githubusercontent.com/u/15970390?v=4", "events_url": "https://api.github.com/users/brendene/events{/privacy}", "followers_url": "https://api.github.com/users/brendene/followers", "following_url": "https://api.github.com/users/brendene/following{/other_user}", "gists_url": "https://api.github.com/users/brendene/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/brendene", "id": 15970390, "login": "brendene", "node_id": "MDQ6VXNlcjE1OTcwMzkw", "organizations_url": "https://api.github.com/users/brendene/orgs", "received_events_url": "https://api.github.com/users/brendene/received_events", "repos_url": "https://api.github.com/users/brendene/repos", "site_admin": false, "starred_url": "https://api.github.com/users/brendene/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brendene/subscriptions", "type": "User", "url": "https://api.github.com/users/brendene" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
1
2016-12-13T03:36:20Z
2016-12-18T19:42:32Z
2016-12-18T19:42:28Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import datetime, pytz #Non-timezone aware datetime s = pd.Series( [pd.NaT, pd.NaT, datetime.datetime(2016, 12, 12, 22, 24, 6, 100001) ] ) print(s) 0 NaT 1 NaT 2 2016-12-12 22:24:06.100001 dtype: datetime64[ns] print(s.fillna(method='bfill')) 0 2016-12-12 22:24:06.100001 1 2016-12-12 22:24:06.100001 2 2016-12-12 22:24:06.100001 dtype: datetime64[ns] # Timezone aware datetime s = pd.Series( [pd.NaT, pd.NaT, datetime.datetime(2016, 12, 12, 22, 24, 6, 100001, tzinfo=pytz.utc) ] ) print(s) 0 NaT 1 NaT 2 2016-12-12 22:24:06.100001+00:00 print(s.fillna(method='bfill')) 0 2016-12-12 22:24:06.100001024+00:00 1 2016-12-12 22:24:06.100001024+00:00 2 2016-12-12 22:24:06.100001024+00:00 dtype: datetime64[ns, UTC] ``` #### Problem description This is similar to bug #6587 but difference is a timezone aware datetime. It looks like the dtype is being stripped and the value is converted to a float and back. #### Expected Output ```python s = pd.Series( [pd.NaT, pd.NaT, datetime.datetime(2016, 12, 12, 22, 24, 6, 100001, tzinfo=pytz.utc) ] ) print(s) 0 NaT 1 NaT 2 2016-12-12 22:24:06.100001+00:00 print(s.fillna(method='bfill')) 0 2016-12-12 22:24:06.100001000+00:00 1 2016-12-12 22:24:06.100001000+00:00 2 2016-12-12 22:24:06.100001000+00:00 dtype: datetime64[ns, UTC] ``` #### Output of ``pd.show_versions()`` <details> pandas: 0.19.1 numpy: 1.11.2 scipy: 0.18.1 pytz: 2016.7 </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14872/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14872/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14873
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14873/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14873/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14873/events
https://github.com/pandas-dev/pandas/issues/14873
195,199,816
MDU6SXNzdWUxOTUxOTk4MTY=
14,873
BUG: groupby.agg coercing booleans
{ "avatar_url": "https://avatars.githubusercontent.com/u/8487127?v=4", "events_url": "https://api.github.com/users/enfeizhan/events{/privacy}", "followers_url": "https://api.github.com/users/enfeizhan/followers", "following_url": "https://api.github.com/users/enfeizhan/following{/other_user}", "gists_url": "https://api.github.com/users/enfeizhan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/enfeizhan", "id": 8487127, "login": "enfeizhan", "node_id": "MDQ6VXNlcjg0ODcxMjc=", "organizations_url": "https://api.github.com/users/enfeizhan/orgs", "received_events_url": "https://api.github.com/users/enfeizhan/received_events", "repos_url": "https://api.github.com/users/enfeizhan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/enfeizhan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/enfeizhan/subscriptions", "type": "User", "url": "https://api.github.com/users/enfeizhan" }
[ { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
5
2016-12-13T09:19:59Z
2019-02-19T14:11:42Z
2019-02-19T14:11:42Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd dat = pd.DataFrame({'a': [1, 1, 2, 2], 'b': [0, 1, 2, 3], 'c': [None, None, 1, 1]}) gp = dat.groupby('a') case_one = gp['b'].aggregate(lambda x: (x != 0).all()) case_two = gp['c'].aggregate(lambda x: x.isnull().all()) ``` #### Problem description By comparing ``case_one`` and ``case_two``, it seems that ``aggregate`` function turns boolean values sometimes to integers 1 or 0. For ``case_one`` we get, ``` a 1 False 2 True Name: b, dtype: bool ``` However for ``case_two`` we get ``` a 1 1.0 2 0.0 Name: c, dtype: float64 ``` #### Expected Output For ``case_two`` we should get ``` a 1 True 2 False Name: b, dtype: bool ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-53-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_AU.UTF-8 LOCALE: en_AU.UTF-8 pandas: 0.19.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.0 scipy: 0.17.0 statsmodels: None xarray: None IPython: 4.2.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details> This same issue appears in a different environment as well. <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-53-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_AU.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 9.0.1 setuptools: 23.0.0 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.0.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.1.3 pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14873/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14873/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14874
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14874/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14874/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14874/events
https://github.com/pandas-dev/pandas/issues/14874
195,293,328
MDU6SXNzdWUxOTUyOTMzMjg=
14,874
Reading bz2-compressed tables from URL fails with c-engine in Python 2
{ "avatar_url": "https://avatars.githubusercontent.com/u/1117703?v=4", "events_url": "https://api.github.com/users/dhimmel/events{/privacy}", "followers_url": "https://api.github.com/users/dhimmel/followers", "following_url": "https://api.github.com/users/dhimmel/following{/other_user}", "gists_url": "https://api.github.com/users/dhimmel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhimmel", "id": 1117703, "login": "dhimmel", "node_id": "MDQ6VXNlcjExMTc3MDM=", "organizations_url": "https://api.github.com/users/dhimmel/orgs", "received_events_url": "https://api.github.com/users/dhimmel/received_events", "repos_url": "https://api.github.com/users/dhimmel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhimmel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhimmel/subscriptions", "type": "User", "url": "https://api.github.com/users/dhimmel" }
[ { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
0
2016-12-13T16:03:37Z
2016-12-17T23:09:20Z
2016-12-17T23:09:20Z
CONTRIBUTOR
null
In https://github.com/pandas-dev/pandas/pull/14576, we consolidated compression code and introduced support for compressed URLs beyond just gzip. However, as described in https://github.com/pandas-dev/pandas/pull/14576#issuecomment-264963575, the c-engine cannot read bz2-compressed URLs in python 2. This error is coming from [`parser.pyx#L615-L621`](https://github.com/pandas-dev/pandas/blob/b3dd9bafbfcbac1a2b6ab756e588d6e167f90439/pandas/parser.pyx#L615-L621). There may be potential to entirely bypass this offending code as it appears to duplicate the functionality of `_get_handle`.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14874/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14874/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14875
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14875/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14875/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14875/events
https://github.com/pandas-dev/pandas/issues/14875
195,294,704
MDU6SXNzdWUxOTUyOTQ3MDQ=
14,875
Create tests for reading compressed tables from S3 URLs
{ "avatar_url": "https://avatars.githubusercontent.com/u/1117703?v=4", "events_url": "https://api.github.com/users/dhimmel/events{/privacy}", "followers_url": "https://api.github.com/users/dhimmel/followers", "following_url": "https://api.github.com/users/dhimmel/following{/other_user}", "gists_url": "https://api.github.com/users/dhimmel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhimmel", "id": 1117703, "login": "dhimmel", "node_id": "MDQ6VXNlcjExMTc3MDM=", "organizations_url": "https://api.github.com/users/dhimmel/orgs", "received_events_url": "https://api.github.com/users/dhimmel/received_events", "repos_url": "https://api.github.com/users/dhimmel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhimmel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhimmel/subscriptions", "type": "User", "url": "https://api.github.com/users/dhimmel" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "e4a5f1", "default": false, "description": "Local or Cloud (AWS, GCS, etc.) IO Issues", "id": 49381477, "name": "IO Network", "node_id": "MDU6TGFiZWw0OTM4MTQ3Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Network" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
2
2016-12-13T16:08:23Z
2020-05-22T03:15:28Z
null
CONTRIBUTOR
null
In https://github.com/pandas-dev/pandas/pull/14576, we consolidated compression code and expanded support for compressed URLs. While we added tests for compressed URLs, we did not add tests for compressed S3 files. First, someone will have to upload the compressed tables to Amazon: see https://github.com/pandas-dev/pandas/pull/14587#issuecomment-264674413. Also tagging https://github.com/pandas-dev/pandas/issues/13137, a pull request which may want to also add these tests.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14875/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14875/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14876
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14876/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14876/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14876/events
https://github.com/pandas-dev/pandas/issues/14876
195,400,481
MDU6SXNzdWUxOTU0MDA0ODE=
14,876
API: DataFrame.melt(), DataFrame.wide_to_long()
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "Requires discussion from core team before further action", "id": 219960758, "name": "Needs Discussion", "node_id": "MDU6TGFiZWwyMTk5NjA3NTg=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Discussion" } ]
closed
false
null
[]
null
4
2016-12-13T23:36:54Z
2017-04-04T17:52:28Z
2017-04-04T17:52:28Z
CONTRIBUTOR
null
xref https://github.com/pandas-dev/pandas/pull/14779 So I think it might be nice to have these as convenience methods on DataFrame(). we can deprecate (``pd.melt`` & ``pd.wide_to_long``), though we *didn't* deprecate ``pd.pivot_table``, even though it exists on ``DataFrame``, so this can be a discussion point. but if we do this, then maybe have a shorter / better name than ``wide_to_long``? (even though it is strictly speaking pretty informative).
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14876/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14876/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14877
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14877/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14877/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14877/events
https://github.com/pandas-dev/pandas/pull/14877
195,471,004
MDExOlB1bGxSZXF1ZXN0OTc5MDg1NDU=
14,877
BUG: Respect value of raise_on_error
{ "avatar_url": "https://avatars.githubusercontent.com/u/500436?v=4", "events_url": "https://api.github.com/users/tomderuijter/events{/privacy}", "followers_url": "https://api.github.com/users/tomderuijter/followers", "following_url": "https://api.github.com/users/tomderuijter/following{/other_user}", "gists_url": "https://api.github.com/users/tomderuijter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tomderuijter", "id": 500436, "login": "tomderuijter", "node_id": "MDQ6VXNlcjUwMDQzNg==", "organizations_url": "https://api.github.com/users/tomderuijter/orgs", "received_events_url": "https://api.github.com/users/tomderuijter/received_events", "repos_url": "https://api.github.com/users/tomderuijter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tomderuijter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tomderuijter/subscriptions", "type": "User", "url": "https://api.github.com/users/tomderuijter" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-12-14T08:41:37Z
2017-05-26T12:34:00Z
2017-01-02T10:20:10Z
NONE
null
#### Code Sample, a copy-pastable example if possible Pasteable snippet. ```python import numpy as np import pandas as pd x = pd.DataFrame(data=[[1,2],[3,4]], columns=['A','B']) x.astype({'C': np.int32}, raise_on_error=False) ``` Output ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/tomdr/VirtualEnvs/work-py3/lib/python3.5/site-packages/pandas/core/generic.py", line 3041, in astype raise KeyError('Only a column name can be used for the ' KeyError: 'Only a column name can be used for the key in a dtype mappings argument.' ``` #### Problem description The method argument `raise_on_error` of `DataFrame.astype` suggests there is the option to ignore errors caused by mismatch in column names. Currently, an exception is raised regardless of the value of this argument. This is fixed in this pull request. Before: https://github.com/pandas-dev/pandas/blob/v0.19.1/pandas/core/generic.py#L3041 #### Expected Output An exception should not be raised. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 21.0.0 Cython: 0.24.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.0.0 sphinx: 1.4.8 patsy: None dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.14 pymysql: 0.7.9.None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14877/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14877/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14877.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14877", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14877.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14877" }
https://api.github.com/repos/pandas-dev/pandas/issues/14878
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14878/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14878/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14878/events
https://github.com/pandas-dev/pandas/issues/14878
195,534,224
MDU6SXNzdWUxOTU1MzQyMjQ=
14,878
DEPR: change .astype(.., raise_on_error) -> errors
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "5319e7", "default": false, "description": "Functionality to remove in pandas", "id": 87485152, "name": "Deprecate", "node_id": "MDU6TGFiZWw4NzQ4NTE1Mg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Deprecate" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
5
2016-12-14T13:44:56Z
2017-01-03T20:53:59Z
2017-01-03T20:53:59Z
CONTRIBUTOR
null
xref #14877 this is inconsistent with our current API handling so need to deprecate ``raise_on_error``, AFAICT, this is the only public use, and add ``errors='raise'|'ignore'``, with a default a ``raise``.
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 1, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14878/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14878/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14879
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14879/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14879/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14879/events
https://github.com/pandas-dev/pandas/issues/14879
195,576,338
MDU6SXNzdWUxOTU1NzYzMzg=
14,879
CLN: remove need for *VectorData c-structures in hashtable.pyx
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "207de5", "default": false, "description": null, "id": 211029535, "name": "Clean", "node_id": "MDU6TGFiZWwyMTEwMjk1MzU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
1
2016-12-14T16:20:54Z
2016-12-15T11:20:02Z
2016-12-15T11:20:02Z
CONTRIBUTOR
null
post #14859 See what I did for StringHashTable [here](https://github.com/pandas-dev/pandas/pull/14859/files#diff-086515be6caf140878bb9189b088525aR547) I think we should just remove entirely the *VectorData structures and simply create them in a single pass at the end. I don't think this will actually have a perf penalty, but should see if anything changes. This will make the code easier to understand and still provide all of the GIL release benefits (because we actually need to hold the GIL to resize), if we use the method above, then can simply allocate the unique array all at once, then fill it with a single expression that doesn't require resizing, because we know the nuniques at this point.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14879/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14879/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14880
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14880/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14880/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14880/events
https://github.com/pandas-dev/pandas/pull/14880
195,583,313
MDExOlB1bGxSZXF1ZXN0OTc5OTAyMjE=
14,880
DOC for refactored compression (GH14576) + BUG: bz2-compressed URL with C engine (GH14874)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1117703?v=4", "events_url": "https://api.github.com/users/dhimmel/events{/privacy}", "followers_url": "https://api.github.com/users/dhimmel/followers", "following_url": "https://api.github.com/users/dhimmel/following{/other_user}", "gists_url": "https://api.github.com/users/dhimmel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhimmel", "id": 1117703, "login": "dhimmel", "node_id": "MDQ6VXNlcjExMTc3MDM=", "organizations_url": "https://api.github.com/users/dhimmel/orgs", "received_events_url": "https://api.github.com/users/dhimmel/received_events", "repos_url": "https://api.github.com/users/dhimmel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhimmel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhimmel/subscriptions", "type": "User", "url": "https://api.github.com/users/dhimmel" }
[ { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
9
2016-12-14T16:45:26Z
2016-12-17T23:09:29Z
2016-12-17T23:09:20Z
CONTRIBUTOR
null
Follow up on https://github.com/pandas-dev/pandas/pull/14576, which refactored compression code to expand URL support. Fixes up some small remaining issues and adds a what's new entry. - [x] Closes #14874
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14880/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14880/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14880.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14880", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14880.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14880" }
https://api.github.com/repos/pandas-dev/pandas/issues/14881
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14881/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14881/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14881/events
https://github.com/pandas-dev/pandas/issues/14881
195,602,863
MDU6SXNzdWUxOTU2MDI4NjM=
14,881
DataFrame constructor converts uint64 series to object series
{ "avatar_url": "https://avatars.githubusercontent.com/u/1053845?v=4", "events_url": "https://api.github.com/users/hrichardlee/events{/privacy}", "followers_url": "https://api.github.com/users/hrichardlee/followers", "following_url": "https://api.github.com/users/hrichardlee/following{/other_user}", "gists_url": "https://api.github.com/users/hrichardlee/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hrichardlee", "id": 1053845, "login": "hrichardlee", "node_id": "MDQ6VXNlcjEwNTM4NDU=", "organizations_url": "https://api.github.com/users/hrichardlee/orgs", "received_events_url": "https://api.github.com/users/hrichardlee/received_events", "repos_url": "https://api.github.com/users/hrichardlee/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hrichardlee/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hrichardlee/subscriptions", "type": "User", "url": "https://api.github.com/users/hrichardlee" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-12-14T18:03:12Z
2016-12-19T16:59:50Z
2016-12-19T16:59:50Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np uint64s = pd.Series([9710005220884355087, 9710005220138399309], dtype=np.dtype('uint64')) uint64s.dtype # dtype('uint64') df = pd.DataFrame({'viadict': uint64s}) df['viacolumn'] = uint64s df.info() # Data columns (total 2 columns): # viadict 2 non-null object # viacolumn 2 non-null uint64 ``` #### Problem description It seems like these ways of adding columns to a dataframe should have the same behavior. #### Expected Output ```python df.info() # Data columns (total 2 columns): # viadict 2 non-null uint64 # viacolumn 2 non-null uint64 ``` (i.e. both columns are uint64s) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 45 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: 1.3.7 pip: 9.0.1 setuptools: 27.2.0 Cython: 0.25.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.2 lxml: None bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.42.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14881/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14881/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14882
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14882/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14882/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14882/events
https://github.com/pandas-dev/pandas/issues/14882
195,621,245
MDU6SXNzdWUxOTU2MjEyNDU=
14,882
Incorrect index label displayed on MultiIndex DataFrame
{ "avatar_url": "https://avatars.githubusercontent.com/u/81476?v=4", "events_url": "https://api.github.com/users/fonnesbeck/events{/privacy}", "followers_url": "https://api.github.com/users/fonnesbeck/followers", "following_url": "https://api.github.com/users/fonnesbeck/following{/other_user}", "gists_url": "https://api.github.com/users/fonnesbeck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fonnesbeck", "id": 81476, "login": "fonnesbeck", "node_id": "MDQ6VXNlcjgxNDc2", "organizations_url": "https://api.github.com/users/fonnesbeck/orgs", "received_events_url": "https://api.github.com/users/fonnesbeck/received_events", "repos_url": "https://api.github.com/users/fonnesbeck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fonnesbeck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fonnesbeck/subscriptions", "type": "User", "url": "https://api.github.com/users/fonnesbeck" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
5
2016-12-14T19:21:21Z
2017-01-21T23:07:44Z
2017-01-21T23:07:44Z
NONE
null
I have a DataFrame with a hierarchical index as follows: ```python MultiIndex(levels=[[30, 40, 50], [6, 12, 24], ['MRIgFUS', 'ablation', 'hysterectomy', 'iud', 'myomectomy', 'none', 'uae']], labels=[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2], [0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6, 0, 1, 2, 3, 4, 5, 6]], names=['age', 'followup', 'next intervention']) ``` Notice in particular the values of the first two levels, and that they are balanced in the labels. However, the display of the table is incorrect. Here is what it looks like: ![](http://d.pr/i/rFy8+) Notice the second label of the first two levels of the hierarchical index are repeated (40 and 40 instead of 40 and 50, and 12 and 12 instead of 12 and 24). #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 16.3.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 31.0.1 Cython: 0.25.2 numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: 1.5.1 patsy: 0.4.1 dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: None numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14882/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14882/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14883
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14883/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14883/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14883/events
https://github.com/pandas-dev/pandas/issues/14883
195,649,767
MDU6SXNzdWUxOTU2NDk3Njc=
14,883
ENH: json_normalize should allow a different separator than .
{ "avatar_url": "https://avatars.githubusercontent.com/u/976970?v=4", "events_url": "https://api.github.com/users/jowens/events{/privacy}", "followers_url": "https://api.github.com/users/jowens/followers", "following_url": "https://api.github.com/users/jowens/following{/other_user}", "gists_url": "https://api.github.com/users/jowens/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jowens", "id": 976970, "login": "jowens", "node_id": "MDQ6VXNlcjk3Njk3MA==", "organizations_url": "https://api.github.com/users/jowens/orgs", "received_events_url": "https://api.github.com/users/jowens/received_events", "repos_url": "https://api.github.com/users/jowens/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jowens/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jowens/subscriptions", "type": "User", "url": "https://api.github.com/users/jowens" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
5
2016-12-14T21:24:36Z
2017-03-28T21:50:38Z
2017-03-28T21:50:37Z
NONE
null
```python >>> import pandas >>> col_in = ['c1', 'c2.x'] >>> df = pandas.DataFrame([['A', 0], ['B', 1]], columns=col_in) >>> df.c1 0 A 1 B Name: c1, dtype: object >>> df.c2.x Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/generic.py", line 2744, in __getattr__ return object.__getattribute__(self, name) AttributeError: 'DataFrame' object has no attribute 'c2' ``` #### Problem description The above snippet shows that it's not ideal to have `.` as a character in a column name. (I'm running into this when using Vega for data visualization, https://github.com/vega/vega-lite/issues/1775.) When `json_normalize` flattens a nested input JSON, it separates the nesting levels with a `.`. I believe this happens on this line: https://github.com/pandas-dev/pandas/blob/7d8bc0deaeb8237a0cf361048363c78f4867f218/pandas/io/json.py#L831 I'd like to see an additional argument to `json_normalize`, `separator`, with default `.`, that specified the character (string) that separated nesting levels. In the line of code above, `'.'.join(val)` would be replaced by `separator.join(val)` (if I'm reading what that line does correctly). I could use, say, `_` to use underscore instead of period. n00b at pandas, please correct me if I'm doing anything wrong. #### Expected Output #### Output of ``pd.show_versions()`` <details> >>> pandas.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 16.3.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.US-ASCII LOCALE: None.None pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 30.3.0 Cython: 0.25.2 numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: 1.5.1 patsy: None dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: 1.2.0 tables: 3.2.3.1 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.4.1 xlrd: 1.0.0 xlwt: None xlsxwriter: None lxml: 3.6.0 bs4: 4.5.1 html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14883/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14883/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14884
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14884/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14884/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14884/events
https://github.com/pandas-dev/pandas/pull/14884
195,724,466
MDExOlB1bGxSZXF1ZXN0OTgwOTIyMTk=
14,884
TST: Test datetime array assignment with different units (#7492)
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
3
2016-12-15T06:06:56Z
2016-12-17T23:13:52Z
2016-12-17T23:13:43Z
MEMBER
null
- [x] closes #7492 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` The example in this issue currently works in master. Added a test to confirm. Based on a quick skim of the recent PRs, doesn't look like it was fixed recently.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14884/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14884/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14884.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14884", "merged_at": "2016-12-17T23:13:43Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14884.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14884" }
https://api.github.com/repos/pandas-dev/pandas/issues/14885
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14885/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14885/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14885/events
https://github.com/pandas-dev/pandas/issues/14885
195,763,246
MDU6SXNzdWUxOTU3NjMyNDY=
14,885
Wrong "Too many indexers" error message when indexing a Series with MultiIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "color": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
null
[]
{ "closed_at": "2019-07-19T00:34:29Z", "closed_issues": 1289, "created_at": "2018-10-23T02:34:15Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2019-07-01T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/61", "id": 3759483, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels", "node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==", "number": 61, "open_issues": 0, "state": "closed", "title": "0.25.0", "updated_at": "2020-01-02T15:10:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61" }
4
2016-12-15T10:02:04Z
2019-04-26T01:12:43Z
2019-04-26T01:12:43Z
MEMBER
null
#### Code Sample, a copy-pastable example if possible ```python In [2]: s = pd.Series(range(4), index=pd.MultiIndex.from_product([['a', 'b'], ['c', 'd']])) In [3]: s.loc['a', 'e'] --------------------------------------------------------------------------- IndexingError Traceback (most recent call last) <ipython-input-3-042ed7ab0463> in <module>() ----> 1 s.loc['a', 'e'] /home/pietro/nobackup/repo/pandas/pandas/core/indexing.py in __getitem__(self, key) 1308 1309 if type(key) is tuple: -> 1310 return self._getitem_tuple(key) 1311 else: 1312 return self._getitem_axis(key, axis=0) /home/pietro/nobackup/repo/pandas/pandas/core/indexing.py in _getitem_tuple(self, tup) 799 800 # no multi-index, so validate all of the indexers --> 801 self._has_valid_tuple(tup) 802 803 # ugly hack for GH #836 /home/pietro/nobackup/repo/pandas/pandas/core/indexing.py in _has_valid_tuple(self, key) 148 for i, k in enumerate(key): 149 if i >= self.obj.ndim: --> 150 raise IndexingError('Too many indexers') 151 if not self._has_valid_type(k, i): 152 raise ValueError("Location based indexing can only have [%s] " IndexingError: Too many indexers ``` #### Problem description The raised error, and the message, seem wrong to me. #### Expected Output ``` KeyError: ('a', 'e') ``` This is what I get if I I take a ``DataFrame`` with the same index and do ``` In [7]: df.loc[('a', 'e'), :] ``` By the way, ``s.loc['a', 'b']`` (valid key) works just fine, so this is clearly a problem of missing key, and [the docs](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.loc.html) say "``.loc`` will raise a ``KeyError`` when the items are not found." ... and by the way, I would expect _the following_ to raise an ``IndexingError: Too many indexers``: ``` In [12]: s.loc[('a', 'e'), :] Out[12]: a c 0 d 1 dtype: int64 ``` ... instead the tuple is interpreted as a list of labels rather than as a key, and hence it works "fine". Is this behavior desired? (looks a bit inconsistent to me, but I see that it is generalized, i.e. ``DataFrame``s also work this way) If it is, then it is worth fixing the docs where [they mention](url) "A list or array of labels, e.g. ['a', 'b', 'c']." to also mention tuples. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.7.0-1-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: it_IT.utf8 LOCALE: it_IT.UTF-8 pandas: 0.19.0+196.g5f889a2.dirty nose: 1.3.7 pip: 8.1.2 setuptools: 28.0.0 Cython: 0.23.4 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.8.0.dev0+f80669e xarray: None IPython: 5.1.0.dev sphinx: 1.4.8 patsy: 0.3.0-dev dateutil: 2.5.3 pytz: 2015.7 blosc: None bottleneck: 1.2.0dev tables: 3.2.2 numexpr: 2.6.0 matplotlib: 1.5.3 openpyxl: None xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: 0.9.3 lxml: None bs4: 4.5.1 html5lib: 0.999 httplib2: 0.9.1 apiclient: 1.5.2 sqlalchemy: 1.0.15 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.40.0 pandas_datareader: 0.2.1 </details>
{ "+1": 3, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 3, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14885/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14885/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14886
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14886/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14886/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14886/events
https://github.com/pandas-dev/pandas/pull/14886
195,774,501
MDExOlB1bGxSZXF1ZXN0OTgxMjczNzY=
14,886
BUG: regression in DataFrame.combine_first with integer columns (GH14687)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
5
2016-12-15T10:53:24Z
2016-12-16T09:43:42Z
2016-12-16T09:43:42Z
MEMBER
null
closes #14687
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14886/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14886/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14886.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14886", "merged_at": "2016-12-16T09:43:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14886.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14886" }
https://api.github.com/repos/pandas-dev/pandas/issues/14887
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14887/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14887/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14887/events
https://github.com/pandas-dev/pandas/issues/14887
195,844,468
MDU6SXNzdWUxOTU4NDQ0Njg=
14,887
Add "forward" and "nearest" direction to merge_asof()
{ "avatar_url": "https://avatars.githubusercontent.com/u/453745?v=4", "events_url": "https://api.github.com/users/chrisaycock/events{/privacy}", "followers_url": "https://api.github.com/users/chrisaycock/followers", "following_url": "https://api.github.com/users/chrisaycock/following{/other_user}", "gists_url": "https://api.github.com/users/chrisaycock/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chrisaycock", "id": 453745, "login": "chrisaycock", "node_id": "MDQ6VXNlcjQ1Mzc0NQ==", "organizations_url": "https://api.github.com/users/chrisaycock/orgs", "received_events_url": "https://api.github.com/users/chrisaycock/received_events", "repos_url": "https://api.github.com/users/chrisaycock/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chrisaycock/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chrisaycock/subscriptions", "type": "User", "url": "https://api.github.com/users/chrisaycock" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
4
2016-12-15T16:05:23Z
2017-10-06T14:45:08Z
2017-01-18T16:08:10Z
CONTRIBUTOR
null
Currently `pd.merge_asof()` looks _backwards_, meaning that it gets the last row from the right table whose timestamp is less the left table's timestamp. It might be nice to look _forwards_, meaning get the first row in the right table whose timestamps is greater than the left table's timestamp. And we could have a _nearest_, meaning get the row from the right table whose timestamp is closest to the left table's timestamp regardless of direction. I propose a new `direction` parameter whose default value is `"backward"`, which looks for prior timestamps as `pd.merge_asof()` currently does. A value of `"forward"` will cause cause the function to look for subsequent timestamps. A value of `"nearest"` will look on both directions. Here's a modified example from the docstring: ```python In [16]: left Out[16]: a left_val 0 1 a 1 5 b 2 10 c In [17]: right Out[17]: a right_val 0 1 1 1 2 2 2 3 3 3 6 6 4 7 7 In [18]: pd.merge_asof(left, right, on='a') Out[18]: a left_val right_val 0 1 a 1 1 5 b 3 2 10 c 7 In [19]: pd.merge_asof(left, right, on='a', direction='forward') Out[19]: a left_val right_val 0 1 a 1.0 1 5 b 6.0 2 10 c NaN In [20]: pd.merge_asof(left, right, on='a', direction='nearest') Out[20]: a left_val right_val 0 1 a 1 1 5 b 6 2 10 c 7 ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14887/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14887/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14888
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14888/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14888/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14888/events
https://github.com/pandas-dev/pandas/issues/14888
195,865,769
MDU6SXNzdWUxOTU4NjU3Njk=
14,888
Odd behavior with .resample('SM')
{ "avatar_url": "https://avatars.githubusercontent.com/u/15022098?v=4", "events_url": "https://api.github.com/users/gustavolinari/events{/privacy}", "followers_url": "https://api.github.com/users/gustavolinari/followers", "following_url": "https://api.github.com/users/gustavolinari/following{/other_user}", "gists_url": "https://api.github.com/users/gustavolinari/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gustavolinari", "id": 15022098, "login": "gustavolinari", "node_id": "MDQ6VXNlcjE1MDIyMDk4", "organizations_url": "https://api.github.com/users/gustavolinari/orgs", "received_events_url": "https://api.github.com/users/gustavolinari/received_events", "repos_url": "https://api.github.com/users/gustavolinari/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gustavolinari/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gustavolinari/subscriptions", "type": "User", "url": "https://api.github.com/users/gustavolinari" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "207de5", "default": false, "description": "resample method", "id": 74975453, "name": "Resample", "node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" } ]
closed
false
null
[]
{ "closed_at": "2017-10-28T18:54:27Z", "closed_issues": 764, "created_at": "2017-03-23T13:26:25Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "", "due_on": "2017-10-27T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/46", "id": 2406656, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46/labels", "node_id": "MDk6TWlsZXN0b25lMjQwNjY1Ng==", "number": 46, "open_issues": 0, "state": "closed", "title": "0.21.0", "updated_at": "2018-07-08T21:53:21Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/46" }
4
2016-12-15T17:27:41Z
2017-10-23T08:59:04Z
2017-10-23T08:59:04Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd from pandas import Timestamp example = pd.DataFrame({'aux': {0: Timestamp('2000-01-03 00:00:00'), 1: Timestamp('2000-01-04 00:00:00'), 2: Timestamp('2000-01-05 00:00:00'), 3: Timestamp('2000-01-06 00:00:00'), 4: Timestamp('2000-01-07 00:00:00'), 5: Timestamp('2000-01-10 00:00:00'), 6: Timestamp('2000-01-11 00:00:00'), 7: Timestamp('2000-01-12 00:00:00'), 8: Timestamp('2000-01-13 00:00:00'), 9: Timestamp('2000-01-14 00:00:00'), 10: Timestamp('2000-01-17 00:00:00'), 11: Timestamp('2000-01-18 00:00:00'), 12: Timestamp('2000-01-19 00:00:00'), 13: Timestamp('2000-01-20 00:00:00'), 14: Timestamp('2000-01-21 00:00:00'), 15: Timestamp('2000-01-24 00:00:00'), 16: Timestamp('2000-01-26 00:00:00'), 17: Timestamp('2000-01-27 00:00:00'), 18: Timestamp('2000-01-28 00:00:00'), 19: Timestamp('2000-01-31 00:00:00'), 20: Timestamp('2000-02-01 00:00:00'), 21: Timestamp('2000-02-02 00:00:00'), 22: Timestamp('2000-02-03 00:00:00'), 23: Timestamp('2000-02-04 00:00:00'), 24: Timestamp('2000-02-07 00:00:00'), 25: Timestamp('2000-02-08 00:00:00'), 26: Timestamp('2000-02-09 00:00:00'), 27: Timestamp('2000-02-10 00:00:00'), 28: Timestamp('2000-02-11 00:00:00'), 29: Timestamp('2000-02-14 00:00:00'), 30: Timestamp('2000-02-15 00:00:00'), 31: Timestamp('2000-02-16 00:00:00'), 32: Timestamp('2000-02-17 00:00:00'), 33: Timestamp('2000-02-18 00:00:00'), 34: Timestamp('2000-02-21 00:00:00'), 35: Timestamp('2000-02-22 00:00:00'), 36: Timestamp('2000-02-23 00:00:00'), 37: Timestamp('2000-02-24 00:00:00'), 38: Timestamp('2000-02-25 00:00:00'), 39: Timestamp('2000-02-28 00:00:00'), 40: Timestamp('2000-02-29 00:00:00'), 41: Timestamp('2000-03-01 00:00:00'), 42: Timestamp('2000-03-02 00:00:00'), 43: Timestamp('2000-03-03 00:00:00'), 44: Timestamp('2000-03-08 00:00:00'), 45: Timestamp('2000-03-09 00:00:00'), 46: Timestamp('2000-03-10 00:00:00'), 47: Timestamp('2000-03-13 00:00:00'), 48: Timestamp('2000-03-14 00:00:00'), 49: Timestamp('2000-03-15 00:00:00'), 50: Timestamp('2000-03-16 00:00:00'), 51: Timestamp('2000-03-17 00:00:00'), 52: Timestamp('2000-03-20 00:00:00'), 53: Timestamp('2000-03-21 00:00:00'), 54: Timestamp('2000-03-22 00:00:00'), 55: Timestamp('2000-03-23 00:00:00'), 56: Timestamp('2000-03-24 00:00:00'), 57: Timestamp('2000-03-27 00:00:00'), 58: Timestamp('2000-03-28 00:00:00'), 59: Timestamp('2000-03-29 00:00:00'), 60: Timestamp('2000-03-30 00:00:00'), 61: Timestamp('2000-03-31 00:00:00')}, u'date': {0: Timestamp('2000-01-03 00:00:00'), 1: Timestamp('2000-01-04 00:00:00'), 2: Timestamp('2000-01-05 00:00:00'), 3: Timestamp('2000-01-06 00:00:00'), 4: Timestamp('2000-01-07 00:00:00'), 5: Timestamp('2000-01-10 00:00:00'), 6: Timestamp('2000-01-11 00:00:00'), 7: Timestamp('2000-01-12 00:00:00'), 8: Timestamp('2000-01-13 00:00:00'), 9: Timestamp('2000-01-14 00:00:00'), 10: Timestamp('2000-01-17 00:00:00'), 11: Timestamp('2000-01-18 00:00:00'), 12: Timestamp('2000-01-19 00:00:00'), 13: Timestamp('2000-01-20 00:00:00'), 14: Timestamp('2000-01-21 00:00:00'), 15: Timestamp('2000-01-24 00:00:00'), 16: Timestamp('2000-01-26 00:00:00'), 17: Timestamp('2000-01-27 00:00:00'), 18: Timestamp('2000-01-28 00:00:00'), 19: Timestamp('2000-01-31 00:00:00'), 20: Timestamp('2000-02-01 00:00:00'), 21: Timestamp('2000-02-02 00:00:00'), 22: Timestamp('2000-02-03 00:00:00'), 23: Timestamp('2000-02-04 00:00:00'), 24: Timestamp('2000-02-07 00:00:00'), 25: Timestamp('2000-02-08 00:00:00'), 26: Timestamp('2000-02-09 00:00:00'), 27: Timestamp('2000-02-10 00:00:00'), 28: Timestamp('2000-02-11 00:00:00'), 29: Timestamp('2000-02-14 00:00:00'), 30: Timestamp('2000-02-15 00:00:00'), 31: Timestamp('2000-02-16 00:00:00'), 32: Timestamp('2000-02-17 00:00:00'), 33: Timestamp('2000-02-18 00:00:00'), 34: Timestamp('2000-02-21 00:00:00'), 35: Timestamp('2000-02-22 00:00:00'), 36: Timestamp('2000-02-23 00:00:00'), 37: Timestamp('2000-02-24 00:00:00'), 38: Timestamp('2000-02-25 00:00:00'), 39: Timestamp('2000-02-28 00:00:00'), 40: Timestamp('2000-02-29 00:00:00'), 41: Timestamp('2000-03-01 00:00:00'), 42: Timestamp('2000-03-02 00:00:00'), 43: Timestamp('2000-03-03 00:00:00'), 44: Timestamp('2000-03-08 00:00:00'), 45: Timestamp('2000-03-09 00:00:00'), 46: Timestamp('2000-03-10 00:00:00'), 47: Timestamp('2000-03-13 00:00:00'), 48: Timestamp('2000-03-14 00:00:00'), 49: Timestamp('2000-03-15 00:00:00'), 50: Timestamp('2000-03-16 00:00:00'), 51: Timestamp('2000-03-17 00:00:00'), 52: Timestamp('2000-03-20 00:00:00'), 53: Timestamp('2000-03-21 00:00:00'), 54: Timestamp('2000-03-22 00:00:00'), 55: Timestamp('2000-03-23 00:00:00'), 56: Timestamp('2000-03-24 00:00:00'), 57: Timestamp('2000-03-27 00:00:00'), 58: Timestamp('2000-03-28 00:00:00'), 59: Timestamp('2000-03-29 00:00:00'), 60: Timestamp('2000-03-30 00:00:00'), 61: Timestamp('2000-03-31 00:00:00')}}) print example.set_index('date').resample('SM').last() print example.set_index('date').resample('M').last() print example.set_index('date').resample('W').last() ``` #### Problem description When resampling with 'SM' the values in the 'aux' column have ocurred after or at the resampling date, whereas with 'M' or 'W' (or 'Q', or 'A'...) the values in the 'aux' columns have ocurred before or at the resampling date. #### Expected Output The expected output form the 'SM' resample would be: ``` aux date 2000-01-15 2000-01-14 2000-01-31 2000-01-31 2000-02-15 2000-02-15 2000-02-29 2000-02-29 2000-03-15 2000-03-15 2000-03-31 2000-03-31 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.11.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 23 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.19.1 nose: 1.3.7 pip: 9.0.1 setuptools: 20.3 Cython: 0.22.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 4.0.0 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.2 pytz: 2016.3 blosc: None bottleneck: 1.0.0 tables: 3.2.0 numexpr: 2.5.2 matplotlib: 1.4.3 openpyxl: 1.8.5 xlrd: 0.9.3 xlwt: 1.0.0 xlsxwriter: 0.7.3 lxml: 3.4.4 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.8 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.38.0 pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14888/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14888/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14889
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14889/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14889/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14889/events
https://github.com/pandas-dev/pandas/issues/14889
195,910,456
MDU6SXNzdWUxOTU5MTA0NTY=
14,889
Documentation about HDFStore.select() with stop argument is not clear
{ "avatar_url": "https://avatars.githubusercontent.com/u/7696611?v=4", "events_url": "https://api.github.com/users/antoine-gallix/events{/privacy}", "followers_url": "https://api.github.com/users/antoine-gallix/followers", "following_url": "https://api.github.com/users/antoine-gallix/following{/other_user}", "gists_url": "https://api.github.com/users/antoine-gallix/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/antoine-gallix", "id": 7696611, "login": "antoine-gallix", "node_id": "MDQ6VXNlcjc2OTY2MTE=", "organizations_url": "https://api.github.com/users/antoine-gallix/orgs", "received_events_url": "https://api.github.com/users/antoine-gallix/received_events", "repos_url": "https://api.github.com/users/antoine-gallix/repos", "site_admin": false, "starred_url": "https://api.github.com/users/antoine-gallix/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/antoine-gallix/subscriptions", "type": "User", "url": "https://api.github.com/users/antoine-gallix" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 786, "created_at": "2015-01-13T10:53:19Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/32", "id": 933188, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels", "node_id": "MDk6TWlsZXN0b25lOTMzMTg4", "number": 32, "open_issues": 1053, "state": "open", "title": "Contributions Welcome", "updated_at": "2021-11-21T00:50:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32" }
3
2016-12-15T20:40:23Z
2016-12-16T11:14:35Z
null
NONE
null
After finding a strange behavior in my code, I found out that when using the `stop` parameter in `pandas.HDFStore.select()` of in `pandas.read_hdf()`, the where conditions are applied AFTER the limitation of the output and not before, as I would have expected. I think the documentation of these functions could be a little more clear about the order of operations: - first, data query (file+path in store) with optional limitation by start and stop - then, application of the where argument The documentation could contain something > 'The row limitation with start and stop limit the result of the table query, before the where arguments is applied to the dataframe'
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14889/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14889/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14890
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14890/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14890/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14890/events
https://github.com/pandas-dev/pandas/pull/14890
195,923,329
MDExOlB1bGxSZXF1ZXN0OTgyMzYzNjI=
14,890
DOC: Add documentation about cpplint
{ "avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4", "events_url": "https://api.github.com/users/gfyoung/events{/privacy}", "followers_url": "https://api.github.com/users/gfyoung/followers", "following_url": "https://api.github.com/users/gfyoung/following{/other_user}", "gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gfyoung", "id": 9273653, "login": "gfyoung", "node_id": "MDQ6VXNlcjkyNzM2NTM=", "organizations_url": "https://api.github.com/users/gfyoung/orgs", "received_events_url": "https://api.github.com/users/gfyoung/received_events", "repos_url": "https://api.github.com/users/gfyoung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions", "type": "User", "url": "https://api.github.com/users/gfyoung" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
3
2016-12-15T21:40:07Z
2016-12-16T11:11:05Z
2016-12-16T11:11:01Z
MEMBER
null
1) Minor spelling and command errors. 2) Add that we also use AppVeyor for testing. 3) With the introduction of `cpplint`, document it and how to use. Follow-up to #14814.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14890/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14890/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14890.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14890", "merged_at": "2016-12-16T11:11:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14890.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14890" }
https://api.github.com/repos/pandas-dev/pandas/issues/14891
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14891/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14891/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14891/events
https://github.com/pandas-dev/pandas/pull/14891
195,951,978
MDExOlB1bGxSZXF1ZXN0OTgyNTc5MDQ=
14,891
Add new optional "separator" argument to json_normalize
{ "avatar_url": "https://avatars.githubusercontent.com/u/976970?v=4", "events_url": "https://api.github.com/users/jowens/events{/privacy}", "followers_url": "https://api.github.com/users/jowens/followers", "following_url": "https://api.github.com/users/jowens/following{/other_user}", "gists_url": "https://api.github.com/users/jowens/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jowens", "id": 976970, "login": "jowens", "node_id": "MDQ6VXNlcjk3Njk3MA==", "organizations_url": "https://api.github.com/users/jowens/orgs", "received_events_url": "https://api.github.com/users/jowens/received_events", "repos_url": "https://api.github.com/users/jowens/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jowens/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jowens/subscriptions", "type": "User", "url": "https://api.github.com/users/jowens" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
null
3
2016-12-16T00:23:59Z
2016-12-22T00:06:35Z
2016-12-22T00:06:35Z
NONE
null
- [x] closes #14883 - [x] tests added / passed (added test `test_shallow_nested_with_separator`) - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry (v0.20.0)
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14891/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14891/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14891.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14891", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14891.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14891" }
https://api.github.com/repos/pandas-dev/pandas/issues/14892
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14892/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14892/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14892/events
https://github.com/pandas-dev/pandas/pull/14892
195,965,642
MDExOlB1bGxSZXF1ZXN0OTgyNjc4Njc=
14,892
DOC: fixed typo
{ "avatar_url": "https://avatars.githubusercontent.com/u/2942215?v=4", "events_url": "https://api.github.com/users/smsaladi/events{/privacy}", "followers_url": "https://api.github.com/users/smsaladi/followers", "following_url": "https://api.github.com/users/smsaladi/following{/other_user}", "gists_url": "https://api.github.com/users/smsaladi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/smsaladi", "id": 2942215, "login": "smsaladi", "node_id": "MDQ6VXNlcjI5NDIyMTU=", "organizations_url": "https://api.github.com/users/smsaladi/orgs", "received_events_url": "https://api.github.com/users/smsaladi/received_events", "repos_url": "https://api.github.com/users/smsaladi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/smsaladi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/smsaladi/subscriptions", "type": "User", "url": "https://api.github.com/users/smsaladi" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-12-16T02:17:03Z
2016-12-16T11:25:47Z
2016-12-16T09:18:26Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14892/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14892/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14892.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14892", "merged_at": "2016-12-16T09:18:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14892.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14892" }
https://api.github.com/repos/pandas-dev/pandas/issues/14893
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14893/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14893/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14893/events
https://github.com/pandas-dev/pandas/pull/14893
195,983,232
MDExOlB1bGxSZXF1ZXN0OTgyODAxNTQ=
14,893
TST: to_json keeps column info with empty dataframe (#7445)
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
5
2016-12-16T05:21:07Z
2017-12-20T01:58:29Z
2016-12-16T23:21:07Z
MEMBER
null
- [x] closes #7445 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` Closed by #9805
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14893/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14893/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14893.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14893", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14893.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14893" }
https://api.github.com/repos/pandas-dev/pandas/issues/14894
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14894/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14894/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14894/events
https://github.com/pandas-dev/pandas/issues/14894
195,990,207
MDU6SXNzdWUxOTU5OTAyMDc=
14,894
Improve the performance of instantiating a Series object with dictionary data and a datetimeindex
{ "avatar_url": "https://avatars.githubusercontent.com/u/2685555?v=4", "events_url": "https://api.github.com/users/nateyoder/events{/privacy}", "followers_url": "https://api.github.com/users/nateyoder/followers", "following_url": "https://api.github.com/users/nateyoder/following{/other_user}", "gists_url": "https://api.github.com/users/nateyoder/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nateyoder", "id": 2685555, "login": "nateyoder", "node_id": "MDQ6VXNlcjI2ODU1NTU=", "organizations_url": "https://api.github.com/users/nateyoder/orgs", "received_events_url": "https://api.github.com/users/nateyoder/received_events", "repos_url": "https://api.github.com/users/nateyoder/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nateyoder/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nateyoder/subscriptions", "type": "User", "url": "https://api.github.com/users/nateyoder" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
0
2016-12-16T06:28:25Z
2016-12-17T23:32:00Z
2016-12-17T23:32:00Z
CONTRIBUTOR
null
The current code path always results in an exception on: https://github.com/pandas-dev/pandas/blob/3ac41ab2d7ae446fa04f47ec911003cd722dbd65/pandas/core/series.py#L191 which is then caught. Only a slight performance advantage is seen but hopefully the code change makes it less confusing for newcomers like me. #### Code Sample, a copy-pastable example if possible ```python dr = pd.date_range( start=datetime(2015, 10, 26), end=datetime(2016, 1, 1), freq='10s' ) data = {d: v for d, v in zip(dr, range(len(dr)))} s = Series(data=data, index=dr) ``` #### Problem description The current code path always results in an exception on: https://github.com/pandas-dev/pandas/blob/3ac41ab2d7ae446fa04f47ec911003cd722dbd65/pandas/core/series.py#L191 which is then caught. Only a slight performance advantage is seen but hopefully the code change makes it less confusing for newcomers like me. ASV output of new benchmark Running 2 total benchmarks (2 commits * 1 environments * 1 benchmarks) [ 0.00%] · For pandas commit hash 5f05fdcf: [ 0.00%] ·· Building for conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt................................. [ 0.00%] ·· Benchmarking conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt [ 50.00%] ··· Running ...x.time_series_constructor_no_data_datetime_index 3.26s [ 50.00%] · For pandas commit hash 3ba2cff9: [ 50.00%] ·· Building for conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt... [ 50.00%] ·· Benchmarking conda-py2.7-Cython-matplotlib-numexpr-numpy-openpyxl-pytables-scipy-sqlalchemy-xlrd-xlsxwriter-xlwt [100.00%] ··· Running ...x.time_series_constructor_no_data_datetime_index 3.77s before after ratio [3ba2cff9] [5f05fdcf] - 3.77s 3.26s 0.87 series_methods.series_constructor_dict_data_datetime_index.time_series_constructor_no_data_datetime_index
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14894/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14894/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14895
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14895/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14895/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14895/events
https://github.com/pandas-dev/pandas/pull/14895
195,990,698
MDExOlB1bGxSZXF1ZXN0OTgyODUwOTM=
14,895
Clean up construction of Series with dictionary and datetime index
{ "avatar_url": "https://avatars.githubusercontent.com/u/2685555?v=4", "events_url": "https://api.github.com/users/nateyoder/events{/privacy}", "followers_url": "https://api.github.com/users/nateyoder/followers", "following_url": "https://api.github.com/users/nateyoder/following{/other_user}", "gists_url": "https://api.github.com/users/nateyoder/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nateyoder", "id": 2685555, "login": "nateyoder", "node_id": "MDQ6VXNlcjI2ODU1NTU=", "organizations_url": "https://api.github.com/users/nateyoder/orgs", "received_events_url": "https://api.github.com/users/nateyoder/received_events", "repos_url": "https://api.github.com/users/nateyoder/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nateyoder/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nateyoder/subscriptions", "type": "User", "url": "https://api.github.com/users/nateyoder" }
[ { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
5
2016-12-16T06:31:57Z
2016-12-17T23:32:06Z
2016-12-17T23:32:00Z
CONTRIBUTOR
null
- [X] closes #14894 - [X] tests added / passed - [X] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry Fix usage of fast_multiget with index which was always throwing an exception that was then caught; add ASV that show slight improvement
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14895/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14895/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14895.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14895", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14895.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14895" }
https://api.github.com/repos/pandas-dev/pandas/issues/14896
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14896/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14896/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14896/events
https://github.com/pandas-dev/pandas/issues/14896
196,029,621
MDU6SXNzdWUxOTYwMjk2MjE=
14,896
ENH: add errors=ignore|raise kw to DataFrame.rename
{ "avatar_url": "https://avatars.githubusercontent.com/u/1926457?v=4", "events_url": "https://api.github.com/users/rahulporuri/events{/privacy}", "followers_url": "https://api.github.com/users/rahulporuri/followers", "following_url": "https://api.github.com/users/rahulporuri/following{/other_user}", "gists_url": "https://api.github.com/users/rahulporuri/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rahulporuri", "id": 1926457, "login": "rahulporuri", "node_id": "MDQ6VXNlcjE5MjY0NTc=", "organizations_url": "https://api.github.com/users/rahulporuri/orgs", "received_events_url": "https://api.github.com/users/rahulporuri/received_events", "repos_url": "https://api.github.com/users/rahulporuri/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rahulporuri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rahulporuri/subscriptions", "type": "User", "url": "https://api.github.com/users/rahulporuri" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "009800", "default": false, "description": "Duplicate issue or pull request", "id": 40153326, "name": "Duplicate Report", "node_id": "MDU6TGFiZWw0MDE1MzMyNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
2
2016-12-16T10:40:18Z
2016-12-16T13:49:10Z
2016-12-16T13:49:01Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas df = pandas.DataFrame({'a': [1,2], 'b': [3,4]}) df.rename({'C':'D'}) ``` #### Problem description I expected the method to throw an error, complaining that the key passed via the dictionary isnt a valid column name in the DataFrame. Instead, nothing happens. #### Expected Output some sort of error. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: None pip: 9.0.1 setuptools: 23.1.0 Cython: None numpy: 1.10.4 scipy: None statsmodels: None xarray: None IPython: 4.1.2 sphinx: None patsy: None dateutil: 2.5.2 pytz: 2016.3 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14896/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14896/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14897
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14897/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14897/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14897/events
https://github.com/pandas-dev/pandas/issues/14897
196,034,262
MDU6SXNzdWUxOTYwMzQyNjI=
14,897
DOC : `build` isnt a valid argument to doc/make.py
{ "avatar_url": "https://avatars.githubusercontent.com/u/1926457?v=4", "events_url": "https://api.github.com/users/rahulporuri/events{/privacy}", "followers_url": "https://api.github.com/users/rahulporuri/followers", "following_url": "https://api.github.com/users/rahulporuri/following{/other_user}", "gists_url": "https://api.github.com/users/rahulporuri/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rahulporuri", "id": 1926457, "login": "rahulporuri", "node_id": "MDQ6VXNlcjE5MjY0NTc=", "organizations_url": "https://api.github.com/users/rahulporuri/orgs", "received_events_url": "https://api.github.com/users/rahulporuri/received_events", "repos_url": "https://api.github.com/users/rahulporuri/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rahulporuri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rahulporuri/subscriptions", "type": "User", "url": "https://api.github.com/users/rahulporuri" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
1
2016-12-16T11:03:22Z
2016-12-16T11:11:32Z
2016-12-16T11:11:22Z
NONE
null
#### Code Sample, a copy-pastable example if possible ``` python make.py build ``` #### Problem description the docs - http://pandas.pydata.org/pandas-docs/stable/contributing.html#building-the-documentation mention that in order to do a full clean build, we will have to do ``` python make.py clean python.make.py build ``` but the `build` option doesn't seem to be supported, because running the command raises the error `Do not know how to handle build; valid args are ['all', 'latex', 'zip_html', 'latex_forced', 'upload_stable', 'build_pandas', 'upload_dev', 'upload_stable_pdf', 'upload_dev_pdf', 'auto_debug', 'html', 'clean', 'auto_dev']` #### Expected Output #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: None pip: 9.0.1 setuptools: 23.1.0 Cython: None numpy: 1.10.4 scipy: None statsmodels: None xarray: None IPython: 4.1.2 sphinx: 1.4.1 patsy: None dateutil: 2.5.2 pytz: 2016.3 blosc: None bottleneck: None tables: None numexpr: None matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14897/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14897/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14898
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14898/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14898/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14898/events
https://github.com/pandas-dev/pandas/issues/14898
196,043,155
MDU6SXNzdWUxOTYwNDMxNTU=
14,898
DOC : setting dialect on pandas.read_table overrides a few other kwds
{ "avatar_url": "https://avatars.githubusercontent.com/u/1926457?v=4", "events_url": "https://api.github.com/users/rahulporuri/events{/privacy}", "followers_url": "https://api.github.com/users/rahulporuri/followers", "following_url": "https://api.github.com/users/rahulporuri/following{/other_user}", "gists_url": "https://api.github.com/users/rahulporuri/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rahulporuri", "id": 1926457, "login": "rahulporuri", "node_id": "MDQ6VXNlcjE5MjY0NTc=", "organizations_url": "https://api.github.com/users/rahulporuri/orgs", "received_events_url": "https://api.github.com/users/rahulporuri/received_events", "repos_url": "https://api.github.com/users/rahulporuri/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rahulporuri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rahulporuri/subscriptions", "type": "User", "url": "https://api.github.com/users/rahulporuri" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "5319e7", "default": false, "description": "read_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
5
2016-12-16T11:54:04Z
2016-12-31T15:55:21Z
2016-12-31T15:55:21Z
NONE
null
#### Problem description Correct me if I'm wrong but [TextFileReader](https://github.com/pandas-dev/pandas/blob/master/pandas/io/parsers.py#L691-L700) overwrites the `delimiter`, `quoting` etc kwds if the `dialect` kwarg is passed. But this isn't highlighted in the `pandas.read_table` documentation. I don't know if this was implicit. Sorry for the noise if this is a known issue or if it isn't actually one.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14898/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14898/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14899
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14899/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14899/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14899/events
https://github.com/pandas-dev/pandas/pull/14899
196,060,594
MDExOlB1bGxSZXF1ZXN0OTgzMzU1MzU=
14,899
BLD: swap 3.6-dev and 3.4 builds, reorg build order
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
0
2016-12-16T13:35:42Z
2016-12-16T13:35:47Z
2016-12-16T13:35:47Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14899/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14899/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14899.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14899", "merged_at": "2016-12-16T13:35:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14899.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14899" }
https://api.github.com/repos/pandas-dev/pandas/issues/14900
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14900/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14900/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14900/events
https://github.com/pandas-dev/pandas/issues/14900
196,180,635
MDU6SXNzdWUxOTYxODA2MzU=
14,900
Wrong slicing behavior for DataFrame loc
{ "avatar_url": "https://avatars.githubusercontent.com/u/5506625?v=4", "events_url": "https://api.github.com/users/Ajeet-Ganga/events{/privacy}", "followers_url": "https://api.github.com/users/Ajeet-Ganga/followers", "following_url": "https://api.github.com/users/Ajeet-Ganga/following{/other_user}", "gists_url": "https://api.github.com/users/Ajeet-Ganga/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Ajeet-Ganga", "id": 5506625, "login": "Ajeet-Ganga", "node_id": "MDQ6VXNlcjU1MDY2MjU=", "organizations_url": "https://api.github.com/users/Ajeet-Ganga/orgs", "received_events_url": "https://api.github.com/users/Ajeet-Ganga/received_events", "repos_url": "https://api.github.com/users/Ajeet-Ganga/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Ajeet-Ganga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Ajeet-Ganga/subscriptions", "type": "User", "url": "https://api.github.com/users/Ajeet-Ganga" }
[ { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "0052cc", "default": false, "description": null, "id": 34444536, "name": "Usage Question", "node_id": "MDU6TGFiZWwzNDQ0NDUzNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
5
2016-12-17T00:04:14Z
2016-12-17T00:43:43Z
2016-12-17T00:10:25Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python >>> df 0 1 2 3 0 1 21 51 61 1 2 22 52 62 2 3 23 53 63 >>> df[0:0] Empty DataFrame Columns: [0, 1, 2, 3] Index: [] >>> df.loc[0:0] 0 1 2 3 0 1 21 51 61 ``` #### For loc, slicing is incorrect The behavior exhibited by slicing of loc is incosistent with python array slicing. For [0:0] it should have returned empty, but it is returning a row. #### Expected Output Similar to code show below for python array, pd.DataFrame.loc slicing should produce empty E.g. Following code slices empty for [0:0] ```python >>> l = [0,1,2] >>> l[0:0] [] ``` #### Output of ``pd.show_versions()`` >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 16.1.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 25.2.0 Cython: None numpy: 1.10.4 scipy: 0.17.0 statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.2 pytz: 2016.3 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: 2.2.0-b1 xlrd: 0.9.4 xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: None boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14900/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14900/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14901
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14901/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14901/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14901/events
https://github.com/pandas-dev/pandas/issues/14901
196,226,016
MDU6SXNzdWUxOTYyMjYwMTY=
14,901
BUG: Categorical Series breaks when re-serializing with msgpack.
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
1
2016-12-17T15:00:12Z
2016-12-21T11:28:03Z
2016-12-21T11:28:03Z
CONTRIBUTOR
null
xref #8732 ``` df=pd.DataFrame([[1,'John P. Doe'],[2,'Jane Dove'],[1,'John P. Doe']]) df[1]=pd.Categorical(df[1]) ``` DataFrames work fine ``` In [9]: pd.read_msgpack(df.to_msgpack()).dtypes Out[9]: 0 int64 1 category dtype: object ``` Series are breaking on re-serialization ``` In [10]: pd.read_msgpack(df[1].to_msgpack()) ValueError: cannot specify a dtype with a Categorical unless dtype='category' ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14901/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14901/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14902
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14902/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14902/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14902/events
https://github.com/pandas-dev/pandas/pull/14902
196,228,087
MDExOlB1bGxSZXF1ZXN0OTg0NDcyOTM=
14,902
Catch warning introduced by GH14432 in test case
{ "avatar_url": "https://avatars.githubusercontent.com/u/15064365?v=4", "events_url": "https://api.github.com/users/jonmmease/events{/privacy}", "followers_url": "https://api.github.com/users/jonmmease/followers", "following_url": "https://api.github.com/users/jonmmease/following{/other_user}", "gists_url": "https://api.github.com/users/jonmmease/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jonmmease", "id": 15064365, "login": "jonmmease", "node_id": "MDQ6VXNlcjE1MDY0MzY1", "organizations_url": "https://api.github.com/users/jonmmease/orgs", "received_events_url": "https://api.github.com/users/jonmmease/received_events", "repos_url": "https://api.github.com/users/jonmmease/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jonmmease/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jonmmease/subscriptions", "type": "User", "url": "https://api.github.com/users/jonmmease" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
4
2016-12-17T15:47:33Z
2016-12-17T23:04:24Z
2016-12-17T23:03:34Z
CONTRIBUTOR
null
Follow on to #14432 to catch the newly introduced `FutureWarning` in the `test_groupby_multi_categorical_as_index` test case.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14902/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14902/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14902.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14902", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14902.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14902" }
https://api.github.com/repos/pandas-dev/pandas/issues/14903
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14903/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14903/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14903/events
https://github.com/pandas-dev/pandas/issues/14903
196,234,743
MDU6SXNzdWUxOTYyMzQ3NDM=
14,903
DataFrame.to_xarray() is sorting dimensional coordinates
{ "avatar_url": "https://avatars.githubusercontent.com/u/591458?v=4", "events_url": "https://api.github.com/users/ucyo/events{/privacy}", "followers_url": "https://api.github.com/users/ucyo/followers", "following_url": "https://api.github.com/users/ucyo/following{/other_user}", "gists_url": "https://api.github.com/users/ucyo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ucyo", "id": 591458, "login": "ucyo", "node_id": "MDQ6VXNlcjU5MTQ1OA==", "organizations_url": "https://api.github.com/users/ucyo/orgs", "received_events_url": "https://api.github.com/users/ucyo/received_events", "repos_url": "https://api.github.com/users/ucyo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ucyo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ucyo/subscriptions", "type": "User", "url": "https://api.github.com/users/ucyo" }
[ { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": null, "closed_issues": 2361, "created_at": "2015-02-26T19:29:05Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4", "events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}", "followers_url": "https://api.github.com/users/jorisvandenbossche/followers", "following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}", "gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jorisvandenbossche", "id": 1020496, "login": "jorisvandenbossche", "node_id": "MDQ6VXNlcjEwMjA0OTY=", "organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs", "received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events", "repos_url": "https://api.github.com/users/jorisvandenbossche/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions", "type": "User", "url": "https://api.github.com/users/jorisvandenbossche" }, "description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n", "due_on": null, "html_url": "https://github.com/pandas-dev/pandas/milestone/33", "id": 997544, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels", "node_id": "MDk6TWlsZXN0b25lOTk3NTQ0", "number": 33, "open_issues": 11, "state": "open", "title": "No action", "updated_at": "2021-11-19T17:33:16Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33" }
3
2016-12-17T18:07:18Z
2016-12-17T23:33:30Z
2016-12-17T23:33:19Z
NONE
null
#### Code Sample, a copy-pastable example if possible ```python import pandas as pd import numpy as np rd = np.zeros((4,4), dtype=np.float64) lag = np.arange(4)[::-1] # lag = np.random.randn(4) lev = np.arange(4) iterables = [lag, lev] index = pd.MultiIndex.from_product(iterables, names=['lag','lev']) solution = pd.DataFrame(data=rd.reshape(rd.size, 1),index=index) solution.columns = ['tmp'] solution.to_xarray() ``` Output: ``` <xarray.Dataset> Dimensions: (lag: 4, lev: 4) Coordinates: * lag (lag) int64 0 1 2 3 * lev (lev) int64 0 1 2 3 Data variables: tmp (lag, lev) float64 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... ``` #### Problem description The dimensions of the generated `xarray.Dataset` is sorted in ascending order for `lag`. This is true for any entry (like the commented out `np.random.randn(4)` line) #### Expected Output ``` <xarray.Dataset> Dimensions: (lag: 4, lev: 4) Coordinates: * lag (lag) int64 3 2 1 0 * lev (lev) int64 0 1 2 3 Data variables: tmp (lag, lev) float64 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 ... ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.4.5.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-327.22.2.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: en_US.UTF-8 LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: None pip: 9.0.1 setuptools: 30.2.0 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: 0.8.2 IPython: 5.1.0 sphinx: None patsy: None dateutil: 2.6.0 pytz: 2016.10 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.3 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: None pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: None </details>
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14903/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14903/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14904
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14904/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14904/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14904/events
https://github.com/pandas-dev/pandas/pull/14904
196,235,312
MDExOlB1bGxSZXF1ZXN0OTg0NTEzODQ=
14,904
ENH: Added to_json_schema
{ "avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4", "events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}", "followers_url": "https://api.github.com/users/TomAugspurger/followers", "following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}", "gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TomAugspurger", "id": 1312546, "login": "TomAugspurger", "node_id": "MDQ6VXNlcjEzMTI1NDY=", "organizations_url": "https://api.github.com/users/TomAugspurger/orgs", "received_events_url": "https://api.github.com/users/TomAugspurger/received_events", "repos_url": "https://api.github.com/users/TomAugspurger/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions", "type": "User", "url": "https://api.github.com/users/TomAugspurger" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "06909A", "default": false, "description": "IO issues that don't fit into a more specific label", "id": 2301354, "name": "IO Data", "node_id": "MDU6TGFiZWwyMzAxMzU0", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
77
2016-12-17T18:20:08Z
2017-04-05T02:07:22Z
2017-03-04T11:50:05Z
CONTRIBUTOR
null
Lays the groundwork for (but doesn't close) https://github.com/pandas-dev/pandas/issues/14386 This handles the schema part of the request there. We'll still need to do the work to publish the data to the frontend, but that can be done as a followup. Usage: ```python In [4]: df = pd.DataFrame( ...: {'A': [1, 2, 3], ...: 'B': ['a', 'b', 'c'], ...: 'C': pd.date_range('2016-01-01', freq='d', periods=3), ...: }, index=pd.Index(range(3), name='idx')) ...: df ...: Out[4]: A B C idx 0 1 a 2016-01-01 1 2 b 2016-01-02 2 3 c 2016-01-03 In [5]: In [5]: pd.to_json_schema(df) Out[5]: {'fields': [{'name': 'idx', 'type': 'integer'}, {'name': 'A', 'type': 'integer'}, {'name': 'B', 'type': 'string'}, {'name': 'C', 'type': 'date'}], 'primary_key': 'idx'} ``` --- I think this is useful enough on its own to be part of the public API, so I've documented as such. I've included a placeholder `publish_tableschema` that will *not* be included in the final commit. It's just to make @rgbkrk's life easier for prototyping the nteract frontend. I think the proper solution for publishing the schema + data will have to wait on https://github.com/ipython/ipython/issues/10090
{ "+1": 1, "-1": 0, "confused": 0, "eyes": 0, "heart": 1, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 2, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14904/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14904/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14904.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14904", "merged_at": "2017-03-04T11:50:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14904.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14904" }
https://api.github.com/repos/pandas-dev/pandas/issues/14905
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14905/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14905/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14905/events
https://github.com/pandas-dev/pandas/pull/14905
196,241,838
MDExOlB1bGxSZXF1ZXN0OTg0NTUyNTg=
14,905
PR for Pandas issue #14872 / fillna() TZ datetime64 rounded
{ "avatar_url": "https://avatars.githubusercontent.com/u/19416658?v=4", "events_url": "https://api.github.com/users/RodolfoRFR/events{/privacy}", "followers_url": "https://api.github.com/users/RodolfoRFR/followers", "following_url": "https://api.github.com/users/RodolfoRFR/following{/other_user}", "gists_url": "https://api.github.com/users/RodolfoRFR/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/RodolfoRFR", "id": 19416658, "login": "RodolfoRFR", "node_id": "MDQ6VXNlcjE5NDE2NjU4", "organizations_url": "https://api.github.com/users/RodolfoRFR/orgs", "received_events_url": "https://api.github.com/users/RodolfoRFR/received_events", "repos_url": "https://api.github.com/users/RodolfoRFR/repos", "site_admin": false, "starred_url": "https://api.github.com/users/RodolfoRFR/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/RodolfoRFR/subscriptions", "type": "User", "url": "https://api.github.com/users/RodolfoRFR" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" } ]
closed
false
null
[]
{ "closed_at": "2016-12-24T22:50:46Z", "closed_issues": 107, "created_at": "2016-11-12T15:44:46Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.1", "due_on": "2016-12-24T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/45", "id": 2131068, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45/labels", "node_id": "MDk6TWlsZXN0b25lMjEzMTA2OA==", "number": 45, "open_issues": 0, "state": "closed", "title": "0.19.2", "updated_at": "2017-01-29T09:53:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/45" }
7
2016-12-17T20:43:16Z
2016-12-18T19:42:38Z
2016-12-18T19:42:28Z
NONE
null
Hi Jeff, The change adds a "datetime64[ns, UTC]" object to the _DATELIKE_DTYPES set in pandas/types/common.py. No such object existed in this set and that is the reason the wrong method was executed on the inputs. Object is created with "DatetimeTZDtype.__new__" Thanks, Rodolfo - [X] closes #14872 - [ X] tests added / passed - [ X] passes ``git diff upstream/master | flake8 --diff`` (returns the same number of skips, errors and failures before changes) - [ ] whatsnew entry
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14905/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14905/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14905.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14905", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14905.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14905" }
https://api.github.com/repos/pandas-dev/pandas/issues/14906
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14906/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14906/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14906/events
https://github.com/pandas-dev/pandas/pull/14906
196,258,598
MDExOlB1bGxSZXF1ZXN0OTg0NjQ5ODU=
14,906
TST: Test timedelta arithmetic (#9396)
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "5319e7", "default": false, "description": "Timedelta data type", "id": 49597148, "name": "Timedelta", "node_id": "MDU6TGFiZWw0OTU5NzE0OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-12-18T05:12:17Z
2016-12-18T20:22:30Z
2016-12-18T20:22:25Z
MEMBER
null
- [x] closes #9396 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` Original issue was with using `div` with `datetime.timedelta`. Doesn't appear this was fixed recently.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14906/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14906/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14906.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14906", "merged_at": "2016-12-18T20:22:25Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14906.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14906" }
https://api.github.com/repos/pandas-dev/pandas/issues/14907
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14907/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14907/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14907/events
https://github.com/pandas-dev/pandas/pull/14907
196,262,094
MDExOlB1bGxSZXF1ZXN0OTg0NjY4NTY=
14,907
TST: Groupby/transform with grouped NaN (#9941)
{ "avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4", "events_url": "https://api.github.com/users/mroeschke/events{/privacy}", "followers_url": "https://api.github.com/users/mroeschke/followers", "following_url": "https://api.github.com/users/mroeschke/following{/other_user}", "gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mroeschke", "id": 10647082, "login": "mroeschke", "node_id": "MDQ6VXNlcjEwNjQ3MDgy", "organizations_url": "https://api.github.com/users/mroeschke/orgs", "received_events_url": "https://api.github.com/users/mroeschke/received_events", "repos_url": "https://api.github.com/users/mroeschke/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions", "type": "User", "url": "https://api.github.com/users/mroeschke" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "d7e102", "default": false, "description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate", "id": 2822342, "name": "Missing-data", "node_id": "MDU6TGFiZWwyODIyMzQy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2016-12-18T07:12:07Z
2016-12-18T20:24:15Z
2016-12-18T20:24:12Z
MEMBER
null
- [x] closes #9941 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` The original issue works on 0.19.1 as expected (resulting value is `nan`). Doesn't look like this was fixed in a PR for 0.19.2 or 0.20
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14907/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14907/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14907.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14907", "merged_at": "2016-12-18T20:24:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14907.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14907" }