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/14508
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14508/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14508/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14508/events
https://github.com/pandas-dev/pandas/issues/14508
185,528,693
MDU6SXNzdWUxODU1Mjg2OTM=
14,508
BLD: require more recent cython
{ "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": "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" }
2
2016-10-26T22:36:15Z
2016-12-12T11:48:25Z
2016-12-12T11:48:25Z
CONTRIBUTOR
null
see comments [here](https://github.com/pandas-dev/pandas/pull/14496#issuecomment-256497307) we currently require >= 0.19.1. So probably should move that up. Not super pressing though.
{ "+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/14508/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14508/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14509
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14509/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14509/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14509/events
https://github.com/pandas-dev/pandas/pull/14509
185,529,680
MDExOlB1bGxSZXF1ZXN0OTExMDI4NjY=
14,509
CI: add conda-forge as lowest priority channel
{ "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" }
7
2016-10-26T22:41:50Z
2016-11-18T11:37:18Z
2016-11-18T11:37:18Z
CONTRIBUTOR
null
xref #14495
{ "+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/14509/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14509/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14509.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14509", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14509.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14509" }
https://api.github.com/repos/pandas-dev/pandas/issues/14510
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14510/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14510/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14510/events
https://github.com/pandas-dev/pandas/pull/14510
185,549,425
MDExOlB1bGxSZXF1ZXN0OTExMTcxMTQ=
14,510
ENH : First attempt to add sparse_pivot
{ "avatar_url": "https://avatars.githubusercontent.com/u/741544?v=4", "events_url": "https://api.github.com/users/yupbank/events{/privacy}", "followers_url": "https://api.github.com/users/yupbank/followers", "following_url": "https://api.github.com/users/yupbank/following{/other_user}", "gists_url": "https://api.github.com/users/yupbank/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yupbank", "id": 741544, "login": "yupbank", "node_id": "MDQ6VXNlcjc0MTU0NA==", "organizations_url": "https://api.github.com/users/yupbank/orgs", "received_events_url": "https://api.github.com/users/yupbank/received_events", "repos_url": "https://api.github.com/users/yupbank/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yupbank/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yupbank/subscriptions", "type": "User", "url": "https://api.github.com/users/yupbank" }
[ { "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": "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
[]
null
2
2016-10-27T01:07:26Z
2016-12-17T01:17:03Z
2016-12-16T23:52:31Z
NONE
null
- [ ] Resolves #14493 - [ ] tests added / passed - [ ] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry ``` python sparse_series = pivot_sparse(index=df['a'], columns=df['b'], values=df['c']) ```
{ "+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/14510/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14510/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14510.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14510", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14510.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14510" }
https://api.github.com/repos/pandas-dev/pandas/issues/14511
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14511/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14511/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14511/events
https://github.com/pandas-dev/pandas/issues/14511
185,553,694
MDU6SXNzdWUxODU1NTM2OTQ=
14,511
ENH: Construct Panel from 2D structured array
{ "avatar_url": "https://avatars.githubusercontent.com/u/1216791?v=4", "events_url": "https://api.github.com/users/jzwinck/events{/privacy}", "followers_url": "https://api.github.com/users/jzwinck/followers", "following_url": "https://api.github.com/users/jzwinck/following{/other_user}", "gists_url": "https://api.github.com/users/jzwinck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jzwinck", "id": 1216791, "login": "jzwinck", "node_id": "MDQ6VXNlcjEyMTY3OTE=", "organizations_url": "https://api.github.com/users/jzwinck/orgs", "received_events_url": "https://api.github.com/users/jzwinck/received_events", "repos_url": "https://api.github.com/users/jzwinck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jzwinck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jzwinck/subscriptions", "type": "User", "url": "https://api.github.com/users/jzwinck" }
[]
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-10-27T01:48:04Z
2018-07-06T20:21:11Z
2016-10-27T12:56:57Z
CONTRIBUTOR
null
Right now (0.18.1), I can construct a DataFrame from a "1D" structured array. The NumPy structure field names are used as the Pandas column names. But I cannot construct a Panel from a structured array: ``` arr = np.zeros((3,5), [('x',float), ('y',bool)]) pd.Panel(arr) # error ``` > ValueError: The number of dimensions required is 3, but the number of dimensions of the ndarray given was 2 One "obvious" way is slow: ``` pd.Panel(dict(enumerate(pd.DataFrame(a) for a in arr))) ``` And an efficient way is verbose: ``` dtyp = np.array(arr.dtype.names) dim = arr.shape[0], arr.shape[1], dtyp.shape[0] pd.Panel(pd.DataFrame(arr.ravel()).values.reshape(dim), minor_axis=dtyp) ``` Note that both of the above ways "promote" all values to a single dtype, which in my case (float + bool) becomes object. That's really bad--I need to preserve the original dtypes so that if I do `panel[0].dtypes` matches `arr[0].dtype`. I created #14512 for that problem. Background for this issue is here: http://stackoverflow.com/questions/40259034/construct-pandas-panel-from-2d-structured-numpy-array I'm using Pandas 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/14511/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14511/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14512
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14512/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14512/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14512/events
https://github.com/pandas-dev/pandas/issues/14512
185,560,748
MDU6SXNzdWUxODU1NjA3NDg=
14,512
BUG: Panel does not preserve DataFrame dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1216791?v=4", "events_url": "https://api.github.com/users/jzwinck/events{/privacy}", "followers_url": "https://api.github.com/users/jzwinck/followers", "following_url": "https://api.github.com/users/jzwinck/following{/other_user}", "gists_url": "https://api.github.com/users/jzwinck/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jzwinck", "id": 1216791, "login": "jzwinck", "node_id": "MDQ6VXNlcjEyMTY3OTE=", "organizations_url": "https://api.github.com/users/jzwinck/orgs", "received_events_url": "https://api.github.com/users/jzwinck/received_events", "repos_url": "https://api.github.com/users/jzwinck/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jzwinck/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jzwinck/subscriptions", "type": "User", "url": "https://api.github.com/users/jzwinck" }
[ { "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-10-27T02:51:34Z
2018-07-06T20:21:11Z
2016-10-27T09:14:37Z
CONTRIBUTOR
null
#### A small, complete example of the issue ``` python >>> df = pd.DataFrame({'a':[1,2,3], 'b':[True,False,True]}) >>> df.dtypes a int64 b bool dtype: object >>> pl = pd.Panel({'x':df}) >>> pl.x.dtypes a object b object dtype: object ``` #### Expected Output I expected the dtypes of `df` and `pl.x` to match, the latter was created directly from the former. #### Output of `pd.show_versions()` ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-85-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 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/14512/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14512/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14513
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14513/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14513/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14513/events
https://github.com/pandas-dev/pandas/issues/14513
185,561,159
MDU6SXNzdWUxODU1NjExNTk=
14,513
ImportError: Using URI string without sqlalchemy installed.
{ "avatar_url": "https://avatars.githubusercontent.com/u/7294160?v=4", "events_url": "https://api.github.com/users/jpryda/events{/privacy}", "followers_url": "https://api.github.com/users/jpryda/followers", "following_url": "https://api.github.com/users/jpryda/following{/other_user}", "gists_url": "https://api.github.com/users/jpryda/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jpryda", "id": 7294160, "login": "jpryda", "node_id": "MDQ6VXNlcjcyOTQxNjA=", "organizations_url": "https://api.github.com/users/jpryda/orgs", "received_events_url": "https://api.github.com/users/jpryda/received_events", "repos_url": "https://api.github.com/users/jpryda/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jpryda/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jpryda/subscriptions", "type": "User", "url": "https://api.github.com/users/jpryda" }
[ { "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": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
5
2016-10-27T02:55:01Z
2016-10-29T13:24:28Z
2016-10-29T13:24:19Z
NONE
null
#### Having created a new virtual environment and having installed SQLAlchemy and Pandas, I'm having trouble with the `read_sql_query` function which gives me the following error: `ImportError: Using URI string without sqlalchemy installed.` The code looks something like this: ``` python URI_CONN_STRING = 'postgres://user:pass@ip-address:5432/db-name' df = pd.read_sql_query(sql_query, URI_CONN_STRING, index_col=None, coerce_float=True, params=None, chunksize=None) ``` #### Expected Output I'd expect to get a data frame with the results of the SQL query #### Output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 15.2.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: None pip: 8.1.2 setuptools: 28.6.1 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: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.1.2 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/14513/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14513/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14514
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14514/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14514/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14514/events
https://github.com/pandas-dev/pandas/pull/14514
185,566,782
MDExOlB1bGxSZXF1ZXN0OTExMjg3NDg=
14,514
BUG: Don't parse inline quotes in skipped lines
{ "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": "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": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
7
2016-10-27T03:46:08Z
2016-10-31T20:40:06Z
2016-10-31T20:39:59Z
MEMBER
null
Title is self-explanatory. Closes #14459.
{ "+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/14514/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14514/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14514.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14514", "merged_at": "2016-10-31T20:39:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14514.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14514" }
https://api.github.com/repos/pandas-dev/pandas/issues/14515
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14515/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14515/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14515/events
https://github.com/pandas-dev/pandas/issues/14515
185,577,640
MDU6SXNzdWUxODU1Nzc2NDA=
14,515
Pandas 0.19 read_csv with header=[0, 1] on an empty df throws error
{ "avatar_url": "https://avatars.githubusercontent.com/u/1311091?v=4", "events_url": "https://api.github.com/users/kaloramik/events{/privacy}", "followers_url": "https://api.github.com/users/kaloramik/followers", "following_url": "https://api.github.com/users/kaloramik/following{/other_user}", "gists_url": "https://api.github.com/users/kaloramik/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kaloramik", "id": 1311091, "login": "kaloramik", "node_id": "MDQ6VXNlcjEzMTEwOTE=", "organizations_url": "https://api.github.com/users/kaloramik/orgs", "received_events_url": "https://api.github.com/users/kaloramik/received_events", "repos_url": "https://api.github.com/users/kaloramik/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kaloramik/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kaloramik/subscriptions", "type": "User", "url": "https://api.github.com/users/kaloramik" }
[ { "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": "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-10-27T05:37:46Z
2016-11-22T11:24:11Z
2016-11-22T11:24:11Z
NONE
null
#### Pandas 0.19 incorrectly handles empty dataframe files with multi index columns ``` python import pandas as pd import tempfile df = pd.DataFrame.from_records([], columns=['col_1', 'col_2']) joined_df_in = pd.concat([df, df], keys=['a', 'b'], axis=1) joined_df_in.reset_index(drop=True, inplace=True) with tempfile.NamedTemporaryFile(delete=False) as f: joined_df_in.to_csv(f.name, index=False) ``` What the file looks like ``` a,a,b,b col_1,col_2,col_1,col_2 ``` #### Expected Output ``` python # in pandas 0.18.1 pd.read_csv(f.name, header=[0,1]) ``` yields what we expect, an empty MultiIndex data frame ``` (a, col_1) (a, col_2) (b, col_1) (b, col_2) ``` ``` python # in pandas 0.19 pd.read_csv(f.name, header=[0,1]) ``` Throws ``` --------------------------------------------------------------------------- CParserError Traceback (most recent call last) <ipython-input-10-1051c5f9aa58> in <module>() ----> 1 pd.read_csv(f.name, header=[0,1]) /Users/mik-OD/anaconda/envs/signals/lib/python3.5/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, 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, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision) 643 skip_blank_lines=skip_blank_lines) 644 --> 645 return _read(filepath_or_buffer, kwds) 646 647 parser_f.__name__ = name /Users/mik-OD/anaconda/envs/signals/lib/python3.5/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds) 386 387 # Create the parser. --> 388 parser = TextFileReader(filepath_or_buffer, **kwds) 389 390 if (nrows is not None) and (chunksize is not None): /Users/mik-OD/anaconda/envs/signals/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, f, engine, **kwds) 727 self.options['has_index_names'] = kwds['has_index_names'] 728 --> 729 self._make_engine(self.engine) 730 731 def close(self): /Users/mik-OD/anaconda/envs/signals/lib/python3.5/site-packages/pandas/io/parsers.py in _make_engine(self, engine) 920 def _make_engine(self, engine='c'): 921 if engine == 'c': --> 922 self._engine = CParserWrapper(self.f, **self.options) 923 else: 924 if engine == 'python': /Users/mik-OD/anaconda/envs/signals/lib/python3.5/site-packages/pandas/io/parsers.py in __init__(self, src, **kwds) 1387 kwds['allow_leading_cols'] = self.index_col is not False 1388 -> 1389 self._reader = _parser.TextReader(src, **kwds) 1390 1391 # XXX pandas/parser.pyx in pandas.parser.TextReader.__cinit__ (pandas/parser.c:5811)() pandas/parser.pyx in pandas.parser.TextReader._get_header (pandas/parser.c:8615)() CParserError: Passed header=[0,1], len of 2, but only 2 lines in file ``` #### Expected Output #### Output of `pd.show_versions()` <details> For pandas 0.81 ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.0.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.1 scipy: 0.17.1 statsmodels: None xarray: None IPython: 5.0.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: None tables: 3.2.3.1 numexpr: 2.6.1 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.1 pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext) jinja2: 2.7.3 boto: 2.40.0 pandas_datareader: None ``` For pandas 0.19 ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.0.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.1 scipy: 0.17.1 statsmodels: None xarray: None IPython: 5.0.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: None tables: 3.2.3.1 numexpr: 2.6.1 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.1 pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext) jinja2: 2.7.3 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/14515/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14515/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14516
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14516/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14516/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14516/events
https://github.com/pandas-dev/pandas/pull/14516
185,585,468
MDExOlB1bGxSZXF1ZXN0OTExNDE1MTQ=
14,516
MAINT: Expand lint for *.py
{ "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-10-27T06:41:56Z
2016-10-28T08:38:03Z
2016-10-28T08:37:55Z
MEMBER
null
Expand lint to include all Python files, excluding the directories `pandas/rpy` (deprecated and soon to be removed) and `pandas/src` (C code).
{ "+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/14516/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14516/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14516.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14516", "merged_at": "2016-10-28T08:37:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14516.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14516" }
https://api.github.com/repos/pandas-dev/pandas/issues/14517
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14517/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14517/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14517/events
https://github.com/pandas-dev/pandas/issues/14517
185,617,419
MDU6SXNzdWUxODU2MTc0MTk=
14,517
Rolling window and np.nanmean outputs only NaN
{ "avatar_url": "https://avatars.githubusercontent.com/u/7217274?v=4", "events_url": "https://api.github.com/users/ngenain/events{/privacy}", "followers_url": "https://api.github.com/users/ngenain/followers", "following_url": "https://api.github.com/users/ngenain/following{/other_user}", "gists_url": "https://api.github.com/users/ngenain/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ngenain", "id": 7217274, "login": "ngenain", "node_id": "MDQ6VXNlcjcyMTcyNzQ=", "organizations_url": "https://api.github.com/users/ngenain/orgs", "received_events_url": "https://api.github.com/users/ngenain/received_events", "repos_url": "https://api.github.com/users/ngenain/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ngenain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ngenain/subscriptions", "type": "User", "url": "https://api.github.com/users/ngenain" }
[ { "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": "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-10-27T09:29:04Z
2016-10-27T12:01:15Z
2016-10-27T10:19:48Z
NONE
null
Hi, I am having an issue with the rolling apply method combinated with numpy's nanmean method. Here is my isssue: ``` python import pandas as pd import numpy as np >>> df = pd.DataFrame({'A': [np.nan, np.nan, np.nan, 5, np.nan, np.nan]}) >>> df A 0 NaN 1 NaN 2 NaN 3 5.0 4 NaN 5 NaN >>> df.rolling(3).apply(np.nanmean) A 0 NaN 1 NaN 2 NaN 3 NaN 4 NaN 5 NaN ``` #### Expected Output After index 3 I was expecting to see 5 in every line, how come I got only Nan? Thanks for your help! #### Output of `pd.show_versions()` <details> # Paste the output here ## INSTALLED VERSIONS commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-100-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 24.0.3 Cython: None numpy: 1.11.2 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.0.0 sphinx: None patsy: 0.4.1 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: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.6.1 (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/14517/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14517/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14518
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14518/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14518/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14518/events
https://github.com/pandas-dev/pandas/issues/14518
185,629,599
MDU6SXNzdWUxODU2Mjk1OTk=
14,518
ENH: add np.nan* functions to map for groupby/rolling/resample aggregators
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "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": "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": "d4c5f9", "default": false, "description": "rolling, ewma, expanding", "id": 1045950827, "name": "Window", "node_id": "MDU6TGFiZWwxMDQ1OTUwODI3", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Window" } ]
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" }
4
2016-10-27T10:24:12Z
2021-05-02T00:40:46Z
null
CONTRIBUTOR
null
xref #14517 [here](https://github.com/pandas-dev/pandas/blob/master/pandas/core/base.py#L275) we define mappings for numpy functions when they are used in aggregation functions, e.g. `df.groupby(...).apply(np.mean)` is mapped to `df.groupby(..).mean()` these are much more performant when used this way and have more typical pandas semantics. This issue is about adding the `np.nan*` functions (e.g. `np.nanmean`) and such. The only thing tricky is that these must be conditionally added based on numpy version, and need testing! (currently tests for this type of mapping is spread across tests for groupby/rolling/resampling), so tests need to be added in various locations, with a possiblity of moving the common parts of this to a single location.
{ "+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/14518/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14518/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14519
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14519/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14519/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14519/events
https://github.com/pandas-dev/pandas/issues/14519
185,690,343
MDU6SXNzdWUxODU2OTAzNDM=
14,519
COMPAT: openpyxl
{ "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": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" }, { "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": 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-10-27T14:48:34Z
2017-01-21T16:30:07Z
2017-01-21T16:30:07Z
MEMBER
null
Just noticed in one of the test suites: ``` home/travis/miniconda/envs/pandas/lib/python3.4/site-packages/openpyxl/worksheet/worksheet.py:300: UserWarning: Using a coordinate with ws.cell is deprecated. Use ws[coordinate] instead warn("Using a coordinate with ws.cell is deprecated. Use ws[coordinate] instead") ```
{ "+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/14519/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14519/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14520
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14520/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14520/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14520/events
https://github.com/pandas-dev/pandas/pull/14520
185,699,955
MDExOlB1bGxSZXF1ZXN0OTEyMjI5OTc=
14,520
BUG: don't close user-provided file handles in C parser (GH14418)
{ "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": "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": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
1
2016-10-27T15:21:19Z
2016-11-02T11:27:41Z
2016-11-02T11:27:41Z
MEMBER
null
Closes #14418
{ "+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/14520/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14520/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14520.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14520", "merged_at": "2016-11-02T11:27:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14520.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14520" }
https://api.github.com/repos/pandas-dev/pandas/issues/14521
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14521/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14521/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14521/events
https://github.com/pandas-dev/pandas/issues/14521
185,702,528
MDU6SXNzdWUxODU3MDI1Mjg=
14,521
TypeError when serializing series.tolist() to JSON
{ "avatar_url": "https://avatars.githubusercontent.com/u/1038478?v=4", "events_url": "https://api.github.com/users/Dmitrii-I/events{/privacy}", "followers_url": "https://api.github.com/users/Dmitrii-I/followers", "following_url": "https://api.github.com/users/Dmitrii-I/following{/other_user}", "gists_url": "https://api.github.com/users/Dmitrii-I/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Dmitrii-I", "id": 1038478, "login": "Dmitrii-I", "node_id": "MDQ6VXNlcjEwMzg0Nzg=", "organizations_url": "https://api.github.com/users/Dmitrii-I/orgs", "received_events_url": "https://api.github.com/users/Dmitrii-I/received_events", "repos_url": "https://api.github.com/users/Dmitrii-I/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Dmitrii-I/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Dmitrii-I/subscriptions", "type": "User", "url": "https://api.github.com/users/Dmitrii-I" }
[ { "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": "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" } ]
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-10-27T15:30:24Z
2016-10-29T11:09:57Z
2016-10-28T21:07:27Z
NONE
null
The `json` library, `encoder` module, raises a `TypeError` exception, which I think should not be raised. Hence I think the `Series.tolist()` method may be at fault here and not `json` standard library. ``` python import pandas as pd import json s = pd.Series([1, 2, 3]) json.dumps(s.tolist()) ``` Gives: ``` Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.4/json/__init__.py", line 230, in dumps return _default_encoder.encode(obj) File "/usr/lib/python3.4/json/encoder.py", line 192, in encode chunks = self.iterencode(o, _one_shot=True) File "/usr/lib/python3.4/json/encoder.py", line 250, in iterencode return _iterencode(o, 0) File "/usr/lib/python3.4/json/encoder.py", line 173, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError: 1 is not JSON serializable ``` But ``` python import pandas as pd import json s = pd.Series([1, 2, 3]) json.dumps(s.values.tolist()) ``` Works: ``` '[1, 2, 3]' ``` I am aware of `Series.to_json()` method, but I need to insert the values first into a nested dictionary which is only later serialized to JSON. That is how I came across this behaviour. #### Output of `pd.show_versions()` ``` INSTALLED VERSIONS ------------------ commit: None python: 3.4.4.final.0 python-bits: 64 OS: Linux OS-release: 3.2.0-4-amd64 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.0 nose: None pip: 8.1.2 setuptools: 20.6.7 Cython: 0.24 numpy: 1.11.0 scipy: 0.18.0 statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2015.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: 0.999 httplib2: 0.9.2 apiclient: None sqlalchemy: None pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext lo64) jinja2: None boto: None ```
{ "+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/14521/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14521/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14522
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14522/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14522/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14522/events
https://github.com/pandas-dev/pandas/issues/14522
185,706,856
MDU6SXNzdWUxODU3MDY4NTY=
14,522
Categorical.searchsorted() uses lexical order instead of the provided categorical order
{ "avatar_url": "https://avatars.githubusercontent.com/u/912906?v=4", "events_url": "https://api.github.com/users/golobor/events{/privacy}", "followers_url": "https://api.github.com/users/golobor/followers", "following_url": "https://api.github.com/users/golobor/following{/other_user}", "gists_url": "https://api.github.com/users/golobor/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/golobor", "id": 912906, "login": "golobor", "node_id": "MDQ6VXNlcjkxMjkwNg==", "organizations_url": "https://api.github.com/users/golobor/orgs", "received_events_url": "https://api.github.com/users/golobor/received_events", "repos_url": "https://api.github.com/users/golobor/repos", "site_admin": false, "starred_url": "https://api.github.com/users/golobor/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/golobor/subscriptions", "type": "User", "url": "https://api.github.com/users/golobor" }
[ { "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" } ]
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-10-27T15:45:30Z
2016-12-30T21:43:21Z
2016-12-30T21:43:21Z
NONE
null
Hi, it seems that the searchsorted() method of Categorical series does not take into account the specific order of the categories. #### An slightly modified example from the API documentation ``` python x = pd.Categorical( ['cheese', 'apple', 'bread', 'bread', 'milk'], categories=['cheese', 'milk', 'apple', 'bread'], ordered=True) print('Unsorted:', x) x_sort = x.sort_values() print('Sorted:', x_sort) print('Searchsorted apple:', x_sort.searchsorted('apple')) print('Searchsorted milk:', x_sort.searchsorted('milk')) ``` #### Output Unsorted: [cheese, apple, bread, bread, milk] Categories (4, object): [cheese < milk < apple < bread] Sorted: [cheese, milk, apple, bread, bread] Categories (4, object): [cheese < milk < apple < bread] Searchsorted apple: [0] Searchsorted milk: [5] As you can see, "apple" is inserted at the beginning (b/c it starts with an 'a') and "milk" is inserted at the end, even though the order of both categories is between "cheese" and "bread". Unfortunately, the API documentation does not specify is this is the expected behavior, but it seems inconsistent with the fact that .sort_values() does use the categorical order. #### 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-34-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.0 nose: None pip: 8.1.2 setuptools: 25.1.6 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.6.1 xarray: None IPython: 5.0.0 sphinx: None patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: None tables: None numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: None xlrd: 1.0.0 xlwt: 1.1.2 xlsxwriter: None lxml: None bs4: 4.5.1 html5lib: None httplib2: 0.9.2 apiclient: 1.5.1 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/14522/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14522/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14523
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14523/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14523/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14523/events
https://github.com/pandas-dev/pandas/issues/14523
185,738,211
MDU6SXNzdWUxODU3MzgyMTE=
14,523
Adding a list of timedelta to a column does not work for tzlocal() timezones
{ "avatar_url": "https://avatars.githubusercontent.com/u/5473040?v=4", "events_url": "https://api.github.com/users/ekipmanager/events{/privacy}", "followers_url": "https://api.github.com/users/ekipmanager/followers", "following_url": "https://api.github.com/users/ekipmanager/following{/other_user}", "gists_url": "https://api.github.com/users/ekipmanager/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ekipmanager", "id": 5473040, "login": "ekipmanager", "node_id": "MDQ6VXNlcjU0NzMwNDA=", "organizations_url": "https://api.github.com/users/ekipmanager/orgs", "received_events_url": "https://api.github.com/users/ekipmanager/received_events", "repos_url": "https://api.github.com/users/ekipmanager/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ekipmanager/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ekipmanager/subscriptions", "type": "User", "url": "https://api.github.com/users/ekipmanager" }
[ { "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" }, { "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": 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-10-27T17:56:13Z
2016-10-28T20:46:56Z
2016-10-28T20:45:26Z
NONE
null
#### A small, complete example of the issue When you try to add a list of timedelta to a column that is datetime the behavior changes if the tzinfo is coming from datetime.tz.tzlocal(). In the example below I make two columns of timestamps, on with tz.tzlocal() and the other tz.tzutc() and then try to add a list of timedelta to it. The tzutc() ones behave as expected but the ones with tzloca() only the first row does the addition properly and for the rest the addition is done to unix epoch of 0! ``` python # Your code here import datetime from dateutil import tz import pandas as pd dates1 = [datetime.datetime(2013, 9, 20,13,00, tzinfo=tz.tzlocal()) + datetime.timedelta(minutes=100*i) for i in range(10)] dates2 = [datetime.datetime(2013, 9, 20,13,00, tzinfo=tz.tzutc()) + datetime.timedelta(minutes=100*i) for i in range(10)] df = pd.DataFrame({"start1": dates1, "start2": dates2}) delta = [datetime.timedelta(seconds=x) for x in range(10)] df['end1'] = df['start1'] + delta df['end2'] = df['start2'] + delta df ``` #### Expected Output ``` start1 start2 \ ``` 0 2013-09-20 13:00:00-07:00 2013-09-20 13:00:00+00:00 1 2013-09-20 14:40:00-07:00 2013-09-20 14:40:00+00:00 2 2013-09-20 16:20:00-07:00 2013-09-20 16:20:00+00:00 3 2013-09-20 18:00:00-07:00 2013-09-20 18:00:00+00:00 4 2013-09-20 19:40:00-07:00 2013-09-20 19:40:00+00:00 5 2013-09-20 21:20:00-07:00 2013-09-20 21:20:00+00:00 6 2013-09-20 23:00:00-07:00 2013-09-20 23:00:00+00:00 7 2013-09-21 00:40:00-07:00 2013-09-21 00:40:00+00:00 8 2013-09-21 02:20:00-07:00 2013-09-21 02:20:00+00:00 9 2013-09-21 04:00:00-07:00 2013-09-21 04:00:00+00:00 ``` end1 end2 ``` 0 2013-09-20 13:00:00-07:00 2013-09-20 13:00:00+00:00 1 **2013-09-20 13:00:01-07:00** 2013-09-20 14:40:01+00:00 2 **2013-09-20 13:00:02-07:00** 2013-09-20 16:20:02+00:00 3 **2013-09-20 13:00:03-07:00** 2013-09-20 18:00:03+00:00 4 **2013-09-20 13:00:04-07:00** 2013-09-20 19:40:04+00:00 5 **2013-09-20 13:00:05-07:00** 2013-09-20 21:20:05+00:00 6 **2013-09-20 13:00:06-07:00** 2013-09-20 23:00:06+00:00 7 **2013-09-20 13:00:07-07:00** 2013-09-21 00:40:07+00:00 8 **2013-09-20 13:00:08-07:00** 2013-09-21 02:20:08+00:00 9 **2013-09-20 13:00:09-07:00** 2013-09-21 04:00:09+00:00 #### Output of `pd.show_versions()` <details> # Paste the output here ## INSTALLED VERSIONS commit: None python: 2.7.11.final.0 python-bits: 64 OS: Linux OS-release: 4.7.4-100.fc23.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.utf8 pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 18.0.1 Cython: 0.23.4 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.1.1 sphinx: 1.2.3 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 0.6.0 tables: None numexpr: 2.4.6 matplotlib: 1.5.1 openpyxl: 1.8.6 xlrd: None xlwt: None xlsxwriter: None lxml: 3.4.4 bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: 2.6.1 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.41.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/14523/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14523/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14524
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14524/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14524/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14524/events
https://github.com/pandas-dev/pandas/issues/14524
185,758,344
MDU6SXNzdWUxODU3NTgzNDQ=
14,524
Pandas 0.18.1 and 0.19.0 have different (and confusing) handling of TZ when subtracting Timedelta series vs subtracting single Timedelta
{ "avatar_url": "https://avatars.githubusercontent.com/u/5013264?v=4", "events_url": "https://api.github.com/users/TimTimMadden/events{/privacy}", "followers_url": "https://api.github.com/users/TimTimMadden/followers", "following_url": "https://api.github.com/users/TimTimMadden/following{/other_user}", "gists_url": "https://api.github.com/users/TimTimMadden/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/TimTimMadden", "id": 5013264, "login": "TimTimMadden", "node_id": "MDQ6VXNlcjUwMTMyNjQ=", "organizations_url": "https://api.github.com/users/TimTimMadden/orgs", "received_events_url": "https://api.github.com/users/TimTimMadden/received_events", "repos_url": "https://api.github.com/users/TimTimMadden/repos", "site_admin": false, "starred_url": "https://api.github.com/users/TimTimMadden/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/TimTimMadden/subscriptions", "type": "User", "url": "https://api.github.com/users/TimTimMadden" }
[ { "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": "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" }, { "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": 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" }
6
2016-10-27T19:26:29Z
2016-10-30T17:29:57Z
2016-10-29T15:00:31Z
NONE
null
#### A small, complete example of the issue Apologies if this is already a known issue: I've not found anything similar in my googling, but my google-fu may have let me down. When adding a single time delta to a time column with non-naive TZs, in pandas 0.19.0 this produces an array which still has the correct timezone. However, if adding an array of time deltas, the timezone is dropped and a dtype of <M8 is returned. ``` python # Your code here import pandas as pd df = pd.DataFrame(pd.date_range(start=pd.Timestamp('2016-01-01 00:00:00+00'), end=pd.Timestamp('2016-01-01 23:59:59+00'), freq='H')) df.columns = ['a'] df.a.dtype # Both 0.19.0 and 0.18.1 here return datetime64[ns, UTC] df.a # Here, the +00 is visible. df['b'] = df['a'].subtract(pd.Timedelta(seconds=60*60)) df['b'].dtype # Here, 0.18.1 returns dtype('<M8[ns]'), while 0.19.0 returns datetime64[ns, UTC] df.b # Here, 0.19.0 will display the +00 while 0.18.1 will drop the TZ alteration df['c'] = df['a'].subtract(df['b'] - df['a']) # Here, pandas 0.18.1 Fails due to trying to subtract a known timezone from a timezone-naive datetime. df.c.dtype # Here, 0.19.0 returns dtype('<M8[ns]') df.c # Here, 0.19.0 will not show the +00 TZ alteration. ``` #### Expected Output I am not sure what the expected output should be. From my point of view, subtracting a Timedelta from a TZ specific timestamp should maintain the TZ. This is what appears to have happened between version 0.18.1 and 0.19.0 for single time deltas. However, I also think that the behaviour between the two cases above (single timedeltas and series of timedeltas) should be consistent. Please clarify if I've understood this correctly! ``` >> df.a.dtype datetime64[ns, UTC] >> df.a 0 2016-01-01 00:00:00+00:00 1 2016-01-01 01:00:00+00:00 2 2016-01-01 02:00:00+00:00 3 2016-01-01 03:00:00+00:00 4 2016-01-01 04:00:00+00:00 5 2016-01-01 05:00:00+00:00 6 2016-01-01 06:00:00+00:00 7 2016-01-01 07:00:00+00:00 8 2016-01-01 08:00:00+00:00 9 2016-01-01 09:00:00+00:00 10 2016-01-01 10:00:00+00:00 11 2016-01-01 11:00:00+00:00 12 2016-01-01 12:00:00+00:00 13 2016-01-01 13:00:00+00:00 14 2016-01-01 14:00:00+00:00 15 2016-01-01 15:00:00+00:00 16 2016-01-01 16:00:00+00:00 17 2016-01-01 17:00:00+00:00 18 2016-01-01 18:00:00+00:00 19 2016-01-01 19:00:00+00:00 20 2016-01-01 20:00:00+00:00 21 2016-01-01 21:00:00+00:00 22 2016-01-01 22:00:00+00:00 23 2016-01-01 23:00:00+00:00 Name: a, dtype: datetime64[ns, UTC] >> df.b.dtype datetime64[ns, UTC] >> df.b 0 2015-12-31 23:00:00+00:00 1 2016-01-01 00:00:00+00:00 2 2016-01-01 01:00:00+00:00 3 2016-01-01 02:00:00+00:00 4 2016-01-01 03:00:00+00:00 5 2016-01-01 04:00:00+00:00 6 2016-01-01 05:00:00+00:00 7 2016-01-01 06:00:00+00:00 8 2016-01-01 07:00:00+00:00 9 2016-01-01 08:00:00+00:00 10 2016-01-01 09:00:00+00:00 11 2016-01-01 10:00:00+00:00 12 2016-01-01 11:00:00+00:00 13 2016-01-01 12:00:00+00:00 14 2016-01-01 13:00:00+00:00 15 2016-01-01 14:00:00+00:00 16 2016-01-01 15:00:00+00:00 17 2016-01-01 16:00:00+00:00 18 2016-01-01 17:00:00+00:00 19 2016-01-01 18:00:00+00:00 20 2016-01-01 19:00:00+00:00 21 2016-01-01 20:00:00+00:00 22 2016-01-01 21:00:00+00:00 23 2016-01-01 22:00:00+00:00 Name: b, dtype: datetime64[ns, UTC] >> df.c.dtype datetime64[ns, UTC] >> df.c 0 2016-01-01 01:00:00+00 1 2016-01-01 02:00:00+00 2 2016-01-01 03:00:00+00 3 2016-01-01 04:00:00+00 4 2016-01-01 05:00:00+00 5 2016-01-01 06:00:00+00 6 2016-01-01 07:00:00+00 7 2016-01-01 08:00:00+00 8 2016-01-01 09:00:00+00 9 2016-01-01 10:00:00+00 10 2016-01-01 11:00:00+00 11 2016-01-01 12:00:00+00 12 2016-01-01 13:00:00+00 13 2016-01-01 14:00:00+00 14 2016-01-01 15:00:00+00 15 2016-01-01 16:00:00+00 16 2016-01-01 17:00:00+00 17 2016-01-01 18:00:00+00 18 2016-01-01 19:00:00+00 19 2016-01-01 20:00:00+00 20 2016-01-01 21:00:00+00 21 2016-01-01 22:00:00+00 22 2016-01-01 23:00:00+00 23 2016-01-02 00:00:00+00 Name: c, dtype: datetime64[ns, UTC] ``` #### Output of `pd.show_versions()` (I have tested in two virtualenvs, the only difference between the two being the python version) <details> # Paste the output here ## INSTALLED VERSIONS commit: None python: 2.7.10.final.0 python-bits: 64 OS: Darwin OS-release: 14.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 28.6.0 Cython: None numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 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/14524/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14524/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14525
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14525/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14525/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14525/events
https://github.com/pandas-dev/pandas/issues/14525
185,798,211
MDU6SXNzdWUxODU3OTgyMTE=
14,525
Inconsistent error raising in indexing
{ "avatar_url": "https://avatars.githubusercontent.com/u/5199408?v=4", "events_url": "https://api.github.com/users/cyrusmaher/events{/privacy}", "followers_url": "https://api.github.com/users/cyrusmaher/followers", "following_url": "https://api.github.com/users/cyrusmaher/following{/other_user}", "gists_url": "https://api.github.com/users/cyrusmaher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cyrusmaher", "id": 5199408, "login": "cyrusmaher", "node_id": "MDQ6VXNlcjUxOTk0MDg=", "organizations_url": "https://api.github.com/users/cyrusmaher/orgs", "received_events_url": "https://api.github.com/users/cyrusmaher/received_events", "repos_url": "https://api.github.com/users/cyrusmaher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cyrusmaher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cyrusmaher/subscriptions", "type": "User", "url": "https://api.github.com/users/cyrusmaher" }
[ { "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-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" }
2
2016-10-27T22:41:30Z
2019-11-07T22:13:28Z
2019-11-07T22:13:28Z
CONTRIBUTOR
null
#### A small, complete example of the issue ``` python x = np.random.randn(2, 2) y = pd.Series(range(2)) y.loc[range(2)] = x # succeeds y.loc[:] = x # fails ``` #### Expected Output Since we're assigning a 2D array to a 1D vector that is smaller than the raveled array, I would expect both assignments to fail.
{ "+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/14525/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14525/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14526
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14526/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14526/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14526/events
https://github.com/pandas-dev/pandas/pull/14526
185,818,740
MDExOlB1bGxSZXF1ZXN0OTEzMDg4NDY=
14,526
ENH: Added optional pickle protocol version argument to pandas.to_pickle()
{ "avatar_url": "https://avatars.githubusercontent.com/u/15187637?v=4", "events_url": "https://api.github.com/users/beverast/events{/privacy}", "followers_url": "https://api.github.com/users/beverast/followers", "following_url": "https://api.github.com/users/beverast/following{/other_user}", "gists_url": "https://api.github.com/users/beverast/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/beverast", "id": 15187637, "login": "beverast", "node_id": "MDQ6VXNlcjE1MTg3NjM3", "organizations_url": "https://api.github.com/users/beverast/orgs", "received_events_url": "https://api.github.com/users/beverast/received_events", "repos_url": "https://api.github.com/users/beverast/repos", "site_admin": false, "starred_url": "https://api.github.com/users/beverast/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/beverast/subscriptions", "type": "User", "url": "https://api.github.com/users/beverast" }
[ { "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": "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
[]
null
4
2016-10-28T01:28:01Z
2017-05-05T10:47:19Z
2016-12-30T21:22:51Z
NONE
null
- [ ] closes #14488 - [ ] tests added / passed - [ ] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry … :issue:'14488'
{ "+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/14526/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14526/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14526.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14526", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14526.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14526" }
https://api.github.com/repos/pandas-dev/pandas/issues/14527
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14527/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14527/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14527/events
https://github.com/pandas-dev/pandas/pull/14527
185,884,552
MDExOlB1bGxSZXF1ZXN0OTEzNTM5NzM=
14,527
BUG/ERR: raise correct error when sql driver is not installed
{ "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": "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": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
1
2016-10-28T09:59:03Z
2016-10-29T13:24:19Z
2016-10-29T13:24:19Z
MEMBER
null
Closes #14513 When the driver was not installed, but sqlalchemy itself was, when passing a URI string, you got an error indicating that SQLAlchemy was not installed, instead of the driver not being installed. This was because the import error for the driver was captured as import error for sqlalchemy.
{ "+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/14527/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14527/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14527.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14527", "merged_at": "2016-10-29T13:24:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14527.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14527" }
https://api.github.com/repos/pandas-dev/pandas/issues/14528
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14528/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14528/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14528/events
https://github.com/pandas-dev/pandas/pull/14528
185,961,264
MDExOlB1bGxSZXF1ZXN0OTE0MDg1MDE=
14,528
GH #14499 Panel.ffill ignores axis parameter and fill along axis=1
{ "avatar_url": "https://avatars.githubusercontent.com/u/6661307?v=4", "events_url": "https://api.github.com/users/Tux1/events{/privacy}", "followers_url": "https://api.github.com/users/Tux1/followers", "following_url": "https://api.github.com/users/Tux1/following{/other_user}", "gists_url": "https://api.github.com/users/Tux1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Tux1", "id": 6661307, "login": "Tux1", "node_id": "MDQ6VXNlcjY2NjEzMDc=", "organizations_url": "https://api.github.com/users/Tux1/orgs", "received_events_url": "https://api.github.com/users/Tux1/received_events", "repos_url": "https://api.github.com/users/Tux1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Tux1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Tux1/subscriptions", "type": "User", "url": "https://api.github.com/users/Tux1" }
[ { "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": "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
[]
null
6
2016-10-28T16:06:47Z
2017-03-20T13:41:41Z
2017-03-20T13:41:41Z
CONTRIBUTOR
null
- [x] closes #14499, closes #8251 - [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/14528/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14528/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14528.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14528", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14528.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14528" }
https://api.github.com/repos/pandas-dev/pandas/issues/14529
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14529/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14529/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14529/events
https://github.com/pandas-dev/pandas/issues/14529
185,971,690
MDU6SXNzdWUxODU5NzE2OTA=
14,529
Join on closest value
{ "avatar_url": "https://avatars.githubusercontent.com/u/8095957?v=4", "events_url": "https://api.github.com/users/MaxHalford/events{/privacy}", "followers_url": "https://api.github.com/users/MaxHalford/followers", "following_url": "https://api.github.com/users/MaxHalford/following{/other_user}", "gists_url": "https://api.github.com/users/MaxHalford/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MaxHalford", "id": 8095957, "login": "MaxHalford", "node_id": "MDQ6VXNlcjgwOTU5NTc=", "organizations_url": "https://api.github.com/users/MaxHalford/orgs", "received_events_url": "https://api.github.com/users/MaxHalford/received_events", "repos_url": "https://api.github.com/users/MaxHalford/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MaxHalford/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MaxHalford/subscriptions", "type": "User", "url": "https://api.github.com/users/MaxHalford" }
[ { "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" }
8
2016-10-28T16:57:53Z
2016-10-31T10:14:59Z
2016-10-28T21:03:29Z
CONTRIBUTOR
null
Hello, I am not very familiar with the current discussions, but I was wondering if there was a feature in the pipe to _**join two dataframes on the closest value of a given column**_. It happens quite often that two dataframes contain different data with different timestamps, yet it feels natural to want to join the two dataframes by matching each row on the left dataframe with the _closest_ row in the right dataframe. If you want me to add more detail please do tell me. Regards.
{ "+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/14529/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14529/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14530
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14530/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14530/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14530/events
https://github.com/pandas-dev/pandas/issues/14530
185,975,524
MDU6SXNzdWUxODU5NzU1MjQ=
14,530
read_json ValueError: Value is too big
{ "avatar_url": "https://avatars.githubusercontent.com/u/216362?v=4", "events_url": "https://api.github.com/users/incognick/events{/privacy}", "followers_url": "https://api.github.com/users/incognick/followers", "following_url": "https://api.github.com/users/incognick/following{/other_user}", "gists_url": "https://api.github.com/users/incognick/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/incognick", "id": 216362, "login": "incognick", "node_id": "MDQ6VXNlcjIxNjM2Mg==", "organizations_url": "https://api.github.com/users/incognick/orgs", "received_events_url": "https://api.github.com/users/incognick/received_events", "repos_url": "https://api.github.com/users/incognick/repos", "site_admin": false, "starred_url": "https://api.github.com/users/incognick/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/incognick/subscriptions", "type": "User", "url": "https://api.github.com/users/incognick" }
[ { "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" }, { "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": 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-10-28T17:17:18Z
2019-01-07T20:26:29Z
2016-10-28T21:01:30Z
NONE
null
Loading a json file with large integers (> 2^32), results in "Value is too big". I have tried changing the orient to "records" and also passing in dtype={'id': numpy.dtype('uint64')}. The error is the same. ``` python import pandas data = pandas.read_json('''{"id": 10254939386542155531}''') print(data.describe()) ``` #### Expected Output ``` id count 1 unique 1 top 10254939386542155531 freq 1 ``` #### Actual Output (even with dtype passed in) ``` File "./parse_dispatch_table.py", line 34, in <module> print(pandas.read_json('''{"id": 10254939386542155531}''', dtype=dtype_conversions).describe()) File "/users/XXX/.local/lib/python3.4/site-packages/pandas/io/json.py", line 234, in read_json date_unit).parse() File "/users/XXX/.local/lib/python3.4/site-packages/pandas/io/json.py", line 302, in parse self._parse_no_numpy() File "/users/XXX/.local/lib/python3.4/site-packages/pandas/io/json.py", line 519, in _parse_no_numpy loads(json, precise_float=self.precise_float), dtype=None) ValueError: Value is too big ``` No problem using read_csv: ``` python import pandas import io print(pandas.read_csv(io.StringIO('''id\n10254939386542155531''')).describe()) ``` #### Output using read_csv ``` id count 1 unique 1 top 10254939386542155531 freq 1 ``` #### Output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 3.4.3.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-327.el7.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0 nose: None pip: 8.1.2 setuptools: 28.6.0 Cython: None numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 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": 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/14530/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14530/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14531
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14531/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14531/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14531/events
https://github.com/pandas-dev/pandas/pull/14531
185,980,559
MDExOlB1bGxSZXF1ZXN0OTE0MjIxMjQ=
14,531
ENH: merge_asof() has left_index/right_index and left_by/right_by (#14253)
{ "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": "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" } ]
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" }
8
2016-10-28T17:43:02Z
2016-12-14T16:12:37Z
2016-12-14T16:10:42Z
CONTRIBUTOR
null
- [x] closes #14253 - [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/14531/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14531/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14531.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14531", "merged_at": "2016-12-14T16:10:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14531.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14531" }
https://api.github.com/repos/pandas-dev/pandas/issues/14532
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14532/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14532/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14532/events
https://github.com/pandas-dev/pandas/issues/14532
185,994,071
MDU6SXNzdWUxODU5OTQwNzE=
14,532
pandas.DataFrame.head does not properly trim MultiIndexes
{ "avatar_url": "https://avatars.githubusercontent.com/u/239185?v=4", "events_url": "https://api.github.com/users/Fixman/events{/privacy}", "followers_url": "https://api.github.com/users/Fixman/followers", "following_url": "https://api.github.com/users/Fixman/following{/other_user}", "gists_url": "https://api.github.com/users/Fixman/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/Fixman", "id": 239185, "login": "Fixman", "node_id": "MDQ6VXNlcjIzOTE4NQ==", "organizations_url": "https://api.github.com/users/Fixman/orgs", "received_events_url": "https://api.github.com/users/Fixman/received_events", "repos_url": "https://api.github.com/users/Fixman/repos", "site_admin": false, "starred_url": "https://api.github.com/users/Fixman/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Fixman/subscriptions", "type": "User", "url": "https://api.github.com/users/Fixman" }
[ { "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" }, { "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-10-28T18:47:49Z
2016-10-28T20:42:05Z
2016-10-28T20:41:50Z
NONE
null
I'm trying to trim a very big `DataFrame` with a `MultiIndex` using `head`, and I noticed that the new `DataFrame` was still ridicolously big because it kept all the previous data from the entire `MultiIndex`. This doesn't happen if the `DataFrame` has a regular `Index`. ``` python In [1]: from pandas import DataFrame In [2]: df = DataFrame({'a': [1, 2, 3, 4, 5, 6], 'b': ['q', 'w', 'e', 'r', 't', 'y'], 'c': ['a', 's', 'd', 'f', 'g', 'h']}).set_index(['a', 'b']) In [3]: df.head(3) Out[3]: c a b 1 q a 2 w s 3 e d In [4]: df.head(3).index Out[4]: MultiIndex(levels=[[1, 2, 3, 4, 5, 6], [u'e', u'q', u'r', u't', u'w', u'y']], labels=[[0, 1, 2], [1, 4, 0]], names=[u'a', u'b']) ``` ``` python #### Expected Output MultiIndex(levels=[[1, 2, 3], [u'e', u'q', u'w']], labels=[[0, 1, 2], [1, 2, 0]], names=[u'a', u'b']) ``` #### Output of `pd.show_versions()` <details> # Paste the output here ## INSTALLED VERSIONS commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-45-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 25.1.1 Cython: None numpy: 1.11.1 scipy: 0.18.0 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: 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/14532/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14532/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14533
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14533/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14533/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14533/events
https://github.com/pandas-dev/pandas/pull/14533
186,025,800
MDExOlB1bGxSZXF1ZXN0OTE0NTUwNjM=
14,533
BUG: CategoricalDtype could not be sorted
{ "avatar_url": "https://avatars.githubusercontent.com/u/606089?v=4", "events_url": "https://api.github.com/users/bkandel/events{/privacy}", "followers_url": "https://api.github.com/users/bkandel/followers", "following_url": "https://api.github.com/users/bkandel/following{/other_user}", "gists_url": "https://api.github.com/users/bkandel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bkandel", "id": 606089, "login": "bkandel", "node_id": "MDQ6VXNlcjYwNjA4OQ==", "organizations_url": "https://api.github.com/users/bkandel/orgs", "received_events_url": "https://api.github.com/users/bkandel/received_events", "repos_url": "https://api.github.com/users/bkandel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bkandel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bkandel/subscriptions", "type": "User", "url": "https://api.github.com/users/bkandel" }
[]
closed
false
null
[]
null
3
2016-10-28T21:26:00Z
2016-11-02T22:11:53Z
2016-11-02T20:16:49Z
CONTRIBUTOR
null
- [x] closes #14368 - [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/14533/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14533/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14533.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14533", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14533.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14533" }
https://api.github.com/repos/pandas-dev/pandas/issues/14534
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14534/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14534/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14534/events
https://github.com/pandas-dev/pandas/pull/14534
186,064,697
MDExOlB1bGxSZXF1ZXN0OTE0ODE4MzU=
14,534
BUG: pivot_table sometimes returns Series (#4386)
{ "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": "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
[]
null
6
2016-10-29T07:24:28Z
2017-12-20T01:56:42Z
2016-12-30T02:11:46Z
MEMBER
null
- [x] closes #4386 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry The [`pivot_table` docs](http://pandas.pydata.org/pandas-docs/stable/generated/pandas.pivot_table.html) mentions that a `DataFrame` should be returned. In some cases, a `Series` is returned. I had to also alter some existing tests that expected `pivot_table` to return a `Series` Any feedback welcomed, thanks!
{ "+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/14534/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14534/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14534.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14534", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14534.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14534" }
https://api.github.com/repos/pandas-dev/pandas/issues/14535
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14535/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14535/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14535/events
https://github.com/pandas-dev/pandas/pull/14535
186,080,398
MDExOlB1bGxSZXF1ZXN0OTE0OTAxMTA=
14,535
BUG: Index.insert may not coerced to correct dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/1696302?v=4", "events_url": "https://api.github.com/users/sinhrks/events{/privacy}", "followers_url": "https://api.github.com/users/sinhrks/followers", "following_url": "https://api.github.com/users/sinhrks/following{/other_user}", "gists_url": "https://api.github.com/users/sinhrks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/sinhrks", "id": 1696302, "login": "sinhrks", "node_id": "MDQ6VXNlcjE2OTYzMDI=", "organizations_url": "https://api.github.com/users/sinhrks/orgs", "received_events_url": "https://api.github.com/users/sinhrks/received_events", "repos_url": "https://api.github.com/users/sinhrks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/sinhrks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/sinhrks/subscriptions", "type": "User", "url": "https://api.github.com/users/sinhrks" }
[ { "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
[]
null
6
2016-10-29T14:09:42Z
2017-05-08T09:30:00Z
2017-05-07T14:03:13Z
MEMBER
null
- [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry ### on current master ``` # NG, must be float dtype pd.Index([1]).insert(1, 1.0) # Int64Index([1, 1], dtype='int64') # NG, must be object dtype pd.DatetimeIndex(['2011-01-01']).insert(1, 1) # TypeError: cannot insert DatetimeIndex with incompatible label ``` ## after the PR ``` pd.Index([1]).insert(1, 1.0) # Float64Index([1.0, 1.0], dtype='float64') pd.DatetimeIndex(['2011-01-01']).insert(1, 1) # Index([2011-01-01 00:00:00, 1], dtype='object') ```
{ "+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/14535/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14535/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14535.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14535", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14535.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14535" }
https://api.github.com/repos/pandas-dev/pandas/issues/14536
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14536/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14536/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14536/events
https://github.com/pandas-dev/pandas/pull/14536
186,081,016
MDExOlB1bGxSZXF1ZXN0OTE0OTA0NDk=
14,536
BUG: DataFrame.quantile with NaNs (GH14357)
{ "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": "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": "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": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
1
2016-10-29T14:22:57Z
2021-11-15T07:32:29Z
2016-11-02T13:01:04Z
MEMBER
null
Closes #14357 I first used `nanpercentile` when available (np >= 1.9), but this only can handle numeric data, not datetimes. So therefore included a custom `_nanpercentile` I also added some tests regarding empty dataframes/series in comments, as these are still failing (but are also failing on 0.19.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/14536/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14536/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14536.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14536", "merged_at": "2016-11-02T13:01:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14536.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14536" }
https://api.github.com/repos/pandas-dev/pandas/issues/14537
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14537/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14537/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14537/events
https://github.com/pandas-dev/pandas/pull/14537
186,091,748
MDExOlB1bGxSZXF1ZXN0OTE0OTY2NDM=
14,537
DOC: add sep argument to read_clipboard signature
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "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" }
8
2016-10-29T17:56:08Z
2016-11-07T20:53:03Z
2016-11-07T20:52:08Z
CONTRIBUTOR
null
- [x] closes #13726
{ "+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/14537/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14537/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14537.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14537", "merged_at": "2016-11-07T20:52:08Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14537.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14537" }
https://api.github.com/repos/pandas-dev/pandas/issues/14538
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14538/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14538/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14538/events
https://github.com/pandas-dev/pandas/issues/14538
186,106,949
MDU6SXNzdWUxODYxMDY5NDk=
14,538
Wrong index type from groupby on an empty dataframe using user-defined agg func
{ "avatar_url": "https://avatars.githubusercontent.com/u/3863315?v=4", "events_url": "https://api.github.com/users/simonbrownsb/events{/privacy}", "followers_url": "https://api.github.com/users/simonbrownsb/followers", "following_url": "https://api.github.com/users/simonbrownsb/following{/other_user}", "gists_url": "https://api.github.com/users/simonbrownsb/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonbrownsb", "id": 3863315, "login": "simonbrownsb", "node_id": "MDQ6VXNlcjM4NjMzMTU=", "organizations_url": "https://api.github.com/users/simonbrownsb/orgs", "received_events_url": "https://api.github.com/users/simonbrownsb/received_events", "repos_url": "https://api.github.com/users/simonbrownsb/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonbrownsb/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonbrownsb/subscriptions", "type": "User", "url": "https://api.github.com/users/simonbrownsb" }
[ { "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" } ]
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-10-29T23:26:08Z
2016-10-29T23:42:58Z
2016-10-29T23:42:46Z
NONE
null
#### A small, complete example of the issue ``` python import pandas as pd df = pd.DataFrame(columns=['a', 'b']) df2 = df.groupby('a').agg({ 'a': {'max_a': lambda x: x.max()}, 'b': {'count_b': 'count'} }) print(df2.index) ``` #### Expected Output ``` python Index([], dtype='object', name='a') ``` (This is the sort of index you would get if it wasn't an empty dataframe, or if the aggregation function was a cythoned builtin string like 'max'). #### Actual Output ``` python RangeIndex(start=0, stop=0, step=1) ``` Nondeterministic in Python3 (sometimes the expected result, sometimes not, with the same code, on different runs). Deterministically wrong in Python2 (provided the outer agg dictionary is ordered so that the user-defined function agg appears first in the list of keys). #### Output of `pd.show_versions()` <details> ## INSTALLED VERSIONS commit: None python: 3.4.3.final.0 python-bits: 64 OS: Darwin OS-release: 15.5.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.18.1 nose: None pip: 6.0.8 setuptools: 12.2 Cython: 0.24.1 numpy: 1.11.1 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.6.1 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.7.3 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/14538/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14538/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14539
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14539/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14539/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14539/events
https://github.com/pandas-dev/pandas/pull/14539
186,120,628
MDExOlB1bGxSZXF1ZXN0OTE1MTMxNzY=
14,539
COMPAT: Updated method call for _Openpyxl22Write.write_cells() for Openpyxl =>2.4.0 #14519
{ "avatar_url": "https://avatars.githubusercontent.com/u/23112589?v=4", "events_url": "https://api.github.com/users/ditenberg/events{/privacy}", "followers_url": "https://api.github.com/users/ditenberg/followers", "following_url": "https://api.github.com/users/ditenberg/following{/other_user}", "gists_url": "https://api.github.com/users/ditenberg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ditenberg", "id": 23112589, "login": "ditenberg", "node_id": "MDQ6VXNlcjIzMTEyNTg5", "organizations_url": "https://api.github.com/users/ditenberg/orgs", "received_events_url": "https://api.github.com/users/ditenberg/received_events", "repos_url": "https://api.github.com/users/ditenberg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ditenberg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ditenberg/subscriptions", "type": "User", "url": "https://api.github.com/users/ditenberg" }
[ { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" }, { "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": "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-10-30T06:51:58Z
2017-01-14T18:23:56Z
2017-01-14T18:23:49Z
NONE
null
- [X] closes #14519 - [X] tests added / passed - [X] passes `git diff upstream/master | flake8 --diff` - [ ] whatsnew entry Updated _Openpyxl22Writer.write_cells() to use new coordinate call method wks['coordinate'] instead of wks.cell() in accordance with https://openpyxl.readthedocs.io/en/default/tutorial.html#accessing-one-cell in the newest release of Openpyxl (2.4.0 and later). I did not know how to write a true test for this fix since it involves Excel file I/O and pandas does not currently supporting reading in .xlsx as far as I know. The best I could do is use it with openpyxl 2.4.0 install on my machine and passing a small dataframe into an .xlsx. Please let me know if you have any suggestions on how to better test 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/14539/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14539/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14539.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14539", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14539.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14539" }
https://api.github.com/repos/pandas-dev/pandas/issues/14540
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14540/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14540/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14540/events
https://github.com/pandas-dev/pandas/pull/14540
186,138,460
MDExOlB1bGxSZXF1ZXN0OTE1MjI5NDI=
14,540
BUG: fixes #12405 by eliding values index by NaT in MPLPlot._get_xticks
{ "avatar_url": "https://avatars.githubusercontent.com/u/16540200?v=4", "events_url": "https://api.github.com/users/tsdlovell/events{/privacy}", "followers_url": "https://api.github.com/users/tsdlovell/followers", "following_url": "https://api.github.com/users/tsdlovell/following{/other_user}", "gists_url": "https://api.github.com/users/tsdlovell/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tsdlovell", "id": 16540200, "login": "tsdlovell", "node_id": "MDQ6VXNlcjE2NTQwMjAw", "organizations_url": "https://api.github.com/users/tsdlovell/orgs", "received_events_url": "https://api.github.com/users/tsdlovell/received_events", "repos_url": "https://api.github.com/users/tsdlovell/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tsdlovell/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tsdlovell/subscriptions", "type": "User", "url": "https://api.github.com/users/tsdlovell" }
[ { "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": "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
[]
null
17
2016-10-30T14:16:28Z
2017-05-20T21:59:27Z
2017-05-20T21:59:19Z
CONTRIBUTOR
null
- [ ] closes #12405 - [x] tests added / passed - [x] passes `git diff upstream/master | flake8 --diff` - [x] whatsnew entry Proposed solution: elide rows where x value would be `NaT` in [MPLPlot._get_xticks](https://github.com/pandas-dev/pandas/blob/7f5a45c1b388b3f7f309f82bfa0733b7b9980c3a/pandas/tools/plotting.py#L1328) (which seems like a minor misnomer: its getting x values, not what will ultimately be ticks). Reordering occurs in MPLPlot._get_xticks and it has a block that is conditional on `use_index` and `is_datetype`, so seems like a reasonable place to elide the values. Mutation of `self.data` already occurs there (reordering) and a read through suggests nothing has saved info related to `self.data`'s shape before 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/14540/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14540/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14540.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14540", "merged_at": "2017-05-20T21:59:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14540.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14540" }
https://api.github.com/repos/pandas-dev/pandas/issues/14541
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14541/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14541/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14541/events
https://github.com/pandas-dev/pandas/pull/14541
186,185,267
MDExOlB1bGxSZXF1ZXN0OTE1NDcwMTY=
14,541
DOC: Simplify the gbq integration testing procedure for contributors
{ "avatar_url": "https://avatars.githubusercontent.com/u/5184014?v=4", "events_url": "https://api.github.com/users/parthea/events{/privacy}", "followers_url": "https://api.github.com/users/parthea/followers", "following_url": "https://api.github.com/users/parthea/following{/other_user}", "gists_url": "https://api.github.com/users/parthea/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/parthea", "id": 5184014, "login": "parthea", "node_id": "MDQ6VXNlcjUxODQwMTQ=", "organizations_url": "https://api.github.com/users/parthea/orgs", "received_events_url": "https://api.github.com/users/parthea/received_events", "repos_url": "https://api.github.com/users/parthea/repos", "site_admin": false, "starred_url": "https://api.github.com/users/parthea/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/parthea/subscriptions", "type": "User", "url": "https://api.github.com/users/parthea" }
[ { "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": "a2bca7", "default": false, "description": "Continuous Integration", "id": 48070600, "name": "CI", "node_id": "MDU6TGFiZWw0ODA3MDYwMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI" }, { "color": "0052cc", "default": false, "description": "pandas-gbq compatability", "id": 57351315, "name": "IO Google", "node_id": "MDU6TGFiZWw1NzM1MTMxNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Google" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
2
2016-10-31T01:53:27Z
2016-10-31T12:23:42Z
2016-10-31T12:23:39Z
CONTRIBUTOR
null
I've updated the contributing documentation to simplify the steps required to run Google BigQuery integration tests on a forked repository of pandas.
{ "+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/14541/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14541/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14541.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14541", "merged_at": "2016-10-31T12:23:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14541.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14541" }
https://api.github.com/repos/pandas-dev/pandas/issues/14542
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14542/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14542/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14542/events
https://github.com/pandas-dev/pandas/issues/14542
186,209,011
MDU6SXNzdWUxODYyMDkwMTE=
14,542
pd.eval does fails when the same operation in python works fine.
{ "avatar_url": "https://avatars.githubusercontent.com/u/18017815?v=4", "events_url": "https://api.github.com/users/rmancy-smg/events{/privacy}", "followers_url": "https://api.github.com/users/rmancy-smg/followers", "following_url": "https://api.github.com/users/rmancy-smg/following{/other_user}", "gists_url": "https://api.github.com/users/rmancy-smg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rmancy-smg", "id": 18017815, "login": "rmancy-smg", "node_id": "MDQ6VXNlcjE4MDE3ODE1", "organizations_url": "https://api.github.com/users/rmancy-smg/orgs", "received_events_url": "https://api.github.com/users/rmancy-smg/received_events", "repos_url": "https://api.github.com/users/rmancy-smg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rmancy-smg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rmancy-smg/subscriptions", "type": "User", "url": "https://api.github.com/users/rmancy-smg" }
[ { "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" }, { "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" }
9
2016-10-31T05:46:54Z
2016-11-03T09:26:16Z
2016-10-31T12:22:00Z
NONE
null
#### A small, complete example of the issue ```python # Your code here df = pd.DataFrame(data=[(1,2),(3,4)], columns=['a', 'b']) pd.eval("sum(df) / 7", local_dict={'sum': np.sum, 'df': df}, engine='numexpr') *** TypeError: unhashable type: 'numpy.ndarray' ``` #### Expected Output a 0.571429 b 0.857143 dtype: float64 This works fine when doing that same sum in python (and it also works fine in pd.eval() using the 'python' engine. The following from the docs does not seem to apply in this case. > Series and DataFrame objects are supported and behave as they would with plain ol’ Python evaluation . #### Output of ``pd.show_versions()`` INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.5-300.fc23.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_AU.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: None pip: 8.1.2 setuptools: 27.2.0 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: 2.6.1 matplotlib: None openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 0.8.3 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/14542/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14542/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14543
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14543/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14543/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14543/events
https://github.com/pandas-dev/pandas/pull/14543
186,265,817
MDExOlB1bGxSZXF1ZXN0OTE1OTY2OTk=
14,543
BUG: tseries ceil doc fix
{ "avatar_url": "https://avatars.githubusercontent.com/u/12720209?v=4", "events_url": "https://api.github.com/users/tworec/events{/privacy}", "followers_url": "https://api.github.com/users/tworec/followers", "following_url": "https://api.github.com/users/tworec/following{/other_user}", "gists_url": "https://api.github.com/users/tworec/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tworec", "id": 12720209, "login": "tworec", "node_id": "MDQ6VXNlcjEyNzIwMjA5", "organizations_url": "https://api.github.com/users/tworec/orgs", "received_events_url": "https://api.github.com/users/tworec/received_events", "repos_url": "https://api.github.com/users/tworec/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tworec/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tworec/subscriptions", "type": "User", "url": "https://api.github.com/users/tworec" }
[ { "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-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
1
2016-10-31T11:53:48Z
2016-10-31T12:24:10Z
2016-10-31T12:24:05Z
NONE
null
just fixes copy-paste doc bug from 4437e9c9e161b884450e8027daa3622f74c4b9e7
{ "+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/14543/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14543/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14543.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14543", "merged_at": "2016-10-31T12:24:05Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14543.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14543" }
https://api.github.com/repos/pandas-dev/pandas/issues/14544
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14544/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14544/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14544/events
https://github.com/pandas-dev/pandas/pull/14544
186,293,980
MDExOlB1bGxSZXF1ZXN0OTE2MTYxNzE=
14,544
BUG: fix categorical searchsorted bug (#14522)
{ "avatar_url": "https://avatars.githubusercontent.com/u/3948306?v=4", "events_url": "https://api.github.com/users/chiangqiqi/events{/privacy}", "followers_url": "https://api.github.com/users/chiangqiqi/followers", "following_url": "https://api.github.com/users/chiangqiqi/following{/other_user}", "gists_url": "https://api.github.com/users/chiangqiqi/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/chiangqiqi", "id": 3948306, "login": "chiangqiqi", "node_id": "MDQ6VXNlcjM5NDgzMDY=", "organizations_url": "https://api.github.com/users/chiangqiqi/orgs", "received_events_url": "https://api.github.com/users/chiangqiqi/received_events", "repos_url": "https://api.github.com/users/chiangqiqi/repos", "site_admin": false, "starred_url": "https://api.github.com/users/chiangqiqi/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/chiangqiqi/subscriptions", "type": "User", "url": "https://api.github.com/users/chiangqiqi" }
[ { "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": 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-10-31T14:15:30Z
2016-11-02T10:38:25Z
2016-11-02T10:08:31Z
NONE
null
- [ ] closes #14522 - [ ] tests added / passed - [ ] passes ``git diff upstream/master | flake8 --diff`` - [ ] whatsnew entry the bug is cause by `x.categories.values.searchsorted`, where the search should not be performed.
{ "+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/14544/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14544/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14544.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14544", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14544.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14544" }
https://api.github.com/repos/pandas-dev/pandas/issues/14545
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14545/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14545/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14545/events
https://github.com/pandas-dev/pandas/pull/14545
186,317,543
MDExOlB1bGxSZXF1ZXN0OTE2MzMwNjg=
14,545
BUG/API: Index.append with mixed object/Categorical indices
{ "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": "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": "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": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
6
2016-10-31T15:43:07Z
2016-11-03T11:12:19Z
2016-11-03T11:12:19Z
MEMBER
null
Closes #14298, related to #13660 and #13767 This closes the `info()` issue with CategoricalIndex, but the underlying issue is actually related to Index.append, when appending mixed dtype index objects: ``` In [11]: pd.Index(['a']).append(pd.CategoricalIndex(['a', 'b'])) ... AttributeError: 'Index' object has no attribute '_is_dtype_compat' ``` This error occurs when the calling index is not a Categorical (because of https://github.com/pandas-dev/pandas/blob/v0.19.0/pandas/indexes/base.py#L1439 the Categorical `_is_dtype_compat` method is used anyway). But the question is, what should the result be of the above expression? - a `CategoricalIndex` ? -> IMO not, as the calling index is not a CategoricalIndex, the result should also not be one (regardless of what is appended) -> so the intention of the code is IMO also not correct - an object Index ? -> yes, this is also what 0.18.1 does But, the more important discussion is *what to do when the calling index is a CategoricalIndex* ? In 0.18 (and in 0.19.0) this either returned a CategoricalIndex or raised an error: ``` In [13]: pd.__version__ Out[13]: u'0.18.1' In [104]: pd.CategoricalIndex(['a', 'b']).append(pd.Index(['a'])) Out[104]: CategoricalIndex([u'a', u'b', u'a'], categories=[u'a', u'b'], ordered=False, dtype='category') In [105]: pd.CategoricalIndex(['a', 'b']).append(pd.Index(['c'])) ... TypeError: cannot append a non-category item to a CategoricalIndex ``` But, for the `concat` case we decided to return an object dtyped Index in those cases instead of coercing or raising (see discussion in #13767 and the summary table with rules in https://github.com/pandas-dev/pandas/pull/13767#issuecomment-237806603). So the question is, do think that `append` should follow the same rules as `concat`. Or, do we want to be more flexible for `append`, and let it depend on the type of the calling Index? cc @sinhrks
{ "+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/14545/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14545/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14545.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14545", "merged_at": "2016-11-03T11:12:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14545.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14545" }
https://api.github.com/repos/pandas-dev/pandas/issues/14546
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14546/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14546/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14546/events
https://github.com/pandas-dev/pandas/issues/14546
186,321,923
MDU6SXNzdWUxODYzMjE5MjM=
14,546
printing Series in Jupyter/IPython opens and closes a terminal window
{ "avatar_url": "https://avatars.githubusercontent.com/u/6295582?v=4", "events_url": "https://api.github.com/users/allthedata/events{/privacy}", "followers_url": "https://api.github.com/users/allthedata/followers", "following_url": "https://api.github.com/users/allthedata/following{/other_user}", "gists_url": "https://api.github.com/users/allthedata/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/allthedata", "id": 6295582, "login": "allthedata", "node_id": "MDQ6VXNlcjYyOTU1ODI=", "organizations_url": "https://api.github.com/users/allthedata/orgs", "received_events_url": "https://api.github.com/users/allthedata/received_events", "repos_url": "https://api.github.com/users/allthedata/repos", "site_admin": false, "starred_url": "https://api.github.com/users/allthedata/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/allthedata/subscriptions", "type": "User", "url": "https://api.github.com/users/allthedata" }
[ { "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" }, { "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
[]
null
6
2016-10-31T15:57:49Z
2017-11-07T19:57:40Z
2017-11-07T19:57:40Z
NONE
null
When Git for Windows is installed and the option to use Unix tools in the Windows command line is checked, printing a Series in Jupyter QTConsole or Notebook (or Jupyter consoles in IDEs like Spyder) causes a terminal window to quickly pop up and close. Sometimes this happens in other cases where the Series is not necessarily printed, and I have experienced many terminal windows popping up and closing one after the other. ```python import pandas as pd pd.Series([1]) ``` This seems to be due to [series.py](https://github.com/pandas-dev/pandas/blob/47f117d18a99f8bbaf2ecbc7829d198d304b8c2a/pandas/core/series.py#L1005) calling the `get_terminal_size()` function in [terminal.py](https://github.com/pandas-dev/pandas/blob/47f117d18a99f8bbaf2ecbc7829d198d304b8c2a/pandas/util/terminal.py). That function states that it should only be used when running in a terminal and not in IPython GUIs, but `series.py` is calling it regardless. It then fails to find the terminal size and falls back to calling the `tput` command, which only exists in Windows if Cygwin/Git for Windows is installed, and causes a terminal window to be briefly opened. Possibly related issue: http://stackoverflow.com/questions/36133447/pandas-printing-tput-unknown-terminal-emacs #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.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.3.1 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: None bottleneck: 1.1.0 tables: 3.2.2 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: None jinja2: 2.8 boto: 2.42.0 pandas_datareader: None </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/14546/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14546/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14547
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14547/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14547/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14547/events
https://github.com/pandas-dev/pandas/issues/14547
186,382,820
MDU6SXNzdWUxODYzODI4MjA=
14,547
Group-by/apply unexpected output with some operations when as_index=False
{ "avatar_url": "https://avatars.githubusercontent.com/u/1858015?v=4", "events_url": "https://api.github.com/users/anandtrex/events{/privacy}", "followers_url": "https://api.github.com/users/anandtrex/followers", "following_url": "https://api.github.com/users/anandtrex/following{/other_user}", "gists_url": "https://api.github.com/users/anandtrex/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/anandtrex", "id": 1858015, "login": "anandtrex", "node_id": "MDQ6VXNlcjE4NTgwMTU=", "organizations_url": "https://api.github.com/users/anandtrex/orgs", "received_events_url": "https://api.github.com/users/anandtrex/received_events", "repos_url": "https://api.github.com/users/anandtrex/repos", "site_admin": false, "starred_url": "https://api.github.com/users/anandtrex/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anandtrex/subscriptions", "type": "User", "url": "https://api.github.com/users/anandtrex" }
[ { "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" }, { "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" }
6
2016-10-31T20:01:52Z
2019-02-14T05:24:21Z
2016-11-01T10:02:07Z
NONE
null
#### A small, complete example of the issue ```python import pandas as pd import numpy as np dd = dict(a=np.arange(9), b=np.repeat(np.arange(3), 3)) df = pd.DataFrame(dd) # Problematic line below df.groupby('b', as_index=False).apply(np.std) # The line below has the same problem df.groupby('b', as_index=False).std() # When as_index=False is not passed in, it works as expected. # The following two lines work exactly as expected # (An example of the group-by/apply working for some operations # df.groupby('b', as_index=False).apply(np.mean) # df.groupby('b', as_index=False).mean() ``` #### Expected Output ``` a b 0 0.816497 0.0 1 0.816497 1.0 2 0.816497 2.0 ``` #### Actual Output ``` a b 0 0.816497 0.0 1 0.816497 0.0 2 0.816497 0.0 ``` When ``as_index=False`` is passed into groupby, finding the standard deviation doesn't work as expected. When ``as_index=True``, everything works as expected. Finding the mean works as expected in both cases. I have been able to reproduce the problem also on Linux with the same version of pandas. #### Output of ``pd.show_versions()`` <details> > INSTALLED VERSIONS > ------------------ > commit: None > python: 3.5.2.final.0 > python-bits: 64 > OS: Darwin > OS-release: 15.6.0 > machine: x86_64 > processor: i386 > byteorder: little > LC_ALL: en_US > LANG: en_US.UTF8 > > pandas: 0.18.0 > nose: None > pip: 8.1.2 > setuptools: 28.5.0 > Cython: None > numpy: 1.11.0 > scipy: 0.17.0 > statsmodels: None > xarray: None > IPython: 5.1.0 > sphinx: 1.3.5 > patsy: None > dateutil: 2.5.3 > pytz: 2016.3 > blosc: None > bottleneck: None > tables: None > numexpr: None > matplotlib: 1.5.1 > openpyxl: None > xlrd: 0.9.4 > xlwt: None > xlsxwriter: None > lxml: None > bs4: 4.4.1 > html5lib: None > httplib2: None > apiclient: None > sqlalchemy: None > pymysql: None > psycopg2: None > jinja2: 2.8 > boto: 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/14547/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14547/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14548
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14548/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14548/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14548/events
https://github.com/pandas-dev/pandas/issues/14548
186,503,481
MDU6SXNzdWUxODY1MDM0ODE=
14,548
unique(), values discards timezone information in some cases
{ "avatar_url": "https://avatars.githubusercontent.com/u/13487305?v=4", "events_url": "https://api.github.com/users/aavanian/events{/privacy}", "followers_url": "https://api.github.com/users/aavanian/followers", "following_url": "https://api.github.com/users/aavanian/following{/other_user}", "gists_url": "https://api.github.com/users/aavanian/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aavanian", "id": 13487305, "login": "aavanian", "node_id": "MDQ6VXNlcjEzNDg3MzA1", "organizations_url": "https://api.github.com/users/aavanian/orgs", "received_events_url": "https://api.github.com/users/aavanian/received_events", "repos_url": "https://api.github.com/users/aavanian/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aavanian/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aavanian/subscriptions", "type": "User", "url": "https://api.github.com/users/aavanian" }
[ { "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" }, { "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": 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-11-01T10:34:30Z
2016-11-02T08:58:30Z
2016-11-01T10:48:04Z
NONE
null
Not sure if it's an expected behavior. This seems strange to me. #### A small, complete example of the issue ```python rng = pd.date_range('1/1/2011', periods=5, freq='D', tz='utc') rng # Timezone is good ``` >>> DatetimeIndex(['2011-01-01', '2011-01-02', '2011-01-03', '2011-01-04', '2011-01-05'], dtype='datetime64[ns, UTC]', freq='D') ```python rng.unique() # Timezone is still good ``` >>> DatetimeIndex(['2011-01-01', '2011-01-02', '2011-01-03', '2011-01-04', '2011-01-05'], dtype='datetime64[ns, UTC]', freq='D') ```python rng.values # Timezone lost! ``` >>> array(['2011-01-01T00:00:00.000000000', '2011-01-02T00:00:00.000000000', '2011-01-03T00:00:00.000000000', '2011-01-04T00:00:00.000000000', '2011-01-05T00:00:00.000000000'], dtype='datetime64[ns]') ```python serie = rng.to_series().reset_index()['index'] serie # Timezone is good ``` >>> 0 2011-01-01 00:00:00+00:00 1 2011-01-02 00:00:00+00:00 2 2011-01-03 00:00:00+00:00 3 2011-01-04 00:00:00+00:00 4 2011-01-05 00:00:00+00:00 Name: index, dtype: datetime64[ns, UTC] ```python serie.unique() # Timezone is lost! ``` >>> array(['2011-01-01T00:00:00.000000000', '2011-01-02T00:00:00.000000000', '2011-01-03T00:00:00.000000000', '2011-01-04T00:00:00.000000000', '2011-01-05T00:00:00.000000000'], dtype='datetime64[ns]') ```python serie.values # Timezone is lost! ``` >>> array(['2011-01-01T00:00:00.000000000', '2011-01-02T00:00:00.000000000', '2011-01-03T00:00:00.000000000', '2011-01-04T00:00:00.000000000', '2011-01-05T00:00:00.000000000'], dtype='datetime64[ns]') #### Expected Output Outputs of pd.DatetimeIndex.values, pd.Series.unique() and pd.Series.values should be preserve the timezone information. Note: I did a quick test with Python 3.4.5 and pandas 0.19 only difference is (to be clear, rng.values and serie.values still discard the tzinfo): ```python serie.unique() # Timezone is good again!! but dtype is object (preserving pd.Timestamp) ``` >>> array([Timestamp('2011-01-01 00:00:00+0000', tz='UTC', freq='D'), Timestamp('2011-01-02 00:00:00+0000', tz='UTC', freq='D'), Timestamp('2011-01-03 00:00:00+0000', tz='UTC', freq='D'), Timestamp('2011-01-04 00:00:00+0000', tz='UTC', freq='D'), Timestamp('2011-01-05 00:00:00+0000', tz='UTC', freq='D')], dtype=object) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.4.4.final.0 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.18.1 nose: None pip: 8.1.2 setuptools: 23.0.0 Cython: None numpy: 1.11.0 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.2.0 sphinx: None patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.4 blosc: None bottleneck: 1.0.0 tables: None numexpr: 2.6.0 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 1.0.0 xlwt: None xlsxwriter: 0.9.2 lxml: 3.6.0 bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.13 pymysql: 0.7.6.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/14548/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14548/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14549
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14549/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14549/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14549/events
https://github.com/pandas-dev/pandas/issues/14549
186,522,323
MDU6SXNzdWUxODY1MjIzMjM=
14,549
Pandas 0.12 is much faster than Pandas 0.18
{ "avatar_url": "https://avatars.githubusercontent.com/u/14255423?v=4", "events_url": "https://api.github.com/users/giulianoamantini/events{/privacy}", "followers_url": "https://api.github.com/users/giulianoamantini/followers", "following_url": "https://api.github.com/users/giulianoamantini/following{/other_user}", "gists_url": "https://api.github.com/users/giulianoamantini/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/giulianoamantini", "id": 14255423, "login": "giulianoamantini", "node_id": "MDQ6VXNlcjE0MjU1NDIz", "organizations_url": "https://api.github.com/users/giulianoamantini/orgs", "received_events_url": "https://api.github.com/users/giulianoamantini/received_events", "repos_url": "https://api.github.com/users/giulianoamantini/repos", "site_admin": false, "starred_url": "https://api.github.com/users/giulianoamantini/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/giulianoamantini/subscriptions", "type": "User", "url": "https://api.github.com/users/giulianoamantini" }
[ { "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": "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": "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" }
4
2016-11-01T12:27:03Z
2016-11-01T16:40:15Z
2016-11-01T14:00:12Z
NONE
null
Hello, I am running the code below in pandas 0.18 and benchmarking it against pandas 0.12 and the profiling shows that 0.18 performs much slower on this. I put the output in the details section. Could you please advise? Thank you so very much for your help, Giuliano ``` from datetime import date, timedelta from time import time import pandas as pd sizes = [500] base_date = date(2016,10,31) for n in sizes: dates = [base_date - timedelta(days = x) for x in range(1, n, 1)] dates_df = pd.DataFrame({'DATE' : dates, 'key' : 1}) identifiers = range(1, 5000) identifiers_df = pd.DataFrame({'IDENTIFIER' : identifiers, 'key' : 1}) df = pd.merge(dates_df, identifiers_df, on='key') df = df.set_index(['DATE', 'IDENTIFIER']) df = df.sort_index(axis = 0, level = ['DATE', 'IDENTIFIER'], ascending=False) start_time = time() for d in dates: temp = df.loc[d] end_time = time() print ('%s %s' % (n, end_time - start_time)) ``` <details> # Output from 0.18 /opt/anaconda/base/envs/pandas0.18/bin/python2.7 /home/gamantini/QA/avoitenok/pandas_migration/testDatesPerformance.py 500 5.26671504974 337459 function calls (331370 primitive calls) in 14.176 seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 1 0.000 0.000 14.176 14.176 <string>:1(<module>) 1519 0.002 0.000 0.002 0.000 __init__.py:157(iteritems) 1 0.000 0.000 0.000 0.000 __init__.py:22(find_module) 2 0.000 0.000 0.000 0.000 _methods.py:34(_prod) 1027 0.001 0.000 0.023 0.000 _methods.py:37(_any) 7 0.000 0.000 0.000 0.000 _methods.py:40(_all) 6 0.020 0.003 2.945 0.491 algorithms.py:145(factorize) 6 0.000 0.000 0.007 0.001 algorithms.py:616(_get_data_algo) 11 0.000 0.000 0.000 0.000 algorithms.py:807(_get_take_nd_function) 11 0.012 0.001 0.527 0.048 algorithms.py:840(take_nd) 499 0.002 0.000 0.004 0.000 base.py:1016(_convert_slice_indexer) 2002 0.001 0.000 0.004 0.000 base.py:106(_reset_cache) 1 0.000 0.000 0.000 0.000 base.py:1136(_cleanup) 14 0.000 0.000 0.000 0.000 base.py:1143(_engine) 15 0.000 0.000 0.000 0.000 base.py:1146(<lambda>) 1 0.000 0.000 0.000 0.000 base.py:1172(inferred_type) 6 0.000 0.000 0.000 0.000 base.py:1233(__contains__) 16/14 0.001 0.000 0.003 0.000 base.py:124(__new__) 10 0.000 0.000 0.000 0.000 base.py:1247(__getitem__) 1 0.000 0.000 0.000 0.000 base.py:1281(_ensure_compat_append) 1 0.000 0.000 0.000 0.000 base.py:1308(append) 1 0.000 0.000 0.000 0.000 base.py:1326(_ensure_compat_concat) 499 0.005 0.000 0.047 0.000 base.py:1360(take) 4 0.000 0.000 0.000 0.000 base.py:1415(hasnans) 5 0.000 0.000 0.000 0.000 base.py:1507(equals) 1 0.000 0.000 0.000 0.000 base.py:1520(identical) 1 0.000 0.000 0.003 0.003 base.py:169(_box_values) 1 0.000 0.000 0.000 0.000 base.py:1770(_wrap_union_result) 1 0.000 0.000 0.000 0.000 base.py:1774(intersection) 2007 0.013 0.000 0.043 0.000 base.py:1915(get_loc) 2 0.000 0.000 0.000 0.000 base.py:2028(get_indexer) 998 0.002 0.000 0.002 0.000 base.py:218(freqstr) 2 0.000 0.000 0.000 0.000 base.py:2201(_possibly_promote) 1 0.000 0.000 0.000 0.000 base.py:227(inferred_freq) 1 0.000 0.000 0.000 0.000 base.py:2276(_can_reindex) 1 0.000 0.000 0.000 0.000 base.py:2295(reindex) 998 0.001 0.000 0.002 0.000 base.py:2795(_maybe_cast_indexer) 1497 0.001 0.000 0.002 0.000 base.py:2810(_validate_indexer) 1 0.000 0.000 0.000 0.000 base.py:3001(delete) 1 0.000 0.000 0.000 0.000 base.py:3031(drop) 1517 0.006 0.000 0.011 0.000 base.py:309(_simple_new) 2 0.000 0.000 0.000 0.000 base.py:321(_isnan) 2 0.000 0.000 0.000 0.000 base.py:326(hasnans) 3527 0.002 0.000 0.004 0.000 base.py:3381(_ensure_index) 1 0.000 0.000 0.000 0.000 base.py:3412(_get_na_value) 2002 0.003 0.000 0.012 0.000 base.py:3417(_ensure_frozen) 1 0.000 0.000 0.000 0.000 base.py:3425(_ensure_has_len) 2506 0.011 0.000 0.070 0.000 base.py:346(_shallow_copy) 1 0.000 0.000 0.000 0.000 base.py:354(_shallow_copy_with_infer) 5 0.000 0.000 0.000 0.000 base.py:383(is_) 3523 0.003 0.000 0.003 0.000 base.py:403(_reset_identity) 3579 0.002 0.000 0.003 0.000 base.py:409(__len__) 1 0.000 0.000 0.000 0.000 base.py:415(__array__) 4 0.000 0.000 0.000 0.000 base.py:430(dtype) 2542 0.003 0.000 0.006 0.000 base.py:440(values) 10 0.000 0.000 0.000 0.000 base.py:445(get_values) 5 0.000 0.000 0.000 0.000 base.py:490(_coerce_to_ndarray) 2508 0.011 0.000 0.014 0.000 base.py:506(_get_attributes_dict) 2 0.000 0.000 0.000 0.000 base.py:510(view) 6001 0.011 0.000 0.015 0.000 base.py:711(__getitem__) 2002 0.001 0.000 0.002 0.000 base.py:774(_shallow_copy) 1 0.000 0.000 0.000 0.000 base.py:778(_assert_can_do_setop) 2 0.000 0.000 0.000 0.000 base.py:791(nlevels) 1 0.000 0.000 0.000 0.000 base.py:795(_get_names) 2003 0.001 0.000 0.002 0.000 base.py:798(_set_names) 2003 0.004 0.000 0.013 0.000 base.py:806(set_names) 2002 0.002 0.000 0.015 0.000 base.py:865(rename) 8 0.000 0.000 0.000 0.000 base.py:870(_values) 2 0.000 0.000 0.000 0.000 base.py:914(is_monotonic) 1 0.000 0.000 0.000 0.000 base.py:919(is_monotonic_increasing) 10 0.000 0.000 0.000 0.000 base.py:938(is_unique) 499 0.001 0.000 0.005 0.000 base.py:972(_convert_scalar_indexer) 6 0.003 0.001 3.767 0.628 categorical.py:222(__init__) 4 0.010 0.003 2.967 0.742 categorical.py:374(from_array) 8 0.000 0.000 0.000 0.000 categorical.py:436(_get_codes) 6 0.000 0.000 0.003 0.000 categorical.py:470(_validate_categories) 6 0.000 0.000 0.000 0.000 categorical.py:534(_get_categories) 6 0.000 0.000 0.000 0.000 categorical.py:565(set_ordered) 1500 0.002 0.000 0.002 0.000 collections.py:78(__iter__) 4 0.000 0.000 0.000 0.000 common.py:1011(_possibly_cast_to_datetime) 10 0.000 0.000 0.802 0.080 common.py:1111(_possibly_infer_to_datetimelike) 2 0.000 0.000 0.801 0.401 common.py:1147(_try_datetime) 2497 0.005 0.000 0.017 0.000 common.py:1203(is_bool_indexer) 2 0.000 0.000 0.000 0.000 common.py:1226(_default_index) 2 0.000 0.000 0.000 0.000 common.py:1268(_try_sort) 1 0.000 0.000 0.000 0.000 common.py:1276(_count_not_none) 3 0.000 0.000 0.000 0.000 common.py:1277(<genexpr>) 11 0.000 0.000 0.000 0.000 common.py:1380(_asarray_tuplesafe) 1 0.000 0.000 0.000 0.000 common.py:1412(_index_labels_to_array) 3 0.000 0.000 0.000 0.000 common.py:1427(_maybe_make_list) 1 0.000 0.000 0.000 0.000 common.py:1456(is_period_arraylike) 12 0.000 0.000 0.000 0.000 common.py:1491(_get_dtype) 2055 0.006 0.000 0.009 0.000 common.py:1511(_get_dtype_type) 5 0.000 0.000 0.000 0.000 common.py:1532(is_dtype_equal) 4 0.000 0.000 0.000 0.000 common.py:1550(is_integer_dtype) 4 0.000 0.000 0.000 0.000 common.py:1561(is_int_or_datetime_dtype) 1011 0.002 0.000 0.005 0.000 common.py:1567(is_datetime64_dtype) 64 0.000 0.000 0.000 0.000 common.py:1575(is_datetime64tz_dtype) 8 0.000 0.000 0.000 0.000 common.py:1592(is_timedelta64_dtype) 6 0.000 0.000 0.000 0.000 common.py:1602(is_datetime_or_timedelta_dtype) 1 0.000 0.000 0.000 0.000 common.py:165(_isnull_ndarraylike) 6 0.000 0.000 0.000 0.000 common.py:1664(needs_i8_conversion) 1 0.000 0.000 0.000 0.000 common.py:1675(is_string_dtype) 1 0.000 0.000 0.000 0.000 common.py:1680(is_string_like_dtype) 6 0.000 0.000 0.000 0.000 common.py:1686(is_float_dtype) 8 0.000 0.000 0.000 0.000 common.py:1696(is_bool_dtype) 6 0.000 0.000 0.000 0.000 common.py:1705(is_sparse) 58 0.000 0.000 0.001 0.000 common.py:1710(is_datetimetz) 2 0.000 0.000 0.000 0.000 common.py:1717(is_extension_type) 16 0.000 0.000 0.000 0.000 common.py:1731(is_categorical) 70 0.000 0.000 0.001 0.000 common.py:1736(is_categorical_dtype) 1008 0.002 0.000 0.009 0.000 common.py:1745(is_object_dtype) 5019 0.005 0.000 0.008 0.000 common.py:1763(is_list_like) 4 0.000 0.000 0.000 0.000 common.py:1788(is_hashable) 1002 0.001 0.000 0.001 0.000 common.py:1846(_apply_if_callable) 5 0.000 0.000 0.000 0.000 common.py:272(array_equivalent) 2008 0.002 0.000 0.021 0.000 common.py:379(_coerce_indexer_dtype) 2 0.000 0.000 0.000 0.000 common.py:446(_infer_dtype_from_scalar) 8 0.000 0.000 0.001 0.000 common.py:527(_maybe_promote) 5 0.000 0.000 0.000 0.000 common.py:73(isnull) 5 0.000 0.000 0.000 0.000 common.py:94(_isnull_new) 2 0.000 0.000 0.001 0.000 common.py:998(_possibly_convert_platform) 2 0.000 0.000 0.000 0.000 decorators.py:65(wrapper) 27 0.000 0.000 0.000 0.000 dtypes.py:122(construct_from_string) 9 0.000 0.000 0.000 0.000 dtypes.py:159(__init__) 9 0.000 0.000 0.000 0.000 dtypes.py:191(construct_from_string) 134 0.000 0.000 0.001 0.000 dtypes.py:74(is_dtype) 4 0.000 0.000 0.002 0.000 frame.py:1973(__getitem__) 503 0.000 0.000 0.000 0.000 frame.py:199(_constructor) 4 0.000 0.000 0.001 0.000 frame.py:1999(_getitem_column) 505 0.004 0.000 0.011 0.000 frame.py:210(__init__) 4 0.000 0.000 0.001 0.000 frame.py:2331(_box_item_values) 4 0.000 0.000 0.001 0.000 frame.py:2338(_box_col_values) 1 0.000 0.000 0.001 0.001 frame.py:2675(_reindex_axes) 1 0.000 0.000 0.001 0.001 frame.py:2700(_reindex_columns) 1 0.000 0.000 0.001 0.001 frame.py:2738(reindex) 1 0.000 0.000 2.401 2.401 frame.py:2769(set_index) 2 0.000 0.000 0.003 0.001 frame.py:307(_init_dict) 1 0.022 0.022 5.554 5.554 frame.py:3227(sort_index) 1 0.000 0.000 0.000 0.000 frame.py:434(axes) 2 0.000 0.000 0.002 0.001 frame.py:5224(_arrays_to_mgr) 2 0.000 0.000 0.000 0.000 frame.py:5244(extract_index) 2 0.000 0.000 0.001 0.001 frame.py:5521(_homogenize) 2 0.000 0.000 0.000 0.000 frame.py:726(__len__) 1 0.000 0.000 0.000 0.000 frequencies.py:1017(mdiffs) 1 0.000 0.000 0.000 0.000 frequencies.py:1022(ydiffs) 1 0.000 0.000 0.000 0.000 frequencies.py:1026(_infer_daily_rule) 1 0.000 0.000 0.000 0.000 frequencies.py:1062(_get_annual_rule) 1 0.000 0.000 0.000 0.000 frequencies.py:1073(_get_quarterly_rule) 1 0.000 0.000 0.000 0.000 frequencies.py:1084(_get_monthly_rule) 1 0.000 0.000 0.000 0.000 frequencies.py:1127(_maybe_add_count) 1 0.000 0.000 0.000 0.000 frequencies.py:1300(_is_multiple) 2 0.000 0.000 0.000 0.000 frequencies.py:420(to_offset) 1 0.000 0.000 0.000 0.000 frequencies.py:826(infer_freq) 1 0.000 0.000 0.000 0.000 frequencies.py:890(__init__) 1 0.000 0.000 0.000 0.000 frequencies.py:908(deltas) 1 0.000 0.000 0.000 0.000 frequencies.py:916(is_unique) 1 0.000 0.000 0.000 0.000 frequencies.py:924(get_freq) 1 0.000 0.000 0.000 0.000 frequencies.py:968(fields) 2 0.000 0.000 0.000 0.000 fromnumeric.py:2395(prod) 1 0.000 0.000 0.000 0.000 fromnumeric.py:829(argsort) 500 0.002 0.000 0.019 0.000 function.py:36(__call__) 3 0.107 0.036 0.107 0.036 function_base.py:4110(delete) 503 0.001 0.000 0.001 0.000 generic.py:124(_init_mgr) 998 0.001 0.000 0.002 0.000 generic.py:1312(_indexer) 4 0.000 0.000 0.001 0.000 generic.py:1345(_get_item_cache) 4 0.000 0.000 0.000 0.000 generic.py:1359(_set_as_cached) 499 0.001 0.000 0.003 0.000 generic.py:1402(_is_view) 500 0.001 0.000 0.001 0.000 generic.py:1441(_clear_item_cache) 499 0.006 0.000 0.167 0.000 generic.py:1447(_slice) 998 0.003 0.000 0.005 0.000 generic.py:1467(_set_is_copy) 2 0.000 0.000 0.108 0.054 generic.py:1580(__delitem__) 499 0.014 0.000 2.877 0.006 generic.py:1643(xs) 1 0.000 0.000 0.001 0.001 generic.py:1846(drop) 1 0.000 0.000 0.001 0.001 generic.py:2194(reindex) 1 0.000 0.000 0.000 0.000 generic.py:2251(_needs_reindex_multi) 1 0.000 0.000 0.000 0.000 generic.py:2320(_reindex_with_indexers) 1 0.000 0.000 0.000 0.000 generic.py:260(_construct_axes_from_arguments) 504 0.001 0.000 0.001 0.000 generic.py:2641(__finalize__) 4 0.000 0.000 0.000 0.000 generic.py:2658(__getattr__) 2012 0.007 0.000 0.016 0.000 generic.py:2674(__setattr__) 500 0.002 0.000 0.010 0.000 generic.py:2713(_protect_consolidate) 500 0.002 0.000 0.012 0.000 generic.py:2723(_consolidate_inplace) 500 0.003 0.000 0.008 0.000 generic.py:2726(f) 1 0.000 0.000 0.877 0.877 generic.py:2953(copy) 1002 0.004 0.000 0.005 0.000 generic.py:307(_get_axis_number) 2499 0.005 0.000 0.006 0.000 generic.py:320(_get_axis_name) 2498 0.004 0.000 0.014 0.000 generic.py:333(_get_axis) 501 0.001 0.000 0.003 0.000 generic.py:337(_get_block_manager_axis) 2 0.000 0.000 0.000 0.000 generic.py:381(_info_axis) 2 0.000 0.000 0.000 0.000 generic.py:401(ndim) 500 0.002 0.000 0.009 0.000 generic.py:427(_set_axis) 3151 0.003 0.000 0.007 0.000 generic.py:7(_check) 2 0.000 0.000 0.000 0.000 generic.py:844(__contains__) 509 0.002 0.000 0.002 0.000 generic.py:94(__init__) 1 0.115 0.115 0.339 0.339 groupby.py:3978(get_group_index) 1 0.000 0.000 0.000 0.000 groupby.py:4005(_int64_cut_off) 1 0.218 0.218 0.218 0.218 groupby.py:4013(loop) 2 0.005 0.003 0.006 0.003 groupby.py:4043(maybe_lift) 1 0.000 0.000 0.000 0.000 groupby.py:4056(_int64_overflow_possible) 1 0.004 0.004 1.720 1.720 groupby.py:4110(_indexer_from_factorized) 1 0.010 0.010 2.549 2.549 groupby.py:4122(_lexsort_indexer) 1 0.000 0.000 0.030 0.030 groupby.py:4244(_get_group_index_sorter) 1 0.001 0.001 1.348 1.348 groupby.py:4269(_compress_group_index) 1 0.004 0.004 0.237 0.237 groupby.py:4290(_reorder_by_uniques) 998 0.035 0.000 0.102 0.000 index.py:1406(get_loc) 998 0.004 0.000 0.024 0.000 index.py:1477(_get_string_slice) 1999 0.001 0.000 0.001 0.000 index.py:1538(_get_freq) 1 0.000 0.000 0.000 0.000 index.py:1657(inferred_type) 1 0.000 0.000 0.000 0.000 index.py:1663(dtype) 2 0.000 0.000 0.000 0.000 index.py:219(__new__) 1 0.000 0.000 0.000 0.000 index.py:545(_box_func) 499 0.003 0.000 0.003 0.000 index.py:547(<lambda>) 1003 0.009 0.000 0.028 0.000 index.py:570(_simple_new) 2 0.000 0.000 0.000 0.000 index_tricks.py:231(_retval) 2 0.000 0.000 0.000 0.000 index_tricks.py:251(__getitem__) 998/499 0.005 0.000 5.262 0.011 indexing.py:1286(__getitem__) 499 0.006 0.000 2.364 0.005 indexing.py:1355(_has_valid_type) 499 0.001 0.000 0.001 0.000 indexing.py:1407(_get_partial_string_timestamp_match_key) 499 0.006 0.000 5.259 0.011 indexing.py:1431(_getitem_axis) 499 0.001 0.000 0.003 0.000 indexing.py:1498(_has_valid_type) 499 0.003 0.000 0.183 0.000 indexing.py:1571(_get_slice_axis) 499 0.002 0.000 0.188 0.000 indexing.py:1583(_getitem_axis) 499 0.002 0.000 0.009 0.000 indexing.py:183(_convert_scalar_indexer) 499 0.003 0.000 0.012 0.000 indexing.py:189(_convert_slice_indexer) 998 0.001 0.000 0.002 0.000 indexing.py:1890(is_list_like_indexer) 499 0.001 0.000 0.001 0.000 indexing.py:1901(need_slice) 2 0.000 0.000 0.000 0.000 indexing.py:50(__init__) 499 0.004 0.000 2.882 0.006 indexing.py:80(_get_label) 499 0.001 0.000 0.168 0.000 indexing.py:98(_slice) 499 0.001 0.000 0.001 0.000 internals.py:100(is_view) 4 0.000 0.000 0.000 0.000 internals.py:129(internal_values) 3 0.000 0.000 0.000 0.000 internals.py:135(get_values) 2 0.000 0.000 0.000 0.000 internals.py:156(fill_value) 1555 0.001 0.000 0.001 0.000 internals.py:160(mgr_locs) 4 0.000 0.000 0.000 0.000 internals.py:1657(__init__) 1 0.000 0.000 0.000 0.000 internals.py:1665(is_bool) 507 0.002 0.000 0.008 0.000 internals.py:183(make_block_same_class) 517 0.001 0.000 0.001 0.000 internals.py:191(mgr_locs) 499 0.001 0.000 0.001 0.000 internals.py:225(_slice) 499 0.006 0.000 0.016 0.000 internals.py:244(getitem_block) 514 0.002 0.000 0.006 0.000 internals.py:2482(make_block) 505 0.004 0.000 0.053 0.000 internals.py:2578(__init__) 1027 0.004 0.000 0.012 0.000 internals.py:2619(shape) 3081 0.001 0.000 0.008 0.000 internals.py:2621(<genexpr>) 1016 0.001 0.000 0.001 0.000 internals.py:2623(ndim) 500 0.002 0.000 0.007 0.000 internals.py:2627(set_axis) 8 0.000 0.000 0.000 0.000 internals.py:264(shape) 3 0.000 0.000 0.000 0.000 internals.py:2662(_is_single_block) 508 0.015 0.000 0.041 0.000 internals.py:2674(_rebuild_blknos_and_blklocs) 21 0.000 0.000 0.000 0.000 internals.py:2695(_get_items) 520 0.000 0.000 0.000 0.000 internals.py:272(dtype) 509 0.003 0.000 0.004 0.000 internals.py:276(ftype) 2 0.000 0.000 0.000 0.000 internals.py:2784(__len__) 5 0.000 0.000 0.000 0.000 internals.py:2799(_verify_integrity) 13 0.000 0.000 0.000 0.000 internals.py:2801(<genexpr>) 1 0.000 0.000 0.877 0.877 internals.py:2811(apply) 1 0.000 0.000 0.000 0.000 internals.py:2871(<genexpr>) 1006 0.001 0.000 0.001 0.000 internals.py:2996(is_consolidated) 505 0.003 0.000 0.006 0.000 internals.py:3004(_consolidate_check) 4 0.000 0.000 0.000 0.000 internals.py:301(iget) 499 0.001 0.000 0.002 0.000 internals.py:3027(is_view) 499 0.009 0.000 0.145 0.000 internals.py:3084(get_slice) 1 0.000 0.000 0.877 0.877 internals.py:3111(copy) 2 0.000 0.000 0.000 0.000 internals.py:3131(<lambda>) 1 0.000 0.000 0.107 0.107 internals.py:314(delete) 500 0.001 0.000 0.002 0.000 internals.py:3260(consolidate) 506 0.004 0.000 0.498 0.001 internals.py:3276(_consolidate_inplace) 4 0.000 0.000 0.000 0.000 internals.py:3283(get) 4 0.000 0.000 0.000 0.000 internals.py:3312(iget) 2 0.000 0.000 0.108 0.054 internals.py:3345(delete) 4 0.000 0.000 0.000 0.000 internals.py:3378(<genexpr>) 2 0.000 0.000 0.012 0.006 internals.py:3560(reindex_indexer) 1 0.000 0.000 0.000 0.000 internals.py:3603(_slice_take_blocks_ax0) 1 0.000 0.000 0.030 0.030 internals.py:3690(take) 4 0.000 0.000 0.000 0.000 internals.py:3778(__init__) 4 0.000 0.000 0.000 0.000 internals.py:3824(_block) 4 0.000 0.000 0.000 0.000 internals.py:3911(internal_values) 2 0.000 0.000 0.001 0.001 internals.py:3996(create_block_manager_from_arrays) 2 0.000 0.000 0.001 0.000 internals.py:4007(form_blocks) 1 0.000 0.000 0.000 0.000 internals.py:4122(_simple_blockify) 2 0.000 0.000 0.000 0.000 internals.py:4136(_multi_blockify) 3 0.000 0.000 0.000 0.000 internals.py:4140(<lambda>) 3 0.000 0.000 0.000 0.000 internals.py:4168(_stack_arrays) 4 0.000 0.000 0.000 0.000 internals.py:4171(_asarray_compat) 3 0.000 0.000 0.000 0.000 internals.py:4177(_shape_compat) 1 0.000 0.000 0.493 0.493 internals.py:4257(_consolidate) 6 0.000 0.000 0.000 0.000 internals.py:4263(<lambda>) 2 0.250 0.125 0.493 0.247 internals.py:4274(_merge_blocks) 4 0.000 0.000 0.000 0.000 internals.py:4301(_extend_blocks) 1 0.000 0.000 0.243 0.243 internals.py:4327(_vstack) 5 0.000 0.000 0.000 0.000 internals.py:4409(_get_blkno_placements) 1 0.000 0.000 0.000 0.000 internals.py:4432(items_overlap_with_suffix) 1 0.000 0.000 0.372 0.372 internals.py:4526(concatenate_block_managers) 3 0.000 0.000 0.012 0.004 internals.py:4550(get_empty_dtype_and_na) 3 0.000 0.000 0.372 0.124 internals.py:4630(concatenate_join_units) 2 0.000 0.000 0.000 0.000 internals.py:4655(get_mgr_concatenation_plan) 4 0.000 0.000 0.000 0.000 internals.py:4734(combine_concat_plans) 3 0.000 0.000 0.000 0.000 internals.py:4827(__init__) 3 0.011 0.004 0.011 0.004 internals.py:4839(needs_filling) 3 0.000 0.000 0.011 0.004 internals.py:4848(dtype) 3 0.000 0.000 0.000 0.000 internals.py:4861(is_null) 3 0.000 0.000 0.360 0.120 internals.py:4890(get_reindexed_values) 2 0.000 0.000 0.000 0.000 internals.py:4947(_fast_count_smallints) 1 0.000 0.000 0.000 0.000 internals.py:4958(_preprocess_slice_or_indexer) 2 0.000 0.000 0.379 0.190 internals.py:581(copy) 514 0.002 0.000 0.004 0.000 internals.py:77(__init__) 6 0.000 0.000 0.000 0.000 internals.py:92(_consolidate_key) 2 0.000 0.000 0.011 0.006 internals.py:975(take_nd) 1 0.000 0.000 0.000 0.000 merge.py:1252(_should_fill) 2 0.000 0.000 0.000 0.000 merge.py:1259(_any) 1 0.000 0.000 0.002 0.002 merge.py:161(__init__) 1 0.000 0.000 0.929 0.929 merge.py:212(get_result) 1 0.003 0.003 0.003 0.003 merge.py:282(_maybe_add_join_keys) 1 0.003 0.003 0.933 0.933 merge.py:30(merge) 1 0.000 0.000 0.553 0.553 merge.py:333(_get_join_info) 1 0.000 0.000 0.002 0.002 merge.py:393(_get_merge_keys) 1 0.000 0.000 0.000 0.000 merge.py:416(<lambda>) 1 0.000 0.000 0.000 0.000 merge.py:418(<lambda>) 1 0.000 0.000 0.000 0.000 merge.py:482(_validate_specification) 1 0.000 0.000 0.458 0.458 merge.py:527(_get_join_indexers) 2 0.000 0.000 0.000 0.000 merge.py:698(_factorize_keys) 1 0.000 0.000 0.000 0.000 merge.py:757(_get_join_keys) 1 0.000 0.000 0.000 0.000 merge.py:761(<lambda>) 3 0.000 0.000 0.000 0.000 missing.py:559(clean_reindex_fill_method) 3 0.000 0.000 0.000 0.000 missing.py:61(clean_fill_method) 1 0.000 0.000 0.019 0.019 multi.py:1010(take) 1 0.000 0.000 0.018 0.018 multi.py:1022(_assert_take_fillable) 499 0.033 0.000 0.111 0.000 multi.py:1155(droplevel) 998 0.001 0.000 0.009 0.000 multi.py:1180(<genexpr>) 14495 0.004 0.000 0.004 0.000 multi.py:131(_get_levels) 1001 0.008 0.000 0.086 0.000 multi.py:134(_set_levels) 3003 0.005 0.000 0.071 0.000 multi.py:148(<genexpr>) 499 0.004 0.000 2.342 0.005 multi.py:1515(get_loc) 499 0.003 0.000 0.005 0.000 multi.py:1534(_maybe_to_slice) 499 0.009 0.000 2.633 0.005 multi.py:1601(get_loc_level) 499 0.008 0.000 0.274 0.001 multi.py:1615(maybe_droplevels) 998 0.029 0.000 4.658 0.005 multi.py:1734(_get_level_indexer) 4503 0.002 0.000 0.002 0.000 multi.py:240(_get_labels) 1001 0.008 0.000 0.030 0.000 multi.py:243(_set_labels) 3003 0.005 0.000 0.019 0.000 multi.py:253(<genexpr>) 2002 0.003 0.000 0.009 0.000 multi.py:433(__len__) 5493 0.028 0.000 0.035 0.000 multi.py:436(_get_names) 14477 0.005 0.000 0.005 0.000 multi.py:437(<genexpr>) 1001 0.010 0.000 0.034 0.000 multi.py:439(_set_names) 1497 0.016 0.000 0.046 0.000 multi.py:510(_get_level_number) 1 0.000 0.000 1.315 1.315 multi.py:535(values) 1001 0.009 0.000 0.160 0.000 multi.py:69(__new__) 1 0.000 0.000 0.009 0.009 multi.py:781(is_lexsorted) 2 0.000 0.000 0.023 0.011 multi.py:793(lexsort_depth) 2 0.000 0.000 2.968 1.484 multi.py:808(from_arrays) 1 0.000 0.000 1.628 1.628 multi.py:852(from_tuples) 3502 0.003 0.000 0.004 0.000 multi.py:941(nlevels) 499 0.002 0.000 2.345 0.005 multi.py:949(__contains__) 998 0.021 0.000 0.206 0.000 multi.py:986(__getitem__) 2 0.000 0.000 0.000 0.000 numeric.py:121(asi8) 4 0.000 0.000 0.000 0.000 numeric.py:126(is_all_dates) 3 0.000 0.000 0.000 0.000 numeric.py:148(ones) 53 0.000 0.000 0.000 0.000 numeric.py:414(asarray) 4 0.000 0.000 0.000 0.000 numeric.py:484(asanyarray) 5 0.000 0.000 0.000 0.000 numeric.py:607(require) 10 0.000 0.000 0.000 0.000 numeric.py:676(<genexpr>) 5 0.000 0.000 0.000 0.000 numeric.py:93(__new__) 4 0.000 0.000 0.000 0.000 numerictypes.py:942(_can_coerce_all) 2 0.000 0.000 0.000 0.000 numerictypes.py:964(find_common_type) 2 0.000 0.000 0.000 0.000 range.py:117(_simple_new) 2 0.000 0.000 0.000 0.000 range.py:139(_validate_dtype) 2 0.000 0.000 0.000 0.000 range.py:42(__new__) 18 0.000 0.000 0.000 0.000 range.py:435(__len__) 4 0.000 0.000 0.000 0.000 range.py:58(_ensure_int) 4 0.000 0.000 0.000 0.000 series.py:120(__init__) 4 0.000 0.000 0.000 0.000 series.py:236(from_array) 4 0.000 0.000 0.000 0.000 series.py:270(_set_axis) 4 0.000 0.000 0.001 0.000 series.py:2787(_sanitize_array) 2 0.000 0.000 0.000 0.000 series.py:2804(_try_cast) 2 0.000 0.000 0.000 0.000 series.py:2875(create_from_value) 4 0.000 0.000 0.000 0.000 series.py:292(_set_subtyp) 4 0.000 0.000 0.000 0.000 series.py:302(name) 4 0.000 0.000 0.000 0.000 series.py:306(name) 4 0.000 0.000 0.000 0.000 series.py:366(_values) 1 0.000 0.000 0.243 0.243 shape_base.py:180(vstack) 2 0.000 0.000 0.000 0.000 shape_base.py:61(atleast_2d) 1 0.000 0.000 0.000 0.000 six.py:180(find_module) 3 0.000 0.000 0.000 0.000 six.py:184(find_module) 1 0.023 0.023 14.176 14.176 testDatesPerformance.py:6(testPerformance) 998 0.013 0.000 0.014 0.000 tools.py:603(parse_time_string) 500 0.006 0.000 0.007 0.000 validators.py:104(_check_for_invalid_keys) 500 0.002 0.000 0.017 0.000 validators.py:120(validate_kwargs) 500 0.007 0.000 0.007 0.000 validators.py:29(_check_for_default_values) 1 0.000 0.000 0.000 0.000 {all} 1004 0.001 0.000 0.001 0.000 {any} 3523 0.002 0.000 0.002 0.000 {built-in method __new__ of type object at 0x7f63038a7f20} 1002 0.000 0.000 0.000 0.000 {callable} 6001 0.002 0.000 0.002 0.000 {function __getitem__ at 0x7f62f7ed9230} 16175/16172 0.017 0.000 0.020 0.000 {getattr} 6711 0.003 0.000 0.003 0.000 {hasattr} 509 0.001 0.000 0.001 0.000 {hash} 50016 0.025 0.000 0.032 0.000 {isinstance} 2230 0.001 0.000 0.001 0.000 {issubclass} 27470/21885 0.010 0.000 0.021 0.000 {len} 21 0.000 0.000 0.000 0.000 {max} 5 0.000 0.000 0.000 0.000 {method 'add' of 'pandas.lib.BlockPlacement' objects} 7 0.000 0.000 0.000 0.000 {method 'all' of 'numpy.ndarray' objects} 1025 0.002 0.000 0.025 0.000 {method 'any' of 'numpy.ndarray' objects} 49 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects} 8 0.055 0.007 0.055 0.007 {method 'argsort' of 'numpy.ndarray' objects} 12 0.000 0.000 0.000 0.000 {method 'astype' of 'numpy.ndarray' objects} 500 0.000 0.000 0.000 0.000 {method 'clear' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'clear_mapping' of 'pandas.index.IndexEngine' objects} 502 0.000 0.000 0.000 0.000 {method 'copy' of 'dict' objects} 4 0.381 0.095 0.381 0.095 {method 'copy' of 'numpy.ndarray' objects} 1497 0.002 0.000 0.002 0.000 {method 'count' of 'list' objects} 2 0.000 0.000 0.000 0.000 {method 'cumsum' of 'numpy.ndarray' objects} 1 0.000 0.000 0.000 0.000 {method 'delete' of 'pandas.lib.BlockPlacement' objects} 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} 3 0.000 0.000 0.000 0.000 {method 'extend' of 'list' objects} 4 0.000 0.000 0.000 0.000 {method 'factorize' of 'pandas.hashtable.Int64Factorizer' objects} 1018 0.002 0.000 0.002 0.000 {method 'fill' of 'numpy.ndarray' objects} 3519 0.001 0.000 0.001 0.000 {method 'get' of 'dict' objects} 2 0.000 0.000 0.000 0.000 {method 'get_count' of 'pandas.hashtable.Int64Factorizer' objects} 2 0.000 0.000 0.000 0.000 {method 'get_indexer' of 'pandas.index.IndexEngine' objects} 5 1.934 0.387 1.934 0.387 {method 'get_labels' of 'pandas.hashtable.Int64HashTable' objects} 1 0.264 0.264 0.264 0.264 {method 'get_labels' of 'pandas.hashtable.PyObjectHashTable' objects} 1 1.110 1.110 1.110 1.110 {method 'get_labels_groupby' of 'pandas.hashtable.Int64HashTable' objects} 2994 0.023 0.000 0.023 0.000 {method 'get_loc' of 'pandas.index.DatetimeEngine' objects} 11 0.000 0.000 0.000 0.000 {method 'get_loc' of 'pandas.index.IndexEngine' objects} 1497 0.006 0.000 0.006 0.000 {method 'index' of 'list' objects} 509 0.000 0.000 0.000 0.000 {method 'items' of 'dict' objects} 1519 0.001 0.000 0.001 0.000 {method 'iteritems' of 'dict' objects} 3 0.000 0.000 0.000 0.000 {method 'keys' of 'dict' objects} 6 0.000 0.000 0.000 0.000 {method 'nonzero' of 'numpy.ndarray' objects} 1 0.000 0.000 0.000 0.000 {method 'partition' of 'str' objects} 16 0.000 0.000 0.000 0.000 {method 'pop' of 'dict' objects} 1497 0.001 0.000 0.001 0.000 {method 'pop' of 'list' objects} 7 0.039 0.006 0.039 0.006 {method 'put' of 'numpy.ndarray' objects} 7 0.000 0.000 0.000 0.000 {method 'ravel' of 'numpy.ndarray' objects} 1036 0.021 0.000 0.021 0.000 {method 'reduce' of 'numpy.ufunc' objects} 3 0.000 0.000 0.000 0.000 {method 'reshape' of 'numpy.ndarray' objects} 9 0.000 0.000 0.000 0.000 {method 'search' of '_sre.SRE_Pattern' objects} 1996 4.507 0.002 4.507 0.002 {method 'searchsorted' of 'numpy.ndarray' objects} 2 0.000 0.000 0.000 0.000 {method 'startswith' of 'str' objects} 513 0.733 0.001 0.733 0.001 {method 'take' of 'numpy.ndarray' objects} 5 0.000 0.000 0.000 0.000 {method 'to_array' of 'pandas.hashtable.Int64Vector' objects} 1 0.000 0.000 0.000 0.000 {method 'to_array' of 'pandas.hashtable.ObjectVector' objects} 4 0.000 0.000 0.000 0.000 {method 'transpose' of 'numpy.ndarray' objects} 2507 0.001 0.000 0.001 0.000 {method 'update' of 'dict' objects} 5 0.000 0.000 0.000 0.000 {method 'upper' of 'str' objects} 4 0.000 0.000 0.000 0.000 {method 'values' of 'dict' objects} 6560 0.006 0.000 0.006 0.000 {method 'view' of 'numpy.ndarray' objects} 1009 0.001 0.000 0.001 0.000 {min} 1 0.000 0.000 0.000 0.000 {next} 523 0.115 0.000 0.115 0.000 {numpy.core.multiarray.arange} 1090 0.001 0.000 0.001 0.000 {numpy.core.multiarray.array} 2 0.000 0.000 0.000 0.000 {numpy.core.multiarray.bincount} 3 0.000 0.000 0.000 0.000 {numpy.core.multiarray.can_cast} 5 0.243 0.049 0.243 0.049 {numpy.core.multiarray.concatenate} 3 0.000 0.000 0.000 0.000 {numpy.core.multiarray.copyto} 1043 0.121 0.000 0.121 0.000 {numpy.core.multiarray.empty} 7 0.012 0.002 0.012 0.002 {numpy.core.multiarray.putmask} 2 0.006 0.003 0.006 0.003 {numpy.core.multiarray.where} 2 0.000 0.000 0.000 0.000 {numpy.core.multiarray.zeros} 2008 0.015 0.000 0.015 0.000 {pandas.algos.ensure_int16} 38 0.028 0.001 0.028 0.001 {pandas.algos.ensure_int64} 5 0.000 0.000 0.000 0.000 {pandas.algos.ensure_object} 509 0.007 0.000 0.007 0.000 {pandas.algos.ensure_platform_int} 1 0.030 0.030 0.030 0.030 {pandas.algos.groupsort_indexer} 1 0.000 0.000 0.000 0.000 {pandas.algos.inner_join_indexer_object} 1 0.457 0.457 0.457 0.457 {pandas.algos.inner_join} 5 0.126 0.025 0.126 0.025 {pandas.algos.take_1d_int64_int64} 1 0.013 0.013 0.013 0.013 {pandas.algos.take_1d_object_object} 1 0.000 0.000 0.000 0.000 {pandas.algos.take_2d_axis0_int64_int64} 3 0.239 0.080 0.239 0.080 {pandas.algos.take_2d_axis1_int64_int64} 1 0.014 0.014 0.014 0.014 {pandas.algos.take_2d_axis1_object_object} 2 0.000 0.000 0.000 0.000 {pandas.lib.array_equivalent_object} 4 0.000 0.000 0.000 0.000 {pandas.lib.checknull} 1 1.278 1.278 1.278 1.278 {pandas.lib.fast_zip} 2 0.000 0.000 0.000 0.000 {pandas.lib.get_blkno_indexers} 19 0.000 0.000 0.000 0.000 {pandas.lib.infer_dtype} 1 0.000 0.000 0.000 0.000 {pandas.lib.is_bool_array} 11 0.000 0.000 0.000 0.000 {pandas.lib.is_bool} 1 0.000 0.000 0.000 0.000 {pandas.lib.is_complex} 1006 0.000 0.000 0.000 0.000 {pandas.lib.is_float} 2007 0.001 0.000 0.001 0.000 {pandas.lib.is_integer} 3 0.006 0.002 0.006 0.002 {pandas.lib.is_lexsorted} 1 0.000 0.000 0.000 0.000 {pandas.lib.is_timedelta_array} 1 0.000 0.000 0.000 0.000 {pandas.lib.isnullobj} 1516 0.008 0.000 0.008 0.000 {pandas.lib.isscalar} 4 0.000 0.000 0.000 0.000 {pandas.lib.list_to_object_array} 1 0.000 0.000 0.003 0.003 {pandas.lib.map_infer} 2 0.001 0.000 0.001 0.000 {pandas.lib.maybe_convert_objects} 1 0.073 0.073 0.073 0.073 {pandas.lib.tuples_to_object_array} 2023 0.004 0.000 0.004 0.000 {pandas.lib.values_from_object} 2 0.801 0.400 0.801 0.400 {pandas.tslib.array_to_datetime} 1 0.000 0.000 0.000 0.000 {pandas.tslib.build_field_sarray} 1 0.000 0.000 0.000 0.000 {pandas.tslib.is_timestamp_array} 1003 0.002 0.000 0.002 0.000 {pandas.tslib.maybe_get_tz} 3 0.000 0.000 0.000 0.000 {pandas.tslib.unique_deltas} 8 0.000 0.000 0.000 0.000 {range} 2 0.000 0.000 0.000 0.000 {setattr} 1002 0.004 0.000 0.013 0.000 {sorted} 6 0.000 0.000 0.000 0.000 {sum} 2 0.000 0.000 0.000 0.000 {time.time} Process finished with exit code 0 # Output from 0.12 /opt/epd/7.3-2_pandas0.12/bin/python2.7 /home/gamantini/QA/avoitenok/pandas_migration/testDatesPerformance.py 500 0.138274908066 91488 function calls (90977 primitive calls) in 2.079 seconds Ordered by: standard name ncalls tottime percall cumtime percall filename:lineno(function) 1 0.000 0.000 2.079 2.079 <string>:1(<module>) 4 0.000 0.000 0.000 0.000 _methods.py:20(_prod) 11 0.000 0.000 0.011 0.001 _methods.py:24(_any) 1 0.000 0.000 0.000 0.000 _methods.py:28(_all) 2 0.008 0.004 0.309 0.154 algorithms.py:105(factorize) 2 0.000 0.000 0.000 0.000 algorithms.py:298(_get_data_algo) 1 0.000 0.000 0.000 0.000 arraysetops.py:281(in1d) 1 0.000 0.000 0.000 0.000 arraysetops.py:388(setdiff1d) 2 0.000 0.000 0.000 0.000 arraysetops.py:90(unique) 1000 0.000 0.000 0.000 0.000 base.py:45(_constructor) 2 0.000 0.000 0.000 0.000 categorical.py:111(_set_levels) 2 0.000 0.000 0.000 0.000 categorical.py:119(_get_levels) 2 0.000 0.000 0.000 0.000 categorical.py:71(__init__) 2 0.001 0.000 0.310 0.155 categorical.py:87(from_array) 2 0.000 0.000 0.001 0.000 common.py:1138(_possibly_convert_platform) 4 0.000 0.000 0.000 0.000 common.py:1167(_possibly_cast_to_datetime) 1504 0.001 0.000 0.003 0.000 common.py:1232(_is_bool_indexer) 2 0.000 0.000 0.000 0.000 common.py:1292(_try_sort) 3 0.000 0.000 0.000 0.000 common.py:1369(split_ranges) 16 0.000 0.000 0.000 0.000 common.py:1468(_asarray_tuplesafe) 1 0.000 0.000 0.000 0.000 common.py:1496(_index_labels_to_array) 3 0.000 0.000 0.000 0.000 common.py:1511(_maybe_make_list) 2 0.000 0.000 0.000 0.000 common.py:1517(is_bool) 1502 0.001 0.000 0.001 0.000 common.py:1521(is_integer) 5 0.000 0.000 0.000 0.000 common.py:1525(is_float) 2 0.000 0.000 0.000 0.000 common.py:1542(is_integer_dtype) 4 0.000 0.000 0.000 0.000 common.py:1552(_is_int_or_datetime_dtype) 4 0.000 0.000 0.000 0.000 common.py:1561(is_datetime64_dtype) 2 0.000 0.000 0.000 0.000 common.py:1583(is_float_dtype) 4 0.000 0.000 0.000 0.000 common.py:1611(is_list_like) 8 0.000 0.000 0.000 0.000 common.py:431(_get_take_nd_function) 8 0.013 0.002 0.204 0.025 common.py:462(take_nd) 2 0.000 0.000 0.000 0.000 common.py:677(_infer_dtype_from_scalar) 5 0.000 0.000 0.000 0.000 common.py:728(_maybe_promote) 1 0.000 0.000 0.000 0.000 frame.py:1722(as_matrix) 504 0.001 0.000 0.039 0.000 frame.py:1986(__getitem__) 499 0.000 0.000 0.033 0.000 frame.py:2008(_getitem_slice) 499 0.002 0.000 0.033 0.000 frame.py:2063(_slice) 5 0.000 0.000 0.000 0.000 frame.py:2075(_box_item_values) 1501 0.004 0.000 0.007 0.000 frame.py:2090(__setattr__) 499 0.004 0.000 0.127 0.000 frame.py:2264(xs) 1 0.000 0.000 0.001 0.001 frame.py:2573(reindex) 1 0.000 0.000 0.000 0.000 frame.py:2709(_reindex_columns) 1 0.000 0.000 0.000 0.000 frame.py:2717(_reindex_with_indexers) 1 0.000 0.000 0.342 0.342 frame.py:2771(set_index) 1 0.000 0.000 0.053 0.053 frame.py:2963(take) 1 0.024 0.024 1.380 1.380 frame.py:3207(sort_index) 505 0.001 0.000 0.006 0.000 frame.py:386(__init__) 502 0.000 0.000 0.000 0.000 frame.py:466(_init_mgr) 2 0.000 0.000 0.003 0.001 frame.py:480(_init_dict) 1 0.000 0.000 0.000 0.000 frame.py:530(_init_ndarray) 2 0.000 0.000 0.002 0.001 frame.py:5663(_arrays_to_mgr) 2 0.000 0.000 0.000 0.000 frame.py:5682(extract_index) 1 0.000 0.000 0.000 0.000 frame.py:5734(_prep_ndarray) 1 0.000 0.000 0.000 0.000 frame.py:583(axes) 2 0.000 0.000 0.001 0.001 frame.py:5908(_homogenize) 1 0.000 0.000 0.000 0.000 frame.py:795(__len__) 2 0.000 0.000 0.000 0.000 frame.py:799(__contains__) 4 0.000 0.000 0.001 0.000 fromnumeric.py:2022(prod) 3 0.000 0.000 0.000 0.000 function_base.py:3384(delete) 499 0.001 0.000 0.002 0.000 function_base.py:35(iterable) 499 0.000 0.000 0.001 0.000 generic.py:102(_indexer) 1 0.000 0.000 0.001 0.001 generic.py:380(drop) 505 0.001 0.000 0.001 0.000 generic.py:605(__init__) 1 0.000 0.000 0.000 0.000 generic.py:651(ndim) 500 0.001 0.000 0.003 0.000 generic.py:655(_set_axis) 500 0.001 0.000 0.001 0.000 generic.py:66(_get_axis_number) 5 0.000 0.000 0.000 0.000 generic.py:662(_get_item_cache) 500 0.000 0.000 0.000 0.000 generic.py:675(_clear_item_cache) 2 0.000 0.000 0.001 0.000 generic.py:682(__delitem__) 1000 0.002 0.000 0.007 0.000 generic.py:750(_consolidate_inplace) 1000 0.001 0.000 0.002 0.000 generic.py:751(<lambda>) 1 0.000 0.000 0.000 0.000 generic.py:778(_is_mixed_type) 1001 0.001 0.000 0.002 0.000 generic.py:78(_get_axis_name) 1 0.000 0.000 0.000 0.000 generic.py:780(<lambda>) 1001 0.001 0.000 0.004 0.000 generic.py:788(_protect_consolidate) 1000 0.001 0.000 0.003 0.000 generic.py:90(_get_axis) 1 0.000 0.000 0.031 0.031 generic.py:950(copy) 3 0.036 0.012 0.041 0.014 groupby.py:2427(get_group_index) 1 0.000 0.000 0.000 0.000 groupby.py:2450(_int64_overflow_possible) 1 0.001 0.001 0.781 0.781 groupby.py:2473(_indexer_from_factorized) 1 0.016 0.016 1.302 1.302 groupby.py:2497(_lexsort_indexer) 1 0.000 0.000 0.658 0.658 groupby.py:2567(_compress_group_index) 1 0.004 0.004 0.337 0.337 groupby.py:2587(_reorder_by_uniques) 3 0.000 0.000 0.000 0.000 index.py:1261(delete) 1 0.000 0.000 0.000 0.000 index.py:1291(drop) 503 0.002 0.000 0.005 0.000 index.py:1341(__new__) 520 0.000 0.000 0.001 0.000 index.py:135(__array_finalize__) 5 0.000 0.000 0.000 0.000 index.py:1382(is_all_dates) 2 0.000 0.000 0.000 0.000 index.py:1430(__new__) 1000 0.001 0.000 0.001 0.000 index.py:1473(__array_finalize__) 502 0.000 0.000 0.000 0.000 index.py:1509(__len__) 1 0.000 0.000 0.000 0.000 index.py:1519(inferred_type) 1497 0.006 0.000 0.010 0.000 index.py:1533(_get_level_number) 1 0.000 0.000 0.007 0.007 index.py:1730(lexsort_depth) 1 0.000 0.000 0.310 0.310 index.py:1745(from_arrays) 1 0.000 0.000 0.000 0.000 index.py:180(_assert_can_do_setop) 1500 0.001 0.000 0.001 0.000 index.py:1808(nlevels) 998 0.008 0.000 0.019 0.000 index.py:1843(__getitem__) 1 0.000 0.000 0.037 0.037 index.py:1872(take) 6 0.000 0.000 0.000 0.000 index.py:189(dtype) 499 0.003 0.000 0.035 0.000 index.py:1957(droplevel) 998 0.001 0.000 0.004 0.000 index.py:1982(<genexpr>) 1 0.000 0.000 0.000 0.000 index.py:199(_get_names) 1 0.000 0.000 0.000 0.000 index.py:202(_set_names) 499 0.002 0.000 0.072 0.000 index.py:2287(get_loc_level) 499 0.003 0.000 0.052 0.000 index.py:2299(_drop_levels) 36 0.000 0.000 0.000 0.000 index.py:236(values) 499 0.002 0.000 0.014 0.000 index.py:2385(_get_level_indexer) 2 0.000 0.000 0.000 0.000 index.py:240(is_monotonic) 9 0.000 0.000 0.000 0.000 index.py:247(is_unique) 1 0.000 0.000 0.000 0.000 index.py:266(_cleanup) 1546 0.001 0.000 0.002 0.000 index.py:2665(_ensure_index) 13 0.000 0.000 0.000 0.000 index.py:269(_engine) 14 0.000 0.000 0.000 0.000 index.py:272(<lambda>) 2 0.000 0.000 0.000 0.000 index.py:282(inferred_type) 4 0.000 0.000 0.000 0.000 index.py:293(__iter__) 24 0.000 0.000 0.000 0.000 index.py:318(__contains__) 8 0.000 0.000 0.000 0.000 index.py:332(__getitem__) 2 0.000 0.000 0.000 0.000 index.py:347(append) 2 0.000 0.000 0.000 0.000 index.py:378(_ensure_compat_concat) 500 0.003 0.000 0.025 0.000 index.py:390(take) 2 0.000 0.000 0.000 0.000 index.py:450(equals) 1 0.000 0.000 0.000 0.000 index.py:622(_wrap_union_result) 1 0.000 0.000 0.000 0.000 index.py:626(intersection) 513 0.001 0.000 0.001 0.000 index.py:708(get_loc) 3 0.000 0.000 0.000 0.000 index.py:770(get_indexer) 3 0.000 0.000 0.000 0.000 index.py:847(_possibly_promote) 19 0.000 0.000 0.001 0.000 index.py:86(__new__) 3 0.000 0.000 0.000 0.000 index.py:860(isin) 3 0.000 0.000 0.000 0.000 index.py:876(_array_values) 3 0.000 0.000 0.000 0.000 index.py:879(_get_method) 1 0.000 0.000 0.000 0.000 index.py:889(reindex) 499 0.001 0.000 0.002 0.000 indexing.py:1077(_is_list_like) 1 0.000 0.000 0.000 0.000 indexing.py:32(__init__) 499 0.001 0.000 0.128 0.000 indexing.py:51(_get_label) 499 0.001 0.000 0.136 0.000 indexing.py:695(__getitem__) 499 0.001 0.000 0.135 0.000 indexing.py:771(_getitem_axis) 504 0.002 0.000 0.005 0.000 indexing.py:910(_convert_to_index_sliceable) 499 0.001 0.000 0.003 0.000 indexing.py:938(_is_index_slice) 998 0.001 0.000 0.002 0.000 indexing.py:939(_is_valid_index) 998 0.001 0.000 0.002 0.000 indexing.py:943(_crit) 500 0.000 0.000 0.000 0.000 internals.py:1016(ndim) 9 0.000 0.000 0.000 0.000 internals.py:102(__contains__) 502 0.001 0.000 0.002 0.000 internals.py:1020(set_axis) 8 0.000 0.000 0.000 0.000 internals.py:105(__len__) 6 0.000 0.000 0.000 0.000 internals.py:1072(_set_ref_locs) 553 0.000 0.000 0.000 0.000 internals.py:1177(_get_items) 5 0.000 0.000 0.000 0.000 internals.py:1227(shape) 15 0.000 0.000 0.000 0.000 internals.py:1229(<genexpr>) 5 0.000 0.000 0.000 0.000 internals.py:1231(_verify_integrity) 12 0.000 0.000 0.000 0.000 internals.py:1233(<genexpr>) 513 0.000 0.000 0.000 0.000 internals.py:128(dtype) 2 0.000 0.000 0.031 0.016 internals.py:132(copy) 1505 0.001 0.000 0.001 0.000 internals.py:1350(is_consolidated) 506 0.002 0.000 0.002 0.000 internals.py:1358(_consolidate_check) 1 0.000 0.000 0.000 0.000 internals.py:1363(is_mixed_type) 499 0.002 0.000 0.024 0.000 internals.py:1431(get_slice) 499 0.004 0.000 0.007 0.000 internals.py:1459(_slice_blocks) 1 0.000 0.000 0.046 0.046 internals.py:147(reindex_axis) 1 0.000 0.000 0.031 0.031 internals.py:1487(copy) 1 0.000 0.000 0.000 0.000 internals.py:1505(as_matrix) 1000 0.001 0.000 0.001 0.000 internals.py:1626(consolidate) 503 0.000 0.000 0.001 0.000 internals.py:1640(_consolidate_inplace) 5 0.000 0.000 0.000 0.000 internals.py:1653(get) 2 0.000 0.000 0.001 0.000 internals.py:1704(delete) 5 0.000 0.000 0.000 0.000 internals.py:181(get) 2 0.000 0.000 0.000 0.000 internals.py:1816(set_items_norename) 2 0.000 0.000 0.000 0.000 internals.py:1823(_delete_from_all_blocks) 2 0.000 0.000 0.000 0.000 internals.py:1841(_delete_from_block) 7 0.000 0.000 0.000 0.000 internals.py:1934(_find_block) 7 0.000 0.000 0.000 0.000 internals.py:1940(_check_have) 1 0.000 0.000 0.000 0.000 internals.py:1971(reindex_indexer) 1 0.000 0.000 0.000 0.000 internals.py:1987(_reindex_indexer_items) 1 0.000 0.000 0.000 0.000 internals.py:2108(_maybe_rename_join) 1 0.000 0.000 0.000 0.000 internals.py:2219(create_block_manager_from_blocks) 2 0.000 0.000 0.001 0.000 internals.py:2236(create_block_manager_from_arrays) 2 0.000 0.000 0.001 0.000 internals.py:2254(form_blocks) 1 0.000 0.000 0.000 0.000 internals.py:2338(_simple_blockify) 2 0.000 0.000 0.000 0.000 internals.py:2351(_multi_blockify) 3 0.000 0.000 0.000 0.000 internals.py:2355(<lambda>) 3 0.000 0.000 0.000 0.000 internals.py:2368(_stack_arrays) 4 0.000 0.000 0.000 0.000 internals.py:2372(_asarray_compat) 3 0.000 0.000 0.000 0.000 internals.py:2379(_shape_compat) 4 0.000 0.000 0.000 0.000 internals.py:2531(_possibly_convert_to_indexer) 509 0.001 0.000 0.001 0.000 internals.py:37(__init__) 3 0.000 0.000 0.000 0.000 internals.py:688(__init__) 509 0.000 0.000 0.000 0.000 internals.py:76(set_ref_locs) 2 0.000 0.000 0.000 0.000 internals.py:83(set_ref_items) 509 0.001 0.000 0.017 0.000 internals.py:932(make_block) 505 0.002 0.000 0.005 0.000 internals.py:989(__init__) 2 0.000 0.000 0.000 0.000 merge.py:1195(_concat_indexes) 1 0.000 0.000 0.000 0.000 merge.py:1299(_should_fill) 2 0.000 0.000 0.000 0.000 merge.py:1305(_any) 1 0.000 0.000 0.001 0.001 merge.py:157(__init__) 1 0.000 0.000 0.197 0.197 merge.py:182(get_result) 1 0.004 0.004 0.017 0.017 merge.py:201(_maybe_add_join_keys) 1 0.000 0.000 0.083 0.083 merge.py:244(_get_join_info) 1 0.000 0.000 0.000 0.000 merge.py:274(_get_merge_data) 1 0.001 0.001 0.199 0.199 merge.py:28(merge) 1 0.000 0.000 0.001 0.001 merge.py:284(_get_merge_keys) 1 0.000 0.000 0.000 0.000 merge.py:307(<lambda>) 1 0.000 0.000 0.000 0.000 merge.py:308(<lambda>) 1 0.000 0.000 0.000 0.000 merge.py:371(_validate_specification) 1 0.000 0.000 0.077 0.077 merge.py:420(_get_join_indexers) 2 0.000 0.000 0.000 0.000 merge.py:578(_factorize_keys) 1 0.000 0.000 0.000 0.000 merge.py:641(__init__) 1 0.000 0.000 0.014 0.014 merge.py:664(_prepare_blocks) 1 0.000 0.000 0.098 0.098 merge.py:676(get_result) 6 0.000 0.000 0.000 0.000 merge.py:692(<genexpr>) 2 0.000 0.000 0.083 0.042 merge.py:698(_get_merged_block) 1 0.000 0.000 0.037 0.037 merge.py:706(_merge_blocks) 3 0.000 0.000 0.000 0.000 merge.py:717(<genexpr>) 2 0.000 0.000 0.000 0.000 merge.py:740(__init__) 2 0.009 0.005 0.014 0.007 merge.py:744(mask_info) 2 0.000 0.000 0.014 0.007 merge.py:753(get_upcasted_blocks) 1 0.000 0.000 0.046 0.046 merge.py:759(reindex_block) 2 0.000 0.000 0.000 0.000 merge.py:769(_may_need_upcasting) 1 0.000 0.000 0.000 0.000 merge.py:803(_get_merge_block_kinds) 1 0.000 0.000 0.000 0.000 merge.py:810(_get_block_dtype) 1507 0.002 0.000 0.003 0.000 numeric.py:1666(isscalar) 2 0.000 0.000 0.000 0.000 numeric.py:2080(array_equal) 75 0.000 0.000 0.000 0.000 numeric.py:252(asarray) 4 0.000 0.000 0.000 0.000 series.py:1297(values) 4 0.000 0.000 0.001 0.000 series.py:3299(_sanitize_array) 2 0.000 0.000 0.000 0.000 series.py:3310(_try_cast) 5 0.000 0.000 0.000 0.000 series.py:501(from_array) 5 0.000 0.000 0.000 0.000 series.py:532(__array_finalize__) 1 0.018 0.018 2.079 2.079 testDatesPerformance.py:6(testPerformance) 4 0.000 0.000 0.000 0.000 {any} 2517 0.001 0.000 0.001 0.000 {getattr} 11 0.000 0.000 0.000 0.000 {hasattr} 24 0.000 0.000 0.000 0.000 {hash} 19344 0.006 0.000 0.006 0.000 {isinstance} 1159 0.000 0.000 0.000 0.000 {issubclass} 503 0.000 0.000 0.000 0.000 {iter} 8704/8193 0.002 0.000 0.002 0.000 {len} 2 0.000 0.000 0.000 0.000 {max} 1 0.000 0.000 0.000 0.000 {method 'all' of 'numpy.ndarray' objects} 11 0.000 0.000 0.011 0.001 {method 'any' of 'numpy.ndarray' objects} 539 0.000 0.000 0.000 0.000 {method 'append' of 'list' objects} 4 0.148 0.037 0.148 0.037 {method 'argsort' of 'numpy.ndarray' objects} 2 0.064 0.032 0.064 0.032 {method 'astype' of 'numpy.ndarray' objects} 500 0.000 0.000 0.000 0.000 {method 'clear' of 'dict' objects} 1 0.000 0.000 0.000 0.000 {method 'clear_mapping' of 'pandas.index.IndexEngine' objects} 3 0.031 0.010 0.031 0.010 {method 'copy' of 'numpy.ndarray' objects} 1497 0.001 0.000 0.001 0.000 {method 'count' of 'list' objects} 1 0.000 0.000 0.000 0.000 {method 'disable' of '_lsprof.Profiler' objects} 6 0.000 0.000 0.000 0.000 {method 'extend' of 'list' objects} 2 0.440 0.220 0.440 0.220 {method 'factorize' of 'pandas.hashtable.Factorizer' objects} 4 0.000 0.000 0.000 0.000 {method 'factorize' of 'pandas.hashtable.Int64Factorizer' objects} 2 0.000 0.000 0.000 0.000 {method 'fill' of 'numpy.ndarray' objects} 2 0.000 0.000 0.000 0.000 {method 'flatten' of 'numpy.ndarray' objects} 1512 0.000 0.000 0.000 0.000 {method 'get' of 'dict' objects} 2 0.000 0.000 0.000 0.000 {method 'get_count' of 'pandas.hashtable.Int64Factorizer' objects} 3 0.000 0.000 0.000 0.000 {method 'get_indexer' of 'pandas.index.IndexEngine' objects} 1 0.062 0.062 0.062 0.062 {method 'get_labels' of 'pandas.hashtable.Int64HashTable' objects} 1 0.190 0.190 0.190 0.190 {method 'get_labels' of 'pandas.hashtable.PyObjectHashTable' objects} 1 0.320 0.320 0.320 0.320 {method 'get_labels_groupby' of 'pandas.hashtable.Int64HashTable' objects} 513 0.001 0.000 0.001 0.000 {method 'get_loc' of 'pandas.index.IndexEngine' objects} 1497 0.002 0.000 0.002 0.000 {method 'index' of 'list' objects} 4 0.000 0.000 0.000 0.000 {method 'keys' of 'dict' objects} 2 0.013 0.006 0.013 0.006 {method 'nonzero' of 'numpy.ndarray' objects} 1501 0.001 0.000 0.001 0.000 {method 'pop' of 'list' objects} 3 0.139 0.046 0.139 0.046 {method 'put' of 'numpy.ndarray' objects} 4 0.000 0.000 0.000 0.000 {method 'ravel' of 'numpy.ndarray' objects} 16 0.011 0.001 0.011 0.001 {method 'reduce' of 'numpy.ufunc' objects} 998 0.004 0.000 0.004 0.000 {method 'searchsorted' of 'numpy.ndarray' objects} 3 0.000 0.000 0.000 0.000 {method 'setdefault' of 'dict' objects} 2 0.000 0.000 0.000 0.000 {method 'sort' of 'numpy.ndarray' objects} 2 0.000 0.000 0.000 0.000 {method 'startswith' of 'str' objects} 506 0.097 0.000 0.097 0.000 {method 'take' of 'numpy.ndarray' objects} 1 0.000 0.000 0.000 0.000 {method 'to_array' of 'pandas.hashtable.Int64Vector' objects} 1 0.000 0.000 0.000 0.000 {method 'to_array' of 'pandas.hashtable.ObjectVector' objects} 2035 0.003 0.000 0.005 0.000 {method 'view' of 'numpy.ndarray' objects} 1 0.000 0.000 0.000 0.000 {min} 7 0.012 0.002 0.012 0.002 {numpy.core.multiarray.arange} 583 0.001 0.000 0.001 0.000 {numpy.core.multiarray.array} 4 0.000 0.000 0.000 0.000 {numpy.core.multiarray.concatenate} 1017 0.012 0.000 0.012 0.000 {numpy.core.multiarray.empty} 4 0.008 0.002 0.008 0.002 {numpy.core.multiarray.putmask} 4 0.003 0.001 0.003 0.001 {numpy.core.multiarray.zeros} 20 0.000 0.000 0.000 0.000 {pandas.algos.ensure_int64} 1 0.000 0.000 0.000 0.000 {pandas.algos.ensure_object} 507 0.000 0.000 0.000 0.000 {pandas.algos.ensure_platform_int} 1 0.000 0.000 0.000 0.000 {pandas.algos.inner_join_indexer_object} 1 0.077 0.077 0.077 0.077 {pandas.algos.inner_join} 2 0.120 0.060 0.120 0.060 {pandas.algos.take_1d_int64_int64} 1 0.000 0.000 0.000 0.000 {pandas.algos.take_1d_object_object} 2 0.009 0.005 0.009 0.005 {pandas.algos.take_2d_axis0_int64_int64} 2 0.023 0.012 0.023 0.012 {pandas.algos.take_2d_axis1_int64_int64} 1 0.024 0.024 0.024 0.024 {pandas.algos.take_2d_axis1_object_object} 23 0.014 0.001 0.014 0.001 {pandas.lib.infer_dtype} 1 0.007 0.007 0.007 0.007 {pandas.lib.is_lexsorted} 3 0.000 0.000 0.000 0.000 {pandas.lib.ismember} 4 0.000 0.000 0.000 0.000 {pandas.lib.list_to_object_array} 2 0.001 0.000 0.001 0.000 {pandas.lib.maybe_convert_objects} 2 0.000 0.000 0.000 0.000 {pandas.tslib.is_timestamp_array} 502 0.000 0.000 0.000 0.000 {range} 1 0.000 0.000 0.000 0.000 {setattr} 1000 0.002 0.000 0.006 0.000 {sorted} 6 0.000 0.000 0.000 0.000 {sum} 2 0.000 0.000 0.000 0.000 {time.time} 9 0.000 0.000 0.000 0.000 {zip} Process finished with exit code 0 </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/14549/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14549/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14550
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14550/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14550/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14550/events
https://github.com/pandas-dev/pandas/issues/14550
186,548,295
MDU6SXNzdWUxODY1NDgyOTU=
14,550
Pandas replace with string and integers - incorrect behavior?
{ "avatar_url": "https://avatars.githubusercontent.com/u/4410631?v=4", "events_url": "https://api.github.com/users/ozhogin/events{/privacy}", "followers_url": "https://api.github.com/users/ozhogin/followers", "following_url": "https://api.github.com/users/ozhogin/following{/other_user}", "gists_url": "https://api.github.com/users/ozhogin/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ozhogin", "id": 4410631, "login": "ozhogin", "node_id": "MDQ6VXNlcjQ0MTA2MzE=", "organizations_url": "https://api.github.com/users/ozhogin/orgs", "received_events_url": "https://api.github.com/users/ozhogin/received_events", "repos_url": "https://api.github.com/users/ozhogin/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ozhogin/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ozhogin/subscriptions", "type": "User", "url": "https://api.github.com/users/ozhogin" }
[ { "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": "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-11-01T14:31:32Z
2016-11-01T16:34:22Z
2016-11-01T16:34:06Z
NONE
null
I encountered a potentially incorrect behavior of pandas replace with strings and integers. If the dataframe has both 0 (integer) and '0' (strings) then replace '0' affects both strings and integers. Here's how it goes: `In [1]: df = pd.DataFrame({'numbers' : [0, 1, 2, 0], 'strings' : ['0', 1, 2, '0']})` To check that it's indeed the correct setup: ``` In [2]: df.dtypes Out [2]: numbers int64 strings object dtype: object ``` And check individual values: ``` In [3]: type(df['numbers'][0]) Out[3]: numpy.int64 In [4]: type(df['strings'][0]) Out[4]: str ``` Now, do replace: ``` In [5]: df.replace(to_replace='0', value=np.NaN, inplace=True) In [6]: df.head() Out[6]: numbers strings 0 NaN NaN 1 1 1 2 2 2 3 NaN NaN ``` As you can see, it replaced both strings and integers, however should have worked only on the strings. If we try same on integers, it works correctly: ``` In [7]: df = pd.DataFrame({'numbers' : [0, 1, 2, 0], 'strings' : ['0', 1, 2, '0']}) ...: df.replace(to_replace=0, value=np.NaN, inplace=True) ...: print df.head() Out [7]: numbers strings 0 NaN 0 1 1 1 2 2 2 3 NaN 0 ``` #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.8.final.0 python-bits: 64 OS: Windows OS-release: 7 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: 3.6 Cython: None numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 4.0.3 sphinx: None patsy: 0.4.1 dateutil: 2.4.2 pytz: 2015.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: 1.0.0 xlsxwriter: None lxml: None bs4: 4.4.1 html5lib: 1.0b8 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/14550/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14550/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14551
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14551/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14551/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14551/events
https://github.com/pandas-dev/pandas/pull/14551
186,558,152
MDExOlB1bGxSZXF1ZXN0OTE4MDA0ODI=
14,551
PERF: casting loc to labels dtype before searchsorted
{ "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": "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": "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-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
3
2016-11-01T15:08:03Z
2016-11-02T15:16:15Z
2016-11-02T15:16:15Z
MEMBER
null
Intrigued by the profiling results of the below example (Multi-index `loc` indexing, based on the example in https://github.com/pandas-dev/pandas/issues/14549), where `searchsorted` seemed to take the majority of the computation time. And it seems that `searchsorted` casts both inputs (in this case `labels` and `loc`) to a common dtype, and the `labels` of the MultiIndex were in this case `int16`, while `loc` (output from `Index.get_loc`) is a python int. By casting `loc` to the dtype of `labels`, the specific example gets a ca 20 x speed improvement ``` df = pd.DataFrame({'a': np.random.randn(500*5000)}, index=pd.MultiIndex.from_product([date_range("2014-01-01", periods=500), range(5000)])) dt = pd.Timestamp('2015-01-01') %timeit df.loc[dt] ``` On master: ``` In [3]: %timeit df.loc[dt] The slowest run took 5.70 times longer than the fastest. This could mean that an intermediate result is being cached. 100 loops, best of 3: 9.39 ms per loop ``` with this PR: ``` In [3]: %timeit df.loc[dt] The slowest run took 122.51 times longer than the fastest. This could mean that an intermediate result is being cached. 1000 loops, best of 3: 422 µs per loop ``` Just putting it here as a showcase. Actual PR probably needs some more work (other places where this can be done, can loc ever be out of bound for that dtype?, benchmarks, ..)
{ "+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/14551/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14551/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14551.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14551", "merged_at": "2016-11-02T15:16:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14551.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14551" }
https://api.github.com/repos/pandas-dev/pandas/issues/14552
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14552/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14552/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14552/events
https://github.com/pandas-dev/pandas/issues/14552
186,559,799
MDU6SXNzdWUxODY1NTk3OTk=
14,552
strange error with Pandas-0.19.0
{ "avatar_url": "https://avatars.githubusercontent.com/u/4312421?v=4", "events_url": "https://api.github.com/users/stonebig/events{/privacy}", "followers_url": "https://api.github.com/users/stonebig/followers", "following_url": "https://api.github.com/users/stonebig/following{/other_user}", "gists_url": "https://api.github.com/users/stonebig/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/stonebig", "id": 4312421, "login": "stonebig", "node_id": "MDQ6VXNlcjQzMTI0MjE=", "organizations_url": "https://api.github.com/users/stonebig/orgs", "received_events_url": "https://api.github.com/users/stonebig/received_events", "repos_url": "https://api.github.com/users/stonebig/repos", "site_admin": false, "starred_url": "https://api.github.com/users/stonebig/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/stonebig/subscriptions", "type": "User", "url": "https://api.github.com/users/stonebig" }
[ { "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" }
15
2016-11-01T15:14:27Z
2016-11-02T12:57:15Z
2016-11-02T12:57:15Z
CONTRIBUTOR
null
Just to raise eyebrows, not sure if it's related to pandas-0.19 or to a bug of myself. It is ok under Pandas-0.18.1 (and seems not related to Python-3.6) #### A small, complete example of the issue ```python # in Ipython #Pandas import pandas as pd import numpy as np idx = pd.date_range('2000', '2005', freq='d', closed='left') datas = pd.DataFrame({'Color': [ 'green' if x> 1 else 'red' for x in np.random.randn(len(idx))], 'Measure': np.random.randn(len(idx)), 'Year': idx.year}, index=idx) #datas.head() # checking baresql from __future__ import print_function, unicode_literals, division # line needed only if Python2.7 from baresql import baresql bsql = baresql.baresql(connection="sqlite:///.baresql.db") bsqldf = lambda q: bsql.df(q, dict(globals(),**locals())) bsqldf("select Color, Year from datas$$") ``` #### Expected Output this: ![pandas-0 19](https://cloud.githubusercontent.com/assets/4312421/19895656/e6372b0a-a051-11e6-924a-2bd034fc446c.PNG) #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.6.0.beta.3 python-bits: 64 OS: Windows OS-release: 10 machine: AMD64 processor: Intel64 Family 6 Model 23 Stepping 10, GenuineIntel byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 28.7.0 Cython: 0.25.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.8.0rc1 xarray: 0.8.2 IPython: 5.1.0 sphinx: 1.4.8 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.7 blosc: 1.4.4 bottleneck: 1.2.0 tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: None xlrd: 1.0.0 xlwt: None xlsxwriter: 0.9.3 lxml: None bs4: 4.5.1 html5lib: 0.999999999 httplib2: None apiclient: None sqlalchemy: 1.1.3 pymysql: None psycopg2: None jinja2: 2.8 boto: None pandas_datareader: 0.2.1 </details> ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) pandas/index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11091)() pandas/src/hashtable_class_helper.pxi in pandas.hashtable.Int64HashTable.get_item (pandas\hashtable.c:8120)() TypeError: an integer is required During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\indexes\base.py in get_loc(self, key, method, tolerance) 2103 try: -> 2104 return self._engine.get_loc(key) 2105 except KeyError: pandas/index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11241)() pandas/index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11147)() pandas/index.pyx in pandas.index.DatetimeEngine._date_check_type (pandas\index.c:11311)() KeyError: 'next' During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) pandas/index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11091)() pandas/src/hashtable_class_helper.pxi in pandas.hashtable.Int64HashTable.get_item (pandas\hashtable.c:8120)() TypeError: an integer is required During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\tseries\index.py in get_loc(self, key, method, tolerance) 1410 try: -> 1411 return Index.get_loc(self, key, method, tolerance) 1412 except (KeyError, ValueError, TypeError): C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\indexes\base.py in get_loc(self, key, method, tolerance) 2105 except KeyError: -> 2106 return self._engine.get_loc(self._maybe_cast_indexer(key)) 2107 pandas/index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11241)() pandas/index.pyx in pandas.index.DatetimeEngine.get_loc (pandas\index.c:11147)() pandas/index.pyx in pandas.index.DatetimeEngine._date_check_type (pandas\index.c:11311)() KeyError: 'next' During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) ValueError: Error parsing datetime string "next" at position 0 The above exception was the direct cause of the following exception: SystemError Traceback (most recent call last) <ipython-input-7-526f069d545f> in <module>() ----> 1 bsqldf('''select Color, Year from datas$$ ''') <ipython-input-2-7f10bad21e85> in <lambda>(q) 3 from baresql import baresql 4 bsql = baresql.baresql(connection="sqlite:///.baresql.db") ----> 5 bsqldf = lambda q: bsql.df(q, dict(globals(),**locals())) 6 7 users = ['Alexander', 'Billy', 'Charles', 'Danielle', 'Esmeralda', 'Franz', 'Greg'] C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\baresql\baresql.py in df(self, q, env) 506 def df(self, q, env): 507 "same as .cursor , but returns a pandas dataframe" --> 508 cur = self.cursor( q, env) 509 result = None 510 rows = cur.fetchall() C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\baresql\baresql.py in cursor(self, q, env) 483 pre_q = "DROP TABLE IF EXISTS %s" % table_sql.join(self.delimiters) 484 cur = self._execute_sql (pre_q) --> 485 self._write_table( table_sql, df, self.conn) 486 #multiple sql must be executed one by one 487 for q_single in self.get_sqlsplit(sql, True) : C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\baresql\baresql.py in _write_table(self, tablename, df, conn) 450 to_sql(df, name = tablename, con = self.conn, flavor = self.engine) 451 else: --> 452 to_sql(df, name = tablename, con = self.conn) 453 454 C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in to_sql(frame, name, con, flavor, schema, if_exists, index, index_label, chunksize, dtype) 468 pandas_sql.to_sql(frame, name, if_exists=if_exists, index=index, 469 index_label=index_label, schema=schema, --> 470 chunksize=chunksize, dtype=dtype) 471 472 C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in to_sql(self, frame, name, if_exists, index, index_label, schema, chunksize, dtype) 1498 table = SQLiteTable(name, self, frame=frame, index=index, 1499 if_exists=if_exists, index_label=index_label, -> 1500 dtype=dtype) 1501 table.create() 1502 table.insert(chunksize) C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in __init__(self, *args, **kwargs) 1261 # (this is what sqlalchemy does) 1262 sqlite3.register_adapter(time, lambda _: _.strftime("%H:%M:%S.%f")) -> 1263 super(SQLiteTable, self).__init__(*args, **kwargs) 1264 1265 def sql_schema(self): C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in __init__(self, name, pandas_sql_engine, frame, index, if_exists, prefix, index_label, schema, keys, dtype) 560 if frame is not None: 561 # We want to initialize based on a dataframe --> 562 self.table = self._create_table_setup() 563 else: 564 # no data provided, read-only mode C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in _create_table_setup(self) 1297 """ 1298 column_names_and_types = \ -> 1299 self._get_column_names_and_types(self._sql_type_name) 1300 1301 pat = re.compile('\s+') C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in _get_column_names_and_types(self, dtype_mapper) 755 dtype_mapper(self.frame.iloc[:, i]), 756 False) --> 757 for i in range(len(self.frame.columns)) 758 ] 759 C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in <listcomp>(.0) 755 dtype_mapper(self.frame.iloc[:, i]), 756 False) --> 757 for i in range(len(self.frame.columns)) 758 ] 759 C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in _sql_type_name(self, col) 1338 return dtype[col.name] 1339 -> 1340 col_type = self._get_notnull_col_dtype(col) 1341 if col_type == 'timedelta64': 1342 warnings.warn("the 'timedelta' type is not supported, and will be " C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\io\sql.py in _get_notnull_col_dtype(self, col) 846 col_for_inference = col 847 if col.dtype == 'object': --> 848 notnulldata = col[~isnull(col)] 849 if len(notnulldata): 850 col_for_inference = notnulldata C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\core\series.py in __getitem__(self, key) 634 raise 635 --> 636 if is_iterator(key): 637 key = list(key) 638 C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\types\inference.py in is_iterator(obj) 35 def is_iterator(obj): 36 # python 3 generators have __next__ instead of next ---> 37 return hasattr(obj, 'next') or hasattr(obj, '__next__') 38 39 C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\core\generic.py in __getattr__(self, name) 2740 return object.__getattribute__(self, name) 2741 else: -> 2742 if name in self._info_axis: 2743 return self[name] 2744 return object.__getattribute__(self, name) C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\tseries\base.py in __contains__(self, key) 232 def __contains__(self, key): 233 try: --> 234 res = self.get_loc(key) 235 return is_scalar(res) or type(res) == slice or np.any(res) 236 except (KeyError, TypeError, ValueError): C:\WinPython\basedir36\build\winpython-64bit-3.6.x.0\python-3.6.0b3.amd64\lib\site-packages\pandas\tseries\index.py in get_loc(self, key, method, tolerance) 1417 1418 try: -> 1419 stamp = Timestamp(key, tz=self.tz) 1420 return Index.get_loc(self, stamp, method, tolerance) 1421 except (KeyError, ValueError): pandas/tslib.pyx in pandas.tslib.Timestamp.__new__ (pandas\tslib.c:9932)() pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas\tslib.c:25231)() pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject (pandas\tslib.c:26851)() pandas/src/datetime.pxd in datetime._string_to_dts (pandas\tslib.c:87106)() SystemError: <class 'str'> returned a result with an error set ```
{ "+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/14552/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14552/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14553
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14553/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14553/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14553/events
https://github.com/pandas-dev/pandas/issues/14553
186,652,326
MDU6SXNzdWUxODY2NTIzMjY=
14,553
Adding (Insert or update if key exists) option to `.to_sql`
{ "avatar_url": "https://avatars.githubusercontent.com/u/3705969?v=4", "events_url": "https://api.github.com/users/cdagnino/events{/privacy}", "followers_url": "https://api.github.com/users/cdagnino/followers", "following_url": "https://api.github.com/users/cdagnino/following{/other_user}", "gists_url": "https://api.github.com/users/cdagnino/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cdagnino", "id": 3705969, "login": "cdagnino", "node_id": "MDQ6VXNlcjM3MDU5Njk=", "organizations_url": "https://api.github.com/users/cdagnino/orgs", "received_events_url": "https://api.github.com/users/cdagnino/received_events", "repos_url": "https://api.github.com/users/cdagnino/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cdagnino/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cdagnino/subscriptions", "type": "User", "url": "https://api.github.com/users/cdagnino" }
[ { "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": "5319e7", "default": false, "description": "to_sql, read_sql, read_sql_query", "id": 47232590, "name": "IO SQL", "node_id": "MDU6TGFiZWw0NzIzMjU5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL" } ]
open
false
null
[]
null
55
2016-11-01T21:27:33Z
2021-04-12T08:41:48Z
null
NONE
null
Suppose you have an existing SQL table called `person_age`, where `id` is the primary key: ```python age id 1 18 2 42 ``` and you also have new data in a `DataFrame` called `extra_data` ```python age id 2 44 3 95 ``` then it would be useful to have an option on `extra_data.to_sql()` that allows to pass the DataFrame to SQL with an `INSERT` or `UPDATE` option on the rows, based on the `primary key`. In this case, the `id=2` row would get updated to `age=44` and the `id=3` row would get added #### Expected Output ```python age id 1 18 2 44 3 95 ``` #### (Maybe) helpful code references + [Use `merge` from SQLAlchemy](http://stackoverflow.com/questions/7889183/sqlalchemy-insert-or-update-example)? + The query: '''INSERT or REPLACE into person_age (id, age) values (?,?,?) ''' in [this question](http://stackoverflow.com/questions/23574614/appending-pandas-dataframe-to-sqlite-table-by-primary-key) I looked at `pandas` `sql.py` sourcecode to come up with a solution, but I couldn't follow. #### Code to replicate the example above (Apologies for mixing `sqlalchemy` and `sqlite` ```python import pandas as pd from sqlalchemy import create_engine import sqlite3 conn = sqlite3.connect('example.db') c = conn.cursor() c.execute('''DROP TABLE IF EXISTS person_age;''') c.execute(''' CREATE TABLE person_age (id INTEGER PRIMARY KEY ASC, age INTEGER NOT NULL) ''') conn.commit() conn.close() ##### Create original table engine = create_engine("sqlite:///example.db") sql_df = pd.DataFrame({'id' : [1, 2], 'age' : [18, 42]}) sql_df.to_sql('person_age', engine, if_exists='append', index=False) #### Extra data to insert/update extra_data = pd.DataFrame({'id' : [2, 3], 'age' : [44, 95]}) extra_data.set_index('id', inplace=True) #### extra_data.to_sql() with row update or insert option expected_df = pd.DataFrame({'id': [1, 2, 3], 'age': [18, 44, 95]}) expected_df.set_index('id', inplace=True) ```
{ "+1": 125, "-1": 0, "confused": 0, "eyes": 0, "heart": 4, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 129, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/14553/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14553/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14554
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14554/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14554/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14554/events
https://github.com/pandas-dev/pandas/issues/14554
186,678,990
MDU6SXNzdWUxODY2Nzg5OTA=
14,554
CLN/BUG: remove bare excepts
{ "avatar_url": "https://avatars.githubusercontent.com/u/2650090?v=4", "events_url": "https://api.github.com/users/jburroni/events{/privacy}", "followers_url": "https://api.github.com/users/jburroni/followers", "following_url": "https://api.github.com/users/jburroni/following{/other_user}", "gists_url": "https://api.github.com/users/jburroni/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jburroni", "id": 2650090, "login": "jburroni", "node_id": "MDQ6VXNlcjI2NTAwOTA=", "organizations_url": "https://api.github.com/users/jburroni/orgs", "received_events_url": "https://api.github.com/users/jburroni/received_events", "repos_url": "https://api.github.com/users/jburroni/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jburroni/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jburroni/subscriptions", "type": "User", "url": "https://api.github.com/users/jburroni" }
[ { "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": "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-11-01T23:51:17Z
2016-12-19T23:46:27Z
2016-12-19T23:46:27Z
NONE
null
Using KeyError may prevent the system to show system error, and thus make the error hard to find ```python df = pd.DataFrame({'a':[1,]}, index=['a']) def bla(a): return bla(df.loc[['a'], ['a']]) bla(1) ``` #### Expected Output Max recursion limit exception. Got key error #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.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 pandas: 0.18.1 nose: 1.3.7 pip: None setuptools: None 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.5.3 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: 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/14554/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14554/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14555
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14555/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14555/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14555/events
https://github.com/pandas-dev/pandas/issues/14555
186,688,686
MDU6SXNzdWUxODY2ODg2ODY=
14,555
array_equivalent has disappeared from pandas.core.common in version 0.19, is this a mistake?
{ "avatar_url": "https://avatars.githubusercontent.com/u/32072?v=4", "events_url": "https://api.github.com/users/cleemesser/events{/privacy}", "followers_url": "https://api.github.com/users/cleemesser/followers", "following_url": "https://api.github.com/users/cleemesser/following{/other_user}", "gists_url": "https://api.github.com/users/cleemesser/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cleemesser", "id": 32072, "login": "cleemesser", "node_id": "MDQ6VXNlcjMyMDcy", "organizations_url": "https://api.github.com/users/cleemesser/orgs", "received_events_url": "https://api.github.com/users/cleemesser/received_events", "repos_url": "https://api.github.com/users/cleemesser/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cleemesser/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cleemesser/subscriptions", "type": "User", "url": "https://api.github.com/users/cleemesser" }
[ { "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": 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" }
9
2016-11-02T01:10:18Z
2019-12-11T07:55:35Z
2019-12-11T07:55:20Z
NONE
null
#### A small, complete example of the issue ```python # Your code here import pandas import pandas.core.common as com print com.array_equivalent ``` #### Expected Output ```python # expect something like: # <function array_equivalent at 0x000000000445A198> # But I get ``` ``` --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-2-fc6fc07906df> in <module>() ----> 1 print com.array_equivalent AttributeError: 'module' object has no attribute 'array_equivalent' ``` #### Output of ``pd.show_versions()`` <details> # Paste the output here pd.show_versions() here 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 60 Stepping 3, GenuineIntel byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.17.1 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.5 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.39.0 pandas_datareader: None </details>
{ "+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/14555/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14555/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14556
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14556/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14556/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14556/events
https://github.com/pandas-dev/pandas/issues/14556
186,727,319
MDU6SXNzdWUxODY3MjczMTk=
14,556
floats and ints missing as acceptable arguments for pandas.to_datetime in API Reference
{ "avatar_url": "https://avatars.githubusercontent.com/u/7268060?v=4", "events_url": "https://api.github.com/users/yet-another-radek/events{/privacy}", "followers_url": "https://api.github.com/users/yet-another-radek/followers", "following_url": "https://api.github.com/users/yet-another-radek/following{/other_user}", "gists_url": "https://api.github.com/users/yet-another-radek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yet-another-radek", "id": 7268060, "login": "yet-another-radek", "node_id": "MDQ6VXNlcjcyNjgwNjA=", "organizations_url": "https://api.github.com/users/yet-another-radek/orgs", "received_events_url": "https://api.github.com/users/yet-another-radek/received_events", "repos_url": "https://api.github.com/users/yet-another-radek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yet-another-radek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yet-another-radek/subscriptions", "type": "User", "url": "https://api.github.com/users/yet-another-radek" }
[ { "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" }
6
2016-11-02T07:07:48Z
2016-12-12T11:10:35Z
2016-12-12T11:10:35Z
NONE
null
#### A small, complete example of the issue http://pandas.pydata.org/pandas-docs/version/0.19.0/generated/pandas.to_datetime.html says: > **arg** : _string, datetime, list, tuple, 1-d array, Series_ While http://pandas.pydata.org/pandas-docs/version/0.19.0/timeseries.html#epoch-timestamps says that `int`s and `float`s are accepted as well. #### Expected Output `int` and `float` to be in the list #### Output of ``pd.show_versions()`` ``` pandas: 0.19.0 ``` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-45-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.0 nose: None pip: 7.1.0 setuptools: 18.0.1 Cython: None numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 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/14556/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14556/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14557
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14557/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14557/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14557/events
https://github.com/pandas-dev/pandas/issues/14557
186,732,682
MDU6SXNzdWUxODY3MzI2ODI=
14,557
IndexError when indexing into a Series containing a UTC datetime by name
{ "avatar_url": "https://avatars.githubusercontent.com/u/586225?v=4", "events_url": "https://api.github.com/users/bshanks/events{/privacy}", "followers_url": "https://api.github.com/users/bshanks/followers", "following_url": "https://api.github.com/users/bshanks/following{/other_user}", "gists_url": "https://api.github.com/users/bshanks/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bshanks", "id": 586225, "login": "bshanks", "node_id": "MDQ6VXNlcjU4NjIyNQ==", "organizations_url": "https://api.github.com/users/bshanks/orgs", "received_events_url": "https://api.github.com/users/bshanks/received_events", "repos_url": "https://api.github.com/users/bshanks/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bshanks/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bshanks/subscriptions", "type": "User", "url": "https://api.github.com/users/bshanks" }
[]
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-11-02T07:49:34Z
2016-11-02T09:16:02Z
2016-11-02T07:52:26Z
NONE
null
#### A small, complete example of the issue ```python import pandas; import pytz; import datetime; pandas.Series([pytz.UTC.localize(datetime.datetime(2000,1,1))], index=['idx1'])['idx1'] /usr/lib/python2.7/dist-packages/pandas/tseries/base.py:100: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future val = getitem(key) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.7/dist-packages/pandas/core/series.py", line 557, in __getitem__ result = self.index.get_value(self, key) File "/usr/lib/python2.7/dist-packages/pandas/core/index.py", line 1780, in get_value return s[key] File "/usr/lib/python2.7/dist-packages/pandas/tseries/base.py", line 100, in __getitem__ val = getitem(key) IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices ``` #### Expected Output datetime.datetime(2000, 1, 1, 0, 0, tzinfo=<UTC>) #### 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-45-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: C pandas: 0.17.1 nose: 1.3.7 pip: 8.1.1 setuptools: 20.7.0 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.17.0 statsmodels: 0.6.1 IPython: 2.4.1 sphinx: None patsy: 0.4.1 dateutil: 2.4.2 pytz: 2014.10 blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.4.3 matplotlib: 1.5.1 openpyxl: 2.3.0 xlrd: 0.9.4 xlwt: 0.7.5 xlsxwriter: None lxml: 3.5.0 bs4: 4.4.1 html5lib: 0.999 httplib2: 0.9.1 apiclient: None sqlalchemy: None pymysql: None psycopg2: None Jinja2: 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/14557/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14557/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14558
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14558/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14558/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14558/events
https://github.com/pandas-dev/pandas/issues/14558
186,735,411
MDU6SXNzdWUxODY3MzU0MTE=
14,558
read_table with dtype=object and an int converter still returns float64 if NaN present
{ "avatar_url": "https://avatars.githubusercontent.com/u/7268060?v=4", "events_url": "https://api.github.com/users/yet-another-radek/events{/privacy}", "followers_url": "https://api.github.com/users/yet-another-radek/followers", "following_url": "https://api.github.com/users/yet-another-radek/following{/other_user}", "gists_url": "https://api.github.com/users/yet-another-radek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yet-another-radek", "id": 7268060, "login": "yet-another-radek", "node_id": "MDQ6VXNlcjcyNjgwNjA=", "organizations_url": "https://api.github.com/users/yet-another-radek/orgs", "received_events_url": "https://api.github.com/users/yet-another-radek/received_events", "repos_url": "https://api.github.com/users/yet-another-radek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yet-another-radek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yet-another-radek/subscriptions", "type": "User", "url": "https://api.github.com/users/yet-another-radek" }
[ { "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" }, { "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": 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-11-02T08:08:14Z
2016-11-02T09:49:21Z
2016-11-02T09:49:21Z
NONE
null
#### A small, complete example of the issue ```python >>> import io, pandas >>> csvfile = io.StringIO('a\nN/A\n1\n') >>> converters = {'a': lambda x: float('nan') if x == 'N/A' else int(x)} >>> pandas.read_table(csvfile, dtype=object, converters=converters) a 0 NaN 1 1.0 ``` #### Expected Output ```python a 0 NaN 1 1 ``` #### Output of ``pd.show_versions()`` ``` pandas: 0.19.0 ``` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-45-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.0 nose: None pip: 7.1.0 setuptools: 18.0.1 Cython: None numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 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/14558/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14558/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14559
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14559/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14559/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14559/events
https://github.com/pandas-dev/pandas/issues/14559
186,741,672
MDU6SXNzdWUxODY3NDE2NzI=
14,559
series.apply(pandas.to_datetime, convert_dtype=False) still converts dtype
{ "avatar_url": "https://avatars.githubusercontent.com/u/7268060?v=4", "events_url": "https://api.github.com/users/yet-another-radek/events{/privacy}", "followers_url": "https://api.github.com/users/yet-another-radek/followers", "following_url": "https://api.github.com/users/yet-another-radek/following{/other_user}", "gists_url": "https://api.github.com/users/yet-another-radek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yet-another-radek", "id": 7268060, "login": "yet-another-radek", "node_id": "MDQ6VXNlcjcyNjgwNjA=", "organizations_url": "https://api.github.com/users/yet-another-radek/orgs", "received_events_url": "https://api.github.com/users/yet-another-radek/received_events", "repos_url": "https://api.github.com/users/yet-another-radek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yet-another-radek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yet-another-radek/subscriptions", "type": "User", "url": "https://api.github.com/users/yet-another-radek" }
[ { "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" }
4
2016-11-02T08:46:30Z
2016-11-02T11:00:33Z
2016-11-02T09:11:47Z
NONE
null
#### A small, complete example of the issue ```python >>> import pandas >>> s = pandas.Series({'a': '2012-05-01 00:00:00'}) >>> s.apply(pandas.to_datetime, convert_dtype=False) a 2012-05-01 dtype: datetime64[ns] ``` #### Expected Output ```python a 2012-05-01 dtype: object ``` #### Output of ``pd.show_versions()`` ``` pandas: 0.19.0 ``` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-45-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.0 nose: None pip: 7.1.0 setuptools: 18.0.1 Cython: None numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 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/14559/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14559/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14560
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14560/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14560/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14560/events
https://github.com/pandas-dev/pandas/issues/14560
186,766,953
MDU6SXNzdWUxODY3NjY5NTM=
14,560
pandas.Timestamp not in API Reference
{ "avatar_url": "https://avatars.githubusercontent.com/u/7268060?v=4", "events_url": "https://api.github.com/users/yet-another-radek/events{/privacy}", "followers_url": "https://api.github.com/users/yet-another-radek/followers", "following_url": "https://api.github.com/users/yet-another-radek/following{/other_user}", "gists_url": "https://api.github.com/users/yet-another-radek/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yet-another-radek", "id": 7268060, "login": "yet-another-radek", "node_id": "MDQ6VXNlcjcyNjgwNjA=", "organizations_url": "https://api.github.com/users/yet-another-radek/orgs", "received_events_url": "https://api.github.com/users/yet-another-radek/received_events", "repos_url": "https://api.github.com/users/yet-another-radek/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yet-another-radek/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yet-another-radek/subscriptions", "type": "User", "url": "https://api.github.com/users/yet-another-radek" }
[ { "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": "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-11-02T10:44:49Z
2016-11-02T11:44:19Z
2016-11-02T11:17:28Z
NONE
null
#### A small, complete example of the issue `pandas.Timestamp` cannot be found at http://pandas.pydata.org/pandas-docs/version/0.19.0/api.html #### Expected Output `pandas.Timestamp` to be there #### Output of ``pd.show_versions()`` ``` pandas: 0.19.0 ``` <details> ``` INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-45-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.0 nose: None pip: 7.1.0 setuptools: 18.0.1 Cython: None numpy: 1.11.2 scipy: None statsmodels: None xarray: None IPython: None sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 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> #### Additional info 1. It's a bit inconvenient for a newcomer to read [Time Series / Date functionality](http://pandas.pydata.org/pandas-docs/version/0.19.0/timeseries.html) over and over again in order to find out the API of the class. 2. I can get rid of messages such as `WARNING: po:obj reference target not found: pandas.Timestamp` coming from Sphinx.
{ "+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/14560/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14560/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14561
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14561/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14561/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14561/events
https://github.com/pandas-dev/pandas/issues/14561
186,793,218
MDU6SXNzdWUxODY3OTMyMTg=
14,561
Invalid datetime string conversion giving SystemError with Python 3.6.0b3
{ "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": "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" }
4
2016-11-02T12:56:16Z
2016-11-17T17:41:06Z
2016-11-17T17:41:06Z
MEMBER
null
From #14552, using Python 3.6.0b3 and pandas 0.19.0: ``` In [12]: pd.Timestamp('invalid') --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ValueError: Error parsing datetime string "invalid" at position 0 The above exception was the direct cause of the following exception: SystemError Traceback (most recent call last) <ipython-input-12-91abde127db1> in <module>() ----> 1 pd.Timestamp('invalid') pandas/tslib.pyx in pandas.tslib.Timestamp.__new__ (pandas/tslib.c:9932)() pandas/tslib.pyx in pandas.tslib.convert_to_tsobject (pandas/tslib.c:25231)() pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject (pandas/tslib.c:26851)() pandas/src/datetime.pxd in datetime._string_to_dts (pandas/tslib.c:87106)() SystemError: <class 'str'> returned a result with an error set ``` gives a SystemError (which gives problems in the indexing code etc), while with python < 3.6, you get a ValueError: ``` In [56]: pd.Timestamp('next') ... series of "During handling of the above exception, another exception occurred:" ... /home/joris/scipy/pandas/pandas/tslib.pyx in pandas.tslib.convert_str_to_tsobject (pandas/tslib.c:27281)() 1537 ts, dayfirst=dayfirst, yearfirst=yearfirst) 1538 except Exception: -> 1539 raise ValueError("could not convert string to Timestamp") 1540 1541 return convert_to_tsobject(ts, tz, unit, dayfirst, yearfirst) ValueError: could not convert string to Timestamp ```
{ "+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/14561/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14561/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14562
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14562/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14562/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14562/events
https://github.com/pandas-dev/pandas/issues/14562
186,794,798
MDU6SXNzdWUxODY3OTQ3OTg=
14,562
CLN: move nanpercentile functionality to nanops
{ "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": "FCE94F", "default": false, "description": "Internal refactoring of code", "id": 127681, "name": "Refactor", "node_id": "MDU6TGFiZWwxMjc2ODE=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor" }, { "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": "eb6420", "default": false, "description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff", "id": 57296398, "name": "Algos", "node_id": "MDU6TGFiZWw1NzI5NjM5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos" }, { "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
[]
null
2
2016-11-02T13:03:28Z
2019-12-25T23:20:41Z
2019-12-25T23:20:41Z
MEMBER
null
See comment https://github.com/pandas-dev/pandas/pull/14536#discussion_r85660330 Move the `_nanpercentile` functionality used in `quantile` in `internals.py` (https://github.com/pandas-dev/pandas/blob/52f31d470d779204e4c1388cdb56351c68332c3f/pandas/core/internals.py#L1319-L1393) to `nanops.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/14562/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14562/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14563
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14563/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14563/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14563/events
https://github.com/pandas-dev/pandas/issues/14563
186,797,546
MDU6SXNzdWUxODY3OTc1NDY=
14,563
Missing marker when using `style=...`
{ "avatar_url": "https://avatars.githubusercontent.com/u/1730350?v=4", "events_url": "https://api.github.com/users/tamasgal/events{/privacy}", "followers_url": "https://api.github.com/users/tamasgal/followers", "following_url": "https://api.github.com/users/tamasgal/following{/other_user}", "gists_url": "https://api.github.com/users/tamasgal/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/tamasgal", "id": 1730350, "login": "tamasgal", "node_id": "MDQ6VXNlcjE3MzAzNTA=", "organizations_url": "https://api.github.com/users/tamasgal/orgs", "received_events_url": "https://api.github.com/users/tamasgal/received_events", "repos_url": "https://api.github.com/users/tamasgal/repos", "site_admin": false, "starred_url": "https://api.github.com/users/tamasgal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/tamasgal/subscriptions", "type": "User", "url": "https://api.github.com/users/tamasgal" }
[ { "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": "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" }
3
2016-11-02T13:15:50Z
2020-01-04T17:57:30Z
2020-01-04T17:57:30Z
NONE
null
There is an issue with the markers in the legend when working with the built-in matplotlib plot-wrapper in pandas. The problem is also in earlier versions and the only workaround I found is using matplotlib directly. #### A small, complete example of the issue ```python import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({'A': [1, 2, 3, 4, 5, 6], 'B': [2, 4, 1, 3, 2, 4], 'C': [3, 3, 2, 6, 4, 2], 'X': [1, 2, 3, 4, 5, 6]}) fig, ax = plt.subplots() for kind in 'ABC': df.plot('X', kind, label=kind, ax=ax, style='.') plt.show() ``` ![markers](https://cloud.githubusercontent.com/assets/1730350/19929894/f55dbd60-a105-11e6-980a-e105b841e518.png) #### Expected Output The markers in the legend are missing, except for the last label. It however works if I don't use `style=...`, but the default line-plot, like in this example: ```python import pandas as pd import matplotlib.pyplot as plt df = pd.DataFrame({'A': [1, 2, 3, 4, 5, 6], 'B': [2, 4, 1, 3, 2, 4], 'C': [3, 3, 2, 6, 4, 2], 'X': [1, 2, 3, 4, 5, 6]}) fig, ax = plt.subplots() for kind in 'ABC': df.plot('X', kind, label=kind, ax=ax) plt.show() ``` ![markers_with_lines](https://cloud.githubusercontent.com/assets/1730350/19929965/4d4cea46-a106-11e6-8b30-3d2f361186bb.png) #### 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 nose: None pip: 8.1.2 setuptools: 25.2.0 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.5.3 pytz: 2016.7 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/14563/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14563/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14564
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14564/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14564/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14564/events
https://github.com/pandas-dev/pandas/issues/14564
186,802,427
MDU6SXNzdWUxODY4MDI0Mjc=
14,564
BUG: inconsistencies/errors in quantile on empty DataFrame
{ "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": "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" }, { "color": "006b75", "default": false, "description": "quantile method", "id": 1631984902, "name": "quantile", "node_id": "MDU6TGFiZWwxNjMxOTg0OTAy", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/quantile" }, { "color": "b60205", "default": false, "description": "Internal Consistency of API/Behavior", "id": 1741841389, "name": "API - Consistency", "node_id": "MDU6TGFiZWwxNzQxODQxMzg5", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20-%20Consistency" } ]
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-11-02T13:36:59Z
2021-05-19T12:53:57Z
2021-05-19T12:53:57Z
MEMBER
null
In PR https://github.com/pandas-dev/pandas/pull/14536, I added some tests in comments, as they currently fail or give inconsistent results: **1. Empty frame with float dtype:** ``` df = DataFrame(columns=['a', 'b'], dtype='float64') df.quantile(0.5) df.quantile(0.5, axis=1) ``` In 0.18.1, this gives NaNs or empty frame depending on the axis (which is correct I think): ``` In [10]: df.quantile(0.5) Out[10]: a NaN b NaN dtype: float64 In [9]: df.quantile(0.5, axis=1) Out[9]: Empty DataFrame Columns: [] Index: [] ``` But on master, the `axis=1` case errors (df.quantile(0.5) also gives NaNs): master: ``` In [8]: df.quantile(0.5, axis=1) ... ValueError: need at least one array to concatenate ``` **2. Empty frame with int dtype** ``` df = DataFrame(columns=['a', 'b'], dtype='int64') df.quantile(0.5) ``` Opposed to float dtype giving a series of NaNs, with integers it gives an empty frame in 0.18.1: ``` In [11]: df.quantile(0.5) Out[11]: Empty DataFrame Columns: [] Index: [] ``` and on master also raises the ValueError as for float with `axis=1`: ``` In [14]: df.quantile(0.5) ... ValueError: need at least one array to concatenate ``` **3. Empty frame with datetime values** ``` df = DataFrame(columns=['a', 'b'], dtype='datetime64') df.quantile(0.5, numeric_only=False) ``` On 0.18.1 / master, it gives a series of NaNs, where this should be NaTs: ``` In [13]: df.quantile(0.5, numeric_only=False) Out[13]: a NaN b NaN Name: 0.5, dtype: float64 ``` **4. Frame with only only datetime columns but without `only_numeric=False`** ``` df = DataFrame({'a': pd.to_datetime(['2010', '2011']), 'b': [0, 5], 'c': pd.to_datetime(['2011', '2012'])}) df[['a', 'c']].quantile(.5) ``` On 0.18.1, this gives an empty frame ``` In [8]: df[['a', 'c']].quantile(.5) Out[8]: Empty DataFrame Columns: [] Index: [] ``` while on master this raises the same ValueError as above: ``` In [7]: df[['a', 'c']].quantile(.5) ... ValueError: need at least one array to concatenate ```
{ "+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/14564/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14564/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14565
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14565/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14565/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14565/events
https://github.com/pandas-dev/pandas/issues/14565
186,831,263
MDU6SXNzdWUxODY4MzEyNjM=
14,565
PERF: better use of searchsorted for indexing performance
{ "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": "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": "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": "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" }
7
2016-11-02T15:20:04Z
2019-02-24T03:40:08Z
2019-02-24T03:40:08Z
MEMBER
null
Follow-up on https://github.com/pandas-dev/pandas/pull/14551 When searchsorted is used (eg as `labels.searchsorted(loc)`), it is important that `loc` is first cast to the same dtype as `labels` for performance reasons. PR https://github.com/pandas-dev/pandas/pull/14551 fixed one such example, but further actions: - check the other usages of `searchsorted` for this pattern - add benchmarks to track the 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/14565/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14565/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14566
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14566/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14566/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14566/events
https://github.com/pandas-dev/pandas/issues/14566
186,837,429
MDU6SXNzdWUxODY4Mzc0Mjk=
14,566
Pandas can read first 216 lines, but not first 217 lines.
{ "avatar_url": "https://avatars.githubusercontent.com/u/14192598?v=4", "events_url": "https://api.github.com/users/alexanderwhatley/events{/privacy}", "followers_url": "https://api.github.com/users/alexanderwhatley/followers", "following_url": "https://api.github.com/users/alexanderwhatley/following{/other_user}", "gists_url": "https://api.github.com/users/alexanderwhatley/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alexanderwhatley", "id": 14192598, "login": "alexanderwhatley", "node_id": "MDQ6VXNlcjE0MTkyNTk4", "organizations_url": "https://api.github.com/users/alexanderwhatley/orgs", "received_events_url": "https://api.github.com/users/alexanderwhatley/received_events", "repos_url": "https://api.github.com/users/alexanderwhatley/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alexanderwhatley/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alexanderwhatley/subscriptions", "type": "User", "url": "https://api.github.com/users/alexanderwhatley" }
[ { "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_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" } ]
open
false
null
[]
null
8
2016-11-02T15:41:03Z
2021-10-15T18:12:04Z
null
NONE
null
Posted on Stackoverflow: [Tested](http://stackoverflow.com/questions/40290262/pandas-fails-to-read-past-216th-line-of-jagged-text-file/40290886#40290886) on Python 2.7, 3.5 - Pandas 0.18.1. Given the following file: https://gist.github.com/alexanderwhatley/e07af297b1a10cd5cb57c7b75ee7f229, I tried reading the first 216 lines which worked, and then the first 217 lines, which failed. Since 216 does not seem to be a special number, it seems like this may be an issue with Pandas, and not with the file..... `>>> df = pd.read_table("test.txt", names = range(2000), nrows = 216) >>> df = pd.read_table("test.txt", names = range(2000), nrows = 217) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/alexwhatley/anaconda3/lib/python3.5/site-packages/pandas/io/parsers.py", line 562, in parser_f return _read(filepath_or_buffer, kwds) File "/Users/alexwhatley/anaconda3/lib/python3.5/site-packages/pandas/io/parsers.py", line 321, in _read return parser.read(nrows) File "/Users/alexwhatley/anaconda3/lib/python3.5/site-packages/pandas/io/parsers.py", line 815, in read ret = self._engine.read(nrows) File "/Users/alexwhatley/anaconda3/lib/python3.5/site-packages/pandas/io/parsers.py", line 1314, in read data = self._reader.read(nrows) File "pandas/parser.pyx", line 805, in pandas.parser.TextReader.read (pandas/parser.c:8748) File "pandas/parser.pyx", line 839, in pandas.parser.TextReader._read_low_memory (pandas/parser.c:9208) File "pandas/parser.pyx", line 881, in pandas.parser.TextReader._read_rows (pandas/parser.c:9731) File "pandas/parser.pyx", line 868, in pandas.parser.TextReader._tokenize_rows (pandas/parser.c:9602) File "pandas/parser.pyx", line 1865, in pandas.parser.raise_parser_error (pandas/parser.c:23325) pandas.io.common.CParserError: Error tokenizing data. C error: Buffer overflow caught - possible malformed input file.`
{ "+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/14566/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14566/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14567
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14567/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14567/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14567/events
https://github.com/pandas-dev/pandas/pull/14567
186,839,977
MDExOlB1bGxSZXF1ZXN0OTE5OTc3MTc=
14,567
DEPR: add deprecation warning for com.array_equivalent
{ "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": "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": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
2
2016-11-02T15:49:51Z
2016-11-03T09:36:10Z
2016-11-03T09:36:10Z
MEMBER
null
xref https://github.com/pandas-dev/pandas/issues/14555 pandas.core.common.array_equivalent was removed without deprecation warning. This commits adds it back to the core.common namespace with deprecation warning We should still decide on the usefulness to add to the public API (in this commit I didn't add any pointer to alternative import location)
{ "+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/14567/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14567/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14567.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14567", "merged_at": "2016-11-03T09:36:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14567.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14567" }
https://api.github.com/repos/pandas-dev/pandas/issues/14568
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14568/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14568/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14568/events
https://github.com/pandas-dev/pandas/issues/14568
186,859,227
MDU6SXNzdWUxODY4NTkyMjc=
14,568
Cannot understand ValueError for pandas.HDFStore.select(), HDF5 from Pytables
{ "avatar_url": "https://avatars.githubusercontent.com/u/6968193?v=4", "events_url": "https://api.github.com/users/evanbiederstedt/events{/privacy}", "followers_url": "https://api.github.com/users/evanbiederstedt/followers", "following_url": "https://api.github.com/users/evanbiederstedt/following{/other_user}", "gists_url": "https://api.github.com/users/evanbiederstedt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/evanbiederstedt", "id": 6968193, "login": "evanbiederstedt", "node_id": "MDQ6VXNlcjY5NjgxOTM=", "organizations_url": "https://api.github.com/users/evanbiederstedt/orgs", "received_events_url": "https://api.github.com/users/evanbiederstedt/received_events", "repos_url": "https://api.github.com/users/evanbiederstedt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/evanbiederstedt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/evanbiederstedt/subscriptions", "type": "User", "url": "https://api.github.com/users/evanbiederstedt" }
[ { "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
[]
null
4
2016-11-02T16:58:14Z
2016-11-02T22:01:19Z
2016-11-02T22:01:15Z
NONE
null
This is a standard Python error, but I don't understand it in this context: I have an HDF5 object I create with Pytables. Printing out the information in Python with `>>> store`, I see the following information import pandas as pd store = pd.HDFStore("file.h5") >>> store <class 'pandas.io.pytables.HDFStore'> File path: /path/pathname/file.h5 given_key frame_table [0.0.0] (typ->generic,nrows->877129127,ncols->6,indexers->[index],dc->[COL1, COL2, COL3, COL4, COL5, COL6]) So, there are 6 columns and 877 million rows. I indexed on COL1 and COl6. Now, I'm getting errors when I try to select values. df = store.select(key ="given_key", columns = "COL1", start=0, stop=1) This outputs the error: ValueError: Shape of passed values is (1, 1), indices imply (1, 877129127) So I try this: df = store.select(key ="given_key", start=0, stop=1) I get the same ValueError ValueError: Shape of passed values is (1, 1), indices imply (1, 877129127) What does this mean? Is there an error in terms of how I created this HDF5 object? Let's say I want a value which I know exists in `COL1` df = store.select("given_key", where = "COL1 == 'abc'") Here's the error I get: ValueError: Shape of passed values is (1, 1231), indices imply (1, 877129127) It looks like it has accessed 1231 rows with this query value (which makes sense) but I cannot....get it. How can I fix 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/14568/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14568/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14569
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14569/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14569/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14569/events
https://github.com/pandas-dev/pandas/pull/14569
186,878,536
MDExOlB1bGxSZXF1ZXN0OTIwMjU0Nzc=
14,569
BUG: Fix justification for DataFrame.to_string(index=False)
{ "avatar_url": "https://avatars.githubusercontent.com/u/518697?v=4", "events_url": "https://api.github.com/users/buggi22/events{/privacy}", "followers_url": "https://api.github.com/users/buggi22/followers", "following_url": "https://api.github.com/users/buggi22/following{/other_user}", "gists_url": "https://api.github.com/users/buggi22/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/buggi22", "id": 518697, "login": "buggi22", "node_id": "MDQ6VXNlcjUxODY5Nw==", "organizations_url": "https://api.github.com/users/buggi22/orgs", "received_events_url": "https://api.github.com/users/buggi22/received_events", "repos_url": "https://api.github.com/users/buggi22/repos", "site_admin": false, "starred_url": "https://api.github.com/users/buggi22/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/buggi22/subscriptions", "type": "User", "url": "https://api.github.com/users/buggi22" }
[ { "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
closed
false
null
[]
null
5
2016-11-02T18:09:23Z
2017-02-01T20:52:54Z
2017-02-01T20:52:54Z
NONE
null
I believe this fixes #13032. I'm a new contributor, so please let me know if I've missed any steps.
{ "+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/14569/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14569/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14569.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14569", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14569.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14569" }
https://api.github.com/repos/pandas-dev/pandas/issues/14570
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14570/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14570/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14570/events
https://github.com/pandas-dev/pandas/issues/14570
186,910,820
MDU6SXNzdWUxODY5MTA4MjA=
14,570
Reading bz2, zip, and xz-compressed files from URL fails
{ "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": "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": "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": "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-11-02T20:26:55Z
2016-12-13T23:13:06Z
2016-12-13T23:11:38Z
CONTRIBUTOR
null
Previously, we've discussed reading tables form gzip-compressed URLs (see https://github.com/pandas-dev/pandas/issues/8685 and https://github.com/pandas-dev/pandas/pull/10649). This is an essential feature as data storage increasingly migrates to the cloud. I now realize that the previous work only added support for gzipped URLs and not bz2, zip, or xz compression. However, [the documentation](http://pandas.pydata.org/pandas-docs/version/0.19.0/generated/pandas.read_csv.html) doesn't reflect this. See [this notebook](https://github.com/dhimmel/iris/blob/1418a9abe7608c3c1e821138c120e05aa8116ecb/pandas-bug.ipynb) to see the errors that are generated. So :+1: for allowing URL locations for all supported compression formats.
{ "+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/14570/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14570/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14571
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14571/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14571/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14571/events
https://github.com/pandas-dev/pandas/pull/14571
187,014,052
MDExOlB1bGxSZXF1ZXN0OTIxMjAyMjc=
14,571
ENH: return an OrderedDict from read_excel with sheetname=None
{ "avatar_url": "https://avatars.githubusercontent.com/u/109167?v=4", "events_url": "https://api.github.com/users/scls19fr/events{/privacy}", "followers_url": "https://api.github.com/users/scls19fr/followers", "following_url": "https://api.github.com/users/scls19fr/following{/other_user}", "gists_url": "https://api.github.com/users/scls19fr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/scls19fr", "id": 109167, "login": "scls19fr", "node_id": "MDQ6VXNlcjEwOTE2Nw==", "organizations_url": "https://api.github.com/users/scls19fr/orgs", "received_events_url": "https://api.github.com/users/scls19fr/received_events", "repos_url": "https://api.github.com/users/scls19fr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/scls19fr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/scls19fr/subscriptions", "type": "User", "url": "https://api.github.com/users/scls19fr" }
[ { "color": "bfe5bf", "default": false, "description": "read_excel, to_excel", "id": 49254273, "name": "IO Excel", "node_id": "MDU6TGFiZWw0OTI1NDI3Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel" } ]
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-11-03T09:47:21Z
2016-11-11T10:00:51Z
2016-11-11T10:00:32Z
CONTRIBUTOR
null
- [x] closes #9930 - [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/14571/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14571/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14571.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14571", "merged_at": "2016-11-11T10:00:32Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14571.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14571" }
https://api.github.com/repos/pandas-dev/pandas/issues/14572
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14572/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14572/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14572/events
https://github.com/pandas-dev/pandas/issues/14572
187,030,508
MDU6SXNzdWUxODcwMzA1MDg=
14,572
Floating point accuracy problems in `Timestamp.round`
{ "avatar_url": "https://avatars.githubusercontent.com/u/4941926?v=4", "events_url": "https://api.github.com/users/jeanmn/events{/privacy}", "followers_url": "https://api.github.com/users/jeanmn/followers", "following_url": "https://api.github.com/users/jeanmn/following{/other_user}", "gists_url": "https://api.github.com/users/jeanmn/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jeanmn", "id": 4941926, "login": "jeanmn", "node_id": "MDQ6VXNlcjQ5NDE5MjY=", "organizations_url": "https://api.github.com/users/jeanmn/orgs", "received_events_url": "https://api.github.com/users/jeanmn/received_events", "repos_url": "https://api.github.com/users/jeanmn/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jeanmn/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jeanmn/subscriptions", "type": "User", "url": "https://api.github.com/users/jeanmn" }
[ { "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": "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" }
4
2016-11-03T11:07:37Z
2016-11-03T13:58:26Z
2016-11-03T11:15:15Z
NONE
null
This is the same problem as described in #14440 but with Timestamp, and the fix should be similar. Probable source of error: https://github.com/pandas-dev/pandas/blob/093aa8231eae92ff6cf7ef9564d62289b458aaff/pandas/tslib.pyx#L438 #### A small, complete example of the issue ```python In [1] import pandas as pd In [2]: ts=pd.Timestamp('2016-03-06 18:43:45.950000') In [3]: ts.floor('10L') Out [3]: Timestamp('2016-03-06 18:43:45.950000128') ``` #### Expected Output Timestamp('2016-03-06 18:43:45.950000') #### Output of ``pd.show_versions()`` INSTALLED VERSIONS ------------------ commit: 093aa8231eae92ff6cf7ef9564d62289b458aaff python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 3.16.0-46-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.19.0+63.g093aa82 nose: 1.3.7 pip: 9.0.0 setuptools: 28.7.1 Cython: 0.25.1 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: 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
{ "+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/14572/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14572/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14573
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14573/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14573/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14573/events
https://github.com/pandas-dev/pandas/pull/14573
187,038,208
MDExOlB1bGxSZXF1ZXN0OTIxMzc0ODI=
14,573
DOC: update whatsnew/release notes for 0.19.1
{ "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": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "006b75", "default": false, "description": null, "id": 131473665, "name": "Release", "node_id": "MDU6TGFiZWwxMzE0NzM2NjU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Release" } ]
closed
false
null
[]
{ "closed_at": "2016-11-07T20:05:26Z", "closed_issues": 83, "created_at": "2016-09-28T10:09:39Z", "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.0", "due_on": "2016-10-31T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/43", "id": 2034384, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43/labels", "node_id": "MDk6TWlsZXN0b25lMjAzNDM4NA==", "number": 43, "open_issues": 0, "state": "closed", "title": "0.19.1", "updated_at": "2016-11-07T20:05:26Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/43" }
0
2016-11-03T11:46:48Z
2016-11-03T14:17:42Z
2016-11-03T14:17:42Z
MEMBER
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/14573/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14573/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14573.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14573", "merged_at": "2016-11-03T14:17:42Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14573.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14573" }
https://api.github.com/repos/pandas-dev/pandas/issues/14574
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14574/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14574/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14574/events
https://github.com/pandas-dev/pandas/issues/14574
187,041,639
MDU6SXNzdWUxODcwNDE2Mzk=
14,574
value_counts failed on unique list values
{ "avatar_url": "https://avatars.githubusercontent.com/u/8580604?v=4", "events_url": "https://api.github.com/users/name-yy/events{/privacy}", "followers_url": "https://api.github.com/users/name-yy/followers", "following_url": "https://api.github.com/users/name-yy/following{/other_user}", "gists_url": "https://api.github.com/users/name-yy/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/name-yy", "id": 8580604, "login": "name-yy", "node_id": "MDQ6VXNlcjg1ODA2MDQ=", "organizations_url": "https://api.github.com/users/name-yy/orgs", "received_events_url": "https://api.github.com/users/name-yy/received_events", "repos_url": "https://api.github.com/users/name-yy/repos", "site_admin": false, "starred_url": "https://api.github.com/users/name-yy/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/name-yy/subscriptions", "type": "User", "url": "https://api.github.com/users/name-yy" }
[ { "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": "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": "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" }
2
2016-11-03T12:04:05Z
2020-11-19T00:45:10Z
2016-11-03T17:04:11Z
NONE
null
#### When value_counts on different list value, it's ok: ```python ser1 = pd.Series([[1], [2], [2]]) ser1.value_counts() [2] 2 [1] 1 dtype: int64 ``` #### But, when value_counts on unique list value, it's failed: ```python ser2 = pd.Series([[1], [1], [1]]) ser2.value_counts() --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-64-845402fb8b57> in <module>() 1 ser2 = pd.Series([[1], [1], [1]]) ----> 2 ser2.value_counts() /home/centos/anaconda2/lib/python2.7/site-packages/pandas/core/base.pyc in value_counts(self, normalize, sort, ascending, bins, dropna) 945 from pandas.core.algorithms import value_counts 946 result = value_counts(self, sort=sort, ascending=ascending, --> 947 normalize=normalize, bins=bins, dropna=dropna) 948 return result 949 /home/centos/anaconda2/lib/python2.7/site-packages/pandas/core/algorithms.pyc in value_counts(values, sort, ascending, normalize, bins, dropna) 276 else: 277 # ndarray path. pass original to handle DatetimeTzBlock --> 278 keys, counts = _value_counts_arraylike(values, dropna=dropna) 279 280 from pandas import Index, Series /home/centos/anaconda2/lib/python2.7/site-packages/pandas/core/algorithms.pyc in _value_counts_arraylike(values, dropna) 346 values = com._ensure_object(values) 347 mask = com.isnull(values) --> 348 keys, counts = htable.value_count_object(values, mask) 349 if not dropna and mask.any(): 350 keys = np.insert(keys, 0, np.NaN) pandas/hashtable.pyx in pandas.hashtable.value_count_object (pandas/hashtable.c:18970)() pandas/hashtable.pyx in pandas.hashtable.value_count_object (pandas/hashtable.c:18705)() TypeError: unhashable type: 'list' ``` #### I tried 1.18.1 and 1.19.0 #### Output of ``pd.show_versions()``, 1.18.1 INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 3.10.0-327.36.2.el7.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: 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: None jinja2: 2.8 boto: 2.42.0 pandas_datareader: None #### Output of ``pd.show_versions()``, 1.19.0 INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 4.4.0-45-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: None LOCALE: None.None pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 27.2.0 Cython: 0.24.1 numpy: 1.11.2 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.7 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: None jinja2: 2.8 boto: 2.42.0 pandas_datareader: None
{ "+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/14574/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14574/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14575
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14575/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14575/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14575/events
https://github.com/pandas-dev/pandas/pull/14575
187,073,517
MDExOlB1bGxSZXF1ZXN0OTIxNjMwMDg=
14,575
Update GitHub org from pydata to pandas-dev
{ "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": "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-11-03T14:22:42Z
2016-11-04T11:33:26Z
2016-11-04T11:33:12Z
CONTRIBUTOR
null
It looks like the repo moved owners from `pydata` to `pandas-dev`. This pull request updates the repository to refer to `pandas-dev/pandas` rather than `pydata/pandas`. - [x] passes ``git diff upstream/master | flake8 --diff`` - [ ] tests added / passed - [ ] 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/14575/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14575/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14575.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14575", "merged_at": "2016-11-04T11:33:12Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14575.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14575" }
https://api.github.com/repos/pandas-dev/pandas/issues/14576
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14576/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14576/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14576/events
https://github.com/pandas-dev/pandas/pull/14576
187,096,549
MDExOlB1bGxSZXF1ZXN0OTIxNzk1OTY=
14,576
Refactor compression code to expand URL support
{ "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" }
22
2016-11-03T15:38:34Z
2016-12-14T10:58:02Z
2016-12-13T23:11:38Z
CONTRIBUTOR
null
Work in progress. Picks up where #13340 left off. closes #12688 closes #13340 closes #14570
{ "+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/14576/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14576/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14576.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14576", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14576.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14576" }
https://api.github.com/repos/pandas-dev/pandas/issues/14577
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14577/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14577/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14577/events
https://github.com/pandas-dev/pandas/pull/14577
187,098,825
MDExOlB1bGxSZXF1ZXN0OTIxODA2Mzc=
14,577
nunique aggerigation failes on empty frames
{ "avatar_url": "https://avatars.githubusercontent.com/u/23240634?v=4", "events_url": "https://api.github.com/users/redsum/events{/privacy}", "followers_url": "https://api.github.com/users/redsum/followers", "following_url": "https://api.github.com/users/redsum/following{/other_user}", "gists_url": "https://api.github.com/users/redsum/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/redsum", "id": 23240634, "login": "redsum", "node_id": "MDQ6VXNlcjIzMjQwNjM0", "organizations_url": "https://api.github.com/users/redsum/orgs", "received_events_url": "https://api.github.com/users/redsum/received_events", "repos_url": "https://api.github.com/users/redsum/repos", "site_admin": false, "starred_url": "https://api.github.com/users/redsum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/redsum/subscriptions", "type": "User", "url": "https://api.github.com/users/redsum" }
[]
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-11-03T15:43:17Z
2016-11-03T15:53:35Z
2016-11-03T15:53:28Z
NONE
null
The following code fails > df = pd.DataFrame(columns=['a','b','c']) > df.groupby('a',as_index=False).agg({'b':'nunique'}) with an exception > Traceback (most recent call last): > File "/Users/ilangadassi/Documents/workspace/python/MyTests/test1.py", line 75, in <module> > testDfGroup() > File "/Users/ilangadassi/Documents/workspace/python/MyTests/test1.py", line 71, in testDfGroup > df.groupby('a',as_index=False).agg({'b':'nunique'}) > File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3774, in aggregate > return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs) > File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3272, in aggregate > result, how = self._aggregate(arg, _level=_level, *args, **kwargs) > File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 549, in _aggregate > result = _agg(arg, _agg_1dim) > File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 500, in _agg > result[fname] = func(fname, agg_how) > File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 483, in _agg_1dim > return colg.aggregate(how, _level=(_level or 0) + 1) > File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 2660, in aggregate > return getattr(self, func_or_funcs)(*args, **kwargs) > File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3023, in nunique > res = out if ids[0] != -1 else out[1:] > IndexError: index 0 is out of bounds for axis 0 with size 0 > - [ ] 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/14577/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14577/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14577.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14577", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14577.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14577" }
https://api.github.com/repos/pandas-dev/pandas/issues/14578
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14578/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14578/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14578/events
https://github.com/pandas-dev/pandas/issues/14578
187,108,609
MDU6SXNzdWUxODcxMDg2MDk=
14,578
nunique aggerigation failes on empty frames
{ "avatar_url": "https://avatars.githubusercontent.com/u/23240634?v=4", "events_url": "https://api.github.com/users/redsum/events{/privacy}", "followers_url": "https://api.github.com/users/redsum/followers", "following_url": "https://api.github.com/users/redsum/following{/other_user}", "gists_url": "https://api.github.com/users/redsum/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/redsum", "id": 23240634, "login": "redsum", "node_id": "MDQ6VXNlcjIzMjQwNjM0", "organizations_url": "https://api.github.com/users/redsum/orgs", "received_events_url": "https://api.github.com/users/redsum/received_events", "repos_url": "https://api.github.com/users/redsum/repos", "site_admin": false, "starred_url": "https://api.github.com/users/redsum/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/redsum/subscriptions", "type": "User", "url": "https://api.github.com/users/redsum" }
[ { "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" }, { "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" }
5
2016-11-03T16:03:29Z
2016-11-07T11:48:49Z
2016-11-03T17:08:16Z
NONE
null
#### A small, complete example of the issue ```python # Your code here df = pd.DataFrame(columns=['a','b','c']) df.groupby('a',as_index=False).agg({'b':'nunique'}) ``` #### Expected Output We shouldn't get an Exception #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Darwin OS-release: 16.0.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: None.None pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 27.2.0 Cython: 0.25.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.8 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: 1.1.0 tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.4.0 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.9 pymysql: None psycopg2: None jinja2: 2.8 boto: 2.43.0 pandas_datareader: None </details> i get the following output Traceback (most recent call last): File "/Users/ilangadassi/Documents/workspace/python/MyTests/test1.py", line 75, in <module> testDfGroup() File "/Users/ilangadassi/Documents/workspace/python/MyTests/test1.py", line 71, in testDfGroup df.groupby('a',as_index=False).agg({'b':'nunique'}) File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3774, in aggregate return super(DataFrameGroupBy, self).aggregate(arg, *args, **kwargs) File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3272, in aggregate result, how = self._aggregate(arg, _level=_level, *args, **kwargs) File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 549, in _aggregate result = _agg(arg, _agg_1dim) File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 500, in _agg result[fname] = func(fname, agg_how) File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/base.py", line 483, in _agg_1dim return colg.aggregate(how, _level=(_level or 0) + 1) File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 2660, in aggregate return getattr(self, func_or_funcs)(*args, **kwargs) File "/Users/ilangadassi/anaconda/lib/python2.7/site-packages/pandas/core/groupby.py", line 3023, in nunique res = out if ids[0] != -1 else out[1:] IndexError: index 0 is out of bounds for axis 0 with size 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/14578/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14578/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14579
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14579/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14579/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14579/events
https://github.com/pandas-dev/pandas/issues/14579
187,143,627
MDU6SXNzdWUxODcxNDM2Mjc=
14,579
Non-breaking spaces are printed as whitespace, but handled internally as `\xa0`
{ "avatar_url": "https://avatars.githubusercontent.com/u/5527610?v=4", "events_url": "https://api.github.com/users/aechase/events{/privacy}", "followers_url": "https://api.github.com/users/aechase/followers", "following_url": "https://api.github.com/users/aechase/following{/other_user}", "gists_url": "https://api.github.com/users/aechase/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/aechase", "id": 5527610, "login": "aechase", "node_id": "MDQ6VXNlcjU1Mjc2MTA=", "organizations_url": "https://api.github.com/users/aechase/orgs", "received_events_url": "https://api.github.com/users/aechase/received_events", "repos_url": "https://api.github.com/users/aechase/repos", "site_admin": false, "starred_url": "https://api.github.com/users/aechase/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/aechase/subscriptions", "type": "User", "url": "https://api.github.com/users/aechase" }
[ { "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": "ededed", "default": false, "description": "__repr__ of pandas objects, to_string", "id": 13101118, "name": "Output-Formatting", "node_id": "MDU6TGFiZWwxMzEwMTExOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting" } ]
open
false
null
[]
null
8
2016-11-03T17:53:08Z
2020-05-16T21:00:22Z
null
CONTRIBUTOR
null
If a column name contains a non-breaking space, _pandas_ will print it as normal whitespace, but represent it internally as `\xa0`. So, if you print out the column names, then copy/paste a name into a `.loc[]`, you will get a `KeyError`. ```python import pandas as pd df = pd.DataFrame(data={"Space column": [1, 2, 3, 4, 5], "Non-breaking\xa0space column": [1, 2, 3, 4, 5]}) print(df.columns) # Index(['Non-breaking space column', 'Space column'], dtype='object') df.loc[:, "Non-breaking space column"] # ... KeyError: 'the label [Non-breaking space column] is not in the [columns]' ... ``` For obvious reasons, this error is not helpful for diagnosing the actual problem, because all you can do to check the key is print out the column names again... Of course, it's not just a problem for column names, but for all strings. ```python s = pd.Series(data=["Foo bar", "Bar\xa0foo"]) print(s) # 0 Foo bar # 1 Bar foo # dtype: object print(s.str.contains("Bar foo")) # 0 False # 1 False # dtype: bool ``` #### 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: None LANG: en_GB.UTF-8 LOCALE: en_GB.UTF-8 pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 27.2.0 Cython: 0.25.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.8 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: 1.1.0 tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.4.0 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.1.3 pymysql: 0.7.9.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/14579/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14579/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14580
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14580/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14580/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14580/events
https://github.com/pandas-dev/pandas/issues/14580
187,192,540
MDU6SXNzdWUxODcxOTI1NDA=
14,580
BUG: iloc misbehavior with pd.Series: sometimes returns pd.Categorical instead
{ "avatar_url": "https://avatars.githubusercontent.com/u/23247132?v=4", "events_url": "https://api.github.com/users/navin-k80/events{/privacy}", "followers_url": "https://api.github.com/users/navin-k80/followers", "following_url": "https://api.github.com/users/navin-k80/following{/other_user}", "gists_url": "https://api.github.com/users/navin-k80/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/navin-k80", "id": 23247132, "login": "navin-k80", "node_id": "MDQ6VXNlcjIzMjQ3MTMy", "organizations_url": "https://api.github.com/users/navin-k80/orgs", "received_events_url": "https://api.github.com/users/navin-k80/received_events", "repos_url": "https://api.github.com/users/navin-k80/repos", "site_admin": false, "starred_url": "https://api.github.com/users/navin-k80/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/navin-k80/subscriptions", "type": "User", "url": "https://api.github.com/users/navin-k80" }
[ { "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" } ]
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-11-03T21:16:37Z
2016-12-30T21:35:23Z
2016-12-30T21:35:23Z
NONE
null
#### A small, complete example of the issue ```python # Your code here >>> type(pd.Series([1,2,3]).astype('category').iloc[0:1]) <class 'pandas.core.series.Series'> >>> type(pd.Series([1,2,3]).astype('category').iloc[np.array([0, 1])]) <class 'pandas.core.categorical.Categorical'> ``` #### Expected Output Both should return a pandas Series object #### Output of ``pd.show_versions()`` <details> pandas version = 0.18 </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/14580/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14580/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14581
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14581/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14581/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14581/events
https://github.com/pandas-dev/pandas/issues/14581
187,204,846
MDU6SXNzdWUxODcyMDQ4NDY=
14,581
Feature request: aggregation without MultiIndex columns
{ "avatar_url": "https://avatars.githubusercontent.com/u/7094433?v=4", "events_url": "https://api.github.com/users/PanWu/events{/privacy}", "followers_url": "https://api.github.com/users/PanWu/followers", "following_url": "https://api.github.com/users/PanWu/following{/other_user}", "gists_url": "https://api.github.com/users/PanWu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/PanWu", "id": 7094433, "login": "PanWu", "node_id": "MDQ6VXNlcjcwOTQ0MzM=", "organizations_url": "https://api.github.com/users/PanWu/orgs", "received_events_url": "https://api.github.com/users/PanWu/received_events", "repos_url": "https://api.github.com/users/PanWu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/PanWu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/PanWu/subscriptions", "type": "User", "url": "https://api.github.com/users/PanWu" }
[ { "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": "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" } ]
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-11-03T22:12:55Z
2016-11-04T19:58:22Z
2016-11-03T22:35:34Z
NONE
null
Currently the group-by-aggregation in pandas will create MultiIndex columns if there are multiple operation on the same column. However, this introduces some friction to reset the column names for fast filter and join. (If all operations could be chained together, analytics would be smoother) ```python df = pd.DataFrame([ ['A', 1], ['A', 2], ['A', 3], ['B', 4], ['B', 5], ['B', 6] ], columns=['Key', 'Value']) df1 = df.groupby('Key') \ .agg({ 'Value': {'V1': 'sum', 'V2': 'count'} }) df1.columns = df1.columns.droplevel() # This line introduce friction df1.query('V1 > V2') ``` #### Expected Output It would be great if there is a simple alias function for columns (like the pyspark's implementation), such as ```python # Just one approach, there may be others more appropriate df.groupby('Key') \ .agg( pd.Series.sum('Value').alias('V1'), pd.Series.count('Value').alias('V2') ) \ .query('V1 > V2') ```
{ "+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/14581/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14581/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14582
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14582/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14582/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14582/events
https://github.com/pandas-dev/pandas/pull/14582
187,227,924
MDExOlB1bGxSZXF1ZXN0OTIyNjc2ODM=
14,582
BUG: Improve Error Message for Multi-Char Sep + Quotes in Python Engine
{ "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": "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": "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" }
18
2016-11-04T00:53:47Z
2016-12-14T16:53:59Z
2016-11-25T21:21:03Z
MEMBER
null
If there is a field counts mismatch, check whether a multi-char separator was used in conjunction with quotes. Currently, that setup is not respected for the Python engine and can result in improper line breaks. This PR appends that to the error message if that is a possible explanation. Closes #13374.
{ "+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/14582/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14582/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14582.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14582", "merged_at": "2016-11-25T21:21:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14582.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14582" }
https://api.github.com/repos/pandas-dev/pandas/issues/14583
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14583/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14583/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14583/events
https://github.com/pandas-dev/pandas/pull/14583
187,236,399
MDExOlB1bGxSZXF1ZXN0OTIyNzI0Mjk=
14,583
Added errors{'raise','ignore'} for keys not found in meta for json_normalize
{ "avatar_url": "https://avatars.githubusercontent.com/u/1256318?v=4", "events_url": "https://api.github.com/users/dickreuter/events{/privacy}", "followers_url": "https://api.github.com/users/dickreuter/followers", "following_url": "https://api.github.com/users/dickreuter/following{/other_user}", "gists_url": "https://api.github.com/users/dickreuter/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dickreuter", "id": 1256318, "login": "dickreuter", "node_id": "MDQ6VXNlcjEyNTYzMTg=", "organizations_url": "https://api.github.com/users/dickreuter/orgs", "received_events_url": "https://api.github.com/users/dickreuter/received_events", "repos_url": "https://api.github.com/users/dickreuter/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dickreuter/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dickreuter/subscriptions", "type": "User", "url": "https://api.github.com/users/dickreuter" }
[ { "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": "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" }
22
2016-11-04T01:56:51Z
2016-12-13T23:21:52Z
2016-12-13T23:21:47Z
CONTRIBUTOR
null
Continuation of https://github.com/pandas-dev/pandas/pull/14505 Added errors{'raise','ignore'} for keys not found in meta for json_normalize
{ "+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/14583/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14583/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14583.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14583", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14583.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14583" }
https://api.github.com/repos/pandas-dev/pandas/issues/14584
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14584/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14584/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14584/events
https://github.com/pandas-dev/pandas/issues/14584
187,279,518
MDU6SXNzdWUxODcyNzk1MTg=
14,584
Enhancement to guess optimal/compressed datatypes for a dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/13920357?v=4", "events_url": "https://api.github.com/users/anandjeyahar/events{/privacy}", "followers_url": "https://api.github.com/users/anandjeyahar/followers", "following_url": "https://api.github.com/users/anandjeyahar/following{/other_user}", "gists_url": "https://api.github.com/users/anandjeyahar/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/anandjeyahar", "id": 13920357, "login": "anandjeyahar", "node_id": "MDQ6VXNlcjEzOTIwMzU3", "organizations_url": "https://api.github.com/users/anandjeyahar/orgs", "received_events_url": "https://api.github.com/users/anandjeyahar/received_events", "repos_url": "https://api.github.com/users/anandjeyahar/repos", "site_admin": false, "starred_url": "https://api.github.com/users/anandjeyahar/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anandjeyahar/subscriptions", "type": "User", "url": "https://api.github.com/users/anandjeyahar" }
[ { "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
[]
null
2
2016-11-04T08:42:44Z
2019-12-28T05:46:15Z
2019-12-28T05:46:14Z
NONE
null
In many cases we read tabular data from some source modify it, and write it out to another data destination. In this transfer we have an opportunity to tighten the data representation a bit, for example by changing dtypes or using categoricals. Often people do this by hand. It might be nice for us to do some of this work for them based on a single pass through the data. This might involve finding min/max of all integer columns, the approximate number of unique elements of all object dtype and integer columns, etc. and returning an appropriate dtype dict that we could optionally pass into an asdtype method. Originially inspired by [issue from dask. ](https://github.com/dask/dask/issues/1744) #### A small, complete example of the issue ```python df = pd.DataFrame({'x': [1, 2, 3], 'y': ['a', 'b', 'c']}) ``` #### Expected Output In [5]: df.dtypes Out[5]: x int64 y object dtype: object ln [6]: compressed_dtypes(df) x uint8 y object dtype: object
{ "+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/14584/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14584/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14585
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14585/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14585/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14585/events
https://github.com/pandas-dev/pandas/issues/14585
187,294,478
MDU6SXNzdWUxODcyOTQ0Nzg=
14,585
ERR: tz_localize ambiguous ='infer'
{ "avatar_url": "https://avatars.githubusercontent.com/u/20662503?v=4", "events_url": "https://api.github.com/users/gwuillou/events{/privacy}", "followers_url": "https://api.github.com/users/gwuillou/followers", "following_url": "https://api.github.com/users/gwuillou/following{/other_user}", "gists_url": "https://api.github.com/users/gwuillou/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gwuillou", "id": 20662503, "login": "gwuillou", "node_id": "MDQ6VXNlcjIwNjYyNTAz", "organizations_url": "https://api.github.com/users/gwuillou/orgs", "received_events_url": "https://api.github.com/users/gwuillou/received_events", "repos_url": "https://api.github.com/users/gwuillou/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gwuillou/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gwuillou/subscriptions", "type": "User", "url": "https://api.github.com/users/gwuillou" }
[]
closed
false
null
[]
null
3
2016-11-04T10:04:06Z
2016-11-09T10:36:48Z
2016-11-09T10:36:02Z
NONE
null
Hello, a problem concerning DST with change time. My df has a index for the year 2013 each 15 minutes. ```python df.index.tz_localize('Europe/Zurich',ambiguous = 'infer') ``` output: AmbiguousTimeError: 2013-10-27 02:00:00 The input DateTimeindex is: ... '2013-10-27 01:30:00', '2013-10-27 01:45:00', '2013-10-27 02:00:00', '2013-10-27 02:15:00', '2013-10-27 02:30:00', '2013-10-27 02:45:00', '2013-10-27 03:00:00', '2013-10-27 02:15:00', '2013-10-27 02:30:00', '2013-10-27 02:45:00', '2013-10-27 03:00:00', '2013-10-27 03:15:00', '2013-10-27 03:30:00', '2013-10-27 03:45:00', ... I would like an output DateTimeindex like: output: ... '2013-10-27 01:30:00+02:00', '2013-10-27 01:45:00+02:00', '2013-10-27 02:00:00+02:00', '2013-10-27 02:15:00+02:00', '2013-10-27 02:30:00+02:00', '2013-10-27 02:45:00+02:00', '2013-10-27 03:00:00+02:00', '2013-10-27 02:15:00+01:00', '2013-10-27 02:30:00+01:00', '2013-10-27 02:45:00+01:00', '2013-10-27 03:00:00+01:00', '2013-10-27 03:15:00+01:00', '2013-10-27 03:30:00+01:00', '2013-10-27 03:45:00+01:00', ... Thank you ```python pd.show_versions() ``` <details> output: 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: None LANG: fr_CH.UTF-8 LOCALE: fr_CH.UTF-8 pandas: 0.19.1 nose: 1.3.7 pip: 8.1.2 setuptools: 21.2.1 Cython: None numpy: 1.11.2 scipy: 0.17.1 statsmodels: None xarray: None IPython: 4.2.0 sphinx: None patsy: None dateutil: 2.5.3 pytz: 2016.7 blosc: None bottleneck: None tables: None numexpr: None matplotlib: 1.5.1 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/14585/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14585/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14586
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14586/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14586/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14586/events
https://github.com/pandas-dev/pandas/issues/14586
187,347,339
MDU6SXNzdWUxODczNDczMzk=
14,586
API: Index.append behaviour with categoricals
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "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": "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" }, { "color": "e99695", "default": false, "description": "Related to the Index class or subclasses", "id": 1218227310, "name": "Index", "node_id": "MDU6TGFiZWwxMjE4MjI3MzEw", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Index" } ]
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" }
1
2016-11-04T14:28:37Z
2020-11-29T15:59:57Z
2020-11-29T15:59:57Z
MEMBER
null
Follow-up of https://github.com/pandas-dev/pandas/pull/14545. We had a long discussion on what the behaviour of `concat` should be when you have categorical data: https://github.com/pandas-dev/pandas/pull/13767. In the end, for 0.19.0, we changed the behaviour of raising an error when categories didn't match to returning object dtyped data (only data with identical categories and ordered attributed gives a categorical as result). The table below is a summary of the changes between 0.18.1 and 0.19.0: **For categorical Series:** | left | right | append/concat 0.18 | append/concat 0.19.0 | |---------|-------------------------------------------|---------|------------------------------| | category | category (identical categories) | category | category | | category | category (different categories) | error | object | | category | not category | category | object | | category | not category (different categories) | category with NaNs | object | However, we didn't change behaviour of `append` for Indexes (the above append is for series): **For `CategoricalIndex`:** | left | right | append 0.18 | append 0.19.0 | append 0.19.1 | |---------|-------------------------------------------|---------|------------------------------|----| | category | category (identical categories) | category | category | category | | category | category (different categories) | error | error | error | | category | not category | category | category | category | | category | not category (with other values) | error | error | error | | not category | category (with other values) | object | error | object The last line, i.e. the case where the calling Index is not a CategoricalIndex, changed by accident in 0.19.0, and it is this that I corrected for in PR #14545 for 0.19.1. Questions: * Do we want the same behaviour for `Index.append` as we now have for `Series.append` with categorical data? This means that the column in the table above becomes 'object' apart from the first row. * Do we want to make an exception for the case where the values in the 'right' correspond with the categories? (so that `pd.CategoricalIndex(['a', 'b', 'c']).append(pd.Index(['a']))`keeps working) Changing this to always return object dtype unless for categoricals with indentical categories is easy, but gives a few failures in our test suite. Namely, in some indexing tests (indexing a DataFrame with a CategoricalIndex) there are changes in behaviour because indexing with a non-existing value in the index was performed using `CategoricalIndex.append()`. But this we can workaround in the indexing code of course. cc @janschulz @sinhrks
{ "+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/14586/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14586/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14587
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14587/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14587/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14587/events
https://github.com/pandas-dev/pandas/pull/14587
187,366,999
MDExOlB1bGxSZXF1ZXN0OTIzNjM4NDY=
14,587
TST: Create compressed salary testing data
{ "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": "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" }
18
2016-11-04T15:43:04Z
2016-12-04T18:33:13Z
2016-11-11T08:53:49Z
CONTRIBUTOR
null
Create compressed versions of the salary dataset for testing #14576. Rename `salary.table.csv` to `salaries.tsv` because the dataset is tab rather than comma delimited. Remove the word table because it's implied by the extension. Rename `salary.table.gz` to `salaries.tsv.gz`, since compressed files should append to not strip the original extension. Created new files by running the following commands: ```sh cd pandas/io/tests/parser/data bzip2 --keep salaries.tsv xz --keep salaries.tsv zip salaries.tsv.zip salaries.tsv ``` There will be CI testing failures since the modified files are not yet in master or on amazon S3. @jorisvandenbossche how do we deal with 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/14587/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14587/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14587.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14587", "merged_at": "2016-11-11T08:53:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14587.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14587" }
https://api.github.com/repos/pandas-dev/pandas/issues/14588
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14588/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14588/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14588/events
https://github.com/pandas-dev/pandas/issues/14588
187,385,852
MDU6SXNzdWUxODczODU4NTI=
14,588
PERF: asv for select_dtypes
{ "avatar_url": "https://avatars.githubusercontent.com/u/1199593?v=4", "events_url": "https://api.github.com/users/simonm3/events{/privacy}", "followers_url": "https://api.github.com/users/simonm3/followers", "following_url": "https://api.github.com/users/simonm3/following{/other_user}", "gists_url": "https://api.github.com/users/simonm3/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/simonm3", "id": 1199593, "login": "simonm3", "node_id": "MDQ6VXNlcjExOTk1OTM=", "organizations_url": "https://api.github.com/users/simonm3/orgs", "received_events_url": "https://api.github.com/users/simonm3/received_events", "repos_url": "https://api.github.com/users/simonm3/repos", "site_admin": false, "starred_url": "https://api.github.com/users/simonm3/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/simonm3/subscriptions", "type": "User", "url": "https://api.github.com/users/simonm3" }
[ { "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": "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" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/44933366?v=4", "events_url": "https://api.github.com/users/avinashpancham/events{/privacy}", "followers_url": "https://api.github.com/users/avinashpancham/followers", "following_url": "https://api.github.com/users/avinashpancham/following{/other_user}", "gists_url": "https://api.github.com/users/avinashpancham/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/avinashpancham", "id": 44933366, "login": "avinashpancham", "node_id": "MDQ6VXNlcjQ0OTMzMzY2", "organizations_url": "https://api.github.com/users/avinashpancham/orgs", "received_events_url": "https://api.github.com/users/avinashpancham/received_events", "repos_url": "https://api.github.com/users/avinashpancham/repos", "site_admin": false, "starred_url": "https://api.github.com/users/avinashpancham/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/avinashpancham/subscriptions", "type": "User", "url": "https://api.github.com/users/avinashpancham" } ]
{ "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" }
6
2016-11-04T16:57:29Z
2020-10-05T17:41:30Z
2020-10-05T17:41:30Z
NONE
null
Why is select_dtypes so slow? `%timeit [col for col in df.columns if np.issubdtype(df[col].dtype, np.number)]` 453 microsecs per loop `%timeit df.select_dtypes(include=[np.number])` 4.58 secs per loop
{ "+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/14588/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14588/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14589
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14589/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14589/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14589/events
https://github.com/pandas-dev/pandas/issues/14589
187,444,676
MDU6SXNzdWUxODc0NDQ2NzY=
14,589
Series.argmax and Series.idxmax ignore numpy.inf values
{ "avatar_url": "https://avatars.githubusercontent.com/u/312924?v=4", "events_url": "https://api.github.com/users/JasonKessler/events{/privacy}", "followers_url": "https://api.github.com/users/JasonKessler/followers", "following_url": "https://api.github.com/users/JasonKessler/following{/other_user}", "gists_url": "https://api.github.com/users/JasonKessler/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/JasonKessler", "id": 312924, "login": "JasonKessler", "node_id": "MDQ6VXNlcjMxMjkyNA==", "organizations_url": "https://api.github.com/users/JasonKessler/orgs", "received_events_url": "https://api.github.com/users/JasonKessler/received_events", "repos_url": "https://api.github.com/users/JasonKessler/repos", "site_admin": false, "starred_url": "https://api.github.com/users/JasonKessler/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/JasonKessler/subscriptions", "type": "User", "url": "https://api.github.com/users/JasonKessler" }
[ { "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": "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" }
1
2016-11-04T21:42:23Z
2016-11-04T22:25:59Z
2016-11-04T22:25:02Z
NONE
null
#### A small, complete example of the issue ```python >>> series = pd.Series({'a':3, 'b':7, 'c':np.inf, 'd':6}) >>> series.argmax() # should be c 'b' >>> series.idxmax() # should be c 'b' >>> series.max() # this works properly inf >>> series.index[np.argmax(np.array(series))] # this work-around works 'c' ``` #### Expected Output ```python >>> series = pd.Series({'a':3, 'b':7, 'c':np.inf, 'd':6}) >>> series.argmax() 'c' >>> series.idxmax() 'c' ``` #### Output of ``pd.show_versions()`` <details> # Paste the output here pd.show_versions() here ```python >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Darwin OS-release: 15.6.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 23.0.0 Cython: 0.24 numpy: 1.11.2 scipy: 0.18.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.7 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: 0.9.2 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/14589/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14589/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14590
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14590/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14590/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14590/events
https://github.com/pandas-dev/pandas/issues/14590
187,450,232
MDU6SXNzdWUxODc0NTAyMzI=
14,590
IndexableSkiplist - Segmentation fault - 💥
{ "avatar_url": "https://avatars.githubusercontent.com/u/144320?v=4", "events_url": "https://api.github.com/users/lsbardel/events{/privacy}", "followers_url": "https://api.github.com/users/lsbardel/followers", "following_url": "https://api.github.com/users/lsbardel/following{/other_user}", "gists_url": "https://api.github.com/users/lsbardel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lsbardel", "id": 144320, "login": "lsbardel", "node_id": "MDQ6VXNlcjE0NDMyMA==", "organizations_url": "https://api.github.com/users/lsbardel/orgs", "received_events_url": "https://api.github.com/users/lsbardel/received_events", "repos_url": "https://api.github.com/users/lsbardel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lsbardel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lsbardel/subscriptions", "type": "User", "url": "https://api.github.com/users/lsbardel" }
[]
closed
false
null
[]
null
6
2016-11-04T22:16:24Z
2016-11-04T23:12:14Z
2016-11-04T22:57:33Z
NONE
null
**python**: 3.5.2 **pandas**: 0.19.1 **system**: Mac v 10.12.1 ```python >>> from pandas._window import IndexableSkiplist >>> sl = IndexableSkiplist() >>> len(sl) 0 >>> list(sl) ``` **Segmentation fault: 11** :collision:
{ "+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/14590/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14590/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14591
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14591/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14591/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14591/events
https://github.com/pandas-dev/pandas/pull/14591
187,474,349
MDExOlB1bGxSZXF1ZXN0OTI0NDA5NjM=
14,591
ENH: add fill_value to resample
{ "avatar_url": "https://avatars.githubusercontent.com/u/13592507?v=4", "events_url": "https://api.github.com/users/nchmura4/events{/privacy}", "followers_url": "https://api.github.com/users/nchmura4/followers", "following_url": "https://api.github.com/users/nchmura4/following{/other_user}", "gists_url": "https://api.github.com/users/nchmura4/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nchmura4", "id": 13592507, "login": "nchmura4", "node_id": "MDQ6VXNlcjEzNTkyNTA3", "organizations_url": "https://api.github.com/users/nchmura4/orgs", "received_events_url": "https://api.github.com/users/nchmura4/received_events", "repos_url": "https://api.github.com/users/nchmura4/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nchmura4/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nchmura4/subscriptions", "type": "User", "url": "https://api.github.com/users/nchmura4" }
[ { "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": "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": "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": "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-11-05T03:38:35Z
2017-01-21T22:51:23Z
2017-01-21T22:51:23Z
CONTRIBUTOR
null
- [x] closes #3715 - [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/14591/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14591/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14591.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14591", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14591.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14591" }
https://api.github.com/repos/pandas-dev/pandas/issues/14592
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14592/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14592/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14592/events
https://github.com/pandas-dev/pandas/issues/14592
187,490,514
MDU6SXNzdWUxODc0OTA1MTQ=
14,592
Setting DataFrame of Python objects and MultiIndex columns wth single-element NDFrame inserts list
{ "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": "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" }
2
2016-11-05T11:03:46Z
2020-01-21T01:06:10Z
2020-01-21T01:06:10Z
MEMBER
null
#### A small, complete example of the issue ```python In [2]: t = pd.DataFrame('a', index=range(2), columns=pd.MultiIndex.from_product([range(2), range(2)])) In [3]: t.loc[0, [(0,1)]] = t.loc[0, [(0,1)]] In [4]: t Out[4]: 0 1 0 1 0 1 0 a [a] a a 1 a a a a ``` The same happens when providing, rather than a list of indices, a mask with only one ``True`` value. The above line is an useless example, but this is a problem in in-place operations. I suspect the fix should not be very complicated, given that everything works smoothly if we have numbers rather than Python objects (the bug instead arises both if we assign a cell of a numbers-only DF to a cell of a DF of objects, _and_ if we do the opposite) #### Expected Output Just the original ``t``. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: 7a2bcb6605bacea858ec14cfac424898deb568b3 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+67.g7a2bcb6.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": 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/14592/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14592/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14593
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14593/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14593/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14593/events
https://github.com/pandas-dev/pandas/issues/14593
187,498,057
MDU6SXNzdWUxODc0OTgwNTc=
14,593
Swapping levels does not seem to work as advertised (nevermind, one needs to sortlevels as well)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4", "events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}", "followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers", "following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}", "gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amelio-vazquez-reina", "id": 1993919, "login": "amelio-vazquez-reina", "node_id": "MDQ6VXNlcjE5OTM5MTk=", "organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs", "received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events", "repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions", "type": "User", "url": "https://api.github.com/users/amelio-vazquez-reina" }
[]
closed
false
null
[]
null
0
2016-11-05T13:48:20Z
2016-11-05T13:54:11Z
2016-11-05T13:53:59Z
CONTRIBUTOR
null
Consider this dataframe: ``` spend impressions actions CPA item_type A Foo P Foo P Foo P Foo date 2016-10-21 3926.88 1228.58 14121218.00 266168.00 2.00 7.00 1963.44 175.51 2016-10-22 4455.42 1633.45 16243562.00 341964.00 2.00 1.00 2227.71 1633.45 2016-10-23 1606.02 678.07 4846722.00 198431.00 1.00 3.00 1606.02 226.02 2016-10-24 1586.00 494.29 4493480.00 158689.00 4.00 2.00 396.50 247.14 2016-10-25 1583.77 481.33 3021006.00 127491.00 4.00 0.00 395.94 inf 2016-10-26 3145.96 528.68 5077469.00 130744.00 2.00 3.00 1572.98 176.23 2016-10-27 3163.02 1061.60 4577752.00 188609.00 4.00 2.00 790.76 530.80 2016-10-28 4091.34 1097.26 5834854.00 179609.00 0.00 2.00 inf 548.63 2016-10-29 3661.87 866.31 5269912.00 145719.00 2.00 1.00 1830.93 866.31 2016-10-30 3260.80 945.99 4681901.00 161267.00 1.00 2.00 3260.80 472.99 2016-10-31 2466.62 1165.83 3693572.00 204602.00 4.00 1.00 616.66 1165.83 2016-11-01 1184.63 1084.31 2509393.00 196103.00 1.00 1.00 1184.63 1084.31 2016-11-02 1118.49 949.56 2262660.00 165717.00 2.00 1.00 559.24 949.56 2016-11-03 1002.56 1004.88 1678139.00 169733.00 2.00 2.00 501.28 502.44 ``` We have: ``` > df.columns MultiIndex(levels=[['spend', 'impressions', 'actions', 'CPA'], ['A', 'Foo']], labels=[[0, 0, 1, 1, 2, 2, 3, 3], [0, 1, 0, 1, 0, 1, 0, 1]], names=[None, 'item_type']) ``` when I do: ```python fsa_all.swaplevel(axis=1) ``` I expect to get the columns organized as follows: ``` A Foo spend impressions actions CPA spend impressions actions CPA item_type ... ``` but instead I get: ``` item_type A Foo A Foo A Foo A Foo spend spend impressions impressions actions actions CPA CPA ... ``` Is this expected? #### 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 nose: 1.3.7 pip: 9.0.0 setuptools: 28.7.1 Cython: 0.25.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.8 patsy: 0.4.1 dateutil: 2.2 pytz: 2016.7 blosc: None bottleneck: 1.2.0 tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.2.0-b1 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.1.3 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) 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/14593/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14593/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14594
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14594/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14594/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14594/events
https://github.com/pandas-dev/pandas/issues/14594
187,532,707
MDU6SXNzdWUxODc1MzI3MDc=
14,594
DOC: indexing with combination of row slice and column label
{ "avatar_url": "https://avatars.githubusercontent.com/u/1322198?v=4", "events_url": "https://api.github.com/users/andreydung/events{/privacy}", "followers_url": "https://api.github.com/users/andreydung/followers", "following_url": "https://api.github.com/users/andreydung/following{/other_user}", "gists_url": "https://api.github.com/users/andreydung/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/andreydung", "id": 1322198, "login": "andreydung", "node_id": "MDQ6VXNlcjEzMjIxOTg=", "organizations_url": "https://api.github.com/users/andreydung/orgs", "received_events_url": "https://api.github.com/users/andreydung/received_events", "repos_url": "https://api.github.com/users/andreydung/repos", "site_admin": false, "starred_url": "https://api.github.com/users/andreydung/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/andreydung/subscriptions", "type": "User", "url": "https://api.github.com/users/andreydung" }
[ { "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": "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": 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-11-06T00:17:16Z
2016-11-07T19:57:34Z
2016-11-07T19:57:34Z
NONE
null
What is the proper way to set value to a column ('widenGT'), for a range of rows (3:7)? How do I write code (specifically for the problem below) that does not generate the SettingWithCopyWarning: "A value is trying to be set on a copy of a slice from a DataFrame?". In my production code, the behavior are not consistent, value are not set sometimes!!! #### A small, complete example of the issue ```python import pandas as pd import numpy as np print pd.show_versions() df = pd.DataFrame(np.ones((10,2)), columns = ['A', 'B']) print df df['newColumn'] = 0 # set values using column label, and range of integer indexes df.newColumn.iloc[3:7] = 2 print df # set values using column label, and condition on another column df.loc[df['newColumn'] == 2, 'A'] = 3 print df ``` #### Expected Output ``` A B newColumn 0 1.0 1.0 0 1 1.0 1.0 0 2 1.0 1.0 0 3 1.0 1.0 2 4 1.0 1.0 2 5 1.0 1.0 2 6 1.0 1.0 2 7 1.0 1.0 0 8 1.0 1.0 0 9 1.0 1.0 0 A B newColumn 0 1.0 1.0 0 1 1.0 1.0 0 2 1.0 1.0 0 3 3.0 1.0 2 4 3.0 1.0 2 5 3.0 1.0 2 6 3.0 1.0 2 7 1.0 1.0 0 8 1.0 1.0 0 9 1.0 1.0 0 ``` #### Output of ``pd.show_versions()`` <details> # Paste the output here pd.show_versions() here INSTALLED VERSIONS ------------------ commit: None python: 2.7.12.final.0 python-bits: 64 OS: Linux OS-release: 3.13.0-63-generic 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: 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.7 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: None jinja2: 2.8 boto: 2.42.0 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/14594/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14594/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14595
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14595/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14595/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14595/events
https://github.com/pandas-dev/pandas/issues/14595
187,534,013
MDU6SXNzdWUxODc1MzQwMTM=
14,595
Read_HDF with nrows=[small-number] takes Much Time and RAM
{ "avatar_url": "https://avatars.githubusercontent.com/u/18562882?v=4", "events_url": "https://api.github.com/users/MaxPowerWasTaken/events{/privacy}", "followers_url": "https://api.github.com/users/MaxPowerWasTaken/followers", "following_url": "https://api.github.com/users/MaxPowerWasTaken/following{/other_user}", "gists_url": "https://api.github.com/users/MaxPowerWasTaken/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MaxPowerWasTaken", "id": 18562882, "login": "MaxPowerWasTaken", "node_id": "MDQ6VXNlcjE4NTYyODgy", "organizations_url": "https://api.github.com/users/MaxPowerWasTaken/orgs", "received_events_url": "https://api.github.com/users/MaxPowerWasTaken/received_events", "repos_url": "https://api.github.com/users/MaxPowerWasTaken/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MaxPowerWasTaken/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MaxPowerWasTaken/subscriptions", "type": "User", "url": "https://api.github.com/users/MaxPowerWasTaken" }
[ { "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" }, { "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": 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" }
9
2016-11-06T00:51:58Z
2016-11-06T21:33:29Z
2016-11-06T02:02:07Z
NONE
null
Using Python 3.5.2 and Pandas 0.18.1 I find that sampling a large HDF5 file using the nrows parameter takes far more RAM and time than sampling the first n rows by pulling the first n indices using a where statement. Minimal Code Example: ``` store = pd.HDFStore('data_path/hdf_store.h5') select_indices = np.arange(1000) time1 = time.time() train_date_hdf = store.select('table_name', where=select_indices) time2=time.time() print(time2-time1) time1 = time.time() train_date_hdf2 = pd.read_hdf(store, 'table_name', nrows=1000) time2=time.time() print(time2-time1) ``` Output is: > 0.10559678077697754 > 84.43739724159241 In addition to the much longer time taken by using the nrows parameter, this small sample of a large table also spikes my RAM from 20% to 97% on my machine, which has 8GB of RAM. Whereas reading 1000 rows by selecting 1000 rows by index with a where clause doesn't even use 1% of my RAM. Would there be a downside to having nrows=n be implemented by pulling the first n indices in a where statement by default?
{ "+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/14595/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14595/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14596
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14596/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14596/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14596/events
https://github.com/pandas-dev/pandas/pull/14596
187,536,835
MDExOlB1bGxSZXF1ZXN0OTI0NzQ0OTY=
14,596
Fix parse empty df
{ "avatar_url": "https://avatars.githubusercontent.com/u/606089?v=4", "events_url": "https://api.github.com/users/bkandel/events{/privacy}", "followers_url": "https://api.github.com/users/bkandel/followers", "following_url": "https://api.github.com/users/bkandel/following{/other_user}", "gists_url": "https://api.github.com/users/bkandel/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bkandel", "id": 606089, "login": "bkandel", "node_id": "MDQ6VXNlcjYwNjA4OQ==", "organizations_url": "https://api.github.com/users/bkandel/orgs", "received_events_url": "https://api.github.com/users/bkandel/received_events", "repos_url": "https://api.github.com/users/bkandel/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bkandel/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bkandel/subscriptions", "type": "User", "url": "https://api.github.com/users/bkandel" }
[ { "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_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": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
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-11-06T02:13:00Z
2016-11-22T11:24:11Z
2016-11-22T11:24:11Z
CONTRIBUTOR
null
- [x] closes #14515 - [x] tests added / passed - [x] passes ``git diff upstream/master | flake8 --diff`` - [x] whatsnew entry This commit fixes a bug where `read_csv` failed when given a file with a multiindex header and empty content. Because pandas reads index names as a separate line following the header lines, the reader looks for the line with index names in it. If the content of the dataframe is empty, the reader will choke. This bug surfaced after https://github.com/pandas-dev/pandas/issues/6618 stopped writing an extra line after multiindex columns, which led to a situation where pandas could write CSV's that it couldn't then read. This commit changes that behavior by explicitly checking if the index name row exists, and processing it correctly if it doesn't.
{ "+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/14596/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14596/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14596.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14596", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14596.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14596" }
https://api.github.com/repos/pandas-dev/pandas/issues/14597
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14597/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14597/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14597/events
https://github.com/pandas-dev/pandas/pull/14597
187,577,520
MDExOlB1bGxSZXF1ZXN0OTI0OTYyODU=
14,597
DOC: Tweak error message to make it slightly more readable / easier to parse
{ "avatar_url": "https://avatars.githubusercontent.com/u/2692805?v=4", "events_url": "https://api.github.com/users/maxalbert/events{/privacy}", "followers_url": "https://api.github.com/users/maxalbert/followers", "following_url": "https://api.github.com/users/maxalbert/following{/other_user}", "gists_url": "https://api.github.com/users/maxalbert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maxalbert", "id": 2692805, "login": "maxalbert", "node_id": "MDQ6VXNlcjI2OTI4MDU=", "organizations_url": "https://api.github.com/users/maxalbert/orgs", "received_events_url": "https://api.github.com/users/maxalbert/received_events", "repos_url": "https://api.github.com/users/maxalbert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maxalbert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maxalbert/subscriptions", "type": "User", "url": "https://api.github.com/users/maxalbert" }
[ { "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": "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-11-06T18:01:40Z
2016-11-11T09:03:25Z
2016-11-11T09:03:19Z
CONTRIBUTOR
null
- [ ] closes #xxxx - [ ] tests added / passed - [x] 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/14597/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14597/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14597.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14597", "merged_at": "2016-11-11T09:03:19Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/14597.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14597" }
https://api.github.com/repos/pandas-dev/pandas/issues/14598
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14598/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14598/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14598/events
https://github.com/pandas-dev/pandas/issues/14598
187,589,895
MDU6SXNzdWUxODc1ODk4OTU=
14,598
Can't combine (add) two indexes
{ "avatar_url": "https://avatars.githubusercontent.com/u/17058025?v=4", "events_url": "https://api.github.com/users/fgasdia/events{/privacy}", "followers_url": "https://api.github.com/users/fgasdia/followers", "following_url": "https://api.github.com/users/fgasdia/following{/other_user}", "gists_url": "https://api.github.com/users/fgasdia/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/fgasdia", "id": 17058025, "login": "fgasdia", "node_id": "MDQ6VXNlcjE3MDU4MDI1", "organizations_url": "https://api.github.com/users/fgasdia/orgs", "received_events_url": "https://api.github.com/users/fgasdia/received_events", "repos_url": "https://api.github.com/users/fgasdia/repos", "site_admin": false, "starred_url": "https://api.github.com/users/fgasdia/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/fgasdia/subscriptions", "type": "User", "url": "https://api.github.com/users/fgasdia" }
[ { "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": 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-11-06T21:18:46Z
2016-11-07T06:00:41Z
2016-11-07T05:59:43Z
NONE
null
I would like to interpolate a Series at new values (which itself doesn't appear to be supported), which can be accomplished by reindexing and interpolating. An example of this is ```python s = pd.Series(np.random.rand(6), index= np.arange(20,140,20)) idx = pd.Index(np.arange(20,140,10)) s.reindex(s.index + idx).interpolate() ``` But the operation `s.index + idx` results in `ValueError: cannot evaluate a numeric op with unequal lengths`. #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 30 Stepping 5, GenuineIntel byteorder: little LC_ALL: None LANG: en_US LOCALE: None.None pandas: 0.19.1 nose: 1.3.7 pip: 8.1.1 setuptools: 20.3 Cython: 0.23.4 numpy: 1.11.0 scipy: 0.17.0 statsmodels: 0.6.1 xarray: None IPython: 4.1.2 sphinx: 1.3.1 patsy: 0.4.0 dateutil: 2.5.1 pytz: 2016.2 blosc: None bottleneck: 1.0.0 tables: 3.2.2 numexpr: 2.5.2 matplotlib: 1.5.1 openpyxl: 2.3.2 xlrd: 0.9.4 xlwt: 1.0.0 xlsxwriter: 0.8.4 lxml: 3.6.0 bs4: 4.4.1 html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: None psycopg2: None 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/14598/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14598/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14599
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14599/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14599/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14599/events
https://github.com/pandas-dev/pandas/pull/14599
187,629,781
MDExOlB1bGxSZXF1ZXN0OTI1MjY4NzQ=
14,599
BUG in clipboard (linux, python2) with unicode and separator (GH13747)
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "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": "444444", "default": false, "description": "Unicode strings", "id": 36380025, "name": "Unicode", "node_id": "MDU6TGFiZWwzNjM4MDAyNQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode" } ]
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" }
56
2016-11-07T05:45:03Z
2016-11-18T22:54:12Z
2016-11-18T22:42:37Z
CONTRIBUTOR
null
- [x] closes #13747, closes #14362, closes #12807, closes #12529 - [x] tests added / passed pandas/io/tests/test_clipboard.py for OSX - [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/14599/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14599/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/14599.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/14599", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/14599.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/14599" }
https://api.github.com/repos/pandas-dev/pandas/issues/14600
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14600/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14600/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14600/events
https://github.com/pandas-dev/pandas/issues/14600
187,661,234
MDU6SXNzdWUxODc2NjEyMzQ=
14,600
Concatenation of category value counts mixes up the index order
{ "avatar_url": "https://avatars.githubusercontent.com/u/576089?v=4", "events_url": "https://api.github.com/users/jbao/events{/privacy}", "followers_url": "https://api.github.com/users/jbao/followers", "following_url": "https://api.github.com/users/jbao/following{/other_user}", "gists_url": "https://api.github.com/users/jbao/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jbao", "id": 576089, "login": "jbao", "node_id": "MDQ6VXNlcjU3NjA4OQ==", "organizations_url": "https://api.github.com/users/jbao/orgs", "received_events_url": "https://api.github.com/users/jbao/received_events", "repos_url": "https://api.github.com/users/jbao/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jbao/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jbao/subscriptions", "type": "User", "url": "https://api.github.com/users/jbao" }
[ { "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" }, { "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" }
11
2016-11-07T09:24:01Z
2020-01-21T01:06:09Z
2020-01-21T01:06:09Z
NONE
null
Let's say we have two `Series` s1 and s2, which can be the output of the `pd.value_counts()` function, and we want to combine them into one `DataFrame` ```python s1 = pd.Series([39,6,4], index=pd.CategoricalIndex(['female','male','unknown'])) s2 = pd.Series([2,152,2,242,150], index=pd.CategoricalIndex(['f','female','m','male','unknown'])) pd.DataFrame([s1,s2]) ``` The result is female male unknown f m 0 NaN 39.0 NaN 6.0 4.0 1 2.0 152.0 2.0 242.0 150.0 where the order of categories in the first row is changed. And the current workaround is pd.DataFrame([pd.Series(s1.values,index=s1.index.astype(list)),pd.Series(s2.values,index=s2.index.astype(list))]) which gives the correct result f female m male unknown 0 NaN 39.0 NaN 6.0 4.0 1 2.0 152.0 2.0 242.0 150.0 #### Output of ``pd.show_versions()`` <details> INSTALLED VERSIONS ------------------ commit: None python: 3.5.2.final.0 python-bits: 64 OS: Linux OS-release: 3.19.0-31-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.0 nose: None pip: 8.1.2 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.5.3 pytz: 2016.7 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/14600/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14600/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14601
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14601/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14601/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14601/events
https://github.com/pandas-dev/pandas/issues/14601
187,699,454
MDU6SXNzdWUxODc2OTk0NTQ=
14,601
DOC: min_itemsize for HDFStore append for encoded strings
{ "avatar_url": "https://avatars.githubusercontent.com/u/9724338?v=4", "events_url": "https://api.github.com/users/johanneshk/events{/privacy}", "followers_url": "https://api.github.com/users/johanneshk/followers", "following_url": "https://api.github.com/users/johanneshk/following{/other_user}", "gists_url": "https://api.github.com/users/johanneshk/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/johanneshk", "id": 9724338, "login": "johanneshk", "node_id": "MDQ6VXNlcjk3MjQzMzg=", "organizations_url": "https://api.github.com/users/johanneshk/orgs", "received_events_url": "https://api.github.com/users/johanneshk/received_events", "repos_url": "https://api.github.com/users/johanneshk/repos", "site_admin": false, "starred_url": "https://api.github.com/users/johanneshk/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/johanneshk/subscriptions", "type": "User", "url": "https://api.github.com/users/johanneshk" }
[ { "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": "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" }, { "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" }, { "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" }
6
2016-11-07T12:28:22Z
2019-10-21T19:52:16Z
null
NONE
null
I'm confused about how to preset min_itemsizes for appending to an HDFStore. Say DataFrame a and b in the MWE below is user-provided, so it can contain any character and the encoding is unknown. Appending a works, but appending b fails even though: ```python In [4]: len('香') Out[4]: 1 ``` So far I simply used str.len().max() on the string columns to the the numbers for min_itemsize, but this does not work in the example here. This MWE is of course simplified, but I guess I'm wondering: - how does pytables come up with the string length? - how should I determine the string length? Considering the encoding is unknown, but pytables assumes some encoding / pytables converts the strings to some other object? In this toy example I could encode the string as utf-8 to get the correct length, but this isn't a general approach: ```python In [5]: len('香'.encode('utf-8')) Out[5]: 3 ``` #### MWE: ```python import pandas as pd a = pd.DataFrame([['a', 'b']], columns = ['A', 'B']) b = pd.DataFrame([['香', 'b']], columns = ['A', 'B']) store = pd.HDFStore('/tmp/tmpstore') store.append('df', a, min_itemsizes={'A': 1, 'B': 1}) store.append('df', b, min_itemsizes={'A': 1, 'B': 1}) # fails ``` #### Expected Output ValueError: Trying to store a string with len [3] in [values_block_0] column but this column has a limit of [1]! Consider using min_itemsize to preset the sizes on these columns Closing remaining open files:/tmp/tmpstore...done #### 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.28-2-MANJARO machine: x86_64 processor: byteorder: little LC_ALL: en_US.UTF-8 LANG: en_DE.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.0 nose: 1.3.7 pip: 8.1.2 setuptools: 27.2.0 Cython: 0.23.5 numpy: 1.11.2 scipy: 0.18.1 statsmodels: None xarray: None IPython: 5.1.0 sphinx: 1.4.8 patsy: None dateutil: 2.5.3 pytz: 2016.7 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: 1.1.3 pymysql: 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/14601/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14601/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14602
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14602/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14602/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14602/events
https://github.com/pandas-dev/pandas/issues/14602
187,709,024
MDU6SXNzdWUxODc3MDkwMjQ=
14,602
Total seconds of pandas.NaT should become NaN
{ "avatar_url": "https://avatars.githubusercontent.com/u/21648?v=4", "events_url": "https://api.github.com/users/jondo/events{/privacy}", "followers_url": "https://api.github.com/users/jondo/followers", "following_url": "https://api.github.com/users/jondo/following{/other_user}", "gists_url": "https://api.github.com/users/jondo/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jondo", "id": 21648, "login": "jondo", "node_id": "MDQ6VXNlcjIxNjQ4", "organizations_url": "https://api.github.com/users/jondo/orgs", "received_events_url": "https://api.github.com/users/jondo/received_events", "repos_url": "https://api.github.com/users/jondo/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jondo/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jondo/subscriptions", "type": "User", "url": "https://api.github.com/users/jondo" }
[ { "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" }, { "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": 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-11-07T13:16:16Z
2018-07-06T20:21:12Z
2016-11-12T15:47:18Z
NONE
null
I see ```python In[2]: pandas.tslib.Timedelta.total_seconds(pandas.NaT) Out[2]: -9223372036.854776 ``` #### Expected Output ```python Out[2]: nan ``` #### 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 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: en pandas: 0.18.1 nose: 1.3.7 pip: 8.1.2 setuptools: 25.1.6 Cython: 0.24.1 numpy: 1.11.1 scipy: 0.18.0 statsmodels: 0.8.0rc1 xarray: 0.8.2 IPython: 5.1.0 sphinx: 1.4.6 patsy: 0.4.1 dateutil: 2.5.3 pytz: 2016.6.1 blosc: 1.4.1 bottleneck: 1.1.0 tables: 3.2.3 numexpr: 2.6.1 matplotlib: 1.5.2 openpyxl: 2.4.0 xlrd: 1.0.0 xlwt: None xlsxwriter: 0.9.3 lxml: 3.6.4 bs4: 4.5.1 html5lib: 0.999999999 httplib2: None apiclient: None sqlalchemy: 1.0.14 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/14602/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14602/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14603
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14603/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14603/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14603/events
https://github.com/pandas-dev/pandas/issues/14603
187,761,449
MDU6SXNzdWUxODc3NjE0NDk=
14,603
All PRs are failing because AppVeyor is reporting a syntax error
{ "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": "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
[]
null
3
2016-11-07T16:39:15Z
2016-11-12T15:46:46Z
2016-11-12T15:46:42Z
CONTRIBUTOR
null
AppVeyor tests are all failing with a syntax error: ```python Using c:\python27_64\envs\_build\lib\site-packages Finished processing dependencies for pandas==0.19.0+69.g270600c Compiling C:\Python27_64\envs\_build\Lib\site-packages\pip\_vendor\html5lib\treewalkers\etree.py ... File "C:\Python27_64\envs\_build\Lib\site-packages\pip\_vendor\html5lib\treewalkers\etree.py", line 13 from pip._vendor. import string_types ^ SyntaxError: invalid syntax ```
{ "+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/14603/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14603/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14604
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14604/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14604/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14604/events
https://github.com/pandas-dev/pandas/issues/14604
187,812,103
MDU6SXNzdWUxODc4MTIxMDM=
14,604
df.reset_index() fails with a multi index with Nan's
{ "avatar_url": "https://avatars.githubusercontent.com/u/16763201?v=4", "events_url": "https://api.github.com/users/gryBox/events{/privacy}", "followers_url": "https://api.github.com/users/gryBox/followers", "following_url": "https://api.github.com/users/gryBox/following{/other_user}", "gists_url": "https://api.github.com/users/gryBox/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/gryBox", "id": 16763201, "login": "gryBox", "node_id": "MDQ6VXNlcjE2NzYzMjAx", "organizations_url": "https://api.github.com/users/gryBox/orgs", "received_events_url": "https://api.github.com/users/gryBox/received_events", "repos_url": "https://api.github.com/users/gryBox/repos", "site_admin": false, "starred_url": "https://api.github.com/users/gryBox/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/gryBox/subscriptions", "type": "User", "url": "https://api.github.com/users/gryBox" }
[ { "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": "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": 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-11-07T20:00:10Z
2016-11-07T20:03:38Z
2016-11-07T20:03:03Z
NONE
null
I believe this is the same issue as [#6322 ](https://github.com/pandas-dev/pandas/issues/6322). The code below returns the error: `IndexError: cannot do a non-empty take from an empty axes.` ``` import pandas as pd import numpy as np import random import string # Create 12 random strings 3 char long rndm_strgs = [''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(3)) for i in range(12)] rndm_strgs[0] = None rndm_strgs[5] = None # Make Dataframe df = pd.DataFrame({'A' : list('pandasisgood'), 'B' : np.nan, 'C' : rndm_strgs, 'D' : np.random.rand(12)}) # Set an Index -> Columns have Nans df_w_idx = df.set_index(['A','B','C']) df_w_idx.reset_index() ``` To get the result I wanted: ``` for clmNm in df_w_idx.index.names: print(clmNm) df_w_idx[clmNm] = df_w_idx.index.get_level_values(clmNm) df_w_idx = df_w_idx.reset_index(drop=True).copy() df_w_idx ```
{ "+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/14604/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14604/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14605
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14605/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14605/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14605/events
https://github.com/pandas-dev/pandas/issues/14605
187,821,579
MDU6SXNzdWUxODc4MjE1Nzk=
14,605
groupby apply
{ "avatar_url": "https://avatars.githubusercontent.com/u/23322344?v=4", "events_url": "https://api.github.com/users/maverickmsu/events{/privacy}", "followers_url": "https://api.github.com/users/maverickmsu/followers", "following_url": "https://api.github.com/users/maverickmsu/following{/other_user}", "gists_url": "https://api.github.com/users/maverickmsu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maverickmsu", "id": 23322344, "login": "maverickmsu", "node_id": "MDQ6VXNlcjIzMzIyMzQ0", "organizations_url": "https://api.github.com/users/maverickmsu/orgs", "received_events_url": "https://api.github.com/users/maverickmsu/received_events", "repos_url": "https://api.github.com/users/maverickmsu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maverickmsu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maverickmsu/subscriptions", "type": "User", "url": "https://api.github.com/users/maverickmsu" }
[ { "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": "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": 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-11-07T20:42:10Z
2018-07-06T20:21:12Z
2016-11-07T21:02:05Z
NONE
null
When the returned dataframe(or series) have the same length of the original dataframe. The index for grouped keys are missing. For example: a = pd.DataFrame({'l':['a','a','b','b','c'],'x':[1,2,3,4,5]}) a.groupby('l')['x'].apply(lambda r: r) output: 0 1 1 2 2 3 3 4 4 5 Notice the key 'l' is missing in the output. This cause some problem if one is not sure whether the returned dataframe or sereires will have the same length. Best regards #### A small, complete example of the issue ```python # Your code here ``` #### Expected Output #### Output of ``pd.show_versions()`` <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/14605/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14605/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14606
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14606/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14606/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14606/events
https://github.com/pandas-dev/pandas/issues/14606
187,823,647
MDU6SXNzdWUxODc4MjM2NDc=
14,606
Error reading an empty CSV with known column names and dtype 'category'
{ "avatar_url": "https://avatars.githubusercontent.com/u/3495024?v=4", "events_url": "https://api.github.com/users/spitz-dan-l/events{/privacy}", "followers_url": "https://api.github.com/users/spitz-dan-l/followers", "following_url": "https://api.github.com/users/spitz-dan-l/following{/other_user}", "gists_url": "https://api.github.com/users/spitz-dan-l/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/spitz-dan-l", "id": 3495024, "login": "spitz-dan-l", "node_id": "MDQ6VXNlcjM0OTUwMjQ=", "organizations_url": "https://api.github.com/users/spitz-dan-l/orgs", "received_events_url": "https://api.github.com/users/spitz-dan-l/received_events", "repos_url": "https://api.github.com/users/spitz-dan-l/repos", "site_admin": false, "starred_url": "https://api.github.com/users/spitz-dan-l/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/spitz-dan-l/subscriptions", "type": "User", "url": "https://api.github.com/users/spitz-dan-l" }
[ { "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_csv, to_csv", "id": 47229171, "name": "IO CSV", "node_id": "MDU6TGFiZWw0NzIyOTE3MQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV" }, { "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": "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-11-07T20:50:31Z
2016-12-10T11:02:54Z
2016-12-10T11:02:54Z
NONE
null
Hello, I've found a corner case where specifying `category` dtypes in `pd.read_csv` causes an error when it ought to return an empty dataframe. #### A small, complete example of the issue ```python pd.read_csv(StringIO(''), names=['a'], dtype={'a': 'object'}) #works pd.read_csv(StringIO(''), names=['a'], dtype={'a': 'category'}) #breaks ``` #### Expected Output ``` --------------------------------------------------------------------------- StopIteration Traceback (most recent call last) /Users/dspitz/miniconda3/lib/python3.5/site-packages/pandas/io/parsers.py in read(self, nrows) 1506 try: -> 1507 data = self._reader.read(nrows) 1508 except StopIteration: pandas/parser.pyx in pandas.parser.TextReader.read (pandas/parser.c:10364)() pandas/parser.pyx in pandas.parser.TextReader._read_low_memory (pandas/parser.c:11033)() StopIteration: During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) <ipython-input-13-819a0c4e04cb> in <module>() ----> 1 pd.read_csv(StringIO(''), header=None, names=['a'], dtype={'a': 'category'}) /Users/dspitz/miniconda3/lib/python3.5/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, 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, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision) 643 skip_blank_lines=skip_blank_lines) 644 --> 645 return _read(filepath_or_buffer, kwds) 646 647 parser_f.__name__ = name /Users/dspitz/miniconda3/lib/python3.5/site-packages/pandas/io/parsers.py in _read(filepath_or_buffer, kwds) 398 return parser 399 --> 400 data = parser.read() 401 parser.close() 402 return data /Users/dspitz/miniconda3/lib/python3.5/site-packages/pandas/io/parsers.py in read(self, nrows) 936 raise ValueError('skipfooter not supported for iteration') 937 --> 938 ret = self._engine.read(nrows) 939 940 if self.options.get('as_recarray'): /Users/dspitz/miniconda3/lib/python3.5/site-packages/pandas/io/parsers.py in read(self, nrows) 1513 index, columns, col_dict = _get_empty_meta( 1514 names, self.index_col, self.index_names, -> 1515 dtype=self.kwds.get('dtype')) 1516 1517 if self.usecols is not None: /Users/dspitz/miniconda3/lib/python3.5/site-packages/pandas/io/parsers.py in _get_empty_meta(columns, index_col, index_names, dtype) 2803 col_dict = dict((col_name, 2804 np.empty(0, dtype=dtype.get(col_name, np.object))) -> 2805 for col_name in columns) 2806 2807 return index, columns, col_dict /Users/dspitz/miniconda3/lib/python3.5/site-packages/pandas/io/parsers.py in <genexpr>(.0) 2803 col_dict = dict((col_name, 2804 np.empty(0, dtype=dtype.get(col_name, np.object))) -> 2805 for col_name in columns) 2806 2807 return index, columns, col_dict TypeError: data type "category" not understood ``` Appears the problem is in `_get_empty_meta()` where the `category` dtype is passed along to `np.empty`. I don't know the idiomatic way to construct an empty Categorical series but that is what needs to happen. #### 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: None LANG: en_US.UTF-8 LOCALE: en_US.UTF-8 pandas: 0.19.1 nose: None pip: 8.1.1 setuptools: 20.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.5.3 pytz: 2016.3 blosc: None bottleneck: None tables: 3.2.2 numexpr: 2.6.1 matplotlib: 1.5.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None sqlalchemy: 1.0.12 pymysql: 0.6.7.None psycopg2: 2.6.1 (dt dec pq3 ext) 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/14606/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14606/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/14607
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/14607/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/14607/comments
https://api.github.com/repos/pandas-dev/pandas/issues/14607/events
https://github.com/pandas-dev/pandas/issues/14607
187,832,106
MDU6SXNzdWUxODc4MzIxMDY=
14,607
tz_localize fails in 0.19.1 even with ambiguous='infer'
{ "avatar_url": "https://avatars.githubusercontent.com/u/1993919?v=4", "events_url": "https://api.github.com/users/amelio-vazquez-reina/events{/privacy}", "followers_url": "https://api.github.com/users/amelio-vazquez-reina/followers", "following_url": "https://api.github.com/users/amelio-vazquez-reina/following{/other_user}", "gists_url": "https://api.github.com/users/amelio-vazquez-reina/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/amelio-vazquez-reina", "id": 1993919, "login": "amelio-vazquez-reina", "node_id": "MDQ6VXNlcjE5OTM5MTk=", "organizations_url": "https://api.github.com/users/amelio-vazquez-reina/orgs", "received_events_url": "https://api.github.com/users/amelio-vazquez-reina/received_events", "repos_url": "https://api.github.com/users/amelio-vazquez-reina/repos", "site_admin": false, "starred_url": "https://api.github.com/users/amelio-vazquez-reina/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/amelio-vazquez-reina/subscriptions", "type": "User", "url": "https://api.github.com/users/amelio-vazquez-reina" }
[ { "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" }
9
2016-11-07T21:21:20Z
2016-11-07T22:09:38Z
2016-11-07T21:51:15Z
CONTRIBUTOR
null
Consider this timeseries: ``` 0 2016-11-06 01:19:54.000 1 2016-11-06 01:34:52.000 2 2016-11-06 01:35:36.000 3 2016-11-06 01:28:25.000 4 2016-11-06 01:59:32.000 5 2016-11-06 01:26:53.000 6 2016-11-06 01:52:44.000 7 2016-11-06 01:07:09.000 8 2016-11-06 01:35:03.000 9 2016-11-06 01:11:19.000 10 2016-11-06 01:31:28.000 11 2016-11-06 01:10:16.000 12 2016-11-06 01:04:55.000 13 2016-11-06 01:07:16.000 14 2016-11-06 01:09:35.000 15 2016-11-06 01:11:50.000 16 2016-11-06 01:15:03.000 17 2016-11-06 01:03:23.000 18 2016-11-06 01:20:27.000 19 2016-11-06 01:17:20.000 20 2016-11-06 01:14:44.000 21 2016-11-06 01:14:32.000 22 2016-11-06 01:20:23.000 23 2016-11-06 01:31:55.000 24 2016-11-06 01:32:45.000 25 2016-11-06 01:32:52.716 26 2016-11-06 01:00:55.000 27 2016-11-06 01:03:52.262 28 2016-11-06 01:19:59.000 29 2016-11-06 01:32:36.000 30 2016-11-06 01:48:56.000 31 2016-11-06 01:49:06.000 32 2016-11-06 01:29:11.170 33 2016-11-06 01:29:51.745 34 2016-11-06 01:30:09.560 35 2016-11-06 01:38:12.432 36 2016-11-06 01:45:23.631 37 2016-11-06 01:51:52.046 38 2016-11-06 01:52:36.318 39 2016-11-06 01:10:58.000 Name: ts, dtype: datetime64[ns] ``` When I try to do: ``` > temp.dt.tz_localize('US/Eastern', ambiguous='infer') ``` I get: ``` AmbiguousTimeError: There are 13 dst switches when there should only be 1. ``` Output of **`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: 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.0 setuptools: 27.1.0.post20161104 Cython: 0.25.1 numpy: 1.11.2 scipy: 0.18.1 statsmodels: 0.6.1 xarray: None IPython: 5.1.0 sphinx: 1.4.8 patsy: 0.4.1 dateutil: 2.2 pytz: 2016.7 blosc: None bottleneck: 1.2.0 tables: 3.3.0 numexpr: 2.6.1 matplotlib: 1.5.3 openpyxl: 2.2.0-b1 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.1.3 pymysql: None psycopg2: 2.6.2 (dt dec pq3 ext lo64) jinja2: 2.8 boto: 2.43.0 pandas_datareader: None ```
{ "+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/14607/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/14607/timeline
null
null
null