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/7801
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7801/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7801/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7801/events
https://github.com/pandas-dev/pandas/pull/7801
38,229,614
MDExOlB1bGxSZXF1ZXN0MTg2MTkxMjI=
7,801
BUG: timeseries subplots may display unnecessary minor ticklabels
{ "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
7
2014-07-19T08:57:16Z
2014-07-23T11:08:36Z
2014-07-22T11:38:59Z
MEMBER
null
Related to #7457. The fix was incomplete because it only hides major ticklabels, not minor ticklabels. This causes incorrect result in time-series plot. (And another problem is `rot` default is not applied to minor ticks. I'll check this separatelly) ``` df = pd.DataFrame(np.random.randn(10, 4), index=pd.date_range(start='2014-07-01', freq='M', periods=10)) df.plot(subplots=True) ``` ### Current result: Minor ticklabels of top 3 axes are not hidden. ![figure_ng](https://cloud.githubusercontent.com/assets/1696302/3634314/36ebc68c-0f22-11e4-9f9c-da803dd27d5e.png) ### Result after fix: ![figure_ok](https://cloud.githubusercontent.com/assets/1696302/3634865/57a28f1a-0f4e-11e4-847f-fff225740439.png)
{ "+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/7801/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7801/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7801.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7801", "merged_at": "2014-07-22T11:38:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7801.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7801" }
https://api.github.com/repos/pandas-dev/pandas/issues/7802
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7802/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7802/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7802/events
https://github.com/pandas-dev/pandas/pull/7802
38,229,801
MDExOlB1bGxSZXF1ZXN0MTg2MTkxOTk=
7,802
BUG: reset_index with MultiIndex contains PeriodIndex raises ValueError
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "02d7e1", "default": false, "description": "Concat, Merge/Join, Stack/Unstack, Explode", "id": 13098779, "name": "Reshaping", "node_id": "MDU6TGFiZWwxMzA5ODc3OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" }, { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-19T09:10:42Z
2014-07-19T15:24:03Z
2014-07-19T13:39:59Z
MEMBER
null
Closes #7746, Closes #7793. Sorry, caused by #7533. The `ValueError` is being raised when `PeriodIndex` or `DatetimeIndex` with tz 's unique values are less than `MultiIndex` length.
{ "+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/7802/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7802/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7802.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7802", "merged_at": "2014-07-19T13:39:59Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7802.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7802" }
https://api.github.com/repos/pandas-dev/pandas/issues/7803
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7803/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7803/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7803/events
https://github.com/pandas-dev/pandas/pull/7803
38,231,202
MDExOlB1bGxSZXF1ZXN0MTg2MTk3OTk=
7,803
BUG: is_superperiod and is_subperiod cannot handle higher freq than S
{ "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": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
3
2014-07-19T10:50:15Z
2014-07-19T15:21:58Z
2014-07-19T14:11:35Z
MEMBER
null
Closes #7772, Closes #7760.
{ "+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/7803/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7803/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7803.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7803", "merged_at": "2014-07-19T14:11:35Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7803.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7803" }
https://api.github.com/repos/pandas-dev/pandas/issues/7804
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7804/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7804/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7804/events
https://github.com/pandas-dev/pandas/pull/7804
38,231,348
MDExOlB1bGxSZXF1ZXN0MTg2MTk4NTE=
7,804
DOC: added nanosecond frequencies to doc
{ "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-19T11:00:15Z
2014-07-19T14:01:25Z
2014-07-19T12:06:49Z
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/7804/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7804/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7804.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7804", "merged_at": "2014-07-19T12:06:49Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7804.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7804" }
https://api.github.com/repos/pandas-dev/pandas/issues/7805
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7805/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7805/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7805/events
https://github.com/pandas-dev/pandas/pull/7805
38,232,116
MDExOlB1bGxSZXF1ZXN0MTg2MjAxOTc=
7,805
Docs: Be more specific about inf/-inf no longer being treated as nulls.
{ "avatar_url": "https://avatars.githubusercontent.com/u/410907?v=4", "events_url": "https://api.github.com/users/lexual/events{/privacy}", "followers_url": "https://api.github.com/users/lexual/followers", "following_url": "https://api.github.com/users/lexual/following{/other_user}", "gists_url": "https://api.github.com/users/lexual/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lexual", "id": 410907, "login": "lexual", "node_id": "MDQ6VXNlcjQxMDkwNw==", "organizations_url": "https://api.github.com/users/lexual/orgs", "received_events_url": "https://api.github.com/users/lexual/received_events", "repos_url": "https://api.github.com/users/lexual/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lexual/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lexual/subscriptions", "type": "User", "url": "https://api.github.com/users/lexual" }
[ { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-19T12:01:20Z
2014-07-19T14:01:15Z
2014-07-19T13:04:21Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7805/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7805/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7805.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7805", "merged_at": "2014-07-19T13:04:21Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7805.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7805" }
https://api.github.com/repos/pandas-dev/pandas/issues/7806
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7806/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7806/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7806/events
https://github.com/pandas-dev/pandas/pull/7806
38,233,804
MDExOlB1bGxSZXF1ZXN0MTg2MjA4OTA=
7,806
Docs: Panel.dropna now exists, update docs accordingly.
{ "avatar_url": "https://avatars.githubusercontent.com/u/410907?v=4", "events_url": "https://api.github.com/users/lexual/events{/privacy}", "followers_url": "https://api.github.com/users/lexual/followers", "following_url": "https://api.github.com/users/lexual/following{/other_user}", "gists_url": "https://api.github.com/users/lexual/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lexual", "id": 410907, "login": "lexual", "node_id": "MDQ6VXNlcjQxMDkwNw==", "organizations_url": "https://api.github.com/users/lexual/orgs", "received_events_url": "https://api.github.com/users/lexual/received_events", "repos_url": "https://api.github.com/users/lexual/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lexual/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lexual/subscriptions", "type": "User", "url": "https://api.github.com/users/lexual" }
[ { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
2
2014-07-19T13:57:47Z
2014-07-23T21:30:04Z
2014-07-23T21:30:04Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7806/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7806/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7806.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7806", "merged_at": "2014-07-23T21:30:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7806.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7806" }
https://api.github.com/repos/pandas-dev/pandas/issues/7807
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7807/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7807/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7807/events
https://github.com/pandas-dev/pandas/issues/7807
38,247,131
MDU6SXNzdWUzODI0NzEzMQ==
7,807
ENH: Pre-allocated (buffer) DataFrame that grows to a specified size
{ "avatar_url": "https://avatars.githubusercontent.com/u/4521567?v=4", "events_url": "https://api.github.com/users/cjermain/events{/privacy}", "followers_url": "https://api.github.com/users/cjermain/followers", "following_url": "https://api.github.com/users/cjermain/following{/other_user}", "gists_url": "https://api.github.com/users/cjermain/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cjermain", "id": 4521567, "login": "cjermain", "node_id": "MDQ6VXNlcjQ1MjE1Njc=", "organizations_url": "https://api.github.com/users/cjermain/orgs", "received_events_url": "https://api.github.com/users/cjermain/received_events", "repos_url": "https://api.github.com/users/cjermain/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cjermain/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cjermain/subscriptions", "type": "User", "url": "https://api.github.com/users/cjermain" }
[]
closed
false
null
[]
null
3
2014-07-19T23:23:40Z
2014-07-20T01:45:03Z
2014-07-20T01:45:03Z
NONE
null
Pandas appears to still be lacking a clean method for dealing with filling a pre-allocated DataFrame (if I'm missing it please direct me). Consider the case when a known amount of rows will be generated over time, but during that period the data needs to be used as a DataFrame in some computation or access. By constructing the DataFrame using an np.empty array of the total size and reporting only those rows of the array that are filled, operations on the DataFrame would correctly occur and be flexible as the buffer was filled. An outline of how this might be done follows -- this doesn't work yet but should give you the idea. I'm still not familiar with the full pandas API, so I thought it would be best to report this as an enhancement and see what people think. ``` python class BufferDataFrame(pd.DataFrame): """ Constructs a pandas DataFrame that grows to a specified size to act as a buffer that can be efficiently filled """ def __init__(self, count, columns, dtype, **kwargs): data = np.empty((count,len(columns)), dtype=dtype) super(BufferDataFrame, self).__init__(data=data, columns=columns, **kwargs) self._pointer = 0 def __len__(self): return self._pointer def push(self, values): """ Pushes an array of values onto the DataFrame and increments the pointer """ self.loc[self._pointer] = values self._pointer += 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/7807/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7807/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7808
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7808/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7808/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7808/events
https://github.com/pandas-dev/pandas/issues/7808
38,251,898
MDU6SXNzdWUzODI1MTg5OA==
7,808
Conflicting documentation about index uniqueness
{ "avatar_url": "https://avatars.githubusercontent.com/u/506547?v=4", "events_url": "https://api.github.com/users/bgbg/events{/privacy}", "followers_url": "https://api.github.com/users/bgbg/followers", "following_url": "https://api.github.com/users/bgbg/following{/other_user}", "gists_url": "https://api.github.com/users/bgbg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bgbg", "id": 506547, "login": "bgbg", "node_id": "MDQ6VXNlcjUwNjU0Nw==", "organizations_url": "https://api.github.com/users/bgbg/orgs", "received_events_url": "https://api.github.com/users/bgbg/received_events", "repos_url": "https://api.github.com/users/bgbg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bgbg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bgbg/subscriptions", "type": "User", "url": "https://api.github.com/users/bgbg" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2017-05-06T10:20:19Z", "closed_issues": 987, "created_at": "2016-02-08T15:30:21Z", "creator": { "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }, "description": "after 0.19.x series", "due_on": "2017-05-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/39", "id": 1570595, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels", "node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==", "number": 39, "open_issues": 0, "state": "closed", "title": "0.20.0", "updated_at": "2018-10-28T08:18:42Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39" }
2
2014-07-20T06:16:29Z
2016-11-25T10:05:39Z
2016-11-25T10:05:30Z
NONE
null
The page http://pandas.pydata.org/pandas-docs/dev/generated/pandas.Series.html says: > index : array-like or Index (1d) > Values must be unique and hashable, same length as data. A little bit earlier the same page says: > Labels need not be unique but must be any hashable type. Other pages also mention non-unique index support (e.g. http://pandas.pydata.org/pandas-docs/dev/dsintro.html) It looks like `index` description should read: > index : array-like or Index (1d) > Values must be hashable, same length as data. Non-unique index values are allowed.
{ "+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/7808/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7808/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7809
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7809/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7809/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7809/events
https://github.com/pandas-dev/pandas/pull/7809
38,258,978
MDExOlB1bGxSZXF1ZXN0MTg2MzAxODI=
7,809
ENH/CLN: add HistPlot class inheriting MPLPlot
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "8AE234", "default": false, "description": null, "id": 2413328, "name": "Visualization", "node_id": "MDU6TGFiZWwyNDEzMzI4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization" }, { "color": "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": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
18
2014-07-20T14:35:02Z
2014-08-12T02:00:00Z
2014-08-11T15:30:26Z
MEMBER
null
Because `hist` and `boxplot` are separated from normal `plot`, there are some inconsistencies with these functions. Looks better to include them to `MPLPlot` framework. Maybe `scatter` and `hist` can be deprecated in 0.15 if `MPLPlot` can offer better `GroupBy` plot (plan to do in separate PR). ### Example This allows to use `kind='hist` in `DataFrame.plot` and `Series.plot`. (No changes for `DataFrame.hist`) ``` import pandas as pd import numpy as np import matplotlib.pyplot as plt df = pd.DataFrame(np.random.randn(1000, 5)) df.plot(kind='hist', subplots=True) ``` ![figure_1](https://cloud.githubusercontent.com/assets/1696302/3712412/16aa1896-1513-11e4-863d-e0b6d631c12f.png) ``` df.plot(kind='hist', stacked=True) ``` ![figure_2](https://cloud.githubusercontent.com/assets/1696302/3712413/1bded702-1513-11e4-9ff3-3947783d5213.png) ### Remaining Items - [x] Add a release note in API section detailing this change/enhancement - [x] Modify doc - [x] Add tests (both histogram and kde) - [x] Add support for `rot` and `fontsize` (depending on `orientation` kw) (rely on #7844) - [x] Add tests for xticklabels and yticklabels - [x] Add tests for colors - [x] Handling nan - [x] Check `stacked=True` can be supported (`DataFrame.hist` doesn't support it though..). - [x] Add tests for stacking
{ "+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/7809/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7809/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7809.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7809", "merged_at": "2014-08-11T15:30:26Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7809.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7809" }
https://api.github.com/repos/pandas-dev/pandas/issues/7810
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7810/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7810/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7810/events
https://github.com/pandas-dev/pandas/pull/7810
38,259,328
MDExOlB1bGxSZXF1ZXN0MTg2MzAzMjQ=
7,810
TST: add tests for GH 6572
{ "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": "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-20T14:52:20Z
2014-07-23T11:08:16Z
2014-07-21T11:43:55Z
MEMBER
null
Closes #6572. It seems to be fixed by #7465 as a side effect.
{ "+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/7810/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7810/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7810.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7810", "merged_at": "2014-07-21T11:43:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7810.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7810" }
https://api.github.com/repos/pandas-dev/pandas/issues/7811
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7811/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7811/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7811/events
https://github.com/pandas-dev/pandas/issues/7811
38,268,882
MDU6SXNzdWUzODI2ODg4Mg==
7,811
ENH: Allow period_range to accept freq with mult != 1
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "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": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
1
2014-07-20T23:10:28Z
2015-09-03T14:04:18Z
2015-09-03T14:04:18Z
MEMBER
null
`date_range` can accept freq with mult != 1 and output `DatetimeIndex`, otherwise `period_range` raises `ValueError`. ``` pd.date_range('2014-01-01 09:00', '2014-01-01 20:00', freq='4H') # <class 'pandas.tseries.index.DatetimeIndex'> # [2014-01-01 09:00:00, ..., 2014-01-01 21:00:00] # Length: 4, Freq: 4H, Timezone: None pd.date_range('2014-01-01 20:00', '2014-01-01 09:00', freq='-1H') # <class 'pandas.tseries.index.DatetimeIndex'> # [2014-01-01 20:00:00, ..., 2014-01-01 09:00:00] # Length: 12, Freq: -1H, Timezone: None pd.period_range('2014-01-01 09:00', '2014-01-01 20:00', freq='4H') # ValueError: Only mult == 1 supported ``` Is it reasonable to accept `period_range` and `PeriodIndex.__new__` to this kind of freq? What I want to do is creating skipped or reversed ordered `PeriodIndex` easily. (Considering internal representation of `PeriodIndex`, it looks better to result have normal freq, not to add numberized-freq like `4H`). #### Expected ``` pd.period_range('2014-01-01 09:00', '2014-01-01 20:00', freq='4H') # <class 'pandas.tseries.period.PeriodIndex'> # [2014-01-01 09:00:00, ..., 2014-01-01 21:00:00] # Length: 4, Freq: H pd.period_range('2014-01-01 20:00', '2014-01-01 09:00', freq='-1H') # <class 'pandas.tseries.period.PeriodIndex'> # [2014-01-01 20:00:00, ..., 2014-01-01 09:00:00] # Length: 12, Freq: H ```
{ "+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/7811/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7811/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7812
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7812/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7812/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7812/events
https://github.com/pandas-dev/pandas/issues/7812
38,268,935
MDU6SXNzdWUzODI2ODkzNQ==
7,812
ENH: Allow to reset tz from DatetimeIndex holding time representation
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "5319e7", "default": false, "description": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
20
2014-07-20T23:13:15Z
2014-08-05T14:49:29Z
2014-08-05T14:49:29Z
MEMBER
null
There looks no easy way to remove tz from tz-aware `DatetimeIndex` holding the timestamp represented. What required is inverse operation of `tz_localize`. ``` idx = pd.date_range('2014-01-01 09:00', '2014-01-01 20:00', freq='H', tz='Asia/Tokyo') idx # <class 'pandas.tseries.index.DatetimeIndex'> # [2014-01-01 09:00:00+09:00, ..., 2014-01-01 20:00:00+09:00] # Length: 12, Freq: H, Timezone: Asia/Tokyo # What I want to do is: idx.tz_reset() # <class 'pandas.tseries.index.DatetimeIndex'> # [2014-01-01 09:00:00, ..., 2014-01-01 20:00:00] # Length: 12, Freq: H, Timezone: None # This raises TypeError idx.tz_localize(None) # TypeError: Already tz-aware, use tz_convert to convert. # This change the timestamp to UTC idx.tz_convert(None) # <class 'pandas.tseries.index.DatetimeIndex'> # [2014-01-01 00:00:00, ..., 2014-01-01 11:00:00] # Length: 12, Freq: H, Timezone: None ``` In my case, there are some globally distributed data sources which holds local timezones. And want to merge them and analyze based on local subjective times (business hours, etc).
{ "+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/7812/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7812/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7813
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7813/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7813/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7813/events
https://github.com/pandas-dev/pandas/issues/7813
38,298,121
MDU6SXNzdWUzODI5ODEyMQ==
7,813
TST: add tests for Series/Panel with non-unique index in to_hdf with fixed format
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" }, { "color": "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" } ]
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" }
10
2014-07-21T12:28:28Z
2018-07-06T21:41:21Z
2018-07-06T21:41:13Z
CONTRIBUTOR
null
xref #7788
{ "+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/7813/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7813/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7814
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7814/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7814/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7814/events
https://github.com/pandas-dev/pandas/issues/7814
38,313,328
MDU6SXNzdWUzODMxMzMyOA==
7,814
BUG: at allowing fallback type indexing (which is not correct, its a restricted version of loc)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-21T15:22:57Z
2014-09-19T15:40:58Z
2014-09-19T15:40:58Z
CONTRIBUTOR
null
xref #7651 ``` In [19]: s = pd.Series([1,2,3], index=list('abc')) In [20]: s.at['a'] Out[20]: 1 In [23]: s.at[0] Out[23]: 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/7814/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7814/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7815
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7815/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7815/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7815/events
https://github.com/pandas-dev/pandas/issues/7815
38,356,160
MDU6SXNzdWUzODM1NjE2MA==
7,815
BUG/ENH: to_sql fails to detect tables via if_exists on mysql with capitalised table names
{ "avatar_url": "https://avatars.githubusercontent.com/u/6059365?v=4", "events_url": "https://api.github.com/users/maxgrenderjones/events{/privacy}", "followers_url": "https://api.github.com/users/maxgrenderjones/followers", "following_url": "https://api.github.com/users/maxgrenderjones/following{/other_user}", "gists_url": "https://api.github.com/users/maxgrenderjones/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maxgrenderjones", "id": 6059365, "login": "maxgrenderjones", "node_id": "MDQ6VXNlcjYwNTkzNjU=", "organizations_url": "https://api.github.com/users/maxgrenderjones/orgs", "received_events_url": "https://api.github.com/users/maxgrenderjones/received_events", "repos_url": "https://api.github.com/users/maxgrenderjones/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maxgrenderjones/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maxgrenderjones/subscriptions", "type": "User", "url": "https://api.github.com/users/maxgrenderjones" }
[ { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
9
2014-07-21T23:41:26Z
2014-09-10T06:26:28Z
2014-09-09T07:55:57Z
CONTRIBUTOR
null
Demonstration code, running on windows (so case insensitive) with pandas 0.14.0 ``` python engine=create_engine('mysql://{username}:{password}@{host}/{database}?charset=utf8'.format(**db)) metadata=MetaData(bind=engine) table=Table('foo', metadata, Column('id', Integer, primary_key=True), Column('language', Unicode(255)), Column('animal', Unicode(255))) data=DataFrame.from_dict({1: {'language': 'python', 'animal': 'snake'}, 2: {'language': 'perl', 'animal': 'camel'}}, orient='index') data.to_sql('Foo', engine, if_exists='replace') data.to_sql('Foo', engine, if_exists='replace') ``` Fails with: ``` OperationalError Traceback (most recent call last) <ipython-input-48-9d53c43e59f6> in <module>() 1 data.to_sql('Foo', engine, if_exists='replace') ----> 2 data.to_sql('Foo', engine, if_exists='replace') C:\Anaconda\lib\site-packages\pandas\core\generic.pyc in to_sql(self, name, con, flavor, if_exists, index, index_label) 948 sql.to_sql( 949 self, name, con, flavor=flavor, if_exists=if_exists, index=index, --> 950 index_label=index_label) 951 952 def to_pickle(self, path): C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in to_sql(frame, name, con, flavor, if_exists, index, index_label) 438 439 pandas_sql.to_sql(frame, name, if_exists=if_exists, index=index, --> 440 index_label=index_label) 441 442 C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in to_sql(self, frame, name, if_exists, index, index_label) 812 table = PandasSQLTable( 813 name, self, frame=frame, index=index, if_exists=if_exists, --> 814 index_label=index_label) 815 table.insert() 816 C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in __init__(self, name, pandas_sql_engine, frame, index, if_exists, prefix, index_label) 530 else: 531 self.table = self._create_table_statement() --> 532 self.create() 533 else: 534 # no data provided, read-only mode C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in create(self) 546 547 def create(self): --> 548 self.table.create() 549 550 def insert_statement(self): C:\Anaconda\lib\site-packages\sqlalchemy\sql\schema.pyc in create(self, bind, checkfirst) 646 bind._run_visitor(ddl.SchemaGenerator, 647 self, --> 648 checkfirst=checkfirst) 649 650 def drop(self, bind=None, checkfirst=False): C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _run_visitor(self, visitorcallable, element, connection, **kwargs) 1545 connection=None, **kwargs): 1546 with self._optional_conn_ctx_manager(connection) as conn: -> 1547 conn._run_visitor(visitorcallable, element, **kwargs) 1548 1549 class _trans_ctx(object): C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _run_visitor(self, visitorcallable, element, **kwargs) 1192 def _run_visitor(self, visitorcallable, element, **kwargs): 1193 visitorcallable(self.dialect, self, -> 1194 **kwargs).traverse_single(element) 1195 1196 C:\Anaconda\lib\site-packages\sqlalchemy\sql\visitors.pyc in traverse_single(self, obj, **kw) 117 meth = getattr(v, "visit_%s" % obj.__visit_name__, None) 118 if meth: --> 119 return meth(obj, **kw) 120 121 def iterate(self, obj): C:\Anaconda\lib\site-packages\sqlalchemy\sql\ddl.pyc in visit_table(self, table, create_ok) 726 self.traverse_single(column.default) 727 --> 728 self.connection.execute(CreateTable(table)) 729 730 if hasattr(table, 'indexes'): C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in execute(self, object, *multiparams, **params) 718 type(object)) 719 else: --> 720 return meth(self, multiparams, params) 721 722 def _execute_function(self, func, multiparams, params): C:\Anaconda\lib\site-packages\sqlalchemy\sql\ddl.pyc in _execute_on_connection(self, connection, multiparams, params) 65 66 def _execute_on_connection(self, connection, multiparams, params): ---> 67 return connection._execute_ddl(self, multiparams, params) 68 69 def execute(self, bind=None, target=None): C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_ddl(self, ddl, multiparams, params) 772 compiled, 773 None, --> 774 compiled 775 ) 776 if self._has_events or self.engine._has_events: C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args) 945 parameters, 946 cursor, --> 947 context) 948 949 if self._has_events or self.engine._has_events: C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _handle_dbapi_exception(self, e, statement, parameters, cursor, context) 1106 self.dialect.dbapi.Error, 1107 connection_invalidated=self._is_disconnect), -> 1108 exc_info 1109 ) 1110 C:\Anaconda\lib\site-packages\sqlalchemy\util\compat.pyc in raise_from_cause(exception, exc_info) 183 exc_info = sys.exc_info() 184 exc_type, exc_value, exc_tb = exc_info --> 185 reraise(type(exception), exception, tb=exc_tb) 186 187 if py3k: C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args) 938 statement, 939 parameters, --> 940 context) 941 except Exception as e: 942 self._handle_dbapi_exception( C:\Anaconda\lib\site-packages\sqlalchemy\engine\default.pyc in do_execute(self, cursor, statement, parameters, context) 433 434 def do_execute(self, cursor, statement, parameters, context=None): --> 435 cursor.execute(statement, parameters) 436 437 def do_execute_no_params(self, cursor, statement, context=None): C:\Anaconda\lib\site-packages\MySQLdb\cursors.pyc in execute(self, query, args) 203 del tb 204 self.messages.append((exc, value)) --> 205 self.errorhandler(self, exc, value) 206 self._executed = query 207 if not self._defer_warnings: self._warning_check() C:\Anaconda\lib\site-packages\MySQLdb\connections.pyc in defaulterrorhandler(***failed resolving arguments***) 34 del cursor 35 del connection ---> 36 raise errorclass, errorvalue 37 38 re_numeric_part = re.compile(r"^(\d+)") OperationalError: (OperationalError) (1050, "Table 'foo' already exists") '\nCREATE TABLE `Foo` (\n\t`index` INTEGER, \n\tanimal TEXT, \n\tlanguage TEXT\n)\n\n' () ``` I haven't poked around the code to see if this is a SQLAlchemy issue or a pandas issue, but I'd hope it shouldn't be too difficult to fix
{ "+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/7815/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7815/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7816
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7816/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7816/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7816/events
https://github.com/pandas-dev/pandas/issues/7816
38,364,949
MDU6SXNzdWUzODM2NDk0OQ==
7,816
StataReader.variable_labels() does not read variable label correctly for stata datasets saved under Stata 13 using 'save' (but it can read datasets saved using 'saveold')
{ "avatar_url": "https://avatars.githubusercontent.com/u/2116061?v=4", "events_url": "https://api.github.com/users/shafiquejamal/events{/privacy}", "followers_url": "https://api.github.com/users/shafiquejamal/followers", "following_url": "https://api.github.com/users/shafiquejamal/following{/other_user}", "gists_url": "https://api.github.com/users/shafiquejamal/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shafiquejamal", "id": 2116061, "login": "shafiquejamal", "node_id": "MDQ6VXNlcjIxMTYwNjE=", "organizations_url": "https://api.github.com/users/shafiquejamal/orgs", "received_events_url": "https://api.github.com/users/shafiquejamal/received_events", "repos_url": "https://api.github.com/users/shafiquejamal/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shafiquejamal/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shafiquejamal/subscriptions", "type": "User", "url": "https://api.github.com/users/shafiquejamal" }
[ { "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_stata, to_stata", "id": 104865385, "name": "IO Stata", "node_id": "MDU6TGFiZWwxMDQ4NjUzODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
14
2014-07-22T02:59:39Z
2014-07-23T13:40:44Z
2014-07-23T13:40:44Z
NONE
null
If I use SataReader to read a Stata dataset saved in Stata 13 using the `save` command, I can get the data but not the variable labels. If, however, I use the `saveold` command in Stata 13, I am able to get the variable labels in Python3 using `StataReader.variable_labels()`. Can anyone suggest how to accommodate Stata 13? 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/7816/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7816/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7817
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7817/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7817/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7817/events
https://github.com/pandas-dev/pandas/issues/7817
38,383,495
MDU6SXNzdWUzODM4MzQ5NQ==
7,817
period_range() bug?
{ "avatar_url": "https://avatars.githubusercontent.com/u/1412400?v=4", "events_url": "https://api.github.com/users/ifmihai/events{/privacy}", "followers_url": "https://api.github.com/users/ifmihai/followers", "following_url": "https://api.github.com/users/ifmihai/following{/other_user}", "gists_url": "https://api.github.com/users/ifmihai/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ifmihai", "id": 1412400, "login": "ifmihai", "node_id": "MDQ6VXNlcjE0MTI0MDA=", "organizations_url": "https://api.github.com/users/ifmihai/orgs", "received_events_url": "https://api.github.com/users/ifmihai/received_events", "repos_url": "https://api.github.com/users/ifmihai/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ifmihai/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ifmihai/subscriptions", "type": "User", "url": "https://api.github.com/users/ifmihai" }
[]
closed
false
null
[]
null
18
2014-07-22T09:35:00Z
2020-10-29T05:49:15Z
2014-07-22T11:31:56Z
NONE
null
I did: ``` python 63 In : df = P.DataFrame(index=P.period_range('2000-1-1 10:20', '2005-1-1 12:00')) 64 In : df.index[0] 64 Out: Period('2000-01-01', 'D') 65 In : df.index[0].hour 65 Out: 0 ``` it should have been 10, right? why does period_range() loses time information? I was recommended to use periods and period_range() because of pandas Timestamp limitation (nanoseconds time units) now I'm stuck, because I need datetimes outside Timestamp range ps. would it be too drastic to change time units from nanoseconds to microseconds in Timestamp? so that we would be happier? :P see also #7307
{ "+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/7817/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7817/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7818
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7818/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7818/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7818/events
https://github.com/pandas-dev/pandas/pull/7818
38,422,925
MDExOlB1bGxSZXF1ZXN0MTg3MjgyNjM=
7,818
BUG: Fixed failure in StataReader when reading variable labels in 117
{ "avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4", "events_url": "https://api.github.com/users/bashtage/events{/privacy}", "followers_url": "https://api.github.com/users/bashtage/followers", "following_url": "https://api.github.com/users/bashtage/following{/other_user}", "gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bashtage", "id": 5585221, "login": "bashtage", "node_id": "MDQ6VXNlcjU1ODUyMjE=", "organizations_url": "https://api.github.com/users/bashtage/orgs", "received_events_url": "https://api.github.com/users/bashtage/received_events", "repos_url": "https://api.github.com/users/bashtage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bashtage/subscriptions", "type": "User", "url": "https://api.github.com/users/bashtage" }
[ { "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_stata, to_stata", "id": 104865385, "name": "IO Stata", "node_id": "MDU6TGFiZWwxMDQ4NjUzODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
10
2014-07-22T17:24:49Z
2014-08-20T15:32:51Z
2014-07-23T13:40:44Z
CONTRIBUTOR
null
Stata's implementation does not match the online dta file format description. The solution used here is to directly compute the offset rather than reading it from the dta file. If Stata fixes their implementation, the original code can be restored. closes #7816
{ "+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/7818/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7818/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7818.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7818", "merged_at": "2014-07-23T13:40:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7818.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7818" }
https://api.github.com/repos/pandas-dev/pandas/issues/7819
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7819/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7819/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7819/events
https://github.com/pandas-dev/pandas/issues/7819
38,433,451
MDU6SXNzdWUzODQzMzQ1MQ==
7,819
df.reset_index fails with tz-aware column (similar to #7533)
{ "avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4", "events_url": "https://api.github.com/users/rockg/events{/privacy}", "followers_url": "https://api.github.com/users/rockg/followers", "following_url": "https://api.github.com/users/rockg/following{/other_user}", "gists_url": "https://api.github.com/users/rockg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rockg", "id": 3195015, "login": "rockg", "node_id": "MDQ6VXNlcjMxOTUwMTU=", "organizations_url": "https://api.github.com/users/rockg/orgs", "received_events_url": "https://api.github.com/users/rockg/received_events", "repos_url": "https://api.github.com/users/rockg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rockg/subscriptions", "type": "User", "url": "https://api.github.com/users/rockg" }
[]
closed
false
null
[]
null
4
2014-07-22T19:13:10Z
2014-07-22T19:52:57Z
2014-07-22T19:52:57Z
CONTRIBUTOR
null
The below fails with "ValueError: Length of values does not match length of index". However, without the timezone it works fine. It's because of pandas/core/frame.py _maybe_casted_values index.tz is not None clause. Something similar was done in #7533 but the added examples don't test this case. cc @sinhrks ``` import pandas as pd import numpy as np dts = pd.date_range('1/1/2012', '1/31/2012', freq='D', tz='US/Eastern') columns = [1, 2, 3] data = np.random.randn(31, 3) frame = pd.DataFrame(data, columns=columns, index=dts) frame = frame.stack() frame.reset_index() ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7819/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7819/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7820
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7820/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7820/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7820/events
https://github.com/pandas-dev/pandas/issues/7820
38,538,476
MDU6SXNzdWUzODUzODQ3Ng==
7,820
Index([1,2,.np.nan]).get_indexer([np.nan]) returns wrong value?
{ "avatar_url": "https://avatars.githubusercontent.com/u/890156?v=4", "events_url": "https://api.github.com/users/jankatins/events{/privacy}", "followers_url": "https://api.github.com/users/jankatins/followers", "following_url": "https://api.github.com/users/jankatins/following{/other_user}", "gists_url": "https://api.github.com/users/jankatins/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jankatins", "id": 890156, "login": "jankatins", "node_id": "MDQ6VXNlcjg5MDE1Ng==", "organizations_url": "https://api.github.com/users/jankatins/orgs", "received_events_url": "https://api.github.com/users/jankatins/received_events", "repos_url": "https://api.github.com/users/jankatins/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jankatins/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jankatins/subscriptions", "type": "User", "url": "https://api.github.com/users/jankatins" }
[ { "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": "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": "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": "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" }
21
2014-07-23T15:10:08Z
2019-12-31T15:04:45Z
2019-12-31T15:04:45Z
CONTRIBUTOR
null
**When this is merged, make the below change in Categorical as well!** Having `np.nan` in an `Index` is not returning the position of NaN but `-1`: ``` In[5]: from pandas.core.index import _ensure_index In[6]: import numpy as np In[7]: idx = _ensure_index([1,2,3,4, np.nan]) In[8]: np.nan in idx Out[8]: True In[9]: idx.get_indexer([np.nan]) Out[9]: array([-1]) ``` I'm not sure if that's a bug or intended. What happens is that this (new) test for Categoricals fails: ``` # if nan in levels, the proper code should be set! cat = pd.Categorical([1,2,3, np.nan], levels=[1,2,3]) cat.levels = [1,2,3, np.nan] cat[1] = np.nan exp = np.array([0,3,2,-1]) self.assert_numpy_array_equal(cat.codes, exp) Traceback (most recent call last): File "C:\data\external\pandas\pandas\tests\test_categorical.py", line 555, in test_set_item_nan self.assert_numpy_array_equal(cat.codes, exp) File "C:\data\external\pandas\pandas\util\testing.py", line 99, in assert_numpy_array_equal raise AssertionError('{0} is not equal to {1}.'.format(np_array, assert_equal)) AssertionError: [ 0 -1 2 -1] is not equal to [ 0 3 2 -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/7820/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7820/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7821
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7821/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7821/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7821/events
https://github.com/pandas-dev/pandas/issues/7821
38,539,115
MDU6SXNzdWUzODUzOTExNQ==
7,821
DOC: api references not working
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
2
2014-07-23T15:15:57Z
2014-07-28T20:25:49Z
2014-07-28T20:25:49Z
CONTRIBUTOR
null
http://pandas-docs.github.io/pandas-docs-travis/whatsnew.html#whatsnew-0150-cat references to the `api` section for some reason are not showing up correctly (while other, similar references work ok). @jorisvandenbossche
{ "+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/7821/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7821/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7822
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7822/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7822/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7822/events
https://github.com/pandas-dev/pandas/issues/7822
38,539,653
MDU6SXNzdWUzODUzOTY1Mw==
7,822
API: preserver tz on created series from Index when possible
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "5319e7", "default": false, "description": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-23T15:21:19Z
2014-07-23T17:01:23Z
2014-07-23T17:01:23Z
CONTRIBUTOR
null
I think this could be done w/o breaking anything else. xref: #3950 ``` In [16]: ts = pd.date_range('1/1/2011', periods=5, freq='10s', tz = 'US/Eastern') In [17]: ts Out[17]: <class 'pandas.tseries.index.DatetimeIndex'> [2011-01-01 00:00:00-05:00, ..., 2011-01-01 00:00:40-05:00] Length: 5, Freq: 10S, Timezone: US/Eastern In [18]: pd.DataFrame( {'a' : ts } ) ```
{ "+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/7822/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7822/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7823
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7823/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7823/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7823/events
https://github.com/pandas-dev/pandas/pull/7823
38,542,186
MDExOlB1bGxSZXF1ZXN0MTg3ODM4MTQ=
7,823
BUG: Bug in passing a DatetimeIndex with a timezone that was not being retained in Frame construction (GH7822)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "5319e7", "default": false, "description": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-23T15:45:55Z
2014-07-23T17:01:23Z
2014-07-23T17:01:23Z
CONTRIBUTOR
null
closes #7822
{ "+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/7823/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7823/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7823.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7823", "merged_at": "2014-07-23T17:01:23Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7823.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7823" }
https://api.github.com/repos/pandas-dev/pandas/issues/7824
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7824/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7824/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7824/events
https://github.com/pandas-dev/pandas/issues/7824
38,543,937
MDU6SXNzdWUzODU0MzkzNw==
7,824
API: Panel.groupby has an older interface
{ "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": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": 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" }
4
2014-07-23T16:02:41Z
2018-07-06T20:21:04Z
2017-07-11T09:53:51Z
CONTRIBUTOR
null
This seems to not conform to the `DataFrame.groupby/Series.groupby` should be straightforward to fix this I think, just simply removing it in favor of `core/generic/NDFrame.groupby`, but would need to fix tests, maybe. The `mapper` argument is the `by` argument. http://stackoverflow.com/questions/24914748/why-does-panel-groupby-not-accept-level-parameter-in-pandas-0-14/24915441#24915441
{ "+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/7824/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7824/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7825
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7825/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7825/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7825/events
https://github.com/pandas-dev/pandas/issues/7825
38,560,221
MDU6SXNzdWUzODU2MDIyMQ==
7,825
BUG: Timestamp.replace() behaves naively at DST boundaries (plus bonus segfault!)
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "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": "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": "2018-07-06T16:24:08Z", "closed_issues": 73, "created_at": "2018-06-07T10:56:05Z", "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 0.23.x", "due_on": "2018-07-09T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/57", "id": 3407592, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/57/labels", "node_id": "MDk6TWlsZXN0b25lMzQwNzU5Mg==", "number": 57, "open_issues": 0, "state": "closed", "title": "0.23.2", "updated_at": "2018-07-06T16:24:08Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/57" }
19
2014-07-23T18:59:44Z
2018-06-18T22:34:30Z
2018-06-18T22:34:30Z
CONTRIBUTOR
null
``` python In [1]: import pandas as pd In [2]: t = pd.Timestamp('2013-11-3', tz='America/Chicago') In [3]: t Out[3]: Timestamp('2013-11-03 00:00:00-0500', tz='America/Chicago') In [4]: t.replace(hour=3) Out[4]: Timestamp('2013-11-03 03:00:00-0500', tz='America/Chicago') # This time doesn't exist. In [5]: pd.Timestamp('2013-11-3 03:00:00', tz='America/Chicago') Out[5]: Timestamp('2013-11-03 03:00:00-0600', tz='America/Chicago') ``` In trying to replicate the definition of `Timestamp.replace` in [tslib.pyx](https://github.com/pydata/pandas/blob/320f9d4c44d60cc4ae5e08ab4a26dc49d3fd71c1/pandas/tslib.pyx#L421), I encountered this further issue: ``` python In [6]: from datetime import datetime In [7]: datetime.replace(t, hour=3) Segmentation fault: 11 ``` Trying another tack, I found this: ``` python In [1]: from datetime import datetime In [2]: import pytz In [3]: t = pytz.timezone('America/Chicago').localize(datetime(2013, 11, 3)) In [4]: t.strftime('%Y-%m-%d %H:%M:%S %Z%z') Out[4]: '2013-11-03 00:00:00 CDT-0500' In [5]: t.replace(hour=3).strftime('%Y-%m-%d %H:%M:%S %Z%z') Out[5]: '2013-11-03 03:00:00 CDT-0500' # This time still never happened ``` In summary: `datetime` is horribly broken, and the current workaround doesn't actually get all the way around. I know breaking backward compatibility is painful, and throwing the stdlib out the window is even more so, but this situation reminds me of nothing so forcefully as Microsoft Excel's 1900/1904 issue. Version information: ``` python In [1]: from pandas.util.print_versions import show_versions In [2]: show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.5.final.0 python-bits: 64 OS: Darwin OS-release: 13.3.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.14.1 nose: 1.3.0 Cython: None numpy: 1.8.1 scipy: 0.12.1 statsmodels: None IPython: 1.1.0 sphinx: None patsy: None scikits.timeseries: None dateutil: 2.2 pytz: 2014.4 bottleneck: None tables: None numexpr: None matplotlib: 1.3.0 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: 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/7825/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7825/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7826
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7826/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7826/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7826/events
https://github.com/pandas-dev/pandas/issues/7826
38,574,724
MDU6SXNzdWUzODU3NDcyNA==
7,826
read_sql chokes on mysql when using labels with queries due to unnecessary quoting
{ "avatar_url": "https://avatars.githubusercontent.com/u/6059365?v=4", "events_url": "https://api.github.com/users/maxgrenderjones/events{/privacy}", "followers_url": "https://api.github.com/users/maxgrenderjones/followers", "following_url": "https://api.github.com/users/maxgrenderjones/following{/other_user}", "gists_url": "https://api.github.com/users/maxgrenderjones/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maxgrenderjones", "id": 6059365, "login": "maxgrenderjones", "node_id": "MDQ6VXNlcjYwNTkzNjU=", "organizations_url": "https://api.github.com/users/maxgrenderjones/orgs", "received_events_url": "https://api.github.com/users/maxgrenderjones/received_events", "repos_url": "https://api.github.com/users/maxgrenderjones/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maxgrenderjones/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maxgrenderjones/subscriptions", "type": "User", "url": "https://api.github.com/users/maxgrenderjones" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
15
2014-07-23T21:34:03Z
2014-08-22T08:50:47Z
2014-08-22T08:50:47Z
CONTRIBUTOR
null
Not sure if this is a pandas bug or an upstream one, but here's an example of the bug (pandas-0.14.1, mariadb 10, sqlalchemy-0.9.4) ``` python engine=create_engine('mysql://{username}:{password}@{host}/{database}?charset=utf8'.format(**db)) pandas.io.sql.read_sql('SELECT onlinetransactions.id FROM onlinetransactions LIMIT 1', engine) #Does what you'd expect pandas.io.sql.read_sql('SELECT onlinetransactions.id as firstid FROM onlinetransactions LIMIT 1', engine) #Fails ``` The error you get back is: ``` python C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in read_sql(sql, con, index_col, coerce_float, params, parse_dates, columns) 421 coerce_float=coerce_float, parse_dates=parse_dates) 422 --> 423 if pandas_sql.has_table(sql): 424 pandas_sql.meta.reflect(only=[sql]) 425 return pandas_sql.read_table( C:\Anaconda\lib\site-packages\pandas\io\sql.pyc in has_table(self, name) 847 848 def has_table(self, name): --> 849 return self.engine.has_table(name) 850 851 def get_table(self, table_name): C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in has_table(self, table_name, schema) 1757 1758 """ -> 1759 return self.run_callable(self.dialect.has_table, table_name, schema) 1760 1761 def raw_connection(self): C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in run_callable(self, callable_, *args, **kwargs) 1661 """ 1662 with self.contextual_connect() as conn: -> 1663 return conn.run_callable(callable_, *args, **kwargs) 1664 1665 def execute(self, statement, *multiparams, **params): C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in run_callable(self, callable_, *args, **kwargs) 1188 1189 """ -> 1190 return callable_(self, *args, **kwargs) 1191 1192 def _run_visitor(self, visitorcallable, element, **kwargs): C:\Anaconda\lib\site-packages\sqlalchemy\dialects\mysql\base.pyc in has_table(self, connection, table_name, schema) 2274 try: 2275 try: -> 2276 rs = connection.execute(st) 2277 have = rs.fetchone() is not None 2278 rs.close() C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in execute(self, object, *multiparams, **params) 710 """ 711 if isinstance(object, util.string_types[0]): --> 712 return self._execute_text(object, multiparams, params) 713 try: 714 meth = object._execute_on_connection C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_text(self, statement, multiparams, params) 859 statement, 860 parameters, --> 861 statement, parameters 862 ) 863 if self._has_events or self.engine._has_events: C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args) 945 parameters, 946 cursor, --> 947 context) 948 949 if self._has_events or self.engine._has_events: C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _handle_dbapi_exception(self, e, statement, parameters, cursor, context) 1106 self.dialect.dbapi.Error, 1107 connection_invalidated=self._is_disconnect), -> 1108 exc_info 1109 ) 1110 C:\Anaconda\lib\site-packages\sqlalchemy\util\compat.pyc in raise_from_cause(exception, exc_info) 183 exc_info = sys.exc_info() 184 exc_type, exc_value, exc_tb = exc_info --> 185 reraise(type(exception), exception, tb=exc_tb) 186 187 if py3k: C:\Anaconda\lib\site-packages\sqlalchemy\engine\base.pyc in _execute_context(self, dialect, constructor, statement, parameters, *args) 938 statement, 939 parameters, --> 940 context) 941 except Exception as e: 942 self._handle_dbapi_exception( C:\Anaconda\lib\site-packages\sqlalchemy\engine\default.pyc in do_execute(self, cursor, statement, parameters, context) 433 434 def do_execute(self, cursor, statement, parameters, context=None): --> 435 cursor.execute(statement, parameters) 436 437 def do_execute_no_params(self, cursor, statement, context=None): C:\Anaconda\lib\site-packages\MySQLdb\cursors.pyc in execute(self, query, args) 203 del tb 204 self.messages.append((exc, value)) --> 205 self.errorhandler(self, exc, value) 206 self._executed = query 207 if not self._defer_warnings: self._warning_check() C:\Anaconda\lib\site-packages\MySQLdb\connections.pyc in defaulterrorhandler(***failed resolving arguments***) 34 del cursor 35 del connection ---> 36 raise errorclass, errorvalue 37 38 re_numeric_part = re.compile(r"^(\d+)") ProgrammingError: (ProgrammingError) (1103, "Incorrect table name 'SELECT onlinetransactions.id as firstid FROM onlinetransactions LIMIT 1'") 'DESCRIBE `SELECT onlinetransactions.id as firstid FROM onlinetransactions LIMIT 1`' () ``` So it never gets as far as running the actual query, because it's tried to run a `DESCRIBE` query with ``` quotes which fails. i.e. ``` MariaDB [transactions]> DESCRIBE `SELECT onlinetransactions.id as firstid FROM onlinetransactions LIMIT 1`; ERROR 1103 (42000): Incorrect table name 'SELECT onlinetransactions.id as firstid FROM onlinetransactions LIMIT 1' ``` But ``` MariaDB [transactions]> DESCRIBE SELECT onlinetransactions.id as firstid FROM onlinetransactions LIMIT 1; +------+-------------+--------------------+-------+---------------+--------------------------------+---------+------+----------+-------------+ | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | +------+-------------+--------------------+-------+---------------+--------------------------------+---------+------+----------+-------------+ | 1 | SIMPLE | onlinetransactions | index | NULL | ix_OnlineTransactions_Rpt_Year | 5 | NULL | 11485535 | Using index | +------+-------------+--------------------+-------+---------------+--------------------------------+---------+------+----------+-------------+ 1 row in set (0.00 sec) ``` Ok. So looking at the stacktrace, I reckon this _is_ a pandas bug as it seems to be calling `has_table` on my sql query, which doesn't seem to make any sense?
{ "+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/7826/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7826/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7827
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7827/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7827/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7827/events
https://github.com/pandas-dev/pandas/issues/7827
38,588,868
MDU6SXNzdWUzODU4ODg2OA==
7,827
BUG: non-monotonic DatetimeIndex does not raise KeyError for missing labels
{ "avatar_url": "https://avatars.githubusercontent.com/u/1217238?v=4", "events_url": "https://api.github.com/users/shoyer/events{/privacy}", "followers_url": "https://api.github.com/users/shoyer/followers", "following_url": "https://api.github.com/users/shoyer/following{/other_user}", "gists_url": "https://api.github.com/users/shoyer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/shoyer", "id": 1217238, "login": "shoyer", "node_id": "MDQ6VXNlcjEyMTcyMzg=", "organizations_url": "https://api.github.com/users/shoyer/orgs", "received_events_url": "https://api.github.com/users/shoyer/received_events", "repos_url": "https://api.github.com/users/shoyer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/shoyer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/shoyer/subscriptions", "type": "User", "url": "https://api.github.com/users/shoyer" }
[ { "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": "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" } ]
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" }
7
2014-07-24T01:02:01Z
2021-04-11T04:57:47Z
null
MEMBER
null
``` python import pandas as pd index = pd.to_datetime(['2000-01-02', '2000-01-01']) index.get_loc('1900-01-01') ``` ``` array([], dtype=int64) ```
{ "+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/7827/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7827/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7828
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7828/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7828/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7828/events
https://github.com/pandas-dev/pandas/issues/7828
38,597,390
MDU6SXNzdWUzODU5NzM5MA==
7,828
Docs: json_normalize appears in docs, but not in the API page.
{ "avatar_url": "https://avatars.githubusercontent.com/u/410907?v=4", "events_url": "https://api.github.com/users/lexual/events{/privacy}", "followers_url": "https://api.github.com/users/lexual/followers", "following_url": "https://api.github.com/users/lexual/following{/other_user}", "gists_url": "https://api.github.com/users/lexual/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lexual", "id": 410907, "login": "lexual", "node_id": "MDQ6VXNlcjQxMDkwNw==", "organizations_url": "https://api.github.com/users/lexual/orgs", "received_events_url": "https://api.github.com/users/lexual/received_events", "repos_url": "https://api.github.com/users/lexual/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lexual/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lexual/subscriptions", "type": "User", "url": "https://api.github.com/users/lexual" }
[ { "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": "2015-06-13T17:49:05Z", "closed_issues": 119, "created_at": "2015-06-02T19:23:30Z", "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": "", "due_on": "2015-06-12T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/35", "id": 1145853, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35/labels", "node_id": "MDk6TWlsZXN0b25lMTE0NTg1Mw==", "number": 35, "open_issues": 0, "state": "closed", "title": "0.16.2", "updated_at": "2016-07-22T08:55:52Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/35" }
5
2014-07-24T04:53:48Z
2015-06-07T22:24:15Z
2015-06-07T22:24:15Z
CONTRIBUTOR
null
http://pandas.pydata.org/pandas-docs/dev/api.html Not here.
{ "+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/7828/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7828/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7829
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7829/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7829/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7829/events
https://github.com/pandas-dev/pandas/issues/7829
38,611,410
MDU6SXNzdWUzODYxMTQxMA==
7,829
Pandas read_csv parsing error if lines contains variable fields
{ "avatar_url": "https://avatars.githubusercontent.com/u/7802324?v=4", "events_url": "https://api.github.com/users/kbdevaraj/events{/privacy}", "followers_url": "https://api.github.com/users/kbdevaraj/followers", "following_url": "https://api.github.com/users/kbdevaraj/following{/other_user}", "gists_url": "https://api.github.com/users/kbdevaraj/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/kbdevaraj", "id": 7802324, "login": "kbdevaraj", "node_id": "MDQ6VXNlcjc4MDIzMjQ=", "organizations_url": "https://api.github.com/users/kbdevaraj/orgs", "received_events_url": "https://api.github.com/users/kbdevaraj/received_events", "repos_url": "https://api.github.com/users/kbdevaraj/repos", "site_admin": false, "starred_url": "https://api.github.com/users/kbdevaraj/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/kbdevaraj/subscriptions", "type": "User", "url": "https://api.github.com/users/kbdevaraj" }
[ { "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
[]
null
1
2014-07-24T09:24:40Z
2014-07-24T11:39:52Z
2014-07-24T11:39:42Z
NONE
null
I am using pandas version 0.14.0 and try to parse a csv file which variable number of tokens (fields) using read_csv(). While parsing, I got the below error. File "parser.pyx", line 727, in pandas.parser.TextReader.read (pandas\parser.c:7146) File "parser.pyx", line 749, in pandas.parser.TextReader._read_low_memory (pandas\parser.c:7370) File "parser.pyx", line 802, in pandas.parser.TextReader._read_rows (pandas\parser.c:7979) File "parser.pyx", line 789, in pandas.parser.TextReader._tokenize_rows (pandas\parser.c:7853) File "parser.pyx", line 1697, in pandas.parser.raise_parser_error (pandas\parser.c:19604) CParserError: Error tokenizing data. C error: Expected 4 fields in line 2, saw 5 The file contains the below rows. 1,2,3,4 3,4,5,6,7 3,4,5 Kindly help to provide the solution to read this kind of files. Thanks and regards KB Devaraj
{ "+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/7829/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7829/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7830
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7830/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7830/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7830/events
https://github.com/pandas-dev/pandas/issues/7830
38,616,654
MDU6SXNzdWUzODYxNjY1NA==
7,830
Equality comparison raises exception
{ "avatar_url": "https://avatars.githubusercontent.com/u/881019?v=4", "events_url": "https://api.github.com/users/dhirschfeld/events{/privacy}", "followers_url": "https://api.github.com/users/dhirschfeld/followers", "following_url": "https://api.github.com/users/dhirschfeld/following{/other_user}", "gists_url": "https://api.github.com/users/dhirschfeld/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/dhirschfeld", "id": 881019, "login": "dhirschfeld", "node_id": "MDQ6VXNlcjg4MTAxOQ==", "organizations_url": "https://api.github.com/users/dhirschfeld/orgs", "received_events_url": "https://api.github.com/users/dhirschfeld/received_events", "repos_url": "https://api.github.com/users/dhirschfeld/repos", "site_admin": false, "starred_url": "https://api.github.com/users/dhirschfeld/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/dhirschfeld/subscriptions", "type": "User", "url": "https://api.github.com/users/dhirschfeld" }
[ { "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": "2019-01-26T00:51:26Z", "closed_issues": 2048, "created_at": "2018-03-29T12:00:12Z", "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": "", "due_on": "2019-01-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/55", "id": 3228419, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55/labels", "node_id": "MDk6TWlsZXN0b25lMzIyODQxOQ==", "number": 55, "open_issues": 0, "state": "closed", "title": "0.24.0", "updated_at": "2019-01-29T07:42:40Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/55" }
8
2014-07-24T10:40:23Z
2018-08-01T09:19:44Z
2018-08-01T09:19:44Z
CONTRIBUTOR
null
Test case: ``` python def test_datetimeindex__eq__(): """Equality comparisons should never raise an exception""" pd.DatetimeIndex(['01-Jan-2015']) == () ``` ``` python In [115]: test_datetimeindex__eq__() Traceback (most recent call last): File "<ipython-input-115-9b7967ca9de2>", line 1, in <module> test_datetimeindex__eq__() File "<ipython-input-114-7ae5783187b8>", line 3, in test_datetimeindex__eq__ pd.DatetimeIndex(['01-Jan-2015']) == () File "C:\dev\bin\Anaconda\lib\site-packages\pandas\tseries\index.py", line 90, in wrapper other = _ensure_datetime64(other) File "C:\dev\bin\Anaconda\lib\site-packages\pandas\tseries\index.py", line 112, in _ensure_datetime64 raise TypeError('%s type object %s' % (type(other), str(other))) TypeError: <type 'tuple'> type 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/7830/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7830/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7831
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7831/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7831/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7831/events
https://github.com/pandas-dev/pandas/pull/7831
38,631,329
MDExOlB1bGxSZXF1ZXN0MTg4MzY4ODY=
7,831
CI: fix typos in readme
{ "avatar_url": "https://avatars.githubusercontent.com/u/1385140?v=4", "events_url": "https://api.github.com/users/nathantypanski/events{/privacy}", "followers_url": "https://api.github.com/users/nathantypanski/followers", "following_url": "https://api.github.com/users/nathantypanski/following{/other_user}", "gists_url": "https://api.github.com/users/nathantypanski/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nathantypanski", "id": 1385140, "login": "nathantypanski", "node_id": "MDQ6VXNlcjEzODUxNDA=", "organizations_url": "https://api.github.com/users/nathantypanski/orgs", "received_events_url": "https://api.github.com/users/nathantypanski/received_events", "repos_url": "https://api.github.com/users/nathantypanski/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nathantypanski/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nathantypanski/subscriptions", "type": "User", "url": "https://api.github.com/users/nathantypanski" }
[]
closed
false
null
[]
null
1
2014-07-24T13:33:18Z
2014-07-24T17:28:19Z
2014-07-24T17:28:15Z
CONTRIBUTOR
null
This readme file had some problems with it. I cleaned it up a bit.
{ "+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/7831/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7831/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7831.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7831", "merged_at": "2014-07-24T17:28:15Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7831.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7831" }
https://api.github.com/repos/pandas-dev/pandas/issues/7832
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7832/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7832/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7832/events
https://github.com/pandas-dev/pandas/pull/7832
38,632,570
MDExOlB1bGxSZXF1ZXN0MTg4Mzc2NzQ=
7,832
ENH: PeriodIndex can accept freq with mult
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" }, { "color": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" } ]
closed
false
null
[]
{ "closed_at": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "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": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
55
2014-07-24T13:47:39Z
2015-09-03T14:14:34Z
2015-09-03T14:04:18Z
MEMBER
null
Closes #7811. - [x] Change `Period.freq` and `PeriodIndex.freq` to store offsets. - [x] Add `freqstr` to `Period`, `PeriodIndex` can use `DatetimeIndexOpsMixin`'s logic - [x] Logic and tests for pickles taken in prev versions - [x] Perform shift/arithmetic considering freq's mult. - [x] Test all offsets has accessible `n` proeprties (#10350) - [x] Explicit tests for `asfreq` and `to_timestamp` using freq with mult. - [x] Ops with different base freq must be prohibited. Change freq comparison to base comparison. - [x] Fix partial string slicing bug (some tests are commented out because of this) - [x] Fix order bug (#10295, removing temp logic for `PeriodIndex`) - ~~Decide a policy for legacy freq aliases, like "WK"~~ (handled in #10878) - [x] Update doc.
{ "+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/7832/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7832/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7832.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7832", "merged_at": "2015-09-03T14:04:18Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7832.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7832" }
https://api.github.com/repos/pandas-dev/pandas/issues/7833
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7833/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7833/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7833/events
https://github.com/pandas-dev/pandas/issues/7833
38,645,935
MDU6SXNzdWUzODY0NTkzNQ==
7,833
BUG: Constructing Timestamp from local time + offset + time zone yields wrong offset
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
8
2014-07-24T15:53:19Z
2014-09-10T17:46:09Z
2014-08-11T12:17:58Z
CONTRIBUTOR
null
xref #7825 ``` python In [1]: import pandas as pd In [2]: pd.Timestamp('2013-11-01 00:00:00-0500', tz='America/Chicago') Out[2]: Timestamp('2013-10-31 23:09:00-0551', tz='America/Chicago') ``` This bug is inherited from `datetime`, which is using local mean time (the first entry for `America/Chicago` in tzinfo).
{ "+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/7833/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7833/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7834
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7834/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7834/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7834/events
https://github.com/pandas-dev/pandas/pull/7834
38,664,556
MDExOlB1bGxSZXF1ZXN0MTg4NTc3NjA=
7,834
ENH: allow MultiIndex column selection from HDFStore
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "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": "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" } ]
{ "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" }
8
2014-07-24T19:16:04Z
2015-04-08T15:04:33Z
2015-04-08T15:04:33Z
MEMBER
null
Needs some more testing
{ "+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/7834/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7834/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7834.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7834", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/7834.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7834" }
https://api.github.com/repos/pandas-dev/pandas/issues/7835
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7835/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7835/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7835/events
https://github.com/pandas-dev/pandas/issues/7835
38,665,146
MDU6SXNzdWUzODY2NTE0Ng==
7,835
BUG: date_range(str, tz=str) and date_range(Timestamp) handle tz discontinuity differently
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-24T19:23:15Z
2014-09-10T17:46:09Z
2014-08-05T17:14:01Z
CONTRIBUTOR
null
xref #7825 xref (addtl test cases) #7901 I believe `Out[2]` is correct and `Out[3]` is a bug, and that others will agree with me. I believe `Out[4]` is a bug, `Out[7]` is correct and `Out[10]` is a bug, but that I will have to do some work to convince others to agree with me. ``` python In [1]: import pandas as pd In [2]: list(pd.date_range('2013-11-1', tz='America/Chicago', periods=7, freq='D')) Out[2]: [Timestamp('2013-11-01 00:00:00-0500', tz='America/Chicago', offset='D'), Timestamp('2013-11-02 00:00:00-0500', tz='America/Chicago', offset='D'), Timestamp('2013-11-03 00:00:00-0500', tz='America/Chicago', offset='D'), Timestamp('2013-11-04 00:00:00-0600', tz='America/Chicago', offset='D'), Timestamp('2013-11-05 00:00:00-0600', tz='America/Chicago', offset='D'), Timestamp('2013-11-06 00:00:00-0600', tz='America/Chicago', offset='D'), Timestamp('2013-11-07 00:00:00-0600', tz='America/Chicago', offset='D')] In [3]: list(pd.date_range(pd.Timestamp('2013-11-1', tz='America/Chicago'), periods=7, freq='D')) Out[3]: [Timestamp('2013-11-01 00:00:00-0500', tz='America/Chicago', offset='D'), Timestamp('2013-11-02 00:00:00-0500', tz='America/Chicago', offset='D'), Timestamp('2013-11-03 00:00:00-0500', tz='America/Chicago', offset='D'), Timestamp('2013-11-03 23:00:00-0600', tz='America/Chicago', offset='D'), Timestamp('2013-11-04 23:00:00-0600', tz='America/Chicago', offset='D'), Timestamp('2013-11-05 23:00:00-0600', tz='America/Chicago', offset='D'), Timestamp('2013-11-06 23:00:00-0600', tz='America/Chicago', offset='D')] In [4]: list(pd.date_range('2013-11-1', tz='America/Chicago', periods=7, freq='24H')) Out[4]: [Timestamp('2013-11-01 00:00:00-0500', tz='America/Chicago', offset='24H'), Timestamp('2013-11-02 00:00:00-0500', tz='America/Chicago', offset='24H'), Timestamp('2013-11-03 00:00:00-0500', tz='America/Chicago', offset='24H'), Timestamp('2013-11-04 00:00:00-0600', tz='America/Chicago', offset='24H'), Timestamp('2013-11-05 00:00:00-0600', tz='America/Chicago', offset='24H'), Timestamp('2013-11-06 00:00:00-0600', tz='America/Chicago', offset='24H'), Timestamp('2013-11-07 00:00:00-0600', tz='America/Chicago', offset='24H')] In [5]: out = [pd.Timestamp('2013-11-1', tz='America/Chicago')] In [6]: for i in range(6): ...: out.append(out[-1] + pd.offsets.Hour(24)) ...: In [7]: out Out[7]: [Timestamp('2013-11-01 00:00:00-0500', tz='America/Chicago'), Timestamp('2013-11-02 00:00:00-0500', tz='America/Chicago'), Timestamp('2013-11-03 00:00:00-0500', tz='America/Chicago'), Timestamp('2013-11-03 23:00:00-0600', tz='America/Chicago'), Timestamp('2013-11-04 23:00:00-0600', tz='America/Chicago'), Timestamp('2013-11-05 23:00:00-0600', tz='America/Chicago'), Timestamp('2013-11-06 23:00:00-0600', tz='America/Chicago')] In [8]: out = [pd.Timestamp('2013-11-1', tz='America/Chicago')] In [9]: for i in range(6): ...: out.append(out[-1] + pd.offsets.Day(1)) ...: In [10]: out Out[10]: [Timestamp('2013-11-01 00:00:00-0500', tz='America/Chicago'), Timestamp('2013-11-02 00:00:00-0500', tz='America/Chicago'), Timestamp('2013-11-03 00:00:00-0500', tz='America/Chicago'), Timestamp('2013-11-03 23:00:00-0600', tz='America/Chicago'), Timestamp('2013-11-04 23:00:00-0600', tz='America/Chicago'), Timestamp('2013-11-05 23:00:00-0600', tz='America/Chicago'), Timestamp('2013-11-06 23:00:00-0600', tz='America/Chicago')] ```
{ "+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/7835/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7835/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7836
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7836/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7836/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7836/events
https://github.com/pandas-dev/pandas/pull/7836
38,665,287
MDExOlB1bGxSZXF1ZXN0MTg4NTgyNTI=
7,836
TST/BUG: html tests not skipping properly if lxml is not installed
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "C4A000", "default": false, "description": "pandas testing functions or related to the test suite", "id": 127685, "name": "Testing", "node_id": "MDU6TGFiZWwxMjc2ODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" } ]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-24T19:25:07Z
2014-07-24T21:25:42Z
2014-07-24T21:25:40Z
MEMBER
null
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/7836/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7836/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7836.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7836", "merged_at": "2014-07-24T21:25:40Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7836.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7836" }
https://api.github.com/repos/pandas-dev/pandas/issues/7837
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7837/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7837/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7837/events
https://github.com/pandas-dev/pandas/issues/7837
38,688,250
MDU6SXNzdWUzODY4ODI1MA==
7,837
pivot_table / groupby with miss value in Index
{ "avatar_url": "https://avatars.githubusercontent.com/u/1320343?v=4", "events_url": "https://api.github.com/users/cloga/events{/privacy}", "followers_url": "https://api.github.com/users/cloga/followers", "following_url": "https://api.github.com/users/cloga/following{/other_user}", "gists_url": "https://api.github.com/users/cloga/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cloga", "id": 1320343, "login": "cloga", "node_id": "MDQ6VXNlcjEzMjAzNDM=", "organizations_url": "https://api.github.com/users/cloga/orgs", "received_events_url": "https://api.github.com/users/cloga/received_events", "repos_url": "https://api.github.com/users/cloga/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cloga/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cloga/subscriptions", "type": "User", "url": "https://api.github.com/users/cloga" }
[]
closed
false
null
[]
null
5
2014-07-25T00:38:23Z
2015-10-20T22:29:53Z
2015-10-20T22:29:53Z
NONE
null
Hello, When I try to use multi-index which has some miss value, to build a pivot table, I find pandas take a strange behavior. Pandas will autofill nan value with the value just above this index value, and this may give a wrong result , which make the value of second last index equal to its value plus nan value. 萧玮 0 NHKソフトウェア 0 Name: 5, Length: 27137, dtype: int64 (監督) - 楠葉宏三 1 NHKソフトウェア 8827 Name: 5, Length: 27137, dtype: int64 As you can see above, I use director to group movie data , and some movie has no director data. The first one is I just use director to groupby data , and it will auto ignore nan index, so the value NHKソフトウェア is low. The second is I use director and other value to do multi-index pivot_table and then I groupby the value with director to see the data about director. This last data (NHKソフトウェア) has a very high value. Pandas auto fill the nan index with the index value just above it , in this situation is NHKソフトウェア . Is it a issue or I need do some work before do pivot_table with nan index?
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7837/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7837/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7838
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7838/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7838/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7838/events
https://github.com/pandas-dev/pandas/issues/7838
38,693,480
MDU6SXNzdWUzODY5MzQ4MA==
7,838
Rapid Concurrent Access Breaks HDFStore
{ "avatar_url": "https://avatars.githubusercontent.com/u/1139088?v=4", "events_url": "https://api.github.com/users/yikelu/events{/privacy}", "followers_url": "https://api.github.com/users/yikelu/followers", "following_url": "https://api.github.com/users/yikelu/following{/other_user}", "gists_url": "https://api.github.com/users/yikelu/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/yikelu", "id": 1139088, "login": "yikelu", "node_id": "MDQ6VXNlcjExMzkwODg=", "organizations_url": "https://api.github.com/users/yikelu/orgs", "received_events_url": "https://api.github.com/users/yikelu/received_events", "repos_url": "https://api.github.com/users/yikelu/repos", "site_admin": false, "starred_url": "https://api.github.com/users/yikelu/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/yikelu/subscriptions", "type": "User", "url": "https://api.github.com/users/yikelu" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "5319e7", "default": false, "description": "read_hdf, HDFStore", "id": 47229190, "name": "IO HDF5", "node_id": "MDU6TGFiZWw0NzIyOTE5MA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5" } ]
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" }
14
2014-07-25T02:56:31Z
2018-07-06T22:02:57Z
2018-07-06T21:24:41Z
NONE
null
There are several errors associated with this. One of them is that the HDFStore fails to load some tables inside the store file, but fails silently. Another error is a loud HDF5 error that gives a full traceback. Both should be visible in the following code. ``` import pandas as pd import multiprocessing as mp def f(x): tt = pd.HDFStore('storage.h5', mode = 'r') print tt p = mp.Pool() p.map(f, range(50)) ```
{ "+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/7838/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7838/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7839
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7839/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7839/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7839/events
https://github.com/pandas-dev/pandas/issues/7839
38,716,619
MDU6SXNzdWUzODcxNjYxOQ==
7,839
itertuples does not work with categorical column in dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/780341?v=4", "events_url": "https://api.github.com/users/has2k1/events{/privacy}", "followers_url": "https://api.github.com/users/has2k1/followers", "following_url": "https://api.github.com/users/has2k1/following{/other_user}", "gists_url": "https://api.github.com/users/has2k1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/has2k1", "id": 780341, "login": "has2k1", "node_id": "MDQ6VXNlcjc4MDM0MQ==", "organizations_url": "https://api.github.com/users/has2k1/orgs", "received_events_url": "https://api.github.com/users/has2k1/received_events", "repos_url": "https://api.github.com/users/has2k1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/has2k1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/has2k1/subscriptions", "type": "User", "url": "https://api.github.com/users/has2k1" }
[ { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-25T10:22:30Z
2014-07-25T23:30:04Z
2014-07-25T23:30:04Z
CONTRIBUTOR
null
Code Snippet ``` python df = pd.DataFrame({"id":[1,2,3,4,5,6], "raw_grade":['a', 'b', 'b', 'a', 'a', 'e']}) df['grade'] = pd.Categorical(df['raw_grade']) for t in df.itertuples(index=False): print(t) ``` Error ``` --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-45-182b29164b1a> in <module>() 1 df = pd.DataFrame({"id":[1,2,3,4,5,6], "raw_grade":['a', 'b', 'b', 'a', 'a', 'e']}) 2 df['grade'] = pd.Categorical(df['raw_grade']) ----> 3 for t in df.itertuples(index=False): 4 print(t) /home/has2k1/scm/pandas/pandas/core/frame.pyc in itertuples(self, index) 549 # use integer indexing because of possible duplicate column names 550 arrays.extend(self.iloc[:, k] for k in range(len(self.columns))) --> 551 return zip(*arrays) 552 553 if compat.PY3: # pragma: no cover TypeError: izip argument #3 must support iteration ``` This is on master at commit 24b309f. Edit: Version string - pandas: 0.14.1-78-g24b309f
{ "+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/7839/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7839/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7840
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7840/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7840/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7840/events
https://github.com/pandas-dev/pandas/issues/7840
38,719,784
MDU6SXNzdWUzODcxOTc4NA==
7,840
DataFrame to_dict method should also provide orient parameter (like to_json)
{ "avatar_url": "https://avatars.githubusercontent.com/u/5049737?v=4", "events_url": "https://api.github.com/users/femtotrader/events{/privacy}", "followers_url": "https://api.github.com/users/femtotrader/followers", "following_url": "https://api.github.com/users/femtotrader/following{/other_user}", "gists_url": "https://api.github.com/users/femtotrader/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/femtotrader", "id": 5049737, "login": "femtotrader", "node_id": "MDQ6VXNlcjUwNDk3Mzc=", "organizations_url": "https://api.github.com/users/femtotrader/orgs", "received_events_url": "https://api.github.com/users/femtotrader/received_events", "repos_url": "https://api.github.com/users/femtotrader/repos", "site_admin": false, "starred_url": "https://api.github.com/users/femtotrader/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/femtotrader/subscriptions", "type": "User", "url": "https://api.github.com/users/femtotrader" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
8
2014-07-25T11:12:29Z
2014-10-06T19:56:38Z
2014-10-06T19:56:38Z
NONE
null
Hello, it will be nice if `to_dict` method could provide same `orient` parameter as `to_json`. For example when `outtype='split'` we get same results as `outtype='series'`. I also noticed that `df.to_dict(outtype='split1234')` is understood as `df.to_dict(outtype='series')` which is quite strange but `df.to_dict(outtype='a1234')` raises `ValueError: outtype a1234 not understood` which is a correct behavior Kind regards Femto
{ "+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/7840/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7840/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7841
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7841/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7841/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7841/events
https://github.com/pandas-dev/pandas/issues/7841
38,743,703
MDU6SXNzdWUzODc0MzcwMw==
7,841
MultiIndex.tostring() produces empty string for non-empty index
{ "avatar_url": "https://avatars.githubusercontent.com/u/218546?v=4", "events_url": "https://api.github.com/users/lebedov/events{/privacy}", "followers_url": "https://api.github.com/users/lebedov/followers", "following_url": "https://api.github.com/users/lebedov/following{/other_user}", "gists_url": "https://api.github.com/users/lebedov/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lebedov", "id": 218546, "login": "lebedov", "node_id": "MDQ6VXNlcjIxODU0Ng==", "organizations_url": "https://api.github.com/users/lebedov/orgs", "received_events_url": "https://api.github.com/users/lebedov/received_events", "repos_url": "https://api.github.com/users/lebedov/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lebedov/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lebedov/subscriptions", "type": "User", "url": "https://api.github.com/users/lebedov" }
[ { "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": "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": 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" }
7
2014-07-25T15:44:41Z
2017-06-10T22:00:39Z
2017-06-10T22:00:39Z
NONE
null
With pandas 0.14.1, the following code produces an empty string: ``` import pandas idx = pandas.MultiIndex(levels=[['a'],[0,1,2,3,4,4]], labels=[[0,0,0,0,0],[0,1,2,3,4]], names=[0,1]) print idx.tostring() ``` Is this behavior correct? `Index.tostring()` appears to produce a non-empty string for a non-empty index.
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7841/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7841/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7842
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7842/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7842/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7842/events
https://github.com/pandas-dev/pandas/pull/7842
38,776,656
MDExOlB1bGxSZXF1ZXN0MTg5MjMyMDY=
7,842
BUG: Series.__iter__ not dealing with category type well (GH7839)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-25T22:41:05Z
2014-07-25T23:30:04Z
2014-07-25T23:30:04Z
CONTRIBUTOR
null
closes #7839
{ "+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/7842/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7842/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7842.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7842", "merged_at": "2014-07-25T23:30:04Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7842.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7842" }
https://api.github.com/repos/pandas-dev/pandas/issues/7843
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7843/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7843/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7843/events
https://github.com/pandas-dev/pandas/pull/7843
38,778,994
MDExOlB1bGxSZXF1ZXN0MTg5MjQ1NTY=
7,843
BUG: PeriodIndex.unique results in Int64Index
{ "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": "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": "eb6420", "default": false, "description": "Period data type", "id": 60635328, "name": "Period", "node_id": "MDU6TGFiZWw2MDYzNTMyOA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Period" }, { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
2
2014-07-25T23:26:27Z
2014-07-27T01:11:02Z
2014-07-26T14:44:41Z
MEMBER
null
Closes #7540.
{ "+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/7843/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7843/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7843.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7843", "merged_at": "2014-07-26T14:44:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7843.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7843" }
https://api.github.com/repos/pandas-dev/pandas/issues/7844
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7844/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7844/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7844/events
https://github.com/pandas-dev/pandas/pull/7844
38,779,512
MDExOlB1bGxSZXF1ZXN0MTg5MjQ4ODA=
7,844
BUG/VIS: rot and fontsize are not applied to timeseries plots
{ "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
2
2014-07-25T23:37:18Z
2014-08-30T21:40:48Z
2014-07-28T16:00:10Z
MEMBER
null
In some plots, `rot` and `fontsize` arguments are not applied properly. - timeseries line / area plot: `rot` is not applied to minor ticklabels, and `fontsize` is completely ignored. (Fixed to apply to xticklabels) - kde plot: `rot` and `fontsize` are completely ignored. (Fixed to apply to xticklabels) - scatter and hexbin plots: `rot` and `fontsize` are completely ignored. (Under confirmation) ``` import pandas as pd import numpy as np df = pd.DataFrame(np.random.randn(10, 4), index=pd.date_range(start='2014-07-01', freq='M', periods=10)) df.plot(rot=80, fontsize=15) ``` ### Current Result ![figure_ng](https://cloud.githubusercontent.com/assets/1696302/3709379/7841977e-1454-11e4-8396-fc42e943d54a.png) ### After Fix ![figure_ok](https://cloud.githubusercontent.com/assets/1696302/3709380/7cc1037a-1454-11e4-9456-a9335907473b.png)
{ "+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/7844/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7844/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7844.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7844", "merged_at": "2014-07-28T16:00:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7844.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7844" }
https://api.github.com/repos/pandas-dev/pandas/issues/7845
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7845/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7845/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7845/events
https://github.com/pandas-dev/pandas/pull/7845
38,787,419
MDExOlB1bGxSZXF1ZXN0MTg5MjY3Njg=
7,845
COMPAT: SettingWithCopy will now warn when slices which can generate views are then set
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "0052cc", "default": false, "description": "pandas objects compatability with Numpy or Python functions", "id": 76865106, "name": "Compat", "node_id": "MDU6TGFiZWw3Njg2NTEwNg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-26T01:13:57Z
2014-07-26T12:47:09Z
2014-07-26T12:47:09Z
CONTRIBUTOR
null
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7845/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7845/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7845.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7845", "merged_at": "2014-07-26T12:47:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7845.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7845" }
https://api.github.com/repos/pandas-dev/pandas/issues/7846
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7846/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7846/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7846/events
https://github.com/pandas-dev/pandas/issues/7846
38,801,688
MDU6SXNzdWUzODgwMTY4OA==
7,846
tz_localize() and tz_convert() doesn't work on MultiIndex
{ "avatar_url": "https://avatars.githubusercontent.com/u/222778?v=4", "events_url": "https://api.github.com/users/mtrbean/events{/privacy}", "followers_url": "https://api.github.com/users/mtrbean/followers", "following_url": "https://api.github.com/users/mtrbean/following{/other_user}", "gists_url": "https://api.github.com/users/mtrbean/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mtrbean", "id": 222778, "login": "mtrbean", "node_id": "MDQ6VXNlcjIyMjc3OA==", "organizations_url": "https://api.github.com/users/mtrbean/orgs", "received_events_url": "https://api.github.com/users/mtrbean/received_events", "repos_url": "https://api.github.com/users/mtrbean/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mtrbean/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mtrbean/subscriptions", "type": "User", "url": "https://api.github.com/users/mtrbean" }
[ { "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": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "5319e7", "default": false, "description": "Timezone data dtype", "id": 60458168, "name": "Timezones", "node_id": "MDU6TGFiZWw2MDQ1ODE2OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones" }, { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
5
2014-07-26T04:08:04Z
2014-08-07T20:47:32Z
2014-08-07T20:47:32Z
CONTRIBUTOR
null
Example below for tz_localize() (Same error for tz_convert()) ``` In [1]: import pandas as pd In [2]: pd.__version__ Out[2]: '0.14.1' In [3]: cohort_date = pd.date_range('20140701', periods=5, freq='D') In [4]: event_date = pd.date_range('20140701', periods=5, freq='D') In [5]: multi_index = pd.MultiIndex.from_product([cohort_date, event_date], names=['cohort_date', 'event_date']) In [6]: df = pd.DataFrame(index=multi_index) In [7]: df Out[7]: Empty DataFrame Columns: [] Index: [(2014-07-01 00:00:00, 2014-07-01 00:00:00), (2014-07-01 00:00:00, 2014-07-02 00:00:00), (2014-07-01 00:00:00, 2014-07-03 00:00:00), (2014-07-01 00:00:00, 2014-07-04 00:00:00), (2014-07-01 00:00:00, 2014-07-05 00:00:00), (2014-07-02 00:00:00, 2014-07-01 00:00:00), (2014-07-02 00:00:00, 2014-07-02 00:00:00), (2014-07-02 00:00:00, 2014-07-03 00:00:00), (2014-07-02 00:00:00, 2014-07-04 00:00:00), (2014-07-02 00:00:00, 2014-07-05 00:00:00), (2014-07-03 00:00:00, 2014-07-01 00:00:00), (2014-07-03 00:00:00, 2014-07-02 00:00:00), (2014-07-03 00:00:00, 2014-07-03 00:00:00), (2014-07-03 00:00:00, 2014-07-04 00:00:00), (2014-07-03 00:00:00, 2014-07-05 00:00:00), (2014-07-04 00:00:00, 2014-07-01 00:00:00), (2014-07-04 00:00:00, 2014-07-02 00:00:00), (2014-07-04 00:00:00, 2014-07-03 00:00:00), (2014-07-04 00:00:00, 2014-07-04 00:00:00), (2014-07-04 00:00:00, 2014-07-05 00:00:00), (2014-07-05 00:00:00, 2014-07-01 00:00:00), (2014-07-05 00:00:00, 2014-07-02 00:00:00), (2014-07-05 00:00:00, 2014-07-03 00:00:00), (2014-07-05 00:00:00, 2014-07-04 00:00:00), (2014-07-05 00:00:00, 2014-07-05 00:00:00)] In [8]: df.tz_localize('UTC') --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-8-fa0ae4582d5d> in <module>() ----> 1 df.tz_localize('UTC') /Users/mtrbean/.virtualenvs/stats/lib/python2.7/site-packages/pandas/core/generic.pyc in tz_localize(self, tz, axis, copy, infer_dst) 3492 ax_name = self._get_axis_name(axis) 3493 raise TypeError('%s is not a valid DatetimeIndex or PeriodIndex' % -> 3494 ax_name) 3495 else: 3496 ax = DatetimeIndex([],tz=tz) TypeError: index is not a valid DatetimeIndex or PeriodIndex ```
{ "+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/7846/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7846/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7847
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7847/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7847/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7847/events
https://github.com/pandas-dev/pandas/issues/7847
38,813,075
MDU6SXNzdWUzODgxMzA3NQ==
7,847
pandas.json.dumps gives incorrect results with numpy 1.6.1
{ "avatar_url": "https://avatars.githubusercontent.com/u/67612?v=4", "events_url": "https://api.github.com/users/matthew-brett/events{/privacy}", "followers_url": "https://api.github.com/users/matthew-brett/followers", "following_url": "https://api.github.com/users/matthew-brett/following{/other_user}", "gists_url": "https://api.github.com/users/matthew-brett/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/matthew-brett", "id": 67612, "login": "matthew-brett", "node_id": "MDQ6VXNlcjY3NjEy", "organizations_url": "https://api.github.com/users/matthew-brett/orgs", "received_events_url": "https://api.github.com/users/matthew-brett/received_events", "repos_url": "https://api.github.com/users/matthew-brett/repos", "site_admin": false, "starred_url": "https://api.github.com/users/matthew-brett/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/matthew-brett/subscriptions", "type": "User", "url": "https://api.github.com/users/matthew-brett" }
[ { "color": "207de5", "default": false, "description": "read_json, to_json, json_normalize", "id": 49379259, "name": "IO JSON", "node_id": "MDU6TGFiZWw0OTM3OTI1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON" } ]
closed
false
null
[]
null
6
2014-07-26T08:23:53Z
2014-07-28T18:07:17Z
2014-07-28T12:50:03Z
CONTRIBUTOR
null
I ran into this nasty error when building / testing OSX wheels. ``` ====================================================================== ERROR: test_timedelta (pandas.io.tests.test_json.test_pandas.TestPandasContainer) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/buildslave/osx-10.6-clean/scipy-stack-2_7_6-wheel-requires/build/venv/lib/python2.7/site-packages/pandas/io/tests/test_json/test_pandas.py", line 611, in test_timedelta assert_series_equal(s, pd.read_json(s.to_json(),typ='series').apply(converter)) File "/Users/buildslave/osx-10.6-clean/scipy-stack-2_7_6-wheel-requires/build/venv/lib/python2.7/site-packages/pandas/core/series.py", line 1998, in apply mapped = lib.map_infer(values, f, convert=convert_dtype) File "inference.pyx", line 1016, in pandas.lib.map_infer (pandas/lib.c:53184) File "/Users/buildslave/osx-10.6-clean/scipy-stack-2_7_6-wheel-requires/build/venv/lib/python2.7/site-packages/pandas/io/tests/test_json/test_pandas.py", line 607, in <lambda> converter = lambda x: pd.to_timedelta(x,unit='ms') File "/Users/buildslave/osx-10.6-clean/scipy-stack-2_7_6-wheel-requires/build/venv/lib/python2.7/site-packages/pandas/tseries/timedeltas.py", line 69, in to_timedelta return _coerce_scalar_to_timedelta_type(arg, unit=unit) File "/Users/buildslave/osx-10.6-clean/scipy-stack-2_7_6-wheel-requires/build/venv/lib/python2.7/site-packages/pandas/tseries/timedeltas.py", line 123, in _coerce_scalar_to_timedelta_type return tslib.convert_to_timedelta(r,unit) File "tslib.pyx", line 1361, in pandas.tslib.convert_to_timedelta (pandas/tslib.c:22899) File "tslib.pyx", line 1427, in pandas.tslib.convert_to_timedelta64 (pandas/tslib.c:23733) ValueError: Invalid type for timedelta scalar: <class 'pandas.tslib.Timestamp'> ``` (see http://nipy.bic.berkeley.edu/builders/scipy-stack-2.7.6-wheel-requires/builds/88/steps/shell_10/logs/stdio) After some tiring debugging, it turns out that the error is caused by an incorrect output of `pandas.json.dumps` if pandas is compiled against numpy 1.6. This script: ``` from datetime import timedelta from pandas import Series import pandas.json s = Series([timedelta(23), timedelta(seconds=5)]) print pandas.json.dumps(s, orient='index', double_precision=10, ensure_ascii=True, date_unit='ms', iso_dates=False, default_handler=None) ``` gives the (I think) correct output below when pandas is compiled against numpy 1.7.1: ``` {"0":1987200000,"1":5000} ``` If pandas is compiled against numpy 1.6.1 (current recorded dependency) then the same script gives: ``` {"0":1987200000000000,"1":5000000000} ``` This in turn leads to the error at the top of this issue because the correct JSON passed into pandas.read_json generates a series of numpy.int64 whereas the incorrect JSON generates numpy.datetime64 elements: ``` In [10]: pd.read_json('{"0":1987200000,"1":5000}', typ='series') Out[10]: 0 1987200000 1 5000 dtype: int64 In [12]: pd.read_json('{"0":1987200000000000,"1":5000000000}', typ='series') Out[12]: 0 2032-12-21 00:00:00 1 1970-01-01 01:23:20 dtype: datetime64[ns] ``` Should the numpy dependency be updated to 1.7.1? I was afraid when I looked at the `dumps` C code but maybe there is some way of making it more robust to numpy version.
{ "+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/7847/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7847/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7848
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7848/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7848/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7848/events
https://github.com/pandas-dev/pandas/issues/7848
38,814,676
MDU6SXNzdWUzODgxNDY3Ng==
7,848
Categorical in dataframe is sorted lexically.
{ "avatar_url": "https://avatars.githubusercontent.com/u/780341?v=4", "events_url": "https://api.github.com/users/has2k1/events{/privacy}", "followers_url": "https://api.github.com/users/has2k1/followers", "following_url": "https://api.github.com/users/has2k1/following{/other_user}", "gists_url": "https://api.github.com/users/has2k1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/has2k1", "id": 780341, "login": "has2k1", "node_id": "MDQ6VXNlcjc4MDM0MQ==", "organizations_url": "https://api.github.com/users/has2k1/orgs", "received_events_url": "https://api.github.com/users/has2k1/received_events", "repos_url": "https://api.github.com/users/has2k1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/has2k1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/has2k1/subscriptions", "type": "User", "url": "https://api.github.com/users/has2k1" }
[ { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-26T10:03:14Z
2014-07-29T22:44:36Z
2014-07-29T22:44:36Z
CONTRIBUTOR
null
code ``` python df = pd.DataFrame({"id":[6,5,4,3,2,1], "raw_grade":['a', 'b', 'b', 'a', 'a', 'e']}) df["grade"] = pd.Categorical(df["raw_grade"]) df['grade'].cat.reorder_levels(['b', 'e', 'a']) # sorts 'grade' according to the order of the levels df.sort(columns=['grade']) ``` correct output ``` id raw_grade grade 4 5 b b 3 4 b b 0 1 e e 2 6 a a 1 3 a a 5 2 a a ``` --- code ``` python # sorts 'grade' lexically df.sort(columns=['grade', 'id']) ``` wrong output ``` id raw_grade grade 4 2 a a 3 3 a a 0 6 a a 2 4 b b 1 5 b b 5 1 e e ``` When there is more than one element in the columns list, the Categoricals columns are sorted lexically. `pandas: 0.14.1-78-g24b309f`
{ "+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/7848/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7848/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7849
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7849/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7849/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7849/events
https://github.com/pandas-dev/pandas/pull/7849
38,814,866
MDExOlB1bGxSZXF1ZXN0MTg5MzA1NTY=
7,849
Docs: improve installation instructions, recommend Anaconda.
{ "avatar_url": "https://avatars.githubusercontent.com/u/410907?v=4", "events_url": "https://api.github.com/users/lexual/events{/privacy}", "followers_url": "https://api.github.com/users/lexual/followers", "following_url": "https://api.github.com/users/lexual/following{/other_user}", "gists_url": "https://api.github.com/users/lexual/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lexual", "id": 410907, "login": "lexual", "node_id": "MDQ6VXNlcjQxMDkwNw==", "organizations_url": "https://api.github.com/users/lexual/orgs", "received_events_url": "https://api.github.com/users/lexual/received_events", "repos_url": "https://api.github.com/users/lexual/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lexual/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lexual/subscriptions", "type": "User", "url": "https://api.github.com/users/lexual" }
[ { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
22
2014-07-26T10:18:17Z
2014-07-31T02:22:40Z
2014-07-29T09:58:55Z
CONTRIBUTOR
null
I believe installing pandas via Anaconda should definitely be the recommended installation method for most users. It is cross platform, doesn't require a compiler, and will install all requirements for the user also (including NumPy).
{ "+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/7849/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7849/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7849.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7849", "merged_at": "2014-07-29T09:58:55Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7849.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7849" }
https://api.github.com/repos/pandas-dev/pandas/issues/7850
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7850/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7850/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7850/events
https://github.com/pandas-dev/pandas/pull/7850
38,817,830
MDExOlB1bGxSZXF1ZXN0MTg5MzE5MTY=
7,850
BUG: fix multi-column sort that includes Categoricals / concat (GH7848/GH7864)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e11d21", "default": false, "description": "Categorical Data Type", "id": 78527356, "name": "Categorical", "node_id": "MDU6TGFiZWw3ODUyNzM1Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Categorical" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
14
2014-07-26T13:53:03Z
2014-07-31T21:27:35Z
2014-07-29T22:44:36Z
CONTRIBUTOR
null
CLN: refactor _lexsort_indexer to use Categoricals closes #7848 closes #7864
{ "+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/7850/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7850/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7850.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7850", "merged_at": "2014-07-29T22:44:36Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7850.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7850" }
https://api.github.com/repos/pandas-dev/pandas/issues/7851
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7851/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7851/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7851/events
https://github.com/pandas-dev/pandas/pull/7851
38,818,758
MDExOlB1bGxSZXF1ZXN0MTg5MzIzMDU=
7,851
BUG: fix greedy date parsing in read_html
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "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": "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": "006b75", "default": false, "description": "read_html, to_html, Styler.apply, Styler.applymap", "id": 57395487, "name": "IO HTML", "node_id": "MDU6TGFiZWw1NzM5NTQ4Nw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HTML" }, { "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" } ]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
9
2014-07-26T14:47:20Z
2014-07-28T13:24:39Z
2014-07-28T13:24:39Z
MEMBER
null
Also, `infer_types` now has no effect _for real_ :) closes #7762 closes #7032
{ "+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/7851/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7851/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7851.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7851", "merged_at": "2014-07-28T13:24:39Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7851.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7851" }
https://api.github.com/repos/pandas-dev/pandas/issues/7852
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7852/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7852/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7852/events
https://github.com/pandas-dev/pandas/pull/7852
38,818,828
MDExOlB1bGxSZXF1ZXN0MTg5MzIzMzc=
7,852
ENH: tz_localize(None) allows to reset tz
{ "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": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "5319e7", "default": false, "description": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
8
2014-07-26T14:52:42Z
2014-08-07T22:13:11Z
2014-08-05T14:49:29Z
MEMBER
null
Closes #7812. Allow `tz_localize(None)` for tz-aware `Timestamp` and `DatetimeIndex` to reset tz. CC @rockg, @nehalecky ``` t = pd.Timestamp('2014-01-01 09:00', tz='Asia/Tokyo') # tz_localize resets tz holding current tz representation t.tz_localize(None) #2014-01-01 09:00:00 # tz_convert reset tz using UTC representation (no changes by this PR) t.tz_convert(None) #2014-01-01 00:00:00 idx = pd.date_range(start='2011-01-01 09:00', freq='H', periods=10, tz='Asia/Tokyo') idx.tz_localize(None) # <class 'pandas.tseries.index.DatetimeIndex' # [2011-01-01 09:00:00, ..., 2011-01-01 18:00:00] # Length: 10, Freq: H, Timezone: None # (no changes by this PR) idx.tz_convert(None) # <class 'pandas.tseries.index.DatetimeIndex'> # [2011-01-01 00:00:00, ..., 2011-01-01 09:00:00] # Length: 10, Freq: H, Timezone: 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/7852/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7852/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7852.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7852", "merged_at": "2014-08-05T14:49:29Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7852.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7852" }
https://api.github.com/repos/pandas-dev/pandas/issues/7853
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7853/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7853/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7853/events
https://github.com/pandas-dev/pandas/pull/7853
38,828,988
MDExOlB1bGxSZXF1ZXN0MTg5MzY0NDA=
7,853
BUG: left join on index with multiple matches now works (GH5391)
{ "avatar_url": "https://avatars.githubusercontent.com/u/1288998?v=4", "events_url": "https://api.github.com/users/behzadnouri/events{/privacy}", "followers_url": "https://api.github.com/users/behzadnouri/followers", "following_url": "https://api.github.com/users/behzadnouri/following{/other_user}", "gists_url": "https://api.github.com/users/behzadnouri/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/behzadnouri", "id": 1288998, "login": "behzadnouri", "node_id": "MDQ6VXNlcjEyODg5OTg=", "organizations_url": "https://api.github.com/users/behzadnouri/orgs", "received_events_url": "https://api.github.com/users/behzadnouri/received_events", "repos_url": "https://api.github.com/users/behzadnouri/repos", "site_admin": false, "starred_url": "https://api.github.com/users/behzadnouri/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/behzadnouri/subscriptions", "type": "User", "url": "https://api.github.com/users/behzadnouri" }
[ { "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
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
20
2014-07-27T00:05:31Z
2014-09-04T00:24:19Z
2014-08-21T22:10:45Z
CONTRIBUTOR
null
closes #5391 ``` >>> ### left join with multiple matches - single index case >>> left = DataFrame([ ... ['X', 'Y', 'C', 'a'], ... ['W', 'Y', 'C', 'e'], ... ['V', 'Q', 'A', 'h'], ... ['V', 'R', 'D', 'i'], ... ['X', 'Y', 'D', 'b'], ... ['X', 'Y', 'A', 'c'], ... ['W', 'Q', 'B', 'f'], ... ['W', 'R', 'C', 'g'], ... ['V', 'Y', 'C', 'j'], ... ['X', 'Y', 'B', 'd']], ... columns=['cola', 'colb', 'colc', 'tag'], ... index=[3, 2, 0, 1, 7, 6, 4, 5, 9, 8]) >>> ... right = DataFrame([ ... ['W', 'R', 'C', 0], ... ['W', 'Q', 'B', 3], ... ['W', 'Q', 'B', 8], ... ['X', 'Y', 'A', 1], ... ['X', 'Y', 'A', 4], ... ['X', 'Y', 'B', 5], ... ['X', 'Y', 'C', 6], ... ['X', 'Y', 'C', 9], ... ['X', 'Q', 'C', -6], ... ['X', 'R', 'C', -9], ... ['V', 'Y', 'C', 7], ... ['V', 'R', 'D', 2], ... ['V', 'R', 'D', -1], ... ['V', 'Q', 'A', -3]], ... columns=['col1', 'col2', 'col3', 'val']) >>> ... right.set_index(['col1', 'col2', 'col3'], inplace=True) >>> result = left.join(right, on=['cola', 'colb', 'colc'], how='left') >>> ... expected = DataFrame([ ... ['X', 'Y', 'C', 'a', 6], ... ['X', 'Y', 'C', 'a', 9], ... ['W', 'Y', 'C', 'e', nan], ... ['V', 'Q', 'A', 'h', -3], ... ['V', 'R', 'D', 'i', 2], ... ['V', 'R', 'D', 'i', -1], ... ['X', 'Y', 'D', 'b', nan], ... ['X', 'Y', 'A', 'c', 1], ... ['X', 'Y', 'A', 'c', 4], ... ['W', 'Q', 'B', 'f', 3], ... ['W', 'Q', 'B', 'f', 8], ... ['W', 'R', 'C', 'g', 0], ... ['V', 'Y', 'C', 'j', 7], ... ['X', 'Y', 'B', 'd', 5]], ... columns=['cola', 'colb', 'colc', 'tag', 'val'], ... index=[3, 3, 2, 0, 1, 1, 7, 6, 6, 4, 4, 5, 9, 8]) >>> ... tm.assert_frame_equal(result, expected) >>> print(left, right, result, sep='\n') cola colb colc tag 3 X Y C a 2 W Y C e 0 V Q A h 1 V R D i 7 X Y D b 6 X Y A c 4 W Q B f 5 W R C g 9 V Y C j 8 X Y B d val col1 col2 col3 W R C 0 Q B 3 B 8 X Y A 1 A 4 B 5 C 6 C 9 Q C -6 R C -9 V Y C 7 R D 2 D -1 Q A -3 cola colb colc tag val 3 X Y C a 6 3 X Y C a 9 2 W Y C e NaN 0 V Q A h -3 1 V R D i 2 1 V R D i -1 7 X Y D b NaN 6 X Y A c 1 6 X Y A c 4 4 W Q B f 3 4 W Q B f 8 5 W R C g 0 9 V Y C j 7 8 X Y B d 5 >>> ### left join with multiple matches - multi index case >>> left = DataFrame([ ... ['c', 0], ... ['b', 1], ... ['a', 2], ... ['b', 3]], ... columns=['tag', 'val'], ... index=[2, 0, 1, 3]) >>> ... right = DataFrame([ ... ['a', 'v'], ... ['c', 'w'], ... ['c', 'x'], ... ['d', 'y'], ... ['a', 'z'], ... ['c', 'r'], ... ['e', 'q'], ... ['c', 's']], ... columns=['tag', 'char']) >>> ... right.set_index('tag', inplace=True) >>> result = left.join(right, on='tag', how='left') >>> ... expected = DataFrame([ ... ['c', 0, 'w'], ... ['c', 0, 'x'], ... ['c', 0, 'r'], ... ['c', 0, 's'], ... ['b', 1, nan], ... ['a', 2, 'v'], ... ['a', 2, 'z'], ... ['b', 3, nan]], ... columns=['tag', 'val', 'char'], ... index=[2, 2, 2, 2, 0, 1, 1, 3]) >>> ... tm.assert_frame_equal(result, expected) >>> print(left, right, result, sep='\n') tag val 2 c 0 0 b 1 1 a 2 3 b 3 char tag a v c w c x d y a z c r e q c s tag val char 2 c 0 w 2 c 0 x 2 c 0 r 2 c 0 s 0 b 1 NaN 1 a 2 v 1 a 2 z 3 b 3 NaN ``` This closes on: https://github.com/pydata/pandas/issues/5391 By providing all the matches when doing left join on index, both in the case of single index and multi-index. It also preserves the index order of the calling (left) DataFrame (as it used to), though when there are multiple matches the indices repeat and the index loses integrity. The added test cases should be self-explanatory. Thank you,
{ "+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/7853/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7853/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7853.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7853", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/7853.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7853" }
https://api.github.com/repos/pandas-dev/pandas/issues/7854
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7854/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7854/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7854/events
https://github.com/pandas-dev/pandas/pull/7854
38,838,765
MDExOlB1bGxSZXF1ZXN0MTg5NDA3MDQ=
7,854
CLN: Clean tslib, frequencies import
{ "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": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" }, { "color": "0052cc", "default": false, "description": "DateOffsets", "id": 53181044, "name": "Frequency", "node_id": "MDU6TGFiZWw1MzE4MTA0NA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-27T13:22:43Z
2014-08-04T13:18:06Z
2014-07-28T14:57:03Z
MEMBER
null
Fixed: - Some modules are imported different aliases - Merge duplicated functions (`maybe_get_tz` and `ensure_int64`)
{ "+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/7854/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7854/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7854.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7854", "merged_at": "2014-07-28T14:57:03Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7854.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7854" }
https://api.github.com/repos/pandas-dev/pandas/issues/7855
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7855/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7855/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7855/events
https://github.com/pandas-dev/pandas/pull/7855
38,845,205
MDExOlB1bGxSZXF1ZXN0MTg5NDIxMTY=
7,855
BUG/API: allow get_indexer to work with nans
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "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": "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": "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" } ]
{ "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" }
10
2014-07-27T16:23:32Z
2015-04-08T15:03:14Z
2015-04-08T15:03:14Z
MEMBER
null
- [ ] clear the FIXME in Categorical in #7820 (comment) closes #7820
{ "+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/7855/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7855/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7855.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7855", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/7855.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7855" }
https://api.github.com/repos/pandas-dev/pandas/issues/7856
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7856/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7856/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7856/events
https://github.com/pandas-dev/pandas/issues/7856
38,851,887
MDU6SXNzdWUzODg1MTg4Nw==
7,856
set_option('max_colwidth', N) not working on groupby output
{ "avatar_url": "https://avatars.githubusercontent.com/u/4806709?v=4", "events_url": "https://api.github.com/users/brifordwylie/events{/privacy}", "followers_url": "https://api.github.com/users/brifordwylie/followers", "following_url": "https://api.github.com/users/brifordwylie/following{/other_user}", "gists_url": "https://api.github.com/users/brifordwylie/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/brifordwylie", "id": 4806709, "login": "brifordwylie", "node_id": "MDQ6VXNlcjQ4MDY3MDk=", "organizations_url": "https://api.github.com/users/brifordwylie/orgs", "received_events_url": "https://api.github.com/users/brifordwylie/received_events", "repos_url": "https://api.github.com/users/brifordwylie/repos", "site_admin": false, "starred_url": "https://api.github.com/users/brifordwylie/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/brifordwylie/subscriptions", "type": "User", "url": "https://api.github.com/users/brifordwylie" }
[ { "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
[]
{ "closed_at": "2015-05-11T15:46:03Z", "closed_issues": 237, "created_at": "2014-10-07T14:39:07Z", "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.16.0 of course!", "due_on": "2015-05-11T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/29", "id": 816810, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODEw", "number": 29, "open_issues": 0, "state": "closed", "title": "0.16.1", "updated_at": "2017-04-16T08:39:48Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29" }
5
2014-07-27T22:09:31Z
2015-04-28T12:00:23Z
2015-04-28T12:00:23Z
NONE
null
Hi All, Might be pilot error (or the incorrect expectations), but I was expecting the max_colwidth option to work on groupby terminal output. Replication here: ``` $ python > import pandas as pd > df = pd.DataFrame([{'a':'foo','b':'bar','c':'uncomfortably long line with lots of stuff','d':1}, \ {'a':'foo','b':'bar','c':'stuff', 'd':1}]) > df a b c d 0 foo bar uncomfortably long line with lots of stuff 1 1 foo bar stuff 1 > pd.set_option('max_colwidth', 20) > df a b c d 0 foo bar uncomfortably lo... 1 1 foo bar stuff 1 > group_df = df.groupby(['a','b','c']).sum() > group_df d a b c foo bar stuff 1 uncomfortably long line with lots of stuff 1 >>> ``` ``` >>> pd.show_versions() INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Darwin OS-release: 13.3.0 machine: x86_64 processor: i386 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.14.1 nose: None Cython: 0.20.2 numpy: 1.8.1 scipy: None statsmodels: None IPython: 2.1.0 sphinx: 1.2.2 patsy: None scikits.timeseries: None dateutil: 2.2 pytz: 2014.4 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 rpy2: None sqlalchemy: None pymysql: None psycopg2: 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/7856/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7856/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7857
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7857/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7857/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7857/events
https://github.com/pandas-dev/pandas/issues/7857
38,896,247
MDU6SXNzdWUzODg5NjI0Nw==
7,857
KeyError when using str.cat and index was changed
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
5
2014-07-28T14:38:00Z
2014-08-02T12:53:36Z
2014-08-02T12:53:36Z
MEMBER
null
``` df = DataFrame(index=MultiIndex.from_product([[2011, 2012], [1,2,3]], names=['year', 'month'])) df = df.reset_index() str_year = df.year.astype('str') str_month = df.month.astype('str') str_both = str_year.str.cat(str_month, sep=' ') ``` ... so far, everything is fine. Now filter the index and retry: ``` df = df[df.month > 1] str_year = df.year.astype('str') str_month = df.month.astype('str') str_both = str_year.str.cat(str_month, sep=' ') ``` ... you will get a KeyError (tested against git, commit 90fa87e7a51141ac318382b979f60a8c043b8505 ): ``` KeyError Traceback (most recent call last) <ipython-input-12-9d3f1fbb70fc> in <module>() 11 str_year = df.year.astype('str') 12 str_month = df.month.astype('str') ---> 13 str_both = str_year.str.cat(str_month, sep=' ') /home/pietro/nobackup/repo/pandas/pandas/core/strings.py in cat(self, others, sep, na_rep) 933 @copy(str_cat) 934 def cat(self, others=None, sep=None, na_rep=None): --> 935 result = str_cat(self.series, others=others, sep=sep, na_rep=na_rep) 936 return self._wrap_result(result) 937 /home/pietro/nobackup/repo/pandas/pandas/core/strings.py in str_cat(arr, others, sep, na_rep) 41 42 if others is not None: ---> 43 arrays = _get_array_list(arr, others) 44 45 n = _length_check(arrays) /home/pietro/nobackup/repo/pandas/pandas/core/strings.py in _get_array_list(arr, others) 13 14 def _get_array_list(arr, others): ---> 15 if len(others) and isinstance(others[0], (list, np.ndarray)): 16 arrays = [arr] + list(others) 17 else: /home/pietro/nobackup/repo/pandas/pandas/core/series.py in __getitem__(self, key) 491 def __getitem__(self, key): 492 try: --> 493 result = self.index.get_value(self, key) 494 495 if not np.isscalar(result): /home/pietro/nobackup/repo/pandas/pandas/core/index.py in get_value(self, series, key) 1194 1195 try: -> 1196 return self._engine.get_value(s, k) 1197 except KeyError as e1: 1198 if len(self) > 0 and self.inferred_type in ['integer','boolean']: /home/pietro/nobackup/repo/pandas/pandas/index.so in pandas.index.IndexEngine.get_value (pandas/index.c:2991)() /home/pietro/nobackup/repo/pandas/pandas/index.so in pandas.index.IndexEngine.get_value (pandas/index.c:2806)() /home/pietro/nobackup/repo/pandas/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3532)() /home/pietro/nobackup/repo/pandas/pandas/hashtable.so in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:7033)() /home/pietro/nobackup/repo/pandas/pandas/hashtable.so in pandas.hashtable.Int64HashTable.get_item (pandas/hashtable.c:6974)() KeyError: 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/7857/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7857/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7858
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7858/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7858/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7858/events
https://github.com/pandas-dev/pandas/issues/7858
38,896,274
MDU6SXNzdWUzODg5NjI3NA==
7,858
to_stata results in unnecessarily long strings
{ "avatar_url": "https://avatars.githubusercontent.com/u/3696165?v=4", "events_url": "https://api.github.com/users/cpbl/events{/privacy}", "followers_url": "https://api.github.com/users/cpbl/followers", "following_url": "https://api.github.com/users/cpbl/following{/other_user}", "gists_url": "https://api.github.com/users/cpbl/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpbl", "id": 3696165, "login": "cpbl", "node_id": "MDQ6VXNlcjM2OTYxNjU=", "organizations_url": "https://api.github.com/users/cpbl/orgs", "received_events_url": "https://api.github.com/users/cpbl/received_events", "repos_url": "https://api.github.com/users/cpbl/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpbl/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpbl/subscriptions", "type": "User", "url": "https://api.github.com/users/cpbl" }
[ { "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": "read_stata, to_stata", "id": 104865385, "name": "IO Stata", "node_id": "MDU6TGFiZWwxMDQ4NjUzODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
23
2014-07-28T14:38:16Z
2014-12-02T16:29:03Z
2014-08-01T13:30:09Z
NONE
null
I'm writing some simple data, including a string of len()=5 using to_stata. In Stata, I then have trouble with it due to its length. codebook shows that my variable as been encoded as a string of length 244: of type "string (str244), but longest is str5" If tthe longest string is length 5, so should be the output variable type in Stata.
{ "+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/7858/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7858/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7859
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7859/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7859/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7859/events
https://github.com/pandas-dev/pandas/pull/7859
38,900,089
MDExOlB1bGxSZXF1ZXN0MTg5NzMxNTA=
7,859
BUG: Check the first element of "others.values" rather than "others".
{ "avatar_url": "https://avatars.githubusercontent.com/u/1224492?v=4", "events_url": "https://api.github.com/users/toobaz/events{/privacy}", "followers_url": "https://api.github.com/users/toobaz/followers", "following_url": "https://api.github.com/users/toobaz/following{/other_user}", "gists_url": "https://api.github.com/users/toobaz/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/toobaz", "id": 1224492, "login": "toobaz", "node_id": "MDQ6VXNlcjEyMjQ0OTI=", "organizations_url": "https://api.github.com/users/toobaz/orgs", "received_events_url": "https://api.github.com/users/toobaz/received_events", "repos_url": "https://api.github.com/users/toobaz/repos", "site_admin": false, "starred_url": "https://api.github.com/users/toobaz/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/toobaz/subscriptions", "type": "User", "url": "https://api.github.com/users/toobaz" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "5319e7", "default": false, "description": "String extension data type and string data", "id": 57522093, "name": "Strings", "node_id": "MDU6TGFiZWw1NzUyMjA5Mw==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Strings" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
3
2014-07-28T15:14:58Z
2014-08-02T13:04:33Z
2014-08-02T07:23:53Z
MEMBER
null
Closes #7857
{ "+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/7859/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7859/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7859.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7859", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/7859.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7859" }
https://api.github.com/repos/pandas-dev/pandas/issues/7860
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7860/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7860/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7860/events
https://github.com/pandas-dev/pandas/issues/7860
38,923,397
MDU6SXNzdWUzODkyMzM5Nw==
7,860
ENH: indexing support for reversed is_monotonic
{ "avatar_url": "https://avatars.githubusercontent.com/u/1972276?v=4", "events_url": "https://api.github.com/users/hugadams/events{/privacy}", "followers_url": "https://api.github.com/users/hugadams/followers", "following_url": "https://api.github.com/users/hugadams/following{/other_user}", "gists_url": "https://api.github.com/users/hugadams/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hugadams", "id": 1972276, "login": "hugadams", "node_id": "MDQ6VXNlcjE5NzIyNzY=", "organizations_url": "https://api.github.com/users/hugadams/orgs", "received_events_url": "https://api.github.com/users/hugadams/received_events", "repos_url": "https://api.github.com/users/hugadams/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hugadams/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hugadams/subscriptions", "type": "User", "url": "https://api.github.com/users/hugadams" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "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": "2014-11-09T12:33:59Z", "closed_issues": 86, "created_at": "2014-10-30T11:12:13Z", "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.15.0 of course", "due_on": "2014-11-09T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/31", "id": 846460, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31/labels", "node_id": "MDk6TWlsZXN0b25lODQ2NDYw", "number": 31, "open_issues": 0, "state": "closed", "title": "0.15.1", "updated_at": "2014-11-09T12:33:59Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/31" }
17
2014-07-28T19:23:34Z
2014-11-02T22:41:28Z
2014-11-02T22:41:28Z
NONE
null
conceptually not hard (and you can look at a the slices to figure this out, e.g. if start >= end or start>last_endpoint, you can just do a reversed is_monotonic), to avoid a perf hit I think, then just reverse the searching operations for slices would need to do `is_monotonic_decreasing` here : https://github.com/pydata/pandas/blob/master/pandas/core/index.py#L1764 Hello, I am working with spectral data, which for various spectral units such as wavenumber, is often presented with decreasing spectral values along the index. For example: http://www.chemguide.co.uk/analysis/ir/irpropanone.GIF In my dataframe, the index is stored in descending order (eg 500, 499, 498... 2, 1); however, when I try to slice using .ix[]; it becomes impossible, giving me a long key error. Likewise, df.plot() is sorting the xvalues from low to high, so I need to reverse the plot axis after the fact. Not really a big deal, but wondered if there's a better workaround. Any suggestions? **Note: This behavior works fine for int64 index:** ``` #Create dataframe and reverse index x = DataFrame(np.random.randn(50,50)) x.index = x.index[::-1] #Slice 30-10 x.ix[30:10, ::] ``` But fails for float index ``` x = DataFrame(np.random.randn(50,50), index=np.linspace(0,50)) x.index = x.index[::-1] x.ix[30.0:10.0, ::] ``` With error: ``` --------------------------------------------------------------------------- KeyError Traceback (most recent call last) <ipython-input-68-1af3b9a79d3d> in <module>() 11 x.index = x.index[::-1] 12 ---> 13 x.ix[30.0:10.0, ::] 14 /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/indexing.pyc in __getitem__(self, key) 67 pass 68 ---> 69 return self._getitem_tuple(key) 70 else: 71 return self._getitem_axis(key, axis=0) /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_tuple(self, tup) 673 continue 674 --> 675 retval = getattr(retval, self.name)._getitem_axis(key, axis=i) 676 677 return retval /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_axis(self, key, axis, validate_iterable) 859 labels = self.obj._get_axis(axis) 860 if isinstance(key, slice): --> 861 return self._get_slice_axis(key, axis=axis) 862 elif _is_list_like(key) and not (isinstance(key, tuple) and 863 isinstance(labels, MultiIndex)): /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/indexing.pyc in _get_slice_axis(self, slice_obj, axis) 1106 if not _need_slice(slice_obj): 1107 return obj -> 1108 indexer = self._convert_slice_indexer(slice_obj, axis) 1109 1110 if isinstance(indexer, slice): /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/indexing.pyc in _convert_slice_indexer(self, key, axis) 161 # if we are accessing via lowered dim, use the last dim 162 ax = self.obj._get_axis(min(axis, self.ndim - 1)) --> 163 return ax._convert_slice_indexer(key, typ=self.name) 164 165 def _has_valid_setitem_indexer(self, indexer): /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/index.pyc in _convert_slice_indexer(self, key, typ) 2027 2028 # translate to locations -> 2029 return self.slice_indexer(key.start, key.stop, key.step) 2030 2031 def get_value(self, series, key): /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/index.pyc in slice_indexer(self, start, end, step) 1704 This function assumes that the data is sorted, so use at your own peril 1705 """ -> 1706 start_slice, end_slice = self.slice_locs(start, end) 1707 1708 # return a slice /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/index.pyc in slice_locs(self, start, end) 1777 1778 start_slice = _get_slice(0, offset=0, search_side='left', -> 1779 slice_property='start', search_value=start) 1780 end_slice = _get_slice(len(self), offset=1, search_side='right', 1781 slice_property='stop', search_value=end) /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/index.pyc in _get_slice(starting_value, offset, search_side, slice_property, search_value) 1746 1747 try: -> 1748 slc = self.get_loc(search_value) 1749 1750 if not is_unique: /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/index.pyc in get_loc(self, key) 2091 except (TypeError, NotImplementedError): 2092 pass -> 2093 return super(Float64Index, self).get_loc(key) 2094 2095 @property /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/core/index.pyc in get_loc(self, key) 1179 loc : int if unique index, possibly slice or mask if not 1180 """ -> 1181 return self._engine.get_loc(_values_from_object(key)) 1182 1183 def get_value(self, series, key): /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3354)() /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/index.so in pandas.index.IndexEngine.get_loc (pandas/index.c:3234)() /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/hashtable.so in pandas.hashtable.Float64HashTable.get_item (pandas/hashtable.c:9018)() /home/glue/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/pandas/hashtable.so in pandas.hashtable.Float64HashTable.get_item (pandas/hashtable.c:8962)() KeyError: 30.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/7860/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7860/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7861
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7861/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7861/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7861/events
https://github.com/pandas-dev/pandas/issues/7861
38,948,873
MDU6SXNzdWUzODk0ODg3Mw==
7,861
Series.view fails when series has a dtype of `object` (behavior change from 0.12)
{ "avatar_url": "https://avatars.githubusercontent.com/u/59575?v=4", "events_url": "https://api.github.com/users/wolever/events{/privacy}", "followers_url": "https://api.github.com/users/wolever/followers", "following_url": "https://api.github.com/users/wolever/following{/other_user}", "gists_url": "https://api.github.com/users/wolever/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/wolever", "id": 59575, "login": "wolever", "node_id": "MDQ6VXNlcjU5NTc1", "organizations_url": "https://api.github.com/users/wolever/orgs", "received_events_url": "https://api.github.com/users/wolever/received_events", "repos_url": "https://api.github.com/users/wolever/repos", "site_admin": false, "starred_url": "https://api.github.com/users/wolever/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/wolever/subscriptions", "type": "User", "url": "https://api.github.com/users/wolever" }
[ { "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": 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" }
13
2014-07-29T00:48:01Z
2018-03-07T09:50:25Z
2018-03-07T09:50:25Z
CONTRIBUTOR
null
As per the title, `Series.view(…)` fails when the `dtype` is `"object"`: ``` In [1]: import pandas as pd In [2]: s = pd.Series([u'a', u'b', u'c']) In [3]: s.view(pd.Series) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-3-abcb4acb36d2> in <module>() ----> 1 s.view(pd.Series) /Users/wolever/code/sandbox/env/sandbox/lib/python2.7/site-packages/pandas/core/series.pyc in view(self, dtype) 363 364 def view(self, dtype=None): --> 365 return self._constructor(self.values.view(dtype), 366 index=self.index).__finalize__(self) 367 TypeError: Cannot change data-type for object array. In [4]: pd.__version__ Out[4]: '0.14.1' ``` Compare with the behavior of `0.12`: ``` In [1]: import pandas as pd In [2]: s = pd.Series([u'a', u'b', u'c']) In [3]: s.view(pd.Series) Out[3]: 0 a 1 b 2 c dtype: object In [4]: pd.__version__ Out[4]: '0.12.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/7861/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7861/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7862
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7862/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7862/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7862/events
https://github.com/pandas-dev/pandas/pull/7862
38,961,101
MDExOlB1bGxSZXF1ZXN0MTkwMDk4NzE=
7,862
BUG: Fixed incorrect string length calculation when writing strings in Stata
{ "avatar_url": "https://avatars.githubusercontent.com/u/5585221?v=4", "events_url": "https://api.github.com/users/bashtage/events{/privacy}", "followers_url": "https://api.github.com/users/bashtage/followers", "following_url": "https://api.github.com/users/bashtage/following{/other_user}", "gists_url": "https://api.github.com/users/bashtage/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/bashtage", "id": 5585221, "login": "bashtage", "node_id": "MDQ6VXNlcjU1ODUyMjE=", "organizations_url": "https://api.github.com/users/bashtage/orgs", "received_events_url": "https://api.github.com/users/bashtage/received_events", "repos_url": "https://api.github.com/users/bashtage/repos", "site_admin": false, "starred_url": "https://api.github.com/users/bashtage/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/bashtage/subscriptions", "type": "User", "url": "https://api.github.com/users/bashtage" }
[ { "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_stata, to_stata", "id": 104865385, "name": "IO Stata", "node_id": "MDU6TGFiZWwxMDQ4NjUzODU=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Stata" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
17
2014-07-29T06:19:15Z
2014-08-20T15:32:49Z
2014-08-01T13:30:09Z
CONTRIBUTOR
null
Strings were incorrectly written using 244 character irrespective of the actual length of the underlying due to changes in pandas where the underlying NumPy datatype of strings is always np.object_, and never np.string_. Closes #7858
{ "+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/7862/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7862/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7862.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7862", "merged_at": "2014-08-01T13:30:09Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7862.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7862" }
https://api.github.com/repos/pandas-dev/pandas/issues/7863
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7863/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7863/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7863/events
https://github.com/pandas-dev/pandas/issues/7863
38,962,459
MDU6SXNzdWUzODk2MjQ1OQ==
7,863
DataFrame to_json Column -> [values] orientation and scientifc notation?
{ "avatar_url": "https://avatars.githubusercontent.com/u/2436121?v=4", "events_url": "https://api.github.com/users/MatthiasKauer/events{/privacy}", "followers_url": "https://api.github.com/users/MatthiasKauer/followers", "following_url": "https://api.github.com/users/MatthiasKauer/following{/other_user}", "gists_url": "https://api.github.com/users/MatthiasKauer/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/MatthiasKauer", "id": 2436121, "login": "MatthiasKauer", "node_id": "MDQ6VXNlcjI0MzYxMjE=", "organizations_url": "https://api.github.com/users/MatthiasKauer/orgs", "received_events_url": "https://api.github.com/users/MatthiasKauer/received_events", "repos_url": "https://api.github.com/users/MatthiasKauer/repos", "site_admin": false, "starred_url": "https://api.github.com/users/MatthiasKauer/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/MatthiasKauer/subscriptions", "type": "User", "url": "https://api.github.com/users/MatthiasKauer" }
[ { "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
[]
null
4
2014-07-29T06:45:43Z
2014-08-05T16:21:47Z
2014-08-05T16:21:47Z
NONE
null
Hi, I'm exporting a data frame from pandas and importing it in a C++ program using rapidjson. I believe I have tested all available orientations and I am wondering if it was possible to obtain the following: ``` python c1 c2 r1 1 2 r2 3 4 ``` converted to ``` python { c1: [1, 3], c2: [2,4], index: [r1, r2]} ``` Is my idea inherently flawed somehow? I feel it would be very intuitive to parse this from C++. The other question is regarding the precision of the double values. I am only getting fixed-point values in the text output. Can I get 1.234e-5 instead of 0.00001234 somehow? If no, can you point out the process for possible contributions in this direction? Best regards, Matthias Kauer
{ "+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/7863/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7863/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7864
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7864/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7864/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7864/events
https://github.com/pandas-dev/pandas/issues/7864
38,973,804
MDU6SXNzdWUzODk3MzgwNA==
7,864
pd.concat reordering categorical levels lexically
{ "avatar_url": "https://avatars.githubusercontent.com/u/780341?v=4", "events_url": "https://api.github.com/users/has2k1/events{/privacy}", "followers_url": "https://api.github.com/users/has2k1/followers", "following_url": "https://api.github.com/users/has2k1/following{/other_user}", "gists_url": "https://api.github.com/users/has2k1/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/has2k1", "id": 780341, "login": "has2k1", "node_id": "MDQ6VXNlcjc4MDM0MQ==", "organizations_url": "https://api.github.com/users/has2k1/orgs", "received_events_url": "https://api.github.com/users/has2k1/received_events", "repos_url": "https://api.github.com/users/has2k1/repos", "site_admin": false, "starred_url": "https://api.github.com/users/has2k1/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/has2k1/subscriptions", "type": "User", "url": "https://api.github.com/users/has2k1" }
[ { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-29T09:53:55Z
2014-07-29T22:44:36Z
2014-07-29T22:44:36Z
CONTRIBUTOR
null
Look at `dfx` ``` python In [1]: import pandas as pd In [2]: df = pd.DataFrame({"id":[1,2,3,4,5,6], "raw_grade":['a', 'b', 'b', 'a', 'a', 'e']}) ...: df["grade"] = pd.Categorical(df["raw_grade"]) ...: df['grade'].cat.reorder_levels(['e', 'a', 'b']) ...: In [3]: df1 = df[0:3] ...: df2 = df[3:] ...: In [4]: df['grade'].cat.levels Out[4]: Index([u'e', u'a', u'b'], dtype='object') In [5]: df1['grade'].cat.levels Out[5]: Index([u'e', u'a', u'b'], dtype='object') In [6]: df2['grade'].cat.levels Out[6]: Index([u'e', u'a', u'b'], dtype='object') In [7]: dfx = pd.concat([df1, df2]) In [8]: dfx['grade'].cat.levels Out[8]: Index([u'a', u'b', u'e'], dtype='object') ``` version: `pandas: 0.14.1-78-g24b309f` This is still the case after either of PR #7768 and PR #7850.
{ "+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/7864/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7864/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7865
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7865/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7865/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7865/events
https://github.com/pandas-dev/pandas/issues/7865
38,974,222
MDU6SXNzdWUzODk3NDIyMg==
7,865
DOC: review installation instructions
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
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
2014-07-29T09:59:48Z
2018-07-06T22:03:12Z
2018-07-06T21:22:13Z
CONTRIBUTOR
null
xref #7849
{ "+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/7865/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7865/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7866
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7866/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7866/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7866/events
https://github.com/pandas-dev/pandas/issues/7866
38,980,484
MDU6SXNzdWUzODk4MDQ4NA==
7,866
BUG/API: bug in multi-index slicing with missing indexers
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-29T11:39:45Z
2014-07-31T15:49:45Z
2014-07-30T23:48:47Z
CONTRIBUTOR
null
I think the following _could_ work and not raise `KeyError` because of a missing indexer. This would follow the API of loc which will be effectively a reindex as long as you have at least 1 found value. ``` s = pd.Series(np.arange(9),index=pd.MultiIndex.from_product([['A','B','C'],['foo','bar','baz']],names=['one','two'])).sortlevel() s.loc[['A','D']] idx = pd.IndexSlice s.loc[idx[:,['foo','bah']]] ```
{ "+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/7866/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7866/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7867
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7867/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7867/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7867/events
https://github.com/pandas-dev/pandas/pull/7867
38,981,460
MDExOlB1bGxSZXF1ZXN0MTkwMjIwOTQ=
7,867
BUG: Bug in multi-index slicing with missing indexers (GH7866)
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
9
2014-07-29T11:55:44Z
2014-07-31T11:25:56Z
2014-07-30T23:48:47Z
CONTRIBUTOR
null
closes #7866
{ "+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/7867/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7867/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7867.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7867", "merged_at": "2014-07-30T23:48:47Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7867.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7867" }
https://api.github.com/repos/pandas-dev/pandas/issues/7868
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7868/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7868/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7868/events
https://github.com/pandas-dev/pandas/issues/7868
38,985,652
MDU6SXNzdWUzODk4NTY1Mg==
7,868
Extending Dataframe
{ "avatar_url": "https://avatars.githubusercontent.com/u/40453?v=4", "events_url": "https://api.github.com/users/paddymul/events{/privacy}", "followers_url": "https://api.github.com/users/paddymul/followers", "following_url": "https://api.github.com/users/paddymul/following{/other_user}", "gists_url": "https://api.github.com/users/paddymul/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/paddymul", "id": 40453, "login": "paddymul", "node_id": "MDQ6VXNlcjQwNDUz", "organizations_url": "https://api.github.com/users/paddymul/orgs", "received_events_url": "https://api.github.com/users/paddymul/received_events", "repos_url": "https://api.github.com/users/paddymul/repos", "site_admin": false, "starred_url": "https://api.github.com/users/paddymul/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/paddymul/subscriptions", "type": "User", "url": "https://api.github.com/users/paddymul" }
[ { "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
2014-07-29T12:59:59Z
2015-03-08T16:57:52Z
2015-03-08T16:57:49Z
CONTRIBUTOR
null
I'm interested if there are recommended best practices for extending DataFrames. I work on a project where we have an API for querying a database that returns DataFrames. I basically want a way to associate extra metadata with each column in the DataFrame. At a minimum this would allow me to run commands like `df.some_column.canonical_url` and get a link back to a web service. There are some other things that I would like to do like giving columns aliases for better legends when plotted. I know I could return a wrapped DataFrame object from the api, but the DataFrame would lose its wrapper once operations were 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/7868/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7868/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7869
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7869/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7869/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7869/events
https://github.com/pandas-dev/pandas/issues/7869
39,003,517
MDU6SXNzdWUzOTAwMzUxNw==
7,869
BUG: nanops on empty Series have wrong type
{ "avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4", "events_url": "https://api.github.com/users/ischwabacher/events{/privacy}", "followers_url": "https://api.github.com/users/ischwabacher/followers", "following_url": "https://api.github.com/users/ischwabacher/following{/other_user}", "gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ischwabacher", "id": 4306187, "login": "ischwabacher", "node_id": "MDQ6VXNlcjQzMDYxODc=", "organizations_url": "https://api.github.com/users/ischwabacher/orgs", "received_events_url": "https://api.github.com/users/ischwabacher/received_events", "repos_url": "https://api.github.com/users/ischwabacher/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions", "type": "User", "url": "https://api.github.com/users/ischwabacher" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "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": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
12
2014-07-29T15:54:38Z
2014-09-13T22:59:30Z
2014-09-13T22:59:30Z
CONTRIBUTOR
null
``` python In [1]: import pandas as pd In [2]: pd.Series(dtype='m8[ns]').sum() Out[2]: 0 In [3]: pd.Series(dtype='m8[ns]').mean() Out[3]: 0 NaT dtype: timedelta64[ns] In [4]: pd.Series(dtype='m8[ns]').median() Out[4]: nan In [5]: pd.Series(dtype=float).sum() Out[5]: 0 In [6]: pd.Series([0], dtype=float).sum() Out[6]: 0.0 ``` It looks like `_wrap_results` is doing double duty, both converting an output to the right time dtype, _and_ wrapping that result in a series (I don't know why it does this), and in some cases results aren't getting wrapped. But the wrapper ignores other dtypes, which doesn't make sense to me; aside from the unfortunate fact that numpy provides no `_NA_integer` equivalent, I as a user expect the dtype of a result to depend only on the dtype of the inputs, not on their shapes or values, so it would make sense to have a more general wrapper somewhere. I'm not sure how I'd implement such a wrapper, because ideally it would be able to handle situations like that the standard deviation of a `Series` of `datetime64`s is a `timedelta64` or such. Maybe that's a bit ambitious, though, since it's inching towards a general notion of symbolic units; in such a case the user can unwrap, operate and wrap manually. It looks like there are several points in pandas/core/nanops.py where a result is returned without wrapping, and I could submit a narrow PR for just this issue but I want to wait until I have time to really go over `nanops.py` and get all of these.
{ "+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/7869/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7869/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7870
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7870/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7870/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7870/events
https://github.com/pandas-dev/pandas/issues/7870
39,005,576
MDU6SXNzdWUzOTAwNTU3Ng==
7,870
groupby filtering is missing some groups
{ "avatar_url": "https://avatars.githubusercontent.com/u/1163939?v=4", "events_url": "https://api.github.com/users/phobson/events{/privacy}", "followers_url": "https://api.github.com/users/phobson/followers", "following_url": "https://api.github.com/users/phobson/following{/other_user}", "gists_url": "https://api.github.com/users/phobson/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/phobson", "id": 1163939, "login": "phobson", "node_id": "MDQ6VXNlcjExNjM5Mzk=", "organizations_url": "https://api.github.com/users/phobson/orgs", "received_events_url": "https://api.github.com/users/phobson/received_events", "repos_url": "https://api.github.com/users/phobson/repos", "site_admin": false, "starred_url": "https://api.github.com/users/phobson/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/phobson/subscriptions", "type": "User", "url": "https://api.github.com/users/phobson" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
13
2014-07-29T16:14:26Z
2016-10-12T23:05:03Z
2014-07-30T23:15:10Z
NONE
null
I brought this up on the mailing list. @cpcloud modified my example into very concise sample showing expected and resulting output: ``` In [20]: df = pd.DataFrame([ ['best', 'a', 'x'], ['worst', 'b', 'y'], ['best', 'c', 'x'], ['best','d', 'y'], ['worst','d', 'y'], ['worst','d', 'y'], ['best','d', 'z'], ], columns=['a', 'b', 'c']) In [21]: pd.concat(v[v.a == 'best'] for _, v in df.groupby('c')) Out[21]: a b c 0 best a x 2 best c x 3 best d y # <--- missing from the next statement 6 best d z In [22]: df.groupby('c').filter(lambda g: g.a == 'best') Out[22]: a b c 0 best a x 2 best c x 6 best d z ```
{ "+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/7870/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7870/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7871
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7871/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7871/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7871/events
https://github.com/pandas-dev/pandas/pull/7871
39,014,211
MDExOlB1bGxSZXF1ZXN0MTkwNDIzMjU=
7,871
BUG/FIX: groupby should raise on multi-valued filter
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" } ]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
3
2014-07-29T17:43:20Z
2014-07-30T23:15:11Z
2014-07-30T23:15:10Z
MEMBER
null
closes #7870
{ "+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/7871/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7871/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7871.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7871", "merged_at": "2014-07-30T23:15:10Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7871.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7871" }
https://api.github.com/repos/pandas-dev/pandas/issues/7872
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7872/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7872/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7872/events
https://github.com/pandas-dev/pandas/issues/7872
39,026,626
MDU6SXNzdWUzOTAyNjYyNg==
7,872
Give all NotImplementedErrors a description
{ "avatar_url": "https://avatars.githubusercontent.com/u/1931852?v=4", "events_url": "https://api.github.com/users/hayd/events{/privacy}", "followers_url": "https://api.github.com/users/hayd/followers", "following_url": "https://api.github.com/users/hayd/following{/other_user}", "gists_url": "https://api.github.com/users/hayd/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hayd", "id": 1931852, "login": "hayd", "node_id": "MDQ6VXNlcjE5MzE4NTI=", "organizations_url": "https://api.github.com/users/hayd/orgs", "received_events_url": "https://api.github.com/users/hayd/received_events", "repos_url": "https://api.github.com/users/hayd/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hayd/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hayd/subscriptions", "type": "User", "url": "https://api.github.com/users/hayd" }
[ { "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": "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": "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": "2015-05-11T15:46:03Z", "closed_issues": 237, "created_at": "2014-10-07T14:39:07Z", "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.16.0 of course!", "due_on": "2015-05-11T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/29", "id": 816810, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODEw", "number": 29, "open_issues": 0, "state": "closed", "title": "0.16.1", "updated_at": "2017-04-16T08:39:48Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29" }
4
2014-07-29T19:36:57Z
2015-04-14T14:21:22Z
2015-04-14T14:19:43Z
CONTRIBUTOR
null
Currently some NotImplementedErrors don't have a description (most do!) . ``` raise NotImplemented # should be raise NotImplemented("short description of thing which isn't implemented") ``` I think this would be pretty useful, and makes it less confusing for users, and at least they would be pointed in the right direction to request said feature (and know which bit of specifically is NotImplemented)... You can find them all with grep (probably more usefully the same regex in your text editor): ``` grep "NotImplementedError$" pandas/**/*.py -r -n ```
{ "+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/7872/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7872/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7873
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7873/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7873/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7873/events
https://github.com/pandas-dev/pandas/issues/7873
39,027,114
MDU6SXNzdWUzOTAyNzExNA==
7,873
df.at_time NotImplementedError {asof]
{ "avatar_url": "https://avatars.githubusercontent.com/u/6827507?v=4", "events_url": "https://api.github.com/users/hdascapital/events{/privacy}", "followers_url": "https://api.github.com/users/hdascapital/followers", "following_url": "https://api.github.com/users/hdascapital/following{/other_user}", "gists_url": "https://api.github.com/users/hdascapital/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hdascapital", "id": 6827507, "login": "hdascapital", "node_id": "MDQ6VXNlcjY4Mjc1MDc=", "organizations_url": "https://api.github.com/users/hdascapital/orgs", "received_events_url": "https://api.github.com/users/hdascapital/received_events", "repos_url": "https://api.github.com/users/hdascapital/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hdascapital/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hdascapital/subscriptions", "type": "User", "url": "https://api.github.com/users/hdascapital" }
[ { "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": "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" }, { "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" } ]
closed
false
null
[]
{ "closed_at": "2015-03-23T10:50:37Z", "closed_issues": 400, "created_at": "2014-02-14T03:31:22Z", "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.15 of course!", "due_on": "2015-03-22T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/25", "id": 569113, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25/labels", "node_id": "MDk6TWlsZXN0b25lNTY5MTEz", "number": 25, "open_issues": 0, "state": "closed", "title": "0.16.0", "updated_at": "2017-08-24T09:17:49Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/25" }
12
2014-07-29T19:42:25Z
2014-11-18T11:18:52Z
2014-11-18T11:18:52Z
NONE
null
The asof functionality int the at_time function gives a NotImplemented Error `df1 = df.at_time(time(15, 0), asof=True)` asof is very useful. If implemented it would allow us to use the at_time functionality and work with data that might not be complete, or don't have homogeneous time stamps. It would enable us to get the "closest" observation to the desired time for subsetting. Thanks Hernan `NotImplementedError Traceback (most recent call last) <ipython-input-28-3c10b7e963c9> in <module>() ----> 1 df2 = df1.at_time(time(15, 0), asof=True) C:\Users\Hernan\AppData\Local\Enthought\Canopy\User\lib\site-packages\pandas\core\generic.pyc in at_time(self, time, asof) 2767 """ 2768 try: -> 2769 indexer = self.index.indexer_at_time(time, asof=asof) 2770 return self.take(indexer, convert=False) 2771 except AttributeError: C:\Users\Hernan\AppData\Local\Enthought\Canopy\User\lib\site-packages\pandas\tseries\index.pyc in indexer_at_time(self, time, asof) 1689 1690 if asof: -> 1691 raise NotImplementedError 1692 1693 if isinstance(time, compat.string_types): NotImplementedError:`
{ "+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/7873/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7873/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7874
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7874/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7874/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7874/events
https://github.com/pandas-dev/pandas/pull/7874
39,035,225
MDExOlB1bGxSZXF1ZXN0MTkwNTQ2NzI=
7,874
ENH add level argument to set_names, set_levels and set_labels (GH7792)
{ "avatar_url": "https://avatars.githubusercontent.com/u/222778?v=4", "events_url": "https://api.github.com/users/mtrbean/events{/privacy}", "followers_url": "https://api.github.com/users/mtrbean/followers", "following_url": "https://api.github.com/users/mtrbean/following{/other_user}", "gists_url": "https://api.github.com/users/mtrbean/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/mtrbean", "id": 222778, "login": "mtrbean", "node_id": "MDQ6VXNlcjIyMjc3OA==", "organizations_url": "https://api.github.com/users/mtrbean/orgs", "received_events_url": "https://api.github.com/users/mtrbean/received_events", "repos_url": "https://api.github.com/users/mtrbean/repos", "site_admin": false, "starred_url": "https://api.github.com/users/mtrbean/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/mtrbean/subscriptions", "type": "User", "url": "https://api.github.com/users/mtrbean" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
3
2014-07-29T21:07:09Z
2014-07-30T22:38:48Z
2014-07-30T22:13:57Z
CONTRIBUTOR
null
Closes #7792 New `level` argument: ``` set_names(self, names, level=None, inplace=False) set_levels(self, levels, level=None, inplace=False, verify_integrity=True) set_labels(self, labels, level=None, inplace=False, verify_integrity=True) ``` e.g. set_names('foo',level=1) set_names(['foo','bar'],level=[1,2]) set_levels(['a','b','c'],level=1) set_levels([['a','b','c'],[1,2,3]],level=[1,2])
{ "+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/7874/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7874/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7874.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7874", "merged_at": "2014-07-30T22:13:57Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7874.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7874" }
https://api.github.com/repos/pandas-dev/pandas/issues/7875
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7875/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7875/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7875/events
https://github.com/pandas-dev/pandas/issues/7875
39,072,440
MDU6SXNzdWUzOTA3MjQ0MA==
7,875
ValueError Exception during reset_index of timezone-aware data
{ "avatar_url": "https://avatars.githubusercontent.com/u/200544?v=4", "events_url": "https://api.github.com/users/vac/events{/privacy}", "followers_url": "https://api.github.com/users/vac/followers", "following_url": "https://api.github.com/users/vac/following{/other_user}", "gists_url": "https://api.github.com/users/vac/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/vac", "id": 200544, "login": "vac", "node_id": "MDQ6VXNlcjIwMDU0NA==", "organizations_url": "https://api.github.com/users/vac/orgs", "received_events_url": "https://api.github.com/users/vac/received_events", "repos_url": "https://api.github.com/users/vac/repos", "site_admin": false, "starred_url": "https://api.github.com/users/vac/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/vac/subscriptions", "type": "User", "url": "https://api.github.com/users/vac" }
[]
closed
false
null
[]
null
1
2014-07-30T08:56:03Z
2014-07-30T11:06:51Z
2014-07-30T11:06:51Z
NONE
null
``` python import pandas as pd import numpy as np from datetime import datetime import pytz print "This is working:" data = {23:np.nan, 24:-1949, 25:-1848, 26: np.nan} date_without_timezone = datetime.now() df = pd.DataFrame(data, index=[date_without_timezone,]) print df print print df.index print print df.stack() print print df.stack().reset_index() #Good (expected) result print print "--------------------" print print "This is NOT working:" date_with_timezone = datetime.now(pytz.utc) df_with_timezone = pd.DataFrame(data, index=[date_with_timezone,]) print df_with_timezone print print df_with_timezone.index print print df_with_timezone.stack() print print df_with_timezone.stack().reset_index() # EXCEPTION: ValueError: Length of values does not match length of index ``` ## INSTALLED VERSIONS commit: None python: 2.7.5.final.0 python-bits: 32 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel byteorder: little LC_ALL: None LANG: PL pandas: 0.14.1 nose: None Cython: None numpy: 1.8.1 scipy: None statsmodels: None IPython: 2.1.0 sphinx: None patsy: None scikits.timeseries: None dateutil: 2.1 pytz: 2014.2 bottleneck: None tables: None numexpr: None matplotlib: 1.3.1 openpyxl: 2.0.3 xlrd: 0.9.3 xlwt: 0.7.5 xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.4 pymysql: None psycopg2: 2.5.3 (dt dec pq3 ext)
{ "+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/7875/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7875/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7876
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7876/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7876/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7876/events
https://github.com/pandas-dev/pandas/issues/7876
39,079,910
MDU6SXNzdWUzOTA3OTkxMA==
7,876
ImportError: cannot import name _get_all_lines, when trying to plot a grouped DF
{ "avatar_url": "https://avatars.githubusercontent.com/u/6293472?v=4", "events_url": "https://api.github.com/users/lJoublanc/events{/privacy}", "followers_url": "https://api.github.com/users/lJoublanc/followers", "following_url": "https://api.github.com/users/lJoublanc/following{/other_user}", "gists_url": "https://api.github.com/users/lJoublanc/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/lJoublanc", "id": 6293472, "login": "lJoublanc", "node_id": "MDQ6VXNlcjYyOTM0NzI=", "organizations_url": "https://api.github.com/users/lJoublanc/orgs", "received_events_url": "https://api.github.com/users/lJoublanc/received_events", "repos_url": "https://api.github.com/users/lJoublanc/repos", "site_admin": false, "starred_url": "https://api.github.com/users/lJoublanc/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/lJoublanc/subscriptions", "type": "User", "url": "https://api.github.com/users/lJoublanc" }
[]
closed
false
null
[]
null
4
2014-07-30T10:38:02Z
2014-07-30T11:26:42Z
2014-07-30T11:20:59Z
NONE
null
I have a DataFrame of stock close prices with a DatetimeIndex , `close`. ``` BARC:LON HSBA:LON LLOY:LON STAN:LON timestamp 2014-07-03 08:02:00 217.551 601.938 76.2100 1223.36 2014-07-03 08:04:00 217.200 602.100 75.8520 1220.00 2014-07-03 08:06:00 217.500 602.700 75.8700 1221.50 2014-07-03 08:08:00 217.750 602.400 75.9777 1222.50 2014-07-03 08:10:00 218.450 602.675 75.9440 1221.50 ``` I want to plot these in separate graphs for each day, so I do: ``` for day,data in close.groupby(close.index.date): data.plot(title=day) show() ``` But this throws ``` C:\Users\xxx\local\Enthought\Canopy\User\lib\site-packages\pandas\tseries\plotting.py in <module>() 19 TimeSeries_DateFormatter) 20 ---> 21 from pandas.tools.plotting import _get_all_lines, _get_xlim 22 23 #---------------------------------------------------------------------- ImportError: cannot import name _get_all_lines ``` I can't find _get_all_lines anywhere. I recall doing this on my linux machine and it worked fine. This is running on Windows, pandas 0.14.1. Also this works if I call matplotlib directly using plot(data), so the code doesn't seem to be at fault.
{ "+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/7876/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7876/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7877
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7877/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7877/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7877/events
https://github.com/pandas-dev/pandas/issues/7877
39,086,490
MDU6SXNzdWUzOTA4NjQ5MA==
7,877
ENH: support both SQLAlchemy engines and connections
{ "avatar_url": "https://avatars.githubusercontent.com/u/6059365?v=4", "events_url": "https://api.github.com/users/maxgrenderjones/events{/privacy}", "followers_url": "https://api.github.com/users/maxgrenderjones/followers", "following_url": "https://api.github.com/users/maxgrenderjones/following{/other_user}", "gists_url": "https://api.github.com/users/maxgrenderjones/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/maxgrenderjones", "id": 6059365, "login": "maxgrenderjones", "node_id": "MDQ6VXNlcjYwNTkzNjU=", "organizations_url": "https://api.github.com/users/maxgrenderjones/orgs", "received_events_url": "https://api.github.com/users/maxgrenderjones/received_events", "repos_url": "https://api.github.com/users/maxgrenderjones/repos", "site_admin": false, "starred_url": "https://api.github.com/users/maxgrenderjones/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/maxgrenderjones/subscriptions", "type": "User", "url": "https://api.github.com/users/maxgrenderjones" }
[ { "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": "2015-10-09T18:34:35Z", "closed_issues": 593, "created_at": "2015-03-23T10:47:38Z", "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": "2015-10-10T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/34", "id": 1033710, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels", "node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==", "number": 34, "open_issues": 0, "state": "closed", "title": "0.17.0", "updated_at": "2016-12-11T14:02:02Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34" }
14
2014-07-30T12:24:35Z
2015-07-03T17:44:56Z
2015-07-03T17:44:56Z
CONTRIBUTOR
null
Feature request for supporting also Connection objects instead of only Engines. Also reported in #8533, #10104 --- My use case - I often add a week's worth of data (stored in a pandas dataframe) to an existing table. Before I add the data, I want to be able to delete any existing data for this week from the table, but I want the whole thing to be wrapped in a transaction so I'm not left in a mess halfway through. Here's what I therefore want to be able to do ``` python # runs a transaction with engine.begin() as connection: r1 = connection.execute(table.delete().where(table.c[WEEK]==week)) data.to_sql(table.name, connection, if_exists='append') ``` i.e. my change is that I want to be able to pass a SQLAlchemy `Connection` object into `DataFrame.to_sql` instead of an `Engine`. (The underlying `Engine` of the `Connection` object can be accessed as `.engine`, so we should still be able to pull metadata etc)
{ "+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/7877/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7877/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7878
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7878/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7878/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7878/events
https://github.com/pandas-dev/pandas/issues/7878
39,086,908
MDU6SXNzdWUzOTA4NjkwOA==
7,878
Timestamp losing nanosecond accuracy when reading from string
{ "avatar_url": "https://avatars.githubusercontent.com/u/8309785?v=4", "events_url": "https://api.github.com/users/cyber42/events{/privacy}", "followers_url": "https://api.github.com/users/cyber42/followers", "following_url": "https://api.github.com/users/cyber42/following{/other_user}", "gists_url": "https://api.github.com/users/cyber42/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cyber42", "id": 8309785, "login": "cyber42", "node_id": "MDQ6VXNlcjgzMDk3ODU=", "organizations_url": "https://api.github.com/users/cyber42/orgs", "received_events_url": "https://api.github.com/users/cyber42/received_events", "repos_url": "https://api.github.com/users/cyber42/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cyber42/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cyber42/subscriptions", "type": "User", "url": "https://api.github.com/users/cyber42" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
3
2014-07-30T12:30:58Z
2014-08-11T12:17:58Z
2014-08-11T12:17:58Z
NONE
null
Hi, I'm on pandas 0.14.1. Timestamp seems to lose nanoseconds when converting to string and back. Wonder if this is bug. ``` python In [18]: pd.Timestamp('20010101 00:00:00')+pd.tseries.offsets.Nano() Out[18]: Timestamp('2001-01-01 00:00:00.000000001') In [19]: pd.Timestamp('2001-01-01 00:00:00.000000001') Out[19]: Timestamp('2001-01-01 00:00:00') ``` Thanks, Mark ## INSTALLED VERSIONS commit: None python: 2.7.5.final.0 python-bits: 64 OS: Linux OS-release: 3.11.0-26-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_GB.UTF-8 pandas: 0.14.1 nose: 1.3.0 Cython: 0.19.2 numpy: 1.8.1 scipy: 0.13.2 statsmodels: 0.5.0 IPython: 0.13.2 sphinx: None patsy: 0.2.1 scikits.timeseries: None dateutil: 2.2 pytz: 2014.2 bottleneck: 0.8.0 tables: 3.0.0 numexpr: 2.3 matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: 0.8 apiclient: None rpy2: None sqlalchemy: None pymysql: None psycopg2: 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/7878/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7878/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7879
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7879/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7879/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7879/events
https://github.com/pandas-dev/pandas/issues/7879
39,093,890
MDU6SXNzdWUzOTA5Mzg5MA==
7,879
panel.to_frame() discards nan by default
{ "avatar_url": "https://avatars.githubusercontent.com/u/1055581?v=4", "events_url": "https://api.github.com/users/hensing/events{/privacy}", "followers_url": "https://api.github.com/users/hensing/followers", "following_url": "https://api.github.com/users/hensing/following{/other_user}", "gists_url": "https://api.github.com/users/hensing/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/hensing", "id": 1055581, "login": "hensing", "node_id": "MDQ6VXNlcjEwNTU1ODE=", "organizations_url": "https://api.github.com/users/hensing/orgs", "received_events_url": "https://api.github.com/users/hensing/received_events", "repos_url": "https://api.github.com/users/hensing/repos", "site_admin": false, "starred_url": "https://api.github.com/users/hensing/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/hensing/subscriptions", "type": "User", "url": "https://api.github.com/users/hensing" }
[ { "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" }
17
2014-07-30T13:54:09Z
2018-07-06T20:21:04Z
2017-07-11T09:58:47Z
NONE
null
As already described in issue #3690, panel.to_frame discards all minor entries with nan in the data, which can be very confusing. I believe there should be a warning, first time data is dropped or the opposite should be the default behavior. The warning could be treated similar to a ZeroDivisionWarning in numpy only on the first occurrence. See below for an example: ``` python df1 = pd.DataFrame(np.random.randn(2, 3), columns=['A', 'B', 'C'], index=['foo', 'bar']) df2 = pd.DataFrame(np.random.randn(2, 3), columns=['A', 'B', 'C'], index=['foo', 'bar']) df2.loc['foo', 'B'] = np.nan mydict = {'df1': df1, 'df2': df2} pd.Panel(mydict).to_frame() ``` Output: | major | minor | df1 | df2 | | --- | --- | --- | --- | | foo | A | 1.9097545931480682 | -0.6710202447941566 | | foo | C | 1.3335254610685865 | 1.53372538551507 | | bar | A | 0.3145550744497975 | -1.7221352144306152 | | bar | B | -0.15681197178861878 | -1.2308510354641322 | | bar | C | -0.09598971674309852 | -0.1268630728124487 | Using filter_observations=False, nan won't be dropped: ``` python pd.Panel(mydict).to_frame(filter_observations=False) ``` Output: | major | minor | df1 | df2 | | --- | --- | --- | --- | | foo | A | 1.9097545931480682 | -0.6710202447941566 | | foo | B | 2.092552358833253 | | | foo | C | 1.333525461068586 | 1.53372538551507 | | bar | A | 0.3145550744497975 | -1.7221352144306152 | | bar | B | -0.15681197178861878 | -1.2308510354641322 | | bar | C | -0.09598971674309852 | -0.1268630728124487 |
{ "+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/7879/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7879/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7880
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7880/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7880/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7880/events
https://github.com/pandas-dev/pandas/issues/7880
39,110,192
MDU6SXNzdWUzOTExMDE5Mg==
7,880
Intersection of non-overlapping DatetimeIndexes with tz set fails
{ "avatar_url": "https://avatars.githubusercontent.com/u/4625457?v=4", "events_url": "https://api.github.com/users/alorenzo175/events{/privacy}", "followers_url": "https://api.github.com/users/alorenzo175/followers", "following_url": "https://api.github.com/users/alorenzo175/following{/other_user}", "gists_url": "https://api.github.com/users/alorenzo175/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/alorenzo175", "id": 4625457, "login": "alorenzo175", "node_id": "MDQ6VXNlcjQ2MjU0NTc=", "organizations_url": "https://api.github.com/users/alorenzo175/orgs", "received_events_url": "https://api.github.com/users/alorenzo175/received_events", "repos_url": "https://api.github.com/users/alorenzo175/repos", "site_admin": false, "starred_url": "https://api.github.com/users/alorenzo175/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/alorenzo175/subscriptions", "type": "User", "url": "https://api.github.com/users/alorenzo175" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
3
2014-07-30T16:24:32Z
2014-08-03T01:41:58Z
2014-08-03T01:41:58Z
CONTRIBUTOR
null
When taking the intersection of two `DatetimeIndex`s that have timezone information and don't overlap, I get an`IndexError`. I don't have any problems if they don't have any timezone information or they do overlap. ``` python import pandas as pd a = pd.date_range('2014-07-07 12', freq='3min', periods=20,) b = pd.date_range('2014-07-07 13', freq='3min', periods=20,) print a.intersection(b) c = a.tz_localize('MST') d = b.tz_localize('MST') print c.intersection(d) ``` ``` python <class 'pandas.tseries.index.DatetimeIndex'> Length: 0, Freq: None, Timezone: None --------------------------------------------------------------------------- IndexError Traceback (most recent call last) <ipython-input-17-b073ce8aa1f2> in <module>() 7 c = a.tz_localize('MST') 8 d = b.tz_localize('MST') ----> 9 print c.intersection(d) /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/pandas/tseries/index.pyc in intersection(self, other) 1131 if isinstance(result, DatetimeIndex): 1132 if result.freq is None: -> 1133 result.offset = to_offset(result.inferred_freq) 1134 return result 1135 /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/pandas/lib.so in pandas.lib.cache_readonly.__get__ (pandas/lib.c:36380)() /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/pandas/tseries/index.pyc in inferred_freq(self) 1415 def inferred_freq(self): 1416 try: -> 1417 return infer_freq(self) 1418 except ValueError: 1419 return None /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/pandas/tseries/frequencies.pyc in infer_freq(index, warn) 657 658 index = pd.DatetimeIndex(index) --> 659 inferer = _FrequencyInferer(index, warn=warn) 660 return inferer.get_freq() 661 /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/pandas/tseries/frequencies.pyc in __init__(self, index, warn) 697 698 if index.tz is not None: --> 699 self.values = _tz_convert_with_transitions(self.values,'UTC',index.tz) 700 701 self.warn = warn /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/pandas/tseries/frequencies.pyc in _tz_convert_with_transitions(values, to_tz, from_tz) 685 return tslib.tz_convert(values,to_tz,from_tz) 686 --> 687 return np.vectorize(f)(values) 688 689 class _FrequencyInferer(object): /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/numpy/lib/function_base.pyc in __call__(self, *args, **kwargs) 1571 vargs.extend([kwargs[_n] for _n in names]) 1572 -> 1573 return self._vectorize_call(func=func, args=vargs) 1574 1575 def _get_ufunc_and_otypes(self, func, args): /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/numpy/lib/function_base.pyc in _vectorize_call(self, func, args) 1631 _res = func() 1632 else: -> 1633 ufunc, otypes = self._get_ufunc_and_otypes(func=func, args=args) 1634 1635 # Convert args to object arrays first /home/supas/forecasting_python/python_env_051214/lib/python2.7/site-packages/numpy/lib/function_base.pyc in _get_ufunc_and_otypes(self, func, args) 1594 # Assumes that ufunc first evaluates the 0th elements in the input 1595 # arrays (the input values are not checked to ensure this) -> 1596 inputs = [asarray(_a).flat[0] for _a in args] 1597 outputs = func(*inputs) 1598 IndexError: index 0 is out of bounds for axis 0 with size 0 ``` My system info is: ``` INSTALLED VERSIONS ------------------ commit: None python: 2.7.6.final.0 python-bits: 64 OS: Linux OS-release: 2.6.32-431.17.1.el6.x86_64 machine: x86_64 processor: x86_64 byteorder: little LC_ALL: None LANG: en_US.UTF-8 pandas: 0.14.1 nose: 1.3.3 Cython: 0.20.1 numpy: 1.8.1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.0.0 sphinx: 1.2.2 patsy: 0.2.1 scikits.timeseries: None dateutil: 2.2 pytz: 2014.2 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.3.1 openpyxl: 1.8.6 xlrd: None xlwt: None xlsxwriter: None lxml: 3.3.5 bs4: 4.3.2 html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.4 pymysql: None psycopg2: 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/7880/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7880/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7881
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7881/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7881/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7881/events
https://github.com/pandas-dev/pandas/pull/7881
39,113,245
MDExOlB1bGxSZXF1ZXN0MTkxMDIwNjU=
7,881
PERF: groupby / frame apply optimization
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "a10c02", "default": false, "description": "Memory or execution speed performance", "id": 8935311, "name": "Performance", "node_id": "MDU6TGFiZWw4OTM1MzEx", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance" }, { "color": "e11d21", "default": false, "description": "Functionality that used to work in a prior pandas version", "id": 32815646, "name": "Regression", "node_id": "MDU6TGFiZWwzMjgxNTY0Ng==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
1
2014-07-30T16:50:51Z
2014-07-30T17:56:01Z
2014-07-30T17:56:01Z
CONTRIBUTOR
null
``` ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- groupby_frame_apply_overhead | 9.1400 | 70.3743 | 0.1299 | groupby_frame_apply | 43.5640 | 186.6427 | 0.2334 | groupby_apply_dict_return | 39.6016 | 80.1926 | 0.4938 | ```
{ "+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/7881/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7881/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7881.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7881", "merged_at": "2014-07-30T17:56:01Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7881.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7881" }
https://api.github.com/repos/pandas-dev/pandas/issues/7882
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7882/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7882/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7882/events
https://github.com/pandas-dev/pandas/issues/7882
39,124,565
MDU6SXNzdWUzOTEyNDU2NQ==
7,882
Comparison with R should discuss dcast as well as aggregate
{ "avatar_url": "https://avatars.githubusercontent.com/u/1808250?v=4", "events_url": "https://api.github.com/users/abarnert/events{/privacy}", "followers_url": "https://api.github.com/users/abarnert/followers", "following_url": "https://api.github.com/users/abarnert/following{/other_user}", "gists_url": "https://api.github.com/users/abarnert/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/abarnert", "id": 1808250, "login": "abarnert", "node_id": "MDQ6VXNlcjE4MDgyNTA=", "organizations_url": "https://api.github.com/users/abarnert/orgs", "received_events_url": "https://api.github.com/users/abarnert/received_events", "repos_url": "https://api.github.com/users/abarnert/repos", "site_admin": false, "starred_url": "https://api.github.com/users/abarnert/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/abarnert/subscriptions", "type": "User", "url": "https://api.github.com/users/abarnert" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" } ]
open
false
null
[]
{ "closed_at": null, "closed_issues": 278, "created_at": "2013-01-06T03:02:01Z", "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": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)", "due_on": "2022-12-31T08:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/20", "id": 239227, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels", "node_id": "MDk6TWlsZXN0b25lMjM5MjI3", "number": 20, "open_issues": 108, "state": "open", "title": "Someday", "updated_at": "2021-08-08T01:48:22Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20" }
4
2014-07-30T18:52:32Z
2021-02-07T19:00:26Z
null
NONE
null
The [Comparison with R](http://pandas.pydata.org/pandas-docs/stable/comparison_with_r.html) docs have a great section on how to go from R's `aggregate` function to Pandas's `groupby`, but as [this StackOverflow](http://stackoverflow.com/questions/25043927/dcast-replicate-in-python) question shows, there are similar but not identical problems going from R's `dcast` to Panda's `groupby` and `aggregate`. I'm not sure exactly what the documentation should say here. (By the way, I'm also by no means sure that my answer to that question was the best one, so feel free to chime in there too…), just that maybe it should say _something_.
{ "+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/7882/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7882/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7883
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7883/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7883/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7883/events
https://github.com/pandas-dev/pandas/issues/7883
39,134,825
MDU6SXNzdWUzOTEzNDgyNQ==
7,883
Unable to retrieve same-index dataframe with the last item per group
{ "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": "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": "e102d8", "default": false, "description": "Unexpected or buggy dtype conversions", "id": 31404521, "name": "Dtype Conversions", "node_id": "MDU6TGFiZWwzMTQwNDUyMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions" }, { "color": "0e8a16", "default": true, "description": null, "id": 717120670, "name": "good first issue", "node_id": "MDU6TGFiZWw3MTcxMjA2NzA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue" }, { "color": "cdea3c", "default": false, "description": "Unit test(s) needed to prevent regressions", "id": 986278782, "name": "Needs Tests", "node_id": "MDU6TGFiZWw5ODYyNzg3ODI=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Tests" } ]
closed
false
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" } ]
{ "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" }
29
2014-07-30T20:41:51Z
2019-12-31T15:04:44Z
2019-12-31T15:04:44Z
CONTRIBUTOR
null
The original thread is [here](http://stackoverflow.com/questions/25046252/filling-in-with-the-last-entry-of-the-group?noredirect=1#comment38958154_25046252). ``` python > df C D E A B bar one -1.350006 0.260339 2 three -0.236451 -0.056614 0 flux six -0.515571 -0.155078 1 three -0.365032 1.055669 2 foo five 1.145811 1.514191 0 one -0.108427 -0.643262 2 two 0.286897 0.405798 2 two -1.452286 1.149264 2 ``` The goal is to get a dataframe with the same index with each entry having the last value in the groups associated with `A`, i.e. ``` > df C D E A B bar one -0.236451 -0.056614 2 three -0.236451 -0.056614 2 flux six -0.365032 1.055669 2 three -0.365032 1.055669 2 foo five -1.452286 1.149264 2 one -1.452286 1.149264 2 two -1.452286 1.149264 2 two -1.452286 1.149264 2 ``` However, none of the following work: - `df.groupby(level='A').apply(lambda x: x[-1])` - `df.groupby(level='A').transform(pd.Series.last)` - `df.groupby(level='A').transform(lambda x: x.iloc[-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/7883/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7883/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7884
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7884/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7884/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7884/events
https://github.com/pandas-dev/pandas/issues/7884
39,156,519
MDU6SXNzdWUzOTE1NjUxOQ==
7,884
BUG: ewm*() functions interpret min_periods off by one?
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
3
2014-07-31T02:13:35Z
2014-08-20T01:51:33Z
2014-08-02T13:46:41Z
CONTRIBUTOR
null
In the examples below with `min_periods=2`, `expanding_mean/std` start to give values once there are two values, but `ewma/std` only once there are three values. Is this intentional? It looks like a bug to me. ``` In [1]: from pandas import Series, expanding_mean, expanding_std, ewma, ewmstd, show_versions In [2]: s = Series(range(4)) In [3]: expanding_mean(s, min_periods=2) Out[3]: 0 NaN 1 0.5 2 1.0 3 1.5 dtype: float64 In [4]: expanding_std(s, min_periods=2) Out[4]: 0 NaN 1 0.707107 2 1.000000 3 1.290994 dtype: float64 In [5]: ewma(s, min_periods=2, halflife=3.) Out[5]: 0 NaN 1 NaN 2 1.152678 3 1.784530 dtype: float64 In [6]: ewmstd(s, min_periods=2, halflife=3.) Out[6]: 0 NaN 1 NaN 2 0.856493 3 1.162100 dtype: float64 In [7]: show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.14.1 nose: 1.3.3 Cython: 0.20.2 numpy: 1.9.0b1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.1.0 sphinx: 1.2.2 patsy: 0.3.0 scikits.timeseries: None dateutil: 2.2 pytz: 2014.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.7 pymysql: None psycopg2: 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/7884/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7884/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7885
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7885/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7885/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7885/events
https://github.com/pandas-dev/pandas/issues/7885
39,157,965
MDU6SXNzdWUzOTE1Nzk2NQ==
7,885
BUG: using pd.Grouper with a multi-level index and specifying level (and freq) buggy
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "729FCF", "default": false, "description": null, "id": 233160, "name": "Groupby", "node_id": "MDU6TGFiZWwyMzMxNjA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby" }, { "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" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-31T02:50:57Z
2014-09-07T14:30:53Z
2014-09-07T14:30:53Z
CONTRIBUTOR
null
http://stackoverflow.com/questions/25050015/resampling-over-dates-in-both-levels-of-a-multiindex-pandas-dataframe/25050074#25050074 ``` from datetime import date d0 = date.today() - timedelta(days=14) dates = pd.date_range(d0, date.today()) date_index = pd.MultiIndex.from_product([dates, dates], names=['cohort_date', 'event_date']) df = pd.DataFrame(np.random.randint(0, 100, 225), index=date_index) ``` Works ``` df.reset_index().groupby([pd.Grouper(key='cohort_date',freq='W'),pd.Grouper(key='event_date',freq='W')]).sum() ``` This should be equivalent, but raises ``` df.groupby([pd.Grouper(level='cohort_date',freq='W'),pd.Grouper(level='event_date',freq='W')]).sum() ```
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7885/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7885/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7886
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7886/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7886/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7886/events
https://github.com/pandas-dev/pandas/issues/7886
39,185,773
MDU6SXNzdWUzOTE4NTc3Mw==
7,886
ERR: reindexed non-included labels on a multiindex are dropped
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "3465A4", "default": false, "description": null, "id": 134699, "name": "Docs", "node_id": "MDU6TGFiZWwxMzQ2OTk=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs" }, { "color": "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": "ffa0ff", "default": false, "description": "Incorrect or improved errors from pandas", "id": 42670965, "name": "Error Reporting", "node_id": "MDU6TGFiZWw0MjY3MDk2NQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
17
2014-07-31T11:32:38Z
2014-08-01T00:54:35Z
2014-07-31T17:03:41Z
CONTRIBUTOR
null
related #4088 related #7867 I think this should raise as this is not clear how this should work (e.g. should you get all the other levels set to `nan`?) or see my comment below, maybe just document? ``` In [11]: s = pd.Series(np.arange(9),index=pd.MultiIndex.from_product([['A','B','C'],['foo','bar','baz']],names=['one','two'])).sortlevel() In [12]: s Out[12]: one two A bar 1 baz 2 foo 0 B bar 4 baz 5 foo 3 C bar 7 baz 8 foo 6 dtype: int64 In [13]: s.reindex(['A','B','D'],level=0) Out[13]: one two A bar 1 baz 2 foo 0 B bar 4 baz 5 foo 3 dtype: int64 ```
{ "+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/7886/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7886/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7887
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7887/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7887/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7887/events
https://github.com/pandas-dev/pandas/issues/7887
39,186,033
MDU6SXNzdWUzOTE4NjAzMw==
7,887
API: should allow setting with enlargement with list-likes
{ "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": "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": "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": 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" }
8
2014-07-31T11:36:43Z
2021-04-11T04:59:23Z
2021-04-11T04:59:23Z
CONTRIBUTOR
null
from #7867 ``` In [1]: s = pd.Series([1,2,3]) In [2]: s Out[2]: 0 1 1 2 2 3 dtype: int64 # this is de-facto: s.reindex([[1,2,3]]) In [3]: s.loc[[1,2,3]] Out[3]: 1 2 2 3 3 NaN dtype: float64 ``` should this work? ``` In [4]: s.loc[[1,2,3]] = 4 KeyError: '[3] not in index' ``` (Doing this with only included labels works)
{ "+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/7887/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7887/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7888
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7888/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7888/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7888/events
https://github.com/pandas-dev/pandas/issues/7888
39,191,690
MDU6SXNzdWUzOTE5MTY5MA==
7,888
BUG: creating multi-index with datetimes in the levels
{ "avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4", "events_url": "https://api.github.com/users/jreback/events{/privacy}", "followers_url": "https://api.github.com/users/jreback/followers", "following_url": "https://api.github.com/users/jreback/following{/other_user}", "gists_url": "https://api.github.com/users/jreback/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/jreback", "id": 953992, "login": "jreback", "node_id": "MDQ6VXNlcjk1Mzk5Mg==", "organizations_url": "https://api.github.com/users/jreback/orgs", "received_events_url": "https://api.github.com/users/jreback/received_events", "repos_url": "https://api.github.com/users/jreback/repos", "site_admin": false, "starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/jreback/subscriptions", "type": "User", "url": "https://api.github.com/users/jreback" }
[ { "color": "e10c02", "default": false, "description": null, "id": 76811, "name": "Bug", "node_id": "MDU6TGFiZWw3NjgxMQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug" }, { "color": "AFEEEE", "default": false, "description": null, "id": 211840, "name": "Timeseries", "node_id": "MDU6TGFiZWwyMTE4NDA=", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries" }, { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
0
2014-07-31T12:58:58Z
2014-09-14T01:09:42Z
2014-09-14T01:09:42Z
CONTRIBUTOR
null
http://stackoverflow.com/questions/25059140/pandas-multiindex-not-working-with-read-csv-and-datetime-objects/25059472#25059472 ``` In [3]: date1 = datetime.date.today() In [4]: date2 = datetime.date.today().replace(month=1) In [5]: date_cols=['date1', 'date2'] In [6]: index = pd.MultiIndex.from_product([[date1],[date2]]) ``` The first level of this multi-index is a `Index` of object dtyped `datetimes`, rather than a `DatetimeIndex`. might be a bug in the creation process
{ "+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/7888/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7888/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7889
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7889/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7889/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7889/events
https://github.com/pandas-dev/pandas/issues/7889
39,213,500
MDU6SXNzdWUzOTIxMzUwMA==
7,889
Empty product not equal to 1
{ "avatar_url": "https://avatars.githubusercontent.com/u/4514101?v=4", "events_url": "https://api.github.com/users/anderslundstedt/events{/privacy}", "followers_url": "https://api.github.com/users/anderslundstedt/followers", "following_url": "https://api.github.com/users/anderslundstedt/following{/other_user}", "gists_url": "https://api.github.com/users/anderslundstedt/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/anderslundstedt", "id": 4514101, "login": "anderslundstedt", "node_id": "MDQ6VXNlcjQ1MTQxMDE=", "organizations_url": "https://api.github.com/users/anderslundstedt/orgs", "received_events_url": "https://api.github.com/users/anderslundstedt/received_events", "repos_url": "https://api.github.com/users/anderslundstedt/repos", "site_admin": false, "starred_url": "https://api.github.com/users/anderslundstedt/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/anderslundstedt/subscriptions", "type": "User", "url": "https://api.github.com/users/anderslundstedt" }
[ { "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": "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
{ "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" }
[ { "avatar_url": "https://avatars.githubusercontent.com/u/417981?v=4", "events_url": "https://api.github.com/users/cpcloud/events{/privacy}", "followers_url": "https://api.github.com/users/cpcloud/followers", "following_url": "https://api.github.com/users/cpcloud/following{/other_user}", "gists_url": "https://api.github.com/users/cpcloud/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/cpcloud", "id": 417981, "login": "cpcloud", "node_id": "MDQ6VXNlcjQxNzk4MQ==", "organizations_url": "https://api.github.com/users/cpcloud/orgs", "received_events_url": "https://api.github.com/users/cpcloud/received_events", "repos_url": "https://api.github.com/users/cpcloud/repos", "site_admin": false, "starred_url": "https://api.github.com/users/cpcloud/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/cpcloud/subscriptions", "type": "User", "url": "https://api.github.com/users/cpcloud" } ]
{ "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" }
30
2014-07-31T16:42:43Z
2017-12-13T22:22:23Z
2017-12-13T22:22:19Z
NONE
null
``` In [1]: import pandas as pd In [2]: pd.Series().product() Out[2]: nan ``` I excepted: ``` Out[2]: 1 ``` http://en.wikipedia.org/wiki/Empty_product
{ "+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/7889/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7889/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7890
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7890/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7890/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7890/events
https://github.com/pandas-dev/pandas/issues/7890
39,215,410
MDU6SXNzdWUzOTIxNTQxMA==
7,890
API: add 'level' kwarg for Index.isin method
{ "avatar_url": "https://avatars.githubusercontent.com/u/579798?v=4", "events_url": "https://api.github.com/users/immerrr/events{/privacy}", "followers_url": "https://api.github.com/users/immerrr/followers", "following_url": "https://api.github.com/users/immerrr/following{/other_user}", "gists_url": "https://api.github.com/users/immerrr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/immerrr", "id": 579798, "login": "immerrr", "node_id": "MDQ6VXNlcjU3OTc5OA==", "organizations_url": "https://api.github.com/users/immerrr/orgs", "received_events_url": "https://api.github.com/users/immerrr/received_events", "repos_url": "https://api.github.com/users/immerrr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/immerrr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/immerrr/subscriptions", "type": "User", "url": "https://api.github.com/users/immerrr" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
4
2014-07-31T17:03:42Z
2014-08-04T20:26:24Z
2014-08-04T20:26:24Z
CONTRIBUTOR
null
xref #7886 It would be nice to be able to write: ``` python s[s.index.isin(['a', 'b', 'c'], level='foo')] ``` instead of ``` python s[s.index.get_level_values('foo').isin(['a', 'b', 'c'])] ``` The former variant is not only shorter but is also potentially more performant: one only has to look up levels in given container and then operate on labels only avoiding instantiation of sub-index completely. Default value should be `None`, plain `Index` objects should only accept `None`, `0`, and, `Index.name` for the sake of consistency (the last one is especially arguable).
{ "+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/7890/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7890/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7891
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7891/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7891/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7891/events
https://github.com/pandas-dev/pandas/pull/7891
39,216,397
MDExOlB1bGxSZXF1ZXN0MTkxNjUxMDE=
7,891
CLN/INT: remove Index as a sub-class of NDArray
{ "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": "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": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "fbca04", "default": false, "description": "Related to non-user accessible pandas implementation", "id": 49094459, "name": "Internals", "node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals" }, { "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
39
2014-07-31T17:15:09Z
2014-08-07T12:10:59Z
2014-08-07T11:34:54Z
CONTRIBUTOR
null
make `Index` now subclass `PandasObject/IndexOpsMixin` rather than `ndarray` should allow much easier new Index classes (e.g. #7640) This doesn't change the public API at all, and provides compat closes #5080 back compat for pickles is now way simpler ToDo: - docs - [x] release note - [x] warnings in io.rst about this change - [x] fixes `.repeat` on MultiIndex (broken in master) - [x] minor API compat issue with comparisons of `DatetimeIndex` with `NaT` vs ndarrays - [x] merge with searchsorted issues/PR ( #6712, #7447, #6469) - [x] tests fixed (FIXMES), just a few left - [x] perf - [x] json completely broken ATM - [x] #7796 FIXME (PeriodIndex not supported in HDF), not really a big deal - [x] #7439 since `Index` now doesn't have implicit ops (aside from `__sub__/__add__`, these need to be added in (e.g. `__mul__,__div__,__truediv__`). - [x] bool(Index/MultiIndex) : https://github.com/pydata/pandas/issues/7897 (will address this later) closes #5155 (perf fix for Period creation), slight increase on the plotting because of the the plottling routines holding array of Periods (rather than PeriodIndex). ``` ------------------------------------------------------------------------------- Test name | head[ms] | base[ms] | ratio | ------------------------------------------------------------------------------- period_setitem | 16.2210 | 122.9340 | 0.1319 | timeseries_iter_periodindex | 1197.7839 | 6906.1464 | 0.1734 | timeseries_iter_periodindex_preexit | 12.4850 | 69.8563 | 0.1787 | timeseries_period_downsample_mean | 11.2850 | 11.1457 | 1.0125 | plot_timeseries_period | 107.6056 | 86.5277 | 1.2436 | ```
{ "+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/7891/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7891/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7891.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7891", "merged_at": "2014-08-07T11:34:54Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7891.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7891" }
https://api.github.com/repos/pandas-dev/pandas/issues/7892
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7892/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7892/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7892/events
https://github.com/pandas-dev/pandas/pull/7892
39,231,812
MDExOlB1bGxSZXF1ZXN0MTkxNzQ4NDY=
7,892
API: add 'level' kwarg to 'Index.isin' method
{ "avatar_url": "https://avatars.githubusercontent.com/u/579798?v=4", "events_url": "https://api.github.com/users/immerrr/events{/privacy}", "followers_url": "https://api.github.com/users/immerrr/followers", "following_url": "https://api.github.com/users/immerrr/following{/other_user}", "gists_url": "https://api.github.com/users/immerrr/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/immerrr", "id": 579798, "login": "immerrr", "node_id": "MDQ6VXNlcjU3OTc5OA==", "organizations_url": "https://api.github.com/users/immerrr/orgs", "received_events_url": "https://api.github.com/users/immerrr/received_events", "repos_url": "https://api.github.com/users/immerrr/repos", "site_admin": false, "starred_url": "https://api.github.com/users/immerrr/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/immerrr/subscriptions", "type": "User", "url": "https://api.github.com/users/immerrr" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
10
2014-07-31T20:01:01Z
2014-11-02T21:35:14Z
2014-08-04T20:26:24Z
CONTRIBUTOR
null
closes #7890 This PR adds `level` kwarg for `Index` objects as discussed (briefly in #7890): ``` python Index.isin(iterable, level=None) ``` ### Summary - for non-`MultiIndex` classes: - no functional changes in the actual membership test - valid `level` values are `None`, `0`, `-1` and `self.name` - if `level` doesn't match the name, it's a `KeyError` (was `AssertionError` before) - for `MultiIndex` classes: - if `level=None`, elements of `self.values` (tuples) are used - otherwise elements of corresponding level are used - valid `level` values are the same as in `MultiIndex.get_level_values` method, `-self.nlevels..(self.nlevels - 1)` plus all unique index names ### TODO - [x] add to documentation - [x] optimize MultiIndex case
{ "+1": 0, "-1": 0, "confused": 0, "eyes": 0, "heart": 0, "hooray": 0, "laugh": 0, "rocket": 0, "total_count": 0, "url": "https://api.github.com/repos/pandas-dev/pandas/issues/7892/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7892/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7892.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7892", "merged_at": "2014-08-04T20:26:24Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7892.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7892" }
https://api.github.com/repos/pandas-dev/pandas/issues/7893
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7893/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7893/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7893/events
https://github.com/pandas-dev/pandas/issues/7893
39,239,394
MDU6SXNzdWUzOTIzOTM5NA==
7,893
Regression in casting Series to DataFrame with .name='foo' and columns=['bar']
{ "avatar_url": "https://avatars.githubusercontent.com/u/440095?v=4", "events_url": "https://api.github.com/users/qwhelan/events{/privacy}", "followers_url": "https://api.github.com/users/qwhelan/followers", "following_url": "https://api.github.com/users/qwhelan/following{/other_user}", "gists_url": "https://api.github.com/users/qwhelan/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/qwhelan", "id": 440095, "login": "qwhelan", "node_id": "MDQ6VXNlcjQ0MDA5NQ==", "organizations_url": "https://api.github.com/users/qwhelan/orgs", "received_events_url": "https://api.github.com/users/qwhelan/received_events", "repos_url": "https://api.github.com/users/qwhelan/repos", "site_admin": false, "starred_url": "https://api.github.com/users/qwhelan/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/qwhelan/subscriptions", "type": "User", "url": "https://api.github.com/users/qwhelan" }
[ { "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": "d4c5f9", "default": false, "description": "Series/DataFrame/Index/pd.array Constructors", "id": 1465286368, "name": "Constructors", "node_id": "MDU6TGFiZWwxNDY1Mjg2MzY4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Constructors" } ]
closed
false
null
[]
{ "closed_at": "2021-07-02T07:59:17Z", "closed_issues": 2396, "created_at": "2020-11-11T19:05:43Z", "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.3.x", "due_on": "2021-06-30T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/80", "id": 6095818, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80/labels", "node_id": "MDk6TWlsZXN0b25lNjA5NTgxOA==", "number": 80, "open_issues": 1, "state": "closed", "title": "1.3", "updated_at": "2021-08-25T20:34:06Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/80" }
7
2014-07-31T21:23:52Z
2021-05-10T21:45:31Z
2021-05-10T21:45:31Z
CONTRIBUTOR
null
xref #13421 with a `MultiIndex` as the columns Hi, I encountered an edge case in DataFrame initialization with something like the following: ``` python In [1]: from pandas import * In [2]: s = Series(1, name='foo') In [3]: df = DataFrame(s, columns=['bar']) In [4]: df Empty DataFrame Columns: [bar] Index: [] ``` This happens in both 0.14.1 and 0.13.1, but this isn't really a bug as the docs exclude `Series` as a valid type for `data=`. That being said, this casting appears to work whenever `.name` is `None` or when `.name` equals what's passed to `columns=`, so failure in this particular case is rather surprising. The mechanism appears to be: - `DataFrame.__init__` upgrades `.name` to the column name, if it is not `None` - Then, the data columns are sliced with the list passed to `columns=`, resulting in an empty data set when the two differ. - This seems to only occur when a `Series` is directly passed as `data=`. I can't get this to occur with `[Series, ...]` or a dict of `Series`. The options I see are (in order of my personal preference): - do the implicit rename (only occurs with single `Series`, so no ambiguity) - just don't allow a `Series` being passed as `data=`. - throw an exception due to the ambiguity I don't see just documenting this behavior as being viable, as this edge case effectively leads to data loss.
{ "+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/7893/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7893/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7894
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7894/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7894/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7894/events
https://github.com/pandas-dev/pandas/issues/7894
39,241,843
MDU6SXNzdWUzOTI0MTg0Mw==
7,894
read_hdf or store.select returning incorrect results for a query
{ "avatar_url": "https://avatars.githubusercontent.com/u/8324174?v=4", "events_url": "https://api.github.com/users/nmvasani/events{/privacy}", "followers_url": "https://api.github.com/users/nmvasani/followers", "following_url": "https://api.github.com/users/nmvasani/following{/other_user}", "gists_url": "https://api.github.com/users/nmvasani/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/nmvasani", "id": 8324174, "login": "nmvasani", "node_id": "MDQ6VXNlcjgzMjQxNzQ=", "organizations_url": "https://api.github.com/users/nmvasani/orgs", "received_events_url": "https://api.github.com/users/nmvasani/received_events", "repos_url": "https://api.github.com/users/nmvasani/repos", "site_admin": false, "starred_url": "https://api.github.com/users/nmvasani/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/nmvasani/subscriptions", "type": "User", "url": "https://api.github.com/users/nmvasani" }
[ { "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
[]
null
31
2014-07-31T21:52:23Z
2014-08-02T13:47:56Z
2014-08-02T13:47:56Z
NONE
null
I have a large dataset (4 million rows, 50 columns) stored via pandas store.append. When I use either store.select or read_hdf with a query for 2 columns being greater than a certain value (i.e. "(a > 10) & (b > 1)" I get 15,000 or so rows returned. When I read in the entire table, as say df, and do df[(df.a > 10) & (df.b > 1)] I get 30,000 rows. I narrowed down the problem - when I read in the entire table and do df.query("(a > 10) & (b > 1)") it's the same 15,000 rows, but when I set the engine to python ---> df.query("(a > 10) & (b > 1)", engine = 'python') I get the 30,000 rows. I suspect it has something to do with the eval/numexpr method of querying in the HDF and Query methods. The types are float64's in columns a and b, and even if I query with a float (ie. 1. instead of 1) the problem still persists. I would appreciate any feedback or if others have the same problem we need to fix this. Regards, Neil
{ "+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/7894/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7894/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7895
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7895/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7895/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7895/events
https://github.com/pandas-dev/pandas/issues/7895
39,253,116
MDU6SXNzdWUzOTI1MzExNg==
7,895
MultiIndex reindex should behave like Index.
{ "avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4", "events_url": "https://api.github.com/users/rockg/events{/privacy}", "followers_url": "https://api.github.com/users/rockg/followers", "following_url": "https://api.github.com/users/rockg/following{/other_user}", "gists_url": "https://api.github.com/users/rockg/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/rockg", "id": 3195015, "login": "rockg", "node_id": "MDQ6VXNlcjMxOTUwMTU=", "organizations_url": "https://api.github.com/users/rockg/orgs", "received_events_url": "https://api.github.com/users/rockg/received_events", "repos_url": "https://api.github.com/users/rockg/repos", "site_admin": false, "starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/rockg/subscriptions", "type": "User", "url": "https://api.github.com/users/rockg" }
[ { "color": "4E9A06", "default": false, "description": null, "id": 76812, "name": "Enhancement", "node_id": "MDU6TGFiZWw3NjgxMg==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement" }, { "color": "0b02e1", "default": false, "description": "Related to indexing on series/frames, not to indexes themselves", "id": 2822098, "name": "Indexing", "node_id": "MDU6TGFiZWwyODIyMDk4", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
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
2014-08-01T00:51:23Z
2021-04-11T05:01:19Z
null
CONTRIBUTOR
null
xref #10347 I'm having trouble understand how exactly reindex is supposed to work in the case of MultiIndex. What I would like is the exact behavior in the Index case where values can be filled or padded according to some level of the MultiIndex. I can't understand what reindex is doing in the MultiIndex case. The below is an example where I would like to interpolate using the prior value a month frame to an hourly frame. ``` import pandas as pd d1 = pd.date_range('1/1/2012', '3/1/2012', freq='MS') df = pd.DataFrame({'A': [1, 2, 3], 'B': [4, 5, 6]}, index=d1) dfu = df.unstack() dfu Out[12]: A 2012-01-01 1 2012-02-01 2 2012-03-01 3 B 2012-01-01 4 2012-02-01 5 2012-03-01 6 dtype: int64 d2 = pd.date_range('1/1/2012', '3/31/2012', freq='D') dfu.reindex(d2, level=1) # What is this supposed to do? Out[17]: A 2012-01-01 1 2012-02-01 2 2012-03-01 3 B 2012-01-01 4 2012-02-01 5 2012-03-01 6 dtype: int64 df.reindex(d2, method='pad').unstack() #Ideally something like this, but without the trickery Out[19]: A 2012-01-01 1 2012-01-02 1 2012-01-03 1 2012-01-04 1 2012-01-05 1 2012-01-06 1 2012-01-07 1 2012-01-08 1 2012-01-09 1 2012-01-10 1 2012-01-11 1 2012-01-12 1 2012-01-13 1 2012-01-14 1 2012-01-15 1 ... B 2012-03-17 6 2012-03-18 6 2012-03-19 6 2012-03-20 6 2012-03-21 6 2012-03-22 6 2012-03-23 6 2012-03-24 6 2012-03-25 6 2012-03-26 6 2012-03-27 6 2012-03-28 6 2012-03-29 6 2012-03-30 6 2012-03-31 6 Length: 182, dtype: int64 ```
{ "+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/7895/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7895/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7896
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7896/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7896/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7896/events
https://github.com/pandas-dev/pandas/pull/7896
39,306,398
MDExOlB1bGxSZXF1ZXN0MTkyMjAzMTQ=
7,896
BUG: fixing ewma() for adjust=False and ignore_na=False
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
10
2014-08-01T16:37:34Z
2014-09-10T00:12:18Z
2014-08-01T18:30:44Z
CONTRIBUTOR
null
The previous code in https://github.com/pydata/pandas/pull/7603 wasn't quite right for the case that both `adjust=False` and `ignore_na=False`. This PR fixes the handling of that case. Note that `ignore_na=False` behavior is new in v0.15.0, so this bug and its fix don't affect any prior behavior.
{ "+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/7896/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7896/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7896.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7896", "merged_at": "2014-08-01T18:30:44Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7896.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7896" }
https://api.github.com/repos/pandas-dev/pandas/issues/7897
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7897/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7897/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7897/events
https://github.com/pandas-dev/pandas/issues/7897
39,309,975
MDU6SXNzdWUzOTMwOTk3NQ==
7,897
bool(MultiIndex) seems to always return False
{ "avatar_url": "https://avatars.githubusercontent.com/u/178152?v=4", "events_url": "https://api.github.com/users/langmore/events{/privacy}", "followers_url": "https://api.github.com/users/langmore/followers", "following_url": "https://api.github.com/users/langmore/following{/other_user}", "gists_url": "https://api.github.com/users/langmore/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/langmore", "id": 178152, "login": "langmore", "node_id": "MDQ6VXNlcjE3ODE1Mg==", "organizations_url": "https://api.github.com/users/langmore/orgs", "received_events_url": "https://api.github.com/users/langmore/received_events", "repos_url": "https://api.github.com/users/langmore/repos", "site_admin": false, "starred_url": "https://api.github.com/users/langmore/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/langmore/subscriptions", "type": "User", "url": "https://api.github.com/users/langmore" }
[ { "color": "AD7FA8", "default": false, "description": null, "id": 35818298, "name": "API Design", "node_id": "MDU6TGFiZWwzNTgxODI5OA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design" }, { "color": "207de5", "default": false, "description": null, "id": 71268330, "name": "MultiIndex", "node_id": "MDU6TGFiZWw3MTI2ODMzMA==", "url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex" } ]
closed
false
null
[]
{ "closed_at": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
6
2014-08-01T17:19:09Z
2014-08-07T14:27:08Z
2014-08-07T14:27:08Z
NONE
null
This means that patterns such as: ``` python if my_frame.index: # do something ``` with `my_frame` having a `MultiIndex` will never enter the `if` block. One can check that `bool(my_frame.index)` returns False. A single index (`pandas.Index`) will (correctly IMO) raise a `ValueError` warning that the truth value of an array is ambiguous. However, a `MultiIndex` fails silently. This is such an awesome source of silent bugs that I'm surprised this hasn't come up before. Is there any reason why we want `bool` to return `False` every time for a `MultiIndex`?
{ "+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/7897/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7897/timeline
null
null
null
https://api.github.com/repos/pandas-dev/pandas/issues/7898
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7898/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7898/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7898/events
https://github.com/pandas-dev/pandas/pull/7898
39,318,072
MDExOlB1bGxSZXF1ZXN0MTkyMjc2OTM=
7,898
BUG: ewm*() interpretation of min_periods is off by one
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
6
2014-08-01T19:00:22Z
2014-09-10T00:12:07Z
2014-08-02T13:46:41Z
CONTRIBUTOR
null
Closes https://github.com/pydata/pandas/issues/7884. This addresses only the `ewm*()` functions' off-by-one interpretation of `min_periods`. It doesn't address the inconsistency between the `ewm*()` functions and the `rolling_*()` functions in the meaning of `min_periods`.
{ "+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/7898/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7898/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7898.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7898", "merged_at": "2014-08-02T13:46:41Z", "patch_url": "https://github.com/pandas-dev/pandas/pull/7898.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7898" }
https://api.github.com/repos/pandas-dev/pandas/issues/7899
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7899/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7899/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7899/events
https://github.com/pandas-dev/pandas/pull/7899
39,318,919
MDExOlB1bGxSZXF1ZXN0MTkyMjgyNTk=
7,899
NotImplementedError messages doc update #7872
{ "avatar_url": "https://avatars.githubusercontent.com/u/533049?v=4", "events_url": "https://api.github.com/users/ilam/events{/privacy}", "followers_url": "https://api.github.com/users/ilam/followers", "following_url": "https://api.github.com/users/ilam/following{/other_user}", "gists_url": "https://api.github.com/users/ilam/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/ilam", "id": 533049, "login": "ilam", "node_id": "MDQ6VXNlcjUzMzA0OQ==", "organizations_url": "https://api.github.com/users/ilam/orgs", "received_events_url": "https://api.github.com/users/ilam/received_events", "repos_url": "https://api.github.com/users/ilam/repos", "site_admin": false, "starred_url": "https://api.github.com/users/ilam/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/ilam/subscriptions", "type": "User", "url": "https://api.github.com/users/ilam" }
[ { "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": "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": "2015-05-11T15:46:03Z", "closed_issues": 237, "created_at": "2014-10-07T14:39:07Z", "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.16.0 of course!", "due_on": "2015-05-11T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/29", "id": 816810, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29/labels", "node_id": "MDk6TWlsZXN0b25lODE2ODEw", "number": 29, "open_issues": 0, "state": "closed", "title": "0.16.1", "updated_at": "2017-04-16T08:39:48Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/29" }
19
2014-08-01T19:10:43Z
2015-04-14T14:21:28Z
2015-04-14T14:21:12Z
NONE
null
closes #7872 I have updated the NonImplementedError messages #7872 in all places applicable. It includes changes to statements of type - raise NotImplementedError - raise NotImplementedError() Comment on the changes. The one place I have doubt and not sure whether to add one or not would be https://github.com/pydata/pandas/blob/master/.coveragerc#L17
{ "+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/7899/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7899/timeline
null
0
{ "diff_url": "https://github.com/pandas-dev/pandas/pull/7899.diff", "html_url": "https://github.com/pandas-dev/pandas/pull/7899", "merged_at": null, "patch_url": "https://github.com/pandas-dev/pandas/pull/7899.patch", "url": "https://api.github.com/repos/pandas-dev/pandas/pulls/7899" }
https://api.github.com/repos/pandas-dev/pandas/issues/7900
https://api.github.com/repos/pandas-dev/pandas
https://api.github.com/repos/pandas-dev/pandas/issues/7900/labels{/name}
https://api.github.com/repos/pandas-dev/pandas/issues/7900/comments
https://api.github.com/repos/pandas-dev/pandas/issues/7900/events
https://github.com/pandas-dev/pandas/issues/7900
39,333,057
MDU6SXNzdWUzOTMzMzA1Nw==
7,900
BUG: Inconsistencies in calculating second moments of a single value
{ "avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4", "events_url": "https://api.github.com/users/seth-p/events{/privacy}", "followers_url": "https://api.github.com/users/seth-p/followers", "following_url": "https://api.github.com/users/seth-p/following{/other_user}", "gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}", "gravatar_id": "", "html_url": "https://github.com/seth-p", "id": 7441788, "login": "seth-p", "node_id": "MDQ6VXNlcjc0NDE3ODg=", "organizations_url": "https://api.github.com/users/seth-p/orgs", "received_events_url": "https://api.github.com/users/seth-p/received_events", "repos_url": "https://api.github.com/users/seth-p/repos", "site_admin": false, "starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/seth-p/subscriptions", "type": "User", "url": "https://api.github.com/users/seth-p" }
[ { "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": "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": "2014-10-23T11:43:09Z", "closed_issues": 530, "created_at": "2014-07-06T18:44:54Z", "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.14.1 of course!", "due_on": "2014-10-19T07:00:00Z", "html_url": "https://github.com/pandas-dev/pandas/milestone/28", "id": 711567, "labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels", "node_id": "MDk6TWlsZXN0b25lNzExNTY3", "number": 28, "open_issues": 0, "state": "closed", "title": "0.15.0", "updated_at": "2017-11-24T10:50:44Z", "url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28" }
15
2014-08-01T22:29:59Z
2014-09-15T06:23:09Z
2014-09-10T00:02:26Z
CONTRIBUTOR
null
I noticed (in https://github.com/pydata/pandas/issues/7884) that `ewmvar`, `ewmstd`, `ewmvol`, `ewmcov`, `rolling_var`, and `rolling_std` return `0.0` for a single value (assuming `min_periods=0`); whereas `Series.std`, `Series.var`, `ewmcorr`, `expanding_cov`, `expanding_corr`, `rolling_cov`, and `rolling_corr` all return `NaN` for a single value. `expanding_std` and `expanding_var` produce `Value Error: min_periods (2) must be <= window (1)`. I think all of these should all return `NaN` for a single value. At any rate, I would expect greater consistency one way or the other. Mildly related, when calculating the correlation of a constant series with itself, `Series.corr()`, `expanding_corr`, and `rolling_corr` return `NaN`, while `ewmcorr` sometimes returns `NaN`, sometimes `1` and sometimes `-1`, due to numerical accuracy issues. Actually, as shown in a separate comment below, `rolling_corr` also produces inconsistent results for a constant subseries following different prior values. Inconsistencies in calculating second moments of a single point: ``` Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:45:13) [MSC v.1600 64 bit (AMD64)] Type "copyright", "credits" or "license" for more information. IPython 2.1.0 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use 'object??' for extra details. In [1]: from pandas import Series, ewmvar, ewmstd, ewmvol, ewmcov, rolling_var, rolling_std, ewmcorr, expanding_cov, expanding_corr, expanding_std, expanding_var, rolling_cov, rolling_corr In [2]: s = Series([1.]) In [3]: ewmvar(s, halflife=2., min_periods=0) Out[3]: 0 0 dtype: float64 In [4]: ewmstd(s, halflife=2., min_periods=0) Out[4]: 0 0 dtype: float64 In [5]: ewmvol(s, halflife=2., min_periods=0) Out[5]: 0 0 dtype: float64 In [6]: ewmcov(s, s, halflife=2., min_periods=0) Out[6]: 0 0 dtype: float64 In [7]: rolling_var(s, window=2, min_periods=0) Out[7]: 0 0 dtype: float64 In [8]: rolling_std(s, window=2, min_periods=0) Out[8]: 0 0 dtype: float64 In [9]: s.std() Out[9]: nan In [10]: s.var() Out[10]: nan In [11]: ewmcorr(s, s, halflife=2., min_periods=0) Out[11]: 0 NaN dtype: float64 In [12]: expanding_cov(s, s, min_periods=0) Out[12]: 0 NaN dtype: float64 In [13]: expanding_corr(s, s, min_periods=0) Out[13]: 0 NaN dtype: float64 In [16]: rolling_cov(s, s, window=3, min_periods=0) Out[16]: 0 NaN dtype: float64 In [17]: rolling_corr(s, s, window=3, min_periods=0) Out[17]: 0 NaN dtype: float64 In [14]: expanding_std(s, min_periods=0) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-14-7320ee579e6a> in <module>() ----> 1 expanding_std(s, min_periods=0) C:\Python34\lib\site-packages\pandas\stats\moments.py in f(arg, min_periods, freq, center, **kwargs) 825 return func(arg, window, minp, **kwds) 826 return _rolling_moment(arg, window, call_cython, min_periods, freq=freq, --> 827 center=center, **kwargs) 828 829 return f C:\Python34\lib\site-packages\pandas\stats\moments.py in _rolling_moment(arg, window, func, minp, axis, freq, center, how, args, kwa rgs, **kwds) 345 result = np.apply_along_axis(calc, axis, values) 346 else: --> 347 result = calc(values) 348 349 rs = return_hook(result) C:\Python34\lib\site-packages\pandas\stats\moments.py in <lambda>(x) 339 arg = _conv_timerule(arg, freq, how) 340 calc = lambda x: func(x, window, minp=minp, args=args, kwargs=kwargs, --> 341 **kwds) 342 return_hook, values = _process_data_structure(arg) 343 # actually calculate the moment. Faster way to do this? C:\Python34\lib\site-packages\pandas\stats\moments.py in call_cython(arg, window, minp, args, kwargs, **kwds) 823 def call_cython(arg, window, minp, args=(), kwargs={}, **kwds): 824 minp = check_minp(minp, window) --> 825 return func(arg, window, minp, **kwds) 826 return _rolling_moment(arg, window, call_cython, min_periods, freq=freq, 827 center=center, **kwargs) C:\Python34\lib\site-packages\pandas\stats\moments.py in <lambda>(*a, **kw) 604 how='median') 605 --> 606 _ts_std = lambda *a, **kw: _zsqrt(algos.roll_var(*a, **kw)) 607 rolling_std = _rolling_func(_ts_std, 'Unbiased moving standard deviation.', 608 check_minp=_require_min_periods(1)) C:\Python34\lib\site-packages\pandas\algos.pyd in pandas.algos.roll_var (pandas\algos.c:28990)() C:\Python34\lib\site-packages\pandas\algos.pyd in pandas.algos._check_minp (pandas\algos.c:16394)() ValueError: min_periods (2) must be <= window (1) In [15]: expanding_var(s, min_periods=0) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-15-28e2018aee68> in <module>() ----> 1 expanding_var(s, min_periods=0) C:\Python34\lib\site-packages\pandas\stats\moments.py in f(arg, min_periods, freq, center, **kwargs) 825 return func(arg, window, minp, **kwds) 826 return _rolling_moment(arg, window, call_cython, min_periods, freq=freq, --> 827 center=center, **kwargs) 828 829 return f C:\Python34\lib\site-packages\pandas\stats\moments.py in _rolling_moment(arg, window, func, minp, axis, freq, center, how, args, kwa rgs, **kwds) 345 result = np.apply_along_axis(calc, axis, values) 346 else: --> 347 result = calc(values) 348 349 rs = return_hook(result) C:\Python34\lib\site-packages\pandas\stats\moments.py in <lambda>(x) 339 arg = _conv_timerule(arg, freq, how) 340 calc = lambda x: func(x, window, minp=minp, args=args, kwargs=kwargs, --> 341 **kwds) 342 return_hook, values = _process_data_structure(arg) 343 # actually calculate the moment. Faster way to do this? C:\Python34\lib\site-packages\pandas\stats\moments.py in call_cython(arg, window, minp, args, kwargs, **kwds) 823 def call_cython(arg, window, minp, args=(), kwargs={}, **kwds): 824 minp = check_minp(minp, window) --> 825 return func(arg, window, minp, **kwds) 826 return _rolling_moment(arg, window, call_cython, min_periods, freq=freq, 827 center=center, **kwargs) C:\Python34\lib\site-packages\pandas\algos.pyd in pandas.algos.roll_var (pandas\algos.c:28990)() C:\Python34\lib\site-packages\pandas\algos.pyd in pandas.algos._check_minp (pandas\algos.c:16394)() ValueError: min_periods (2) must be <= window (1) In [20]: show_versions() INSTALLED VERSIONS ------------------ commit: None python: 3.4.1.final.0 python-bits: 64 OS: Windows OS-release: 7 machine: AMD64 processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel byteorder: little LC_ALL: None LANG: None pandas: 0.14.1 nose: 1.3.3 Cython: 0.20.2 numpy: 1.9.0b1 scipy: 0.14.0 statsmodels: 0.5.0 IPython: 2.1.0 sphinx: 1.2.2 patsy: 0.3.0 scikits.timeseries: None dateutil: 2.2 pytz: 2014.4 bottleneck: 0.8.0 tables: 3.1.1 numexpr: 2.4 matplotlib: 1.3.1 openpyxl: None xlrd: None xlwt: None xlsxwriter: None lxml: None bs4: None html5lib: None httplib2: None apiclient: None rpy2: None sqlalchemy: 0.9.7 pymysql: None psycopg2: None ``` Instability in `ewmcorr` of a constant series with itself: ``` In [1]: from pandas import Series, ewmcorr, expanding_corr, rolling_corr In [2]: s = Series([5., 5., 5.]) In [3]: s.corr(s) Out[3]: nan In [4]: expanding_corr(s, s) Out[4]: 0 NaN 1 NaN 2 NaN dtype: float64 In [5]: rolling_corr(s, s, window=3) Out[5]: 0 NaN 1 NaN 2 NaN dtype: float64 In [6]: ewmcorr(s, s, halflife=3.) Out[6]: 0 -1 1 -1 2 -1 dtype: float64 In [9]: ewmcorr(Series([3., 3., 3.]), halflife=3.) Out[9]: 0 NaN 1 1 2 1 dtype: float64 ```
{ "+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/7900/reactions" }
https://api.github.com/repos/pandas-dev/pandas/issues/7900/timeline
null
null
null