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/5601 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5601/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5601/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5601/events | https://github.com/pandas-dev/pandas/pull/5601 | 23,409,300 | MDExOlB1bGxSZXF1ZXN0MTAzNDk5MjM= | 5,601 | TST/API: test the list of NA values in the csv parser. add N/A, #NA as independent default values (GH5521) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-11-27T19:18:20Z | 2014-06-24T17:42:26Z | 2013-11-27T19:56:34Z | CONTRIBUTOR | null | closes #5521
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5601/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5601/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5601.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5601",
"merged_at": "2013-11-27T19:56:34Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5601.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5601"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5602 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5602/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5602/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5602/events | https://github.com/pandas-dev/pandas/pull/5602 | 23,414,649 | MDExOlB1bGxSZXF1ZXN0MTAzNTMwMzg= | 5,602 | ENH: Added method to pandas.data.Options to download all option data for... | {
"avatar_url": "https://avatars.githubusercontent.com/u/5957850?v=4",
"events_url": "https://api.github.com/users/davidastephens/events{/privacy}",
"followers_url": "https://api.github.com/users/davidastephens/followers",
"following_url": "https://api.github.com/users/davidastephens/following{/other_user}",
"gists_url": "https://api.github.com/users/davidastephens/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/davidastephens",
"id": 5957850,
"login": "davidastephens",
"node_id": "MDQ6VXNlcjU5NTc4NTA=",
"organizations_url": "https://api.github.com/users/davidastephens/orgs",
"received_events_url": "https://api.github.com/users/davidastephens/received_events",
"repos_url": "https://api.github.com/users/davidastephens/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/davidastephens/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/davidastephens/subscriptions",
"type": "User",
"url": "https://api.github.com/users/davidastephens"
} | [
{
"color": "06909A",
"default": false,
"description": "IO issues that don't fit into a more specific label",
"id": 2301354,
"name": "IO Data",
"node_id": "MDU6TGFiZWwyMzAxMzU0",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Data"
}
] | closed | false | null | [] | {
"closed_at": "2014-07-11T00:02:53Z",
"closed_issues": 306,
"created_at": "2014-04-27T23:40:28Z",
"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": "bug fixes from 0.14.0",
"due_on": "2014-07-11T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/27",
"id": 641843,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/27/labels",
"node_id": "MDk6TWlsZXN0b25lNjQxODQz",
"number": 27,
"open_issues": 0,
"state": "closed",
"title": "0.14.1",
"updated_at": "2014-09-05T10:24:18Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/27"
} | 57 | 2013-11-27T20:55:58Z | 2014-06-17T15:56:36Z | 2014-06-17T14:44:30Z | CONTRIBUTOR | null | ... a ticker.
Also added a few helper functions. These functions could be applied to refactor some of the other methods.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5602/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5602/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5602.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5602",
"merged_at": "2014-06-17T14:44:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5602.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5602"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5603 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5603/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5603/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5603/events | https://github.com/pandas-dev/pandas/issues/5603 | 23,424,526 | MDU6SXNzdWUyMzQyNDUyNg== | 5,603 | Truncate DataFrames centrally, rather than at one end | {
"avatar_url": "https://avatars.githubusercontent.com/u/327925?v=4",
"events_url": "https://api.github.com/users/takluyver/events{/privacy}",
"followers_url": "https://api.github.com/users/takluyver/followers",
"following_url": "https://api.github.com/users/takluyver/following{/other_user}",
"gists_url": "https://api.github.com/users/takluyver/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/takluyver",
"id": 327925,
"login": "takluyver",
"node_id": "MDQ6VXNlcjMyNzkyNQ==",
"organizations_url": "https://api.github.com/users/takluyver/orgs",
"received_events_url": "https://api.github.com/users/takluyver/received_events",
"repos_url": "https://api.github.com/users/takluyver/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/takluyver/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/takluyver/subscriptions",
"type": "User",
"url": "https://api.github.com/users/takluyver"
} | [
{
"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": "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": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 6 | 2013-11-28T00:44:35Z | 2014-05-16T19:44:16Z | 2014-05-16T19:44:16Z | CONTRIBUTOR | null | This came up in discussion on #5550 and #5594. The default plain & HTML repr now truncates DataFrames to the first max_rows rows and max_columns columns. At least for rows, truncating in the middle (so we show the first `max_rows//2` and the last `max_rows//2` rows) would be more consistent with the display of Series and numpy arrays.
This isn't a major change, but it's not completely trivial either, which is why I haven't done it already. I'll try to get round to it, but if someone else wants to work on it, go for it.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5603/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5603/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5604 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5604/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5604/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5604/events | https://github.com/pandas-dev/pandas/pull/5604 | 23,424,903 | MDExOlB1bGxSZXF1ZXN0MTAzNTg4MzY= | 5,604 | Expand groupby dispatch whitelist (GH5480) | {
"avatar_url": "https://avatars.githubusercontent.com/u/746408?v=4",
"events_url": "https://api.github.com/users/gdraps/events{/privacy}",
"followers_url": "https://api.github.com/users/gdraps/followers",
"following_url": "https://api.github.com/users/gdraps/following{/other_user}",
"gists_url": "https://api.github.com/users/gdraps/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gdraps",
"id": 746408,
"login": "gdraps",
"node_id": "MDQ6VXNlcjc0NjQwOA==",
"organizations_url": "https://api.github.com/users/gdraps/orgs",
"received_events_url": "https://api.github.com/users/gdraps/received_events",
"repos_url": "https://api.github.com/users/gdraps/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gdraps/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gdraps/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gdraps"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 11 | 2013-11-28T00:56:41Z | 2014-07-06T11:29:07Z | 2013-12-07T14:16:56Z | CONTRIBUTOR | null | (and create a groupby dispatch blacklist)
closes #5480.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5604/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5604/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5604.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5604",
"merged_at": "2013-12-07T14:16:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5604.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5604"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5605 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5605/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5605/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5605/events | https://github.com/pandas-dev/pandas/issues/5605 | 23,425,517 | MDU6SXNzdWUyMzQyNTUxNw== | 5,605 | df.set_index() broken | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"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": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 7 | 2013-11-28T01:18:28Z | 2013-11-28T05:29:28Z | 2013-11-28T03:19:24Z | CONTRIBUTOR | null | http://nbviewer.ipython.org/gist/michaelaye/7685834
Version: d057fc9 ('0.12.0-1178-gd057fc9')
I tried a sequence of "python setup.py clean && python setup.py install" without success.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5605/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5605/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5606 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5606/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5606/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5606/events | https://github.com/pandas-dev/pandas/pull/5606 | 23,427,447 | MDExOlB1bGxSZXF1ZXN0MTAzNjAxMzk= | 5,606 | BUG: repr formating to use iloc rather than getitem for element access (GH5605) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-11-28T02:33:38Z | 2014-07-04T06:16:27Z | 2013-11-28T03:19:25Z | CONTRIBUTOR | null | closes #5605
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5606/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5606/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5606.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5606",
"merged_at": "2013-11-28T03:19:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5606.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5606"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5607 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5607/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5607/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5607/events | https://github.com/pandas-dev/pandas/issues/5607 | 23,436,767 | MDU6SXNzdWUyMzQzNjc2Nw== | 5,607 | set_index drop inconsistency | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [] | closed | false | null | [] | null | 3 | 2013-11-28T08:49:13Z | 2013-12-01T04:00:04Z | 2013-12-01T04:00:04Z | CONTRIBUTOR | null | I'm not sure if providing a Series of the dataframe as a key to drop is covered by the API (the docs don't mention `Series` as they do for df.groupby() ), but it's at least inconsistent that the set_index seems to work but then the default drop=True is being ignored.
See what I mean:
``` python
print df
a b c
0 0.454351 0.916299 0.272791
1 -0.249901 0.109531 -0.587856
2 1.166015 -1.833338 -1.253099
3 0.014515 -0.099151 -1.073973
4 -0.740403 -0.785952 -0.815626
5 rows ร 3 columns
print df.set_index(df.a)
a b c
a
0.454351 0.454351 0.916299 0.272791
-0.249901 -0.249901 0.109531 -0.587856
1.166015 1.166015 -1.833338 -1.253099
0.014515 0.014515 -0.099151 -1.073973
-0.740403 -0.740403 -0.785952 -0.815626
[5 rows x 3 columns]
```
When using a column name string, all works fine:
``` python
print df.set_index('a')
b c
a
0.454351 0.916299 0.272791
-0.249901 0.109531 -0.587856
1.166015 -1.833338 -1.253099
0.014515 -0.099151 -1.073973
-0.740403 -0.785952 -0.815626
[5 rows x 2 columns]
```
I thought I tracked it down to this relevant code in core/frame.py/set_index:
``` python
for col in keys:
if isinstance(col, Series):
level = col.values
names.append(col.name)
elif isinstance(col, (list, np.ndarray)):
level = col
names.append(None)
else:
level = frame[col].values
names.append(col)
if drop:
to_remove.append(col)
arrays.append(level)
```
To me, the lines:
``` python
if drop:
to_remove.append(col)
```
seem to be one scope too deep and should be one level higher so that independent of the type of `col`, the drop can be performed.
However, when trying my fix by reducing the indent, I get all sorts of iloc errors (again), not sure what's going on, so my naรฏve idea must be missing 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/5607/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5607/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5608 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5608/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5608/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5608/events | https://github.com/pandas-dev/pandas/issues/5608 | 23,439,672 | MDU6SXNzdWUyMzQzOTY3Mg== | 5,608 | DataFrameGroupBy.cumcount() returing Series instead of DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [] | closed | false | null | [] | null | 4 | 2013-11-28T09:52:55Z | 2013-11-29T07:55:00Z | 2013-11-28T23:49:46Z | MEMBER | null | @hayd
`DataFrameGroupBy.cumcount()` returns a Series while most others (the ones I tested, like count, cumsum, first, sum ) return a DataFrame. They are maybe not all comparable, but at least with `cumsum` it could be I think:
``` python
In [1]: data = pd.DataFrame({'name' : ['a', 'a', 'b', 'd'], 'counts' : [3,4,3,2]})
In [2]: data
Out[2]:
counts name
0 3 a
1 4 a
2 3 b
3 2 d
In [3]: g = data.groupby('name')
In [4]: g.cumcount()
Out[4]:
0 0
1 1
2 0
3 0
dtype: int64
In [5]: g.count()
Out[5]:
counts name
name
a 2 2
b 1 1
d 1 1
In [6]: g.first()
Out[6]:
counts
name
a 3
b 3
d 2
In [7]: g.sum()
Out[7]:
counts
name
a 7
b 3
d 2
In [8]: g.cumsum()
Out[8]:
counts name
0 3 a
1 7 aa
2 3 b
3 2 d
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5608/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5608/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5609 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5609/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5609/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5609/events | https://github.com/pandas-dev/pandas/issues/5609 | 23,443,201 | MDU6SXNzdWUyMzQ0MzIwMQ== | 5,609 | Quick dataframe shift | {
"avatar_url": "https://avatars.githubusercontent.com/u/1404757?v=4",
"events_url": "https://api.github.com/users/halleygithub/events{/privacy}",
"followers_url": "https://api.github.com/users/halleygithub/followers",
"following_url": "https://api.github.com/users/halleygithub/following{/other_user}",
"gists_url": "https://api.github.com/users/halleygithub/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/halleygithub",
"id": 1404757,
"login": "halleygithub",
"node_id": "MDQ6VXNlcjE0MDQ3NTc=",
"organizations_url": "https://api.github.com/users/halleygithub/orgs",
"received_events_url": "https://api.github.com/users/halleygithub/received_events",
"repos_url": "https://api.github.com/users/halleygithub/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/halleygithub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/halleygithub/subscriptions",
"type": "User",
"url": "https://api.github.com/users/halleygithub"
} | [
{
"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": "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-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 17 | 2013-11-28T10:59:48Z | 2014-03-20T20:04:35Z | 2014-03-20T20:04:35Z | NONE | null | Quick implementation of dataframe shift
```
def quick_shift(df, N=1):
'''Quick implementation of dataframe shift'''
shift_value = np.roll(df.values,N,axis=0)
shift_value[0:N] = np.NaN
return DataFrame(shift_value, index=df.index, columns=df.columns)
DataFrame.quick_shift = quick_shift
```
Perf benchmark:
```
df = DataFrame(np.random.rand(10000,500))
%timeit df1 = df.quick_shift(1)
10 loops, best of 3: 55.3 ms per loop
%timeit df2 = df.shift(1)
1 loops, best of 3: 238 ms per loop
```
Related to https://github.com/pydata/pandas/issues/4095
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5609/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5609/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5610 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5610/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5610/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5610/events | https://github.com/pandas-dev/pandas/issues/5610 | 23,445,537 | MDU6SXNzdWUyMzQ0NTUzNw== | 5,610 | GroupBy.count() returns the grouping column as both index and column | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "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-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 17 | 2013-11-28T11:52:46Z | 2016-08-26T21:13:28Z | 2014-04-29T20:12:46Z | MEMBER | null | `GroupBy.count()` (with the default `as_index=True`) return the grouping column both as index and as column, while other methods as `first` and `sum` keep it only as the index (which is most logical I think). This seems a minor inconsistency to me:
```
In [41]: data = pd.DataFrame({'name' : ['a', 'a', 'b', 'd'], 'counts' : [3,4,3,2]})
In [42]: data
Out[42]:
counts name
0 3 a
1 4 a
2 3 b
3 2 d
In [43]: g = data.groupby('name')
In [45]: g.count()
Out[45]:
counts name
name
a 2 2
b 1 1
d 1 1
In [46]: g.first()
Out[46]:
counts
name
a 3
b 3
d 2
In [47]: g.sum()
Out[47]:
counts
name
a 7
b 3
d 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/5610/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5610/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5611 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5611/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5611/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5611/events | https://github.com/pandas-dev/pandas/issues/5611 | 23,449,508 | MDU6SXNzdWUyMzQ0OTUwOA== | 5,611 | DataFrame inspector GUI, df.inspect() | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 8 | 2013-11-28T13:25:02Z | 2016-11-11T10:09:36Z | 2016-11-11T10:09:32Z | NONE | null | #5013 is in the sandbox, the functionality would be useful as `df.inspect()`,
popping up a gui grid view of the frame.
In the future, it's possible to detect ipnb and render a js grid instead, if the coming ipython
js functionality is adequate, to cover the remote kernel use-case (less common).
cc @alefnula
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5611/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5611/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5612 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5612/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5612/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5612/events | https://github.com/pandas-dev/pandas/issues/5612 | 23,450,221 | MDU6SXNzdWUyMzQ1MDIyMQ== | 5,612 | Index.to_datetime() has no `format` keyword | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] | closed | false | null | [] | {
"closed_at": "2016-10-03T08:52:13Z",
"closed_issues": 733,
"created_at": "2016-03-11T21:24:45Z",
"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": "2016-09-30T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/40",
"id": 1639795,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40/labels",
"node_id": "MDk6TWlsZXN0b25lMTYzOTc5NQ==",
"number": 40,
"open_issues": 0,
"state": "closed",
"title": "0.19.0",
"updated_at": "2017-11-06T02:01:14Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/40"
} | 4 | 2013-11-28T13:40:14Z | 2016-08-27T09:22:05Z | 2016-08-27T09:21:45Z | MEMBER | null | `Index.to_datetime` has no `format` keyword (and more generally, it lacks all keyword arguments from `pd.to_datetime` except for `dayfirst`).
Maybe it could be made more similar to `pd.datetime`? (or even just use it under the hood?)
Code: https://github.com/pydata/pandas/blob/master/pandas/core/index.py#L278
Docs: http://pandas.pydata.org/pandas-docs/dev/generated/pandas.Index.to_datetime.html#pandas.Index.to_datetime
Thanks to @stijnvanhoey for reporting
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5612/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5612/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5613 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5613/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5613/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5613/events | https://github.com/pandas-dev/pandas/issues/5613 | 23,458,643 | MDU6SXNzdWUyMzQ1ODY0Mw== | 5,613 | asfreq / resample do not set freq with regular timeseries | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"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": "2016-03-12T16:19:08Z",
"closed_issues": 469,
"created_at": "2015-07-19T20:18:45Z",
"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": "2016-03-13T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/36",
"id": 1214851,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36/labels",
"node_id": "MDk6TWlsZXN0b25lMTIxNDg1MQ==",
"number": 36,
"open_issues": 0,
"state": "closed",
"title": "0.18.0",
"updated_at": "2016-12-06T21:34:41Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/36"
} | 15 | 2013-11-28T16:30:09Z | 2016-01-11T13:28:35Z | 2016-01-11T13:28:35Z | MEMBER | null | If your timeseries has a regularly spaced index, so if a frequency can be inferred, using `asfreq` or `resample` with this frequency does not set the frequency (it remains None):
```
In [1]: df = pd.DataFrame({'date':["2012-01-01", "2012-01-02", "2012-01-03"], 'col':[1,2,3]})
In [2]: df2 = df.set_index(pd.to_datetime(df.date))
In [3]: df2.index
Out[3]:
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-01-01 00:00:00, ..., 2012-01-03 00:00:00]
Length: 3, Freq: None, Timezone: None
In [4]: df2.index.inferred_freq
Out[4]: 'D'
In [5]: df2.asfreq('D').index
Out[5]:
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-01-01 00:00:00, ..., 2012-01-03 00:00:00]
Length: 3, Freq: None, Timezone: None
In [6]: df2.resample('D').index
Out[6]:
<class 'pandas.tseries.index.DatetimeIndex'>
[2012-01-01 00:00:00, ..., 2012-01-03 00:00:00]
Length: 3, Freq: None, Timezone: None
```
Note: this is the same with a Series, however in 0.12 it works for Series (as then it is still a TimeSeries)
| {
"+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/5613/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5613/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5614 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5614/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5614/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5614/events | https://github.com/pandas-dev/pandas/issues/5614 | 23,466,381 | MDU6SXNzdWUyMzQ2NjM4MQ== | 5,614 | cumsum sums the groupby column | {
"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": "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/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"
} | [
{
"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"
}
] | {
"closed_at": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 16 | 2013-11-28T20:37:33Z | 2014-05-01T22:23:50Z | 2014-05-01T15:13:57Z | CONTRIBUTOR | null | It shouldn't sum the groupby'd col (in fact index col should be the index, if groupby as_index).
```
In [13]: df = pd.DataFrame([[1, 2, np.nan], [1, np.nan, 9], [3, 4, 9]], columns=['A', 'B', 'C'])
In [14]: g = df.groupby('A')
In [16]: g.cumsum()
Out[16]:
A B C
0 1 2 NaN
1 2 NaN 9
2 3 4 9
[3 rows x 3 columns]
```
Nature of it being dispatch. Should fix up for 0.14 possibly along with some other whitelisted groupby functions.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5614/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5614/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5615 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5615/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5615/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5615/events | https://github.com/pandas-dev/pandas/pull/5615 | 23,476,781 | MDExOlB1bGxSZXF1ZXN0MTAzODY1ODQ= | 5,615 | DOC: SQL to pandas comparison (#4524) | {
"avatar_url": "https://avatars.githubusercontent.com/u/921995?v=4",
"events_url": "https://api.github.com/users/gjreda/events{/privacy}",
"followers_url": "https://api.github.com/users/gjreda/followers",
"following_url": "https://api.github.com/users/gjreda/following{/other_user}",
"gists_url": "https://api.github.com/users/gjreda/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gjreda",
"id": 921995,
"login": "gjreda",
"node_id": "MDQ6VXNlcjkyMTk5NQ==",
"organizations_url": "https://api.github.com/users/gjreda/orgs",
"received_events_url": "https://api.github.com/users/gjreda/received_events",
"repos_url": "https://api.github.com/users/gjreda/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gjreda/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gjreda/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gjreda"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 29 | 2013-11-29T06:15:33Z | 2014-06-17T19:04:21Z | 2013-12-07T00:40:20Z | CONTRIBUTOR | null | @jtratner I was a little slower moving on this than I'd hoped, but it's a pretty good start.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5615/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5615/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5615.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5615",
"merged_at": "2013-12-07T00:40:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5615.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5615"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5616 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5616/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5616/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5616/events | https://github.com/pandas-dev/pandas/issues/5616 | 23,501,543 | MDU6SXNzdWUyMzUwMTU0Mw== | 5,616 | BUG: DataFrame.to_excel(index=False) misplaces data/columns in MultiIndex case | {
"avatar_url": "https://avatars.githubusercontent.com/u/2418513?v=4",
"events_url": "https://api.github.com/users/aldanor/events{/privacy}",
"followers_url": "https://api.github.com/users/aldanor/followers",
"following_url": "https://api.github.com/users/aldanor/following{/other_user}",
"gists_url": "https://api.github.com/users/aldanor/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aldanor",
"id": 2418513,
"login": "aldanor",
"node_id": "MDQ6VXNlcjI0MTg1MTM=",
"organizations_url": "https://api.github.com/users/aldanor/orgs",
"received_events_url": "https://api.github.com/users/aldanor/received_events",
"repos_url": "https://api.github.com/users/aldanor/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aldanor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aldanor/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aldanor"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "ededed",
"default": false,
"description": "__repr__ of pandas objects, to_string",
"id": 13101118,
"name": "Output-Formatting",
"node_id": "MDU6TGFiZWwxMzEwMTExOA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Output-Formatting"
},
{
"color": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
}
] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 8 | 2013-11-29T16:50:12Z | 2013-12-10T13:19:30Z | 2013-12-10T13:19:30Z | CONTRIBUTOR | null | Example:
``` python
>>> df = pd.DataFrame({'a': [10, 20], 'b': [30, 40], 'c': [50, 60]},
... index=pd.MultiIndex.from_tuples([(70, 80), (90, 100)]))
>>> writer = pd.ExcelWriter('test.xls')
>>> df.to_excel(writer, sheet_name='1', index=False)
>>> writer.save()
>>> pd.read_excel('test.xls', '1')
a b c
10 30 50 NaN NaN
20 40 60 NaN NaN
```
The column names are obviously misplaced (erroneously shifted to the right by the number of levels in the MultiIndex). Or is it the data that is misplaced? Wonder why no one noticed this before.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5616/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5616/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5617 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5617/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5617/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5617/events | https://github.com/pandas-dev/pandas/pull/5617 | 23,504,458 | MDExOlB1bGxSZXF1ZXN0MTA0MDIyNzU= | 5,617 | RLS: first release candidate for v0.13 | {
"avatar_url": "https://avatars.githubusercontent.com/u/759245?v=4",
"events_url": "https://api.github.com/users/changhiskhan/events{/privacy}",
"followers_url": "https://api.github.com/users/changhiskhan/followers",
"following_url": "https://api.github.com/users/changhiskhan/following{/other_user}",
"gists_url": "https://api.github.com/users/changhiskhan/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/changhiskhan",
"id": 759245,
"login": "changhiskhan",
"node_id": "MDQ6VXNlcjc1OTI0NQ==",
"organizations_url": "https://api.github.com/users/changhiskhan/orgs",
"received_events_url": "https://api.github.com/users/changhiskhan/received_events",
"repos_url": "https://api.github.com/users/changhiskhan/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/changhiskhan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/changhiskhan/subscriptions",
"type": "User",
"url": "https://api.github.com/users/changhiskhan"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 11 | 2013-11-29T18:10:35Z | 2014-07-16T08:42:08Z | 2013-11-29T20:53:06Z | 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/5617/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5617/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5617.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5617",
"merged_at": "2013-11-29T20:53:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5617.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5617"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/5618 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5618/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5618/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5618/events | https://github.com/pandas-dev/pandas/issues/5618 | 23,504,498 | MDU6SXNzdWUyMzUwNDQ5OA== | 5,618 | set_option as a context manager | {
"avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4",
"events_url": "https://api.github.com/users/jseabold/events{/privacy}",
"followers_url": "https://api.github.com/users/jseabold/followers",
"following_url": "https://api.github.com/users/jseabold/following{/other_user}",
"gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jseabold",
"id": 296164,
"login": "jseabold",
"node_id": "MDQ6VXNlcjI5NjE2NA==",
"organizations_url": "https://api.github.com/users/jseabold/orgs",
"received_events_url": "https://api.github.com/users/jseabold/received_events",
"repos_url": "https://api.github.com/users/jseabold/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jseabold/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jseabold"
} | [
{
"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-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 11 | 2013-11-29T18:11:57Z | 2017-02-23T17:29:57Z | 2013-12-31T00:49:22Z | CONTRIBUTOR | null | It doesn't look like it's available yet as such, but it might be nice to have set_option usable as a context manager. E.g., I often find myself wanting to do something like
```
with pd.set_option('max_rows', 200):
print df
```
As simple as adding `__enter__` and `__exit__` methods and preserving state?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5618/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5618/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5619 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5619/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5619/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5619/events | https://github.com/pandas-dev/pandas/issues/5619 | 23,513,990 | MDU6SXNzdWUyMzUxMzk5MA== | 5,619 | ENH: Allow passing a list of regular expressions to the usecols keyword argument in read_csv | {
"avatar_url": "https://avatars.githubusercontent.com/u/276007?v=4",
"events_url": "https://api.github.com/users/moorepants/events{/privacy}",
"followers_url": "https://api.github.com/users/moorepants/followers",
"following_url": "https://api.github.com/users/moorepants/following{/other_user}",
"gists_url": "https://api.github.com/users/moorepants/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/moorepants",
"id": 276007,
"login": "moorepants",
"node_id": "MDQ6VXNlcjI3NjAwNw==",
"organizations_url": "https://api.github.com/users/moorepants/orgs",
"received_events_url": "https://api.github.com/users/moorepants/received_events",
"repos_url": "https://api.github.com/users/moorepants/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/moorepants/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/moorepants/subscriptions",
"type": "User",
"url": "https://api.github.com/users/moorepants"
} | [] | closed | false | null | [] | null | 3 | 2013-11-30T02:18:07Z | 2014-01-25T00:16:14Z | 2014-01-25T00:16:14Z | NONE | null | I'm dealing with some csv files which have hundreds of labeled columns. The first row in the files is the header row. I'd love to be able to load in only specific columns. The 'usecols' keyword argument to `read_csv` is useful but I currently have to read the first line of the file manually to get the header, parse the header into a list of strings, and then identify which column headers match a set of regular expressions to get the index of the header. These indexes can then be passed to 'usecol' so that I don't load those columns. So my feature request is to allow one to pass in a list of regular expressions to 'usecol' as an option to the indices. I'd be happy to contribute this code if you all think it is useful and could point me to the best place to implement it in the source tree.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5619/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5619/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5620 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5620/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5620/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5620/events | https://github.com/pandas-dev/pandas/issues/5620 | 23,519,585 | MDU6SXNzdWUyMzUxOTU4NQ== | 5,620 | GroupBy on a MultiIndex with the index causes python to stop working | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "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": "2014-12-12T13:45:40Z",
"closed_issues": 173,
"created_at": "2014-10-07T14:40:52Z",
"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.1 of course",
"due_on": "2014-12-12T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/30",
"id": 816816,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODE2",
"number": 30,
"open_issues": 0,
"state": "closed",
"title": "0.15.2",
"updated_at": "2015-07-29T20:17:19Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30"
} | 10 | 2013-11-30T12:17:58Z | 2014-11-18T10:15:32Z | 2014-11-18T10:15:13Z | MEMBER | null | If you try following piece of code, my python process crashes:
```
df = pd.DataFrame({'A':[1,1,2], 'B':[1,2,1], 'C':[1,2,3]})
df = df.set_index(['A', 'B'])
df.index.groupby(df.index)
```
I know this code is as such probably bullshit (I also did it by accident, the first index shouldn't have been there :-)), but still it should then generate a Error Message instead of causing python to stop?
BTW `pd.Index.groupby` is a publicly available, but not really clear what is does or is meant for.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5620/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5620/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5621 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5621/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5621/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5621/events | https://github.com/pandas-dev/pandas/pull/5621 | 23,522,497 | MDExOlB1bGxSZXF1ZXN0MTA0MTAxNTM= | 5,621 | DOC: Remove quasi-non-public parts of Index API from API docs | {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
} | [
{
"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 | {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
}
] | {
"closed_at": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 7 | 2013-11-30T16:10:11Z | 2014-06-15T18:49:12Z | 2014-02-18T20:05:24Z | CONTRIBUTOR | null | We added some notes on Index to the API Reference that probably
shouldn't be there at all, since they're not meant for public
consumption or not documented. I've slimmed down the methods to set
ops, copy, metadata (i.e. names) and a few of the DatetimeIndex methods.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5621/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5621/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5621.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5621",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/5621.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5621"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5622 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5622/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5622/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5622/events | https://github.com/pandas-dev/pandas/issues/5622 | 23,524,129 | MDU6SXNzdWUyMzUyNDEyOQ== | 5,622 | BUG: Indexes and datetime objects | {
"avatar_url": "https://avatars.githubusercontent.com/u/664644?v=4",
"events_url": "https://api.github.com/users/kghose/events{/privacy}",
"followers_url": "https://api.github.com/users/kghose/followers",
"following_url": "https://api.github.com/users/kghose/following{/other_user}",
"gists_url": "https://api.github.com/users/kghose/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kghose",
"id": 664644,
"login": "kghose",
"node_id": "MDQ6VXNlcjY2NDY0NA==",
"organizations_url": "https://api.github.com/users/kghose/orgs",
"received_events_url": "https://api.github.com/users/kghose/received_events",
"repos_url": "https://api.github.com/users/kghose/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kghose/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kghose/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kghose"
} | [] | closed | false | null | [] | null | 1 | 2013-11-30T18:05:58Z | 2013-11-30T19:53:53Z | 2013-11-30T19:53:53Z | NONE | null | I was trying to construct an index from datetime objects:
```
import pandas as pd, numpy, datetime
#idx = [datetime.date.fromordinal(n) for n in range(1,3)]
idx = [datetime.datetime.fromordinal(n) for n in range(1,3)]
df = pd.DataFrame(data=numpy.zeros(2),index=idx)
```
This code does not work. It seems that the line:
`converted, all_arrays = lib.clean_index_list(index_like)`
( from `pandas/core/index.py:3424`)
Will leave `converted` as an object ndarray rather than a native dtype.
I couldn't peek into lib.clean_index_list since I guess that is compiled code.
Things work fine with `date`. I think things should work both for date and datetimes?
Also, When I run `pd.Index` on the list it complains because the time part is 0, which I think is legal data.
```
idx = [datetime.datetime.fromordinal(n) for n in range(1,3)]
pd.Index(idx)
#--> OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 1-01-01 00:00:00
```
Version -> `0.13.0rc1`
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/5622/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5622/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5623 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5623/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5623/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5623/events | https://github.com/pandas-dev/pandas/pull/5623 | 23,525,880 | MDExOlB1bGxSZXF1ZXN0MTA0MTE1MjA= | 5,623 | BUG/API: autocorrelation_plot should accept kwargs | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [] | closed | false | null | [] | {
"closed_at": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 4 | 2013-11-30T20:15:08Z | 2014-06-15T07:05:39Z | 2014-01-15T15:28:37Z | CONTRIBUTOR | null | Unless there's a specific reason not to for this plot? All the others seem to accept them.
``` python
autocorrelation_plot(data, label='ACF')
```

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5623/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5623/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5623.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5623",
"merged_at": "2014-01-15T15:28:37Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5623.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5623"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5624 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5624/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5624/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5624/events | https://github.com/pandas-dev/pandas/pull/5624 | 23,526,844 | MDExOlB1bGxSZXF1ZXN0MTA0MTE4OTY= | 5,624 | CLN: Trim includes of absent files | {
"avatar_url": "https://avatars.githubusercontent.com/u/1879063?v=4",
"events_url": "https://api.github.com/users/neirbowj/events{/privacy}",
"followers_url": "https://api.github.com/users/neirbowj/followers",
"following_url": "https://api.github.com/users/neirbowj/following{/other_user}",
"gists_url": "https://api.github.com/users/neirbowj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neirbowj",
"id": 1879063,
"login": "neirbowj",
"node_id": "MDQ6VXNlcjE4NzkwNjM=",
"organizations_url": "https://api.github.com/users/neirbowj/orgs",
"received_events_url": "https://api.github.com/users/neirbowj/received_events",
"repos_url": "https://api.github.com/users/neirbowj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neirbowj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neirbowj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neirbowj"
} | [] | closed | false | null | [] | null | 1 | 2013-11-30T21:35:46Z | 2014-07-16T08:42:12Z | 2013-11-30T22:02:35Z | 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/5624/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5624/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5624.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5624",
"merged_at": "2013-11-30T22:02:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5624.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5624"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/5625 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5625/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5625/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5625/events | https://github.com/pandas-dev/pandas/pull/5625 | 23,529,412 | MDExOlB1bGxSZXF1ZXN0MTA0MTI4MTE= | 5,625 | ENH: Make set_option into a contextmanager that undos itself on __exit__ | {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
} | [] | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
}
] | {
"closed_at": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 32 | 2013-12-01T00:50:30Z | 2014-07-11T21:41:59Z | 2013-12-19T22:43:04Z | CONTRIBUTOR | null | Fixes #5618
cc @y-p and @jseabold
I went ahead and simplifed all the prefixing stuff to just change a single `prefix_key` function instead and handled the dynamic docstring by setting the `__doc__` attribute of functions/classes. set_option is now callable _and_ a contextmanager (whee!) so no need to add anything else to the global namespace (if you don't call `__exit__` it doesn't undo itself)
Had to add a metaclass to this because it's the only way to set docstrings on the _class_ level. Doesn't really add that much noise so I think it's fine.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5625/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5625/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5625.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5625",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/5625.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5625"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5626 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5626/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5626/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5626/events | https://github.com/pandas-dev/pandas/pull/5626 | 23,529,757 | MDExOlB1bGxSZXF1ZXN0MTA0MTI5Mzg= | 5,626 | TST: Always try to close file descriptors of tempfiles | {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
} | [] | closed | false | null | [] | null | 1 | 2013-12-01T01:20:55Z | 2014-07-02T13:59:48Z | 2013-12-01T03:37:51Z | CONTRIBUTOR | null | We weren't closing the file descriptors from `mkstemp`, which caused fun
segmentation faults for me. This should fix the issue.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5626/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5626/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5626.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5626",
"merged_at": "2013-12-01T03:37:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5626.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5626"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5627 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5627/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5627/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5627/events | https://github.com/pandas-dev/pandas/pull/5627 | 23,536,316 | MDExOlB1bGxSZXF1ZXN0MTA0MTU0MDg= | 5,627 | BUG/TST: importing util.clipboard shouldnt print to stdout (nosetests) | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | null | 1 | 2013-12-01T13:12:17Z | 2014-07-16T08:42:14Z | 2013-12-01T13:14:52Z | NONE | null | ```
$ nosetests
/usr/bin/xclip <<<< raise your hand if you've been ignoring this for 6 months
...........
```
`os.system` nastiness. The vbench package has similar problems.
https://github.com/pydata/pandas/pull/3848
:raised_hand:
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5627/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5627/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5627.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5627",
"merged_at": "2013-12-01T13:14:52Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5627.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5627"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5628 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5628/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5628/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5628/events | https://github.com/pandas-dev/pandas/issues/5628 | 23,550,720 | MDU6SXNzdWUyMzU1MDcyMA== | 5,628 | Dropping rows inplace, weird bug with 0.13.0rc1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 17 | 2013-12-02T03:40:47Z | 2013-12-06T18:36:25Z | 2013-12-02T12:53:01Z | CONTRIBUTOR | null | In c239b06e I have the following weird behavior. I am even unsure how to describe it, but somehow the dropping of rows selected via a boolean leads to a failure of dropping the rows only for the Series of a DataFrame that met the condition in the first place.
Please have a look at the MWE I figured out after some hacking and trying out:
http://nbviewer.ipython.org/gist/michaelaye/7744592
Please tell me I'm not being dumb again?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5628/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5628/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5629 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5629/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5629/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5629/events | https://github.com/pandas-dev/pandas/issues/5629 | 23,554,161 | MDU6SXNzdWUyMzU1NDE2MQ== | 5,629 | PERF: Too long MultiIndex repr freezes notebook | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [] | closed | false | null | [] | null | 1 | 2013-12-02T06:10:48Z | 2013-12-02T15:52:50Z | 2013-12-02T11:03:53Z | CONTRIBUTOR | null | I have a quite large MultiIndex here that I accidentally tried to show with `__repr__`:
``` python
print len(counts.index)
print type(counts.index)
3982319
<class 'pandas.core.index.MultiIndex'>
```
whereupon my Macbook started to boil and the notebooks became unresponsive and I had to hard-kill the notebook server to get things back on track.
Is that avoidable somehow in a similar fashion you are checking the length of a dataframe before showing it?
Pandas version is 0.13.0rc1, with Canopy's python 2.7.3
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5629/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5629/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5630 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5630/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5630/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5630/events | https://github.com/pandas-dev/pandas/issues/5630 | 23,563,755 | MDU6SXNzdWUyMzU2Mzc1NQ== | 5,630 | Documentation / Remote Data Access - 3rd pary libraries | {
"avatar_url": "https://avatars.githubusercontent.com/u/1324881?v=4",
"events_url": "https://api.github.com/users/vfilimonov/events{/privacy}",
"followers_url": "https://api.github.com/users/vfilimonov/followers",
"following_url": "https://api.github.com/users/vfilimonov/following{/other_user}",
"gists_url": "https://api.github.com/users/vfilimonov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vfilimonov",
"id": 1324881,
"login": "vfilimonov",
"node_id": "MDQ6VXNlcjEzMjQ4ODE=",
"organizations_url": "https://api.github.com/users/vfilimonov/orgs",
"received_events_url": "https://api.github.com/users/vfilimonov/received_events",
"repos_url": "https://api.github.com/users/vfilimonov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vfilimonov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vfilimonov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vfilimonov"
} | [
{
"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-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"
} | 2 | 2013-12-02T10:33:25Z | 2015-01-06T13:14:19Z | 2015-01-06T13:14:19Z | CONTRIBUTOR | null | Does it make sense to extend documentation with links to a 3rd party libraries that download financial data from different sources in the pandas format? E.g. interfaces for Quandl (http://www.quandl.com/help/packages/python) or for Thomson Reuters Datastream (https://github.com/vfilimonov/pydatastream)?
Also personally I would be happy if pydatastream was included into Pandas, though since TR Datastream itself is not a free data source, it may not fit well pandas structure.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5630/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5630/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5631 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5631/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5631/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5631/events | https://github.com/pandas-dev/pandas/pull/5631 | 23,569,816 | MDExOlB1bGxSZXF1ZXN0MTA0MzA5MTY= | 5,631 | BUG: core/generic/_update_inplace not resetting item_cache (GH5628) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-02T12:42:39Z | 2014-07-02T08:55:16Z | 2013-12-02T12:53:01Z | CONTRIBUTOR | null | closes #5628
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5631/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5631/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5631.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5631",
"merged_at": "2013-12-02T12:53:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5631.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5631"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5632 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5632/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5632/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5632/events | https://github.com/pandas-dev/pandas/issues/5632 | 23,603,011 | MDU6SXNzdWUyMzYwMzAxMQ== | 5,632 | Setting empty column on empty DataFrame | {
"avatar_url": "https://avatars.githubusercontent.com/u/961944?v=4",
"events_url": "https://api.github.com/users/FragLegs/events{/privacy}",
"followers_url": "https://api.github.com/users/FragLegs/followers",
"following_url": "https://api.github.com/users/FragLegs/following{/other_user}",
"gists_url": "https://api.github.com/users/FragLegs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/FragLegs",
"id": 961944,
"login": "FragLegs",
"node_id": "MDQ6VXNlcjk2MTk0NA==",
"organizations_url": "https://api.github.com/users/FragLegs/orgs",
"received_events_url": "https://api.github.com/users/FragLegs/received_events",
"repos_url": "https://api.github.com/users/FragLegs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/FragLegs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FragLegs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/FragLegs"
} | [
{
"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"
}
] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 6 | 2013-12-02T21:26:59Z | 2013-12-03T14:53:32Z | 2013-12-03T01:59:04Z | CONTRIBUTOR | null | This issue appears in 0.13.0-rc1 and did not appear in 0.12.0-854-gde63e00
Let us say we have an empty DataFrame. Then the following calls (which worked in pandas 0.12) no longer work:
``` python
df = pd.DataFrame()
df['foo'] = []
df = pd.DataFrame()
df['foo'] = df.index
df = pd.DataFrame()
df['foo'] = range(len(df))
```
They all throw an exception:
```
File "/usr/local/lib/python3.2/dist-packages/pandas-0.13.0rc1-py3.2-linux-x86_64.egg/pandas/core/frame.py", line 1855, in __setitem__
self._set_item(key, value)
File "/usr/local/lib/python3.2/dist-packages/pandas-0.13.0rc1-py3.2-linux-x86_64.egg/pandas/core/frame.py", line 1915, in _set_item
self._ensure_valid_index(value)
File "/usr/local/lib/python3.2/dist-packages/pandas-0.13.0rc1-py3.2-linux-x86_64.egg/pandas/core/frame.py", line 1899, in _ensure_valid_index
raise ValueError('Cannot set a frame with no defined index '
ValueError: Cannot set a frame with no defined index and a non-series
```
The following will work:
``` python
df = pd.DataFrame()
df['foo'] = pd.Series([])
df = pd.DataFrame()
df['foo'] = pd.Series(df.index)
df = pd.DataFrame()
df['foo'] = pd.Series(range(len(df)))
```
The issue appears to be on lines 1897-1899 of pandas.core.frame:
``` python
if not len(self.index):
if not isinstance(value, Series):
raise ValueError('Cannot set a frame with no defined index '
```
Perhaps it could be changed to:
``` python
if not len(self.index) and len(value) > 0:
if not isinstance(value, Series):
raise ValueError('Cannot set a frame with no defined 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/5632/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5632/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5633 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5633/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5633/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5633/events | https://github.com/pandas-dev/pandas/pull/5633 | 23,606,249 | MDExOlB1bGxSZXF1ZXN0MTA0NTE0NTE= | 5,633 | BUG: make sure partial setting with a Series like works with a completly empty frame (GH5632) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-02T22:19:33Z | 2014-06-18T03:40:04Z | 2013-12-03T01:59:04Z | CONTRIBUTOR | null | closes #5632
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5633/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5633/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5633.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5633",
"merged_at": "2013-12-03T01:59:04Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5633.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5633"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5634 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5634/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5634/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5634/events | https://github.com/pandas-dev/pandas/pull/5634 | 23,617,707 | MDExOlB1bGxSZXF1ZXN0MTA0NTc5ODk= | 5,634 | BUG: Validate levels in a multi-index before storing in a HDFStore (GH5527) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-03T02:41:10Z | 2014-06-22T06:01:57Z | 2013-12-03T03:00:46Z | CONTRIBUTOR | null | close #5527
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5634/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5634/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5634.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5634",
"merged_at": "2013-12-03T03:00:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5634.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5634"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5635 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5635/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5635/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5635/events | https://github.com/pandas-dev/pandas/issues/5635 | 23,620,886 | MDU6SXNzdWUyMzYyMDg4Ng== | 5,635 | BUG: empty result for HDFStore where with leading NaNs | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] | closed | false | null | [] | {
"closed_at": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 6 | 2013-12-03T04:36:41Z | 2014-02-15T21:00:15Z | 2014-02-15T21:00:15Z | CONTRIBUTOR | null | https://github.com/PyTables/PyTables/issues/282 is the culprit
I may be missing something here, but I think this is an odd result. When reading from a `table` HDFStore, if the first value is NaN then any `where`s based on that column will return an empty selection.
``` python
In [58]: sm
Out[58]:
HRHHID earnings
0 251395039600155 NaN
1 251396749500840 188461
2 251396749500840 57692
3 251408550479107 NaN
4 251465059600832 61500
In [63]: tst = pd.HDFStore('tst.h5')
# leading NaN, empty
In [64]: sm.to_hdf(tst, 'sm', data_columns=True, format='table')
In [65]: tst.select('sm', where="earnings>0")
Out[65]:
Empty DataFrame
Columns: [HRHHID, earnings]
Index: []
# leading isn't NaN, works
In [66]: sm.tail(4).to_hdf(tst, 'sm', data_columns=True, format='table')
In [67]: tst.select('sm', where="earnings>0")
Out[67]:
HRHHID earnings
1 251396749500840 188461
2 251396749500840 57692
4 251465059600832 61500
# Leading NaN again, empty
In [69]: sm.tail(2).to_hdf(tst, 'sm', data_columns=True, format='table')
In [70]: tst.select('sm', where="earnings>0")
Out[70]:
Empty DataFrame
Columns: [HRHHID, earnings]
Index: []
In [71]: pd.__version__
Out[71]: '0.12.0-1153-g476b6e3'
In [72]: import tables
In [73]: tables.__version__
Out[73]: '3.0.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/5635/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5635/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5636 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5636/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5636/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5636/events | https://github.com/pandas-dev/pandas/issues/5636 | 23,669,681 | MDU6SXNzdWUyMzY2OTY4MQ== | 5,636 | read_csv not correctly parsing dates when parse_dates is string and index_col not set | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] | closed | false | null | [] | {
"closed_at": "2016-05-05T00:34:40Z",
"closed_issues": 306,
"created_at": "2016-02-08T15:29:59Z",
"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.18.0 of course!",
"due_on": "2016-05-04T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/38",
"id": 1570594,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NA==",
"number": 38,
"open_issues": 0,
"state": "closed",
"title": "0.18.1",
"updated_at": "2017-08-10T09:01:26Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/38"
} | 3 | 2013-12-03T20:03:36Z | 2016-04-19T18:36:05Z | 2016-04-19T18:36:05Z | CONTRIBUTOR | null | With:
```
csv="""A,B,C
1,2,2003-11-1
"""
```
These all work as expected:
```
In [40]: pd.read_csv(StringIO(csv), parse_dates="C",index_col="C").index[0]
Out[40]: Timestamp('2003-11-01 00:00:00', tz=None)
In [41]: pd.read_csv(StringIO(csv), parse_dates=["C"],index_col="C").index[0]
Out[41]: Timestamp('2003-11-01 00:00:00', tz=None)
In [42]: pd.read_csv(StringIO(csv), parse_dates=["C"]).C[0]
Out[42]: Timestamp('2003-11-01 00:00:00', tz=None)
```
but this does not parse the string:
```
In [39]: pd.read_csv(StringIO(csv), parse_dates="C",).C[0]
Out[39]: '2003-11-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/5636/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5636/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5637 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5637/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5637/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5637/events | https://github.com/pandas-dev/pandas/issues/5637 | 23,671,684 | MDU6SXNzdWUyMzY3MTY4NA== | 5,637 | datetools.BDay() does the wrong thing when given a Friday - Saturday range | {
"avatar_url": "https://avatars.githubusercontent.com/u/1598067?v=4",
"events_url": "https://api.github.com/users/jikamens/events{/privacy}",
"followers_url": "https://api.github.com/users/jikamens/followers",
"following_url": "https://api.github.com/users/jikamens/following{/other_user}",
"gists_url": "https://api.github.com/users/jikamens/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jikamens",
"id": 1598067,
"login": "jikamens",
"node_id": "MDQ6VXNlcjE1OTgwNjc=",
"organizations_url": "https://api.github.com/users/jikamens/orgs",
"received_events_url": "https://api.github.com/users/jikamens/received_events",
"repos_url": "https://api.github.com/users/jikamens/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jikamens/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jikamens/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jikamens"
} | [
{
"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": "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": "0052cc",
"default": false,
"description": "DateOffsets",
"id": 53181044,
"name": "Frequency",
"node_id": "MDU6TGFiZWw1MzE4MTA0NA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Frequency"
},
{
"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-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 1 | 2013-12-03T20:33:11Z | 2014-04-06T15:03:05Z | 2014-04-06T15:03:01Z | NONE | null | With a daily frequency, when you specify a range from a Friday morning UTC to Saturday morning UTC, you get back both days as expected:
```
(Pdb) pd.DatetimeIndex(start=datetime.datetime(2013,11,22,5,0,0,tzinfo=pytz.utc), end=datetime.datetime(2013,11,23,4,59,59,tzinfo=pytz.utc), freq=pd.datetools.Day())
<class 'pandas.tseries.index.DatetimeIndex'>
[2013-11-22 05:00:00, 2013-11-23 05:00:00]
Length: 2, Freq: D, Timezone: UTC
```
With a BDay frequency, however, you get back _neither_ day, even though you should get back the Friday since it's a business dasy:
```
(Pdb) pd.DatetimeIndex(start=datetime.datetime(2013,11,22,5,0,0,tzinfo=pytz.utc), end=datetime.datetime(2013,11,23,4,59,59,tzinfo=pytz.utc), freq=pd.datetools.BDay())
<class 'pandas.tseries.index.DatetimeIndex'>
Length: 0, Freq: B, Timezone: UTC
```
The correct thing happens if you shift both dates back by a day:
```
(Pdb) pd.DatetimeIndex(start=datetime.datetime(2013,11,21,5,0,0,tzinfo=pytz.utc), end=datetime.datetime(2013,11,22,4,59,59,tzinfo=pytz.utc), freq=pd.datetools.BDay())
<class 'pandas.tseries.index.DatetimeIndex'>
[2013-11-21 05:00:00]
Length: 1, Freq: B, Timezone: UTC
```
You also get back the Friday if you extend the range to the next business day:
```
(Pdb) pd.DatetimeIndex(start=datetime.datetime(2013,11,22,5,0,0,tzinfo=pytz.utc), end=datetime.datetime(2013,11,25,4,59,59,tzinfo=pytz.utc), freq=pd.datetools.BDay())
<class 'pandas.tseries.index.DatetimeIndex'>
[2013-11-22 05:00:00]
Length: 1, Freq: B, Timezone: UTC
```
Ref: https://github.com/quantopian/zipline/issues/243
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5637/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5637/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5638 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5638/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5638/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5638/events | https://github.com/pandas-dev/pandas/pull/5638 | 23,684,846 | MDExOlB1bGxSZXF1ZXN0MTA0OTU4ODY= | 5,638 | VIS: added ability to plot DataFrames and Series with errorbars | {
"avatar_url": "https://avatars.githubusercontent.com/u/403541?v=4",
"events_url": "https://api.github.com/users/r-b-g-b/events{/privacy}",
"followers_url": "https://api.github.com/users/r-b-g-b/followers",
"following_url": "https://api.github.com/users/r-b-g-b/following{/other_user}",
"gists_url": "https://api.github.com/users/r-b-g-b/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/r-b-g-b",
"id": 403541,
"login": "r-b-g-b",
"node_id": "MDQ6VXNlcjQwMzU0MQ==",
"organizations_url": "https://api.github.com/users/r-b-g-b/orgs",
"received_events_url": "https://api.github.com/users/r-b-g-b/received_events",
"repos_url": "https://api.github.com/users/r-b-g-b/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/r-b-g-b/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/r-b-g-b/subscriptions",
"type": "User",
"url": "https://api.github.com/users/r-b-g-b"
} | [
{
"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"
}
] | closed | false | null | [] | {
"closed_at": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 31 | 2013-12-04T00:10:22Z | 2014-06-13T17:00:32Z | 2014-03-18T17:42:12Z | CONTRIBUTOR | null | close #3796
Addresses some of the concerns in issue #3796. New code allows the DataFrame and Series Line plots and Bar plot functions to include errorbars using `xerr` and `yerr` keyword arguments to `DataFrame/Series.plot()`. It supports specifying x and y errorbars as 1. a separate list/numpy/Series, 2. a DataFrame with the same column names as the plotting DataFrame. For example, using method 2 looks like this:
```
df = pd.DataFrame({'x':[1, 2, 3], 'y':[3, 2, 1]})
df_xerr = pd.DataFrame({'x':[0.6, 0.2, 0.3], 'y':[0.4, 0.5, 0.6]})
df_yerr = pd.DataFrame({'x':[0.5, 0.4, 0.6], 'y':[0.3, 0.7, 0.4]})
df.plot(xerr=df_xerr, yerr=df_yerr)
```
This is my first contribution. I tried to follow the contribution guidelines as best I could, but let me know if anything needs work!
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5638/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5638/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5638.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5638",
"merged_at": "2014-03-18T17:42:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5638.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5638"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5639 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5639/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5639/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5639/events | https://github.com/pandas-dev/pandas/issues/5639 | 23,710,607 | MDU6SXNzdWUyMzcxMDYwNw== | 5,639 | Selecting same column twice in DataFrame does not work when some columns are bool | {
"avatar_url": "https://avatars.githubusercontent.com/u/6104264?v=4",
"events_url": "https://api.github.com/users/opisthokonta/events{/privacy}",
"followers_url": "https://api.github.com/users/opisthokonta/followers",
"following_url": "https://api.github.com/users/opisthokonta/following{/other_user}",
"gists_url": "https://api.github.com/users/opisthokonta/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/opisthokonta",
"id": 6104264,
"login": "opisthokonta",
"node_id": "MDQ6VXNlcjYxMDQyNjQ=",
"organizations_url": "https://api.github.com/users/opisthokonta/orgs",
"received_events_url": "https://api.github.com/users/opisthokonta/received_events",
"repos_url": "https://api.github.com/users/opisthokonta/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/opisthokonta/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/opisthokonta/subscriptions",
"type": "User",
"url": "https://api.github.com/users/opisthokonta"
} | [
{
"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": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 1 | 2013-12-04T11:55:10Z | 2013-12-04T14:51:07Z | 2013-12-04T14:50:54Z | NONE | null | It works fine to select a column twice if the DataFrame does not consists of any columns of dtype bool, but works fine otherwise.
``` python
import pandas as pd
#Data with just bool columns
dbool = {'one' : pd.Series([True, True, False], index=['a', 'b', 'c']),
'two' : pd.Series([False, False, True, False], index=['a', 'b', 'c', 'd']),
'three': pd.Series([False, True, True, True], index=['a', 'b', 'c', 'd'])}
#No bool columns
dnum = {'four' : pd.Series([1., 2., 3.], index=['a', 'b', 'c']),
'five' : pd.Series([1., 2., 3., 0.4], index=['a', 'b', 'c', 'd']),
'six': pd.Series([9., 5., 4., -0.1], index=['a', 'b', 'c', 'd'])}
#data with both bool and non-bool columns
dmixed = {'one' : pd.Series([True, True, False], index=['a', 'b', 'c']),
'two' : pd.Series([False, False, True, False], index=['a', 'b', 'c', 'd']),
'three': pd.Series([False, True, True, True], index=['a', 'b', 'c', 'd']),
'four' : pd.Series([1., 2., 3.], index=['a', 'b', 'c']),
'five' : pd.Series([1., 2., 3., 0.4], index=['a', 'b', 'c', 'd']),
'six': pd.Series([9., 5., 4., -0.1], index=['a', 'b', 'c', 'd'])}
dfbool = pd.DataFrame(dbool)
dfnum = pd.DataFrame(dnum)
dfmixed = pd.DataFrame(dmixed)
#Works fine
dfnum[['four', 'five', 'four']]
#Does not work
dfbool[['one', 'three', 'one']]
#Does not work
dfmixed[['four', 'five', 'four']]
dfmixed[['one', 'three', 'one']]
dfmixed[['one', 'four', 'one']]
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5639/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5639/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5640 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5640/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5640/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5640/events | https://github.com/pandas-dev/pandas/pull/5640 | 23,717,640 | MDExOlB1bGxSZXF1ZXN0MTA1MTM5OTM= | 5,640 | BUG: mixed column selection with dups is buggy (GH5639) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-04T14:16:30Z | 2014-06-19T11:13:37Z | 2013-12-04T14:50:54Z | CONTRIBUTOR | null | closes #5639
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5640/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5640/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5640.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5640",
"merged_at": "2013-12-04T14:50:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5640.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5640"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5641 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5641/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5641/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5641/events | https://github.com/pandas-dev/pandas/issues/5641 | 23,733,949 | MDU6SXNzdWUyMzczMzk0OQ== | 5,641 | assignment to slice | {
"avatar_url": "https://avatars.githubusercontent.com/u/6107282?v=4",
"events_url": "https://api.github.com/users/aharoon123/events{/privacy}",
"followers_url": "https://api.github.com/users/aharoon123/followers",
"following_url": "https://api.github.com/users/aharoon123/following{/other_user}",
"gists_url": "https://api.github.com/users/aharoon123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aharoon123",
"id": 6107282,
"login": "aharoon123",
"node_id": "MDQ6VXNlcjYxMDcyODI=",
"organizations_url": "https://api.github.com/users/aharoon123/orgs",
"received_events_url": "https://api.github.com/users/aharoon123/received_events",
"repos_url": "https://api.github.com/users/aharoon123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aharoon123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aharoon123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aharoon123"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
}
] | closed | false | null | [] | {
"closed_at": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 6 | 2013-12-04T18:04:05Z | 2014-02-13T23:12:32Z | 2014-02-13T23:12:32Z | NONE | null | In pandas version 0.81, this used to work:
```
import pandas as pd
import numpy as np
from pandas.tseries.offsets import *
from datetime import date
M_ASSETS=50
K_FACTORS=3
dates = pd.bdate_range(date(2013, 1, 1), date(2013, 1, 10))
factor_names=['F'+str(y) for y in xrange(1, K_FACTORS+1)]
asset_names = ['A'+str(y) for y in xrange(1, M_ASSETS+1)]
frames=[]
for dt in dates:
f=pd.DataFrame(np.random.randn(M_ASSETS, K_FACTORS),
index = pd.MultiIndex.from_tuples(zip([dt]*M_ASSETS, asset_names)),
columns = factor_names)
frames.append(f)
f=pd.concat(frames)
print "DataFrame for asset1\n", f.ix[:, "A1"]
print "DataFrame for factor1\n", f["F1"].unstack()
print "DataFrame for first date\n", f.ix[f.index.get_level_values(0)[0], :]
```
In pandas 0.11, however this same code gives the following error:
```
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-1-09af79b5dd36> in <module>()
22 f=pd.concat(frames)
23
---> 24 print "DataFrame for asset1\n", f.ix[:, "A1"]
25 print "DataFrame for factor1\n", f["F1"].unstack()
26 print "DataFrame for first date\n", f.ix[f.index.get_level_values(0)[0], :]
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/indexing.pyc in __getitem__(self, key)
32 pass
33
---> 34 return self._getitem_tuple(key)
35 else:
36 return self._getitem_axis(key, axis=0)
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_tuple(self, tup)
222 continue
223
--> 224 retval = retval.ix._getitem_axis(key, axis=i)
225
226 return retval
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/indexing.pyc in _getitem_axis(self, key, axis)
362 if com.is_integer(key) and not _is_integer_index(labels):
363 return self._get_loc(key, axis=axis)
--> 364 return self._get_label(lab, axis=axis)
365
366 def _getitem_iterable(self, key, axis=0):
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/indexing.pyc in _get_label(self, label, axis)
46 return self.obj.xs(label, axis=axis, copy=False)
47 except Exception:
---> 48 return self.obj.xs(label, axis=axis, copy=True)
49
50 def _get_loc(self, key, axis=0):
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/frame.pyc in xs(self, key, axis, level, copy)
2285
2286 if axis == 1:
-> 2287 data = self[key]
2288 if copy:
2289 data = data.copy()
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/frame.pyc in __getitem__(self, key)
1969 raise ValueError('Cannot index using non-boolean DataFrame')
1970 else:
-> 1971 return self._get_item_cache(key)
1972
1973 def _getitem_array(self, key):
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/generic.pyc in _get_item_cache(self, item)
532 return cache[item]
533 except Exception:
--> 534 values = self._data.get(item)
535 res = self._box_item_values(item, values)
536 cache[item] = res
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/internals.pyc in get(self, item)
882
883 def get(self, item):
--> 884 _, block = self._find_block(item)
885 return block.get(item)
886
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/internals.pyc in _find_block(self, item)
1014
1015 def _find_block(self, item):
-> 1016 self._check_have(item)
1017 for i, block in enumerate(self.blocks):
1018 if item in block:
/mnt/bos-netapp01/epd/7.3-2_pandas0.10/lib/python2.7/site-packages/pandas/core/internals.pyc in _check_have(self, item)
1021 def _check_have(self, item):
1022 if item not in self.items:
-> 1023 raise KeyError('no item named %s' % com.pprint_thing(item))
1024
1025 def reindex_axis(self, new_axis, method=None, axis=0, copy=True):
KeyError: u'no item named A1'
DataFrame for asset1
```
Now I understand that the slicing changed, so if I use:
```
print "DataFrame for asset1\n", f.xs("A1", level=1)
```
it works:
```
DataFrame for asset1
F1 F2 F3
2013-01-01 -0.327087 -0.898145 -1.726459
2013-01-02 1.276976 -0.410213 1.124507
2013-01-03 0.575263 1.132212 0.172895
2013-01-04 0.704949 -0.681410 0.384713
2013-01-07 -0.033519 -0.598248 0.629885
2013-01-08 -0.065769 0.245913 -0.941165
2013-01-09 0.337986 -0.715003 -0.093851
2013-01-10 0.303433 -0.870952 -1.397974
```
Questions:
1. Why does ix no longer work for this
2. However, how to I assign to a slice:
this does not work:
```
view = f.xs("A1", level=1, copy = False)
view = 10
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5641/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5641/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5642 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5642/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5642/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5642/events | https://github.com/pandas-dev/pandas/issues/5642 | 23,746,676 | MDU6SXNzdWUyMzc0NjY3Ng== | 5,642 | DataFrame.from_records() converts mx.DateTime to string | {
"avatar_url": "https://avatars.githubusercontent.com/u/30059?v=4",
"events_url": "https://api.github.com/users/setjmp/events{/privacy}",
"followers_url": "https://api.github.com/users/setjmp/followers",
"following_url": "https://api.github.com/users/setjmp/following{/other_user}",
"gists_url": "https://api.github.com/users/setjmp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/setjmp",
"id": 30059,
"login": "setjmp",
"node_id": "MDQ6VXNlcjMwMDU5",
"organizations_url": "https://api.github.com/users/setjmp/orgs",
"received_events_url": "https://api.github.com/users/setjmp/received_events",
"repos_url": "https://api.github.com/users/setjmp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/setjmp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/setjmp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/setjmp"
} | [] | closed | false | null | [] | null | 2 | 2013-12-04T21:14:47Z | 2013-12-07T06:34:26Z | 2013-12-07T06:34:26Z | NONE | null | python version: 2.7.5
pandas version: 0.12.0
numpy version: 1.7.1
psycopg2 version: 2.5.1
I observe this as I parse the result set from Postgres (my psycopg2 installation is configured to return mx.DateTimes). The ideal scenario is that these objects are converted to numpy.datetime64 along with appropriate time zone info as this will allow the user to follow all the pandas time series tutorials. Keeping the mx.DateTime objects as objects rather than string would be a second best option because we can build a wrapper to write out the string representation in a form easily parsable by numpy.datetime64. Alternatively, we may be able to construct datetime64 using the API bypassing strings altogether.
Converting to strings as it is currently implemented is particularly hellish because the numpy datetime64 object converts to UTC when parsing from the string format extracted by from_records.
For example, the string representation returned by from_records is:
2013-07-29 17:32:53-07
However, when I parse this value in datetime64, what is returned is:
2013-07-30 00:32:53
However, I see from the datetime64 tutorials that with other formats the datetime64 object will represent the time zone. I see no documentation on how to convert time zones once the datetime64 object is constructed.
Even if I wanted to parse the more stable datetime.datetime module for the purposes of converting over to datetime64 that "-07" is not part of the %z pattern which expects an extra two digits.
In summary, If the user has access to the original mx.DateTime objects returned by psycopg2 the user can most likely solve their own problems regarding the conversion to datetime64 or other formats. I wonder how other types returned by psycopg2 might be affected by the current implementation.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5642/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5642/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5643 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5643/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5643/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5643/events | https://github.com/pandas-dev/pandas/issues/5643 | 23,749,919 | MDU6SXNzdWUyMzc0OTkxOQ== | 5,643 | NaT.date returns garbage | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [] | closed | false | null | [] | null | 2 | 2013-12-04T22:03:20Z | 2013-12-05T23:47:37Z | 2013-12-05T23:47:37Z | CONTRIBUTOR | null | ```
pd.Series([pd.NaT]).apply(lambda x:x.date())
```
```
0 0001-255-255
dtype: object
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5643/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5643/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5644 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5644/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5644/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5644/events | https://github.com/pandas-dev/pandas/pull/5644 | 23,750,374 | MDExOlB1bGxSZXF1ZXN0MTA1MzI5ODE= | 5,644 | TST: prevent stderr from leaking to console in util.testing | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-04T22:11:11Z | 2014-06-21T13:28:05Z | 2013-12-04T22:30:18Z | NONE | null | similar to https://github.com/pydata/pandas/pull/5627
Eliminate some more noise from tests, manifests only on system where `locale` isn't available.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5644/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5644/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5644.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5644",
"merged_at": "2013-12-04T22:30:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5644.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5644"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5645 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5645/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5645/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5645/events | https://github.com/pandas-dev/pandas/issues/5645 | 23,758,915 | MDU6SXNzdWUyMzc1ODkxNQ== | 5,645 | Binary operations don't broadcast across multiindex | {
"avatar_url": "https://avatars.githubusercontent.com/u/4764631?v=4",
"events_url": "https://api.github.com/users/roblevy/events{/privacy}",
"followers_url": "https://api.github.com/users/roblevy/followers",
"following_url": "https://api.github.com/users/roblevy/following{/other_user}",
"gists_url": "https://api.github.com/users/roblevy/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/roblevy",
"id": 4764631,
"login": "roblevy",
"node_id": "MDQ6VXNlcjQ3NjQ2MzE=",
"organizations_url": "https://api.github.com/users/roblevy/orgs",
"received_events_url": "https://api.github.com/users/roblevy/received_events",
"repos_url": "https://api.github.com/users/roblevy/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/roblevy/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/roblevy/subscriptions",
"type": "User",
"url": "https://api.github.com/users/roblevy"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, and Logical operations",
"id": 47223669,
"name": "Numeric Operations",
"node_id": "MDU6TGFiZWw0NzIyMzY2OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Numeric%20Operations"
},
{
"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"
} | 16 | 2013-12-05T00:47:00Z | 2021-08-31T09:25:30Z | null | CONTRIBUTOR | null | related #6360
Based on [this SO question](http://stackoverflow.com/questions/20383972/binary-operation-broadcasting-across-multiindex?noredirect=1#comment30444368_20383972)
Consider the following two Series:
``` python
x = pd.DataFrame({'year':[1,1,1,1,2,2,2,2],
'country':['A','A','B','B','A','A','B','B'],
'prod':[1,2,1,2,1,2,1,2],
'val':[10,20,15,25,20,30,25,35]})
x = x.set_index(['year','country','prod']).squeeze()
y = pd.DataFrame({'year':[1,1,2,2],'prod':[1,2,1,2],
'mul':[10,0.1,20,0.2]})
y = y.set_index(['year','prod']).squeeze()
```
which look like:
``` python
year country prod
1 A 1 10
2 20
B 1 15
2 25
2 A 1 20
2 30
B 1 25
2 35
year prod
1 1 10.0
2 0.1
2 1 20.0
2 0.2
```
I find it to be an _extremely_ common task, to perform binary operations by distributing the values of `y` over a particular level of `x`. For example, I'd like to multiply all values of product 1 in year 1 by 10.0, regardless of `country`.
The required result is therefore as follows:
``` python
year country prod
1 A 1 100.0
2 2.0
B 1 150.0
2 2.5
2 A 1 400.0
2 6.0
B 1 500.0
2 7.0
```
The binary operation .mul() doesn't work as expected:
``` python
>>> x.mul(y, level=['year','prod'])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 334, in f
return self._binop(other, op, level=level, fill_value=fill_value)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 2075, in _binop
this, other = self.align(other, level=level, join='outer')
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 2570, in align
return_indexers=True)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/index.py", line 954, in join
return_indexers=return_indexers)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/index.py", line 1058, in _join_level
raise Exception('Join on level between two MultiIndex objects '
Exception: Join on level between two MultiIndex objects is ambiguous
```
To create the required result, the user currently has to do this:
``` python
x = x.reset_index('country').sort_index()
x.val = x.val * y
x = x.reset_index().set_index(['year',
'country',
'prod']).sortlevel()
```
| {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5645/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5645/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5646 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5646/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5646/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5646/events | https://github.com/pandas-dev/pandas/pull/5646 | 23,769,128 | MDExOlB1bGxSZXF1ZXN0MTA1NDM0Njg= | 5,646 | Clustered heatmap | {
"avatar_url": "https://avatars.githubusercontent.com/u/806256?v=4",
"events_url": "https://api.github.com/users/olgabot/events{/privacy}",
"followers_url": "https://api.github.com/users/olgabot/followers",
"following_url": "https://api.github.com/users/olgabot/following{/other_user}",
"gists_url": "https://api.github.com/users/olgabot/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/olgabot",
"id": 806256,
"login": "olgabot",
"node_id": "MDQ6VXNlcjgwNjI1Ng==",
"organizations_url": "https://api.github.com/users/olgabot/orgs",
"received_events_url": "https://api.github.com/users/olgabot/received_events",
"repos_url": "https://api.github.com/users/olgabot/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/olgabot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/olgabot/subscriptions",
"type": "User",
"url": "https://api.github.com/users/olgabot"
} | [] | closed | false | null | [] | null | 27 | 2013-12-05T06:30:52Z | 2014-06-20T18:35:28Z | 2013-12-22T20:25:09Z | NONE | null | Hello there,
I'm working on a clustered heatmap figure for pandas, like R's `heatmap.2` which I used I ton when I was still in R-land.
I'm having some trouble wrapping my mind around `pandas.tools.plotting` but I have a draft version of this `heatmap` function with some initial parameters in my fork: https://github.com/olgabot/pandas/commit/4759d31666ca476a07c09a450e42a847abdc2b3d But I'm unsure how to proceed with plumbing this function into the current `pandas` plotting tools.
Here's a notebook of a simple and complex example: http://nbviewer.ipython.org/gist/olgabot/7801024
Also, unlike other many plotting functions, `heatmap` creates a whole figure. I currently return the `fig` instance along with the dendrogram objects for both the rows and columns in case the user wants to do some stats on them. It seems like for this function, accepting an `ax` argument (or even a `fig`) doesn't make any sense because there's at least 4 (up to 6 if you label columns or rows with colors) `ax` instances to create.
FYI besides adding documentation and tests and such I'm still working on:
- reasonable dendrogram sizing for when the dimensions are really large. Right now the dendrogram axis size is a proportion of the figure size, but this should change for even medium (100+) size datasets because then the dendrogram takes over the figure.
- Allowing for multiple colors labels for each row/column
- Adding optimal leaf ordering (important for time-dependent data)
- vmin/vmax for `pcolormesh`
- maybe add some padding between the dendrogram, colorbars, and heatmap?
- Other suggestions welcome!
I'm also still working through all the developer FAQs and such so I'm probably making tons of n00b mistakes so please point them out to me, especially if there are some pandas/python conventions I'm totally not following.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5646/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5646/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5646.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5646",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/5646.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5646"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5647 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5647/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5647/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5647/events | https://github.com/pandas-dev/pandas/issues/5647 | 23,794,316 | MDU6SXNzdWUyMzc5NDMxNg== | 5,647 | 0.12: join with on= fails with TimeStamp and Int64 MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/1903683?v=4",
"events_url": "https://api.github.com/users/bluefir/events{/privacy}",
"followers_url": "https://api.github.com/users/bluefir/followers",
"following_url": "https://api.github.com/users/bluefir/following{/other_user}",
"gists_url": "https://api.github.com/users/bluefir/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bluefir",
"id": 1903683,
"login": "bluefir",
"node_id": "MDQ6VXNlcjE5MDM2ODM=",
"organizations_url": "https://api.github.com/users/bluefir/orgs",
"received_events_url": "https://api.github.com/users/bluefir/received_events",
"repos_url": "https://api.github.com/users/bluefir/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bluefir/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bluefir/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bluefir"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 71268330,
"name": "MultiIndex",
"node_id": "MDU6TGFiZWw3MTI2ODMzMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/MultiIndex"
},
{
"color": "0e8a16",
"default": true,
"description": null,
"id": 717120670,
"name": "good first issue",
"node_id": "MDU6TGFiZWw3MTcxMjA2NzA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/good%20first%20issue"
},
{
"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"
} | 14 | 2013-12-05T15:32:33Z | 2019-12-26T00:25:34Z | 2019-12-26T00:25:34Z | NONE | null | I encountered a very strange problem in 0.12 when a straightforward join fails while it works just fine in 0.11.
```
df1
```
> <class 'pandas.core.frame.DataFrame'>
> Int64Index: 71958 entries, 0 to 104014
> Data columns (total 3 columns):
> FactorDate 71958 non-null values
> FundSecNo 71958 non-null values
> SourceFundSecNo 71958 non-null values
> dtypes: datetime64[ns](1), int64(2)
```
df1.dtypes
```
> FactorDate datetime64[ns]
> FundSecNo int64
> SourceFundSecNo int64
> dtype: object
```
df2
```
> <class 'pandas.core.frame.DataFrame'>
> MultiIndex: 94868 entries, (2011-10-18 00:00:00, 283) to (2011-10-19 00:00:00, 127419)
> Data columns (total 2 columns):
> DemeanGroupId 94868 non-null values
> NormalizationGroupId 94868 non-null values
> dtypes: float64(1), int64(1)
```
for ind in df2.index.levels:
print(type(ind))
```
> <class 'pandas.tseries.index.DatetimeIndex'>
> <class 'pandas.core.index.Int64Index'>
```
test = df1.join(df2, on=['FactorDate', 'SourceFundSecNo'])
test
```
> <class 'pandas.core.frame.DataFrame'>
> Int64Index: 71958 entries, 0 to 104014
> Data columns (total 5 columns):
> FactorDate 71958 non-null values
> FundSecNo 71958 non-null values
> SourceFundSecNo 71958 non-null values
> DemeanGroupId 0 non-null values
> NormalizationGroupId 0 non-null values
> dtypes: datetime64[ns](1), float64(2), int64(2)
```
date = datetime.datetime(2011, 10, 18)
sfsn = 283
test.loc[(test.FactorDate == date) & (test.SourceFundSecNo == sfsn)]
```
> ```
> FactorDate FundSecNo SourceFundSecNo DemeanGroupId NormalizationGroupId
> ```
>
> 1 2011-10-18 00:00:00 283 283 NaN NaN
> 17933 2011-10-18 00:00:00 65213 283 NaN NaN
```
df2.loc[(date, sfsn)]
```
> DemeanGroupId 350171
> NormalizationGroupId 35
> Name: (2011-10-18 00:00:00, 283), dtype: float64
I can attach the frames, but I forgot how to do it :-)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5647/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5647/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5648 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5648/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5648/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5648/events | https://github.com/pandas-dev/pandas/issues/5648 | 23,816,449 | MDU6SXNzdWUyMzgxNjQ0OQ== | 5,648 | idxmax, idxmin inconsistency | {
"avatar_url": "https://avatars.githubusercontent.com/u/4589327?v=4",
"events_url": "https://api.github.com/users/wayeast/events{/privacy}",
"followers_url": "https://api.github.com/users/wayeast/followers",
"following_url": "https://api.github.com/users/wayeast/following{/other_user}",
"gists_url": "https://api.github.com/users/wayeast/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wayeast",
"id": 4589327,
"login": "wayeast",
"node_id": "MDQ6VXNlcjQ1ODkzMjc=",
"organizations_url": "https://api.github.com/users/wayeast/orgs",
"received_events_url": "https://api.github.com/users/wayeast/received_events",
"repos_url": "https://api.github.com/users/wayeast/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wayeast/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wayeast/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wayeast"
} | [] | closed | false | null | [] | null | 7 | 2013-12-05T20:49:03Z | 2013-12-06T18:22:57Z | 2013-12-06T18:22:57Z | NONE | null | Don't know if this is a bug or my code...
python 2.7.5
anaconda 1.8.0
pandas 12.0
numpy 1.7.1
What seems to be occurring: DataFrame.idxmax/idxmin functions work or not depending on how the DataFrame object is created...
This works: **************************************
In [2]: df = pandas.DataFrame( {1:[1,2,3], 2:[4,5,6], 3:[7,8,9]}, index=[5,6,7])
In [3]: df
Out[3]:
1 2 3
5 1 4 7
6 2 5 8
7 3 6 9
In [4]: df.idxmax()
Out[4]:
1 7
2 7
3 7
dtype: int64
---
(the above also works for float values as well...)
This does not: ****************************************
def priors(self, tree): # most of code that creates object
priors = pandas.DataFrame(index=vps, columns=nps) # instantiate pandas.DataFrame...
for np in nps: # calculate its values...
for vp in vps:
np_prob = stats.beta.cdf(np / chs, self._sb_alpha, self._sb_beta) - \
stats.beta.cdf((np-1) / chs, self._sb_alpha, self._sb_beta)
vp_prob = stats.beta.cdf(vp / chs, self._vb_alpha, self._vb_beta) - \
stats.beta.cdf((vp-1) / chs, self._vb_alpha, self._vb_beta)
priors[np][vp] = np_prob \* vp_prob
norm = priors.sum().sum()
for np in nps:
for vp in vps:
priors[np][vp] = priors[np][vp] / norm
return priors # return it
In [15]: pr = st.priors(trees[1])
In [16]: pr # there is definitely a DataFrame object there
Out[16]:
1 2 7 11
3 0.4865759 0.2130292 0.06304571 0.0164135
8 0.1379886 0.0604132 0.0178792 0.004654722
In [18]: type(pr) # its type is correct
Out[18]: pandas.core.frame.DataFrame
In [20]: type(pr[1][3]) # the type of its values is correct
Out[20]: numpy.float64
In [29]: pr.max() # other related functions work
Out[29]:
1 0.486576
2 0.213029
7 0.063046
11 0.016413
dtype: float64
In [23]: pr.idxmax() # but idxmax (and idxmin) result in this error
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
---
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5648/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5648/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5649 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5649/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5649/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5649/events | https://github.com/pandas-dev/pandas/pull/5649 | 23,825,090 | MDExOlB1bGxSZXF1ZXN0MTA1NzUxMjY= | 5,649 | BUG: repr_html, fix GH5588 for the MultiIndex case | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | null | 1 | 2013-12-05T22:57:49Z | 2014-07-06T14:18:09Z | 2013-12-05T22:57:54Z | NONE | null | https://github.com/pydata/pandas/pull/5550#issuecomment-29938267
#5588
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5649/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5649/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5649.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5649",
"merged_at": "2013-12-05T22:57:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5649.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5649"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5650 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5650/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5650/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5650/events | https://github.com/pandas-dev/pandas/issues/5650 | 23,838,951 | MDU6SXNzdWUyMzgzODk1MQ== | 5,650 | Correct place for SettingWithCopyWarning? | {
"avatar_url": "https://avatars.githubusercontent.com/u/69774?v=4",
"events_url": "https://api.github.com/users/michaelaye/events{/privacy}",
"followers_url": "https://api.github.com/users/michaelaye/followers",
"following_url": "https://api.github.com/users/michaelaye/following{/other_user}",
"gists_url": "https://api.github.com/users/michaelaye/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/michaelaye",
"id": 69774,
"login": "michaelaye",
"node_id": "MDQ6VXNlcjY5Nzc0",
"organizations_url": "https://api.github.com/users/michaelaye/orgs",
"received_events_url": "https://api.github.com/users/michaelaye/received_events",
"repos_url": "https://api.github.com/users/michaelaye/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/michaelaye/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/michaelaye/subscriptions",
"type": "User",
"url": "https://api.github.com/users/michaelaye"
} | [
{
"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": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 8 | 2013-12-06T05:40:56Z | 2013-12-07T00:18:10Z | 2013-12-07T00:18:10Z | CONTRIBUTOR | null | I am really happy about the SettingWithCopyWarning but is this situation the right place to pop up? Because what I want to do seems to work, maybe I don't see the danger of a possible case?
``` python
In [19]: df.convert_objects().dtypes
Out[19]:
hour float64
minute float64
second float64
tb float64
dtype: object
In [20]: df['hour'] = df.hour.astype('int')
-c:1: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_index,col_indexer] = value instead
In [21]: df.dtypes
Out[21]:
hour int64
minute float64
second float64
tb float64
dtype: object
```
using master.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5650/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5650/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5651 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5651/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5651/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5651/events | https://github.com/pandas-dev/pandas/issues/5651 | 23,862,539 | MDU6SXNzdWUyMzg2MjUzOQ== | 5,651 | ValueError: zero-size array to reduction operation maximum | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 9 | 2013-12-06T14:56:18Z | 2013-12-06T21:04:42Z | 2013-12-06T18:36:25Z | NONE | null | I have recently incountered a strange issue which only happens on the dev branch. I've mostly encountered it when trying to display the dataframe, such as with print or wanting ipython output. Displaying a column/series of the dataframe works fine, just not displaying the whole frame. The dataframe is originally constructed with from_json(orient='values') from a json string retrieved from MongoDB. The index is then reset after the initial json load.
The reason I installed the dev branch was that I needed to switch to the latest in order to find a workaround to a slicing/selection issue regarding the latest dateutils version.
In anycase I ended up going back to 0.12.0 because I kept getting caught up on this. At first it looks like an error with IPython but it also complains in a regular python script if I try to print the dataframe.
Here is the traceback.
```
In [8]: e.spectrum.df
Out[8]: ---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-8-0462e2de8255> in <module>()
----> 1 e.spectrum.df
/usr/lib/python2.7/site-packages/IPython/core/displayhook.py in __call__(self, result)
245 self.start_displayhook()
246 self.write_output_prompt()
--> 247 format_dict, md_dict = self.compute_format_data(result)
248 self.write_format_data(format_dict, md_dict)
249 self.update_user_ns(result)
/usr/lib/python2.7/site-packages/IPython/core/displayhook.py in compute_format_data(self, result)
155
156 """
--> 157 return self.shell.display_formatter.format(result)
158
159 def write_format_data(self, format_dict, md_dict=None):
/usr/lib/python2.7/site-packages/IPython/core/formatters.py in format(self, obj, include, exclude)
150 md = None
151 try:
--> 152 data = formatter(obj)
153 except:
154 # FIXME: log the exception
/usr/lib/python2.7/site-packages/IPython/core/formatters.py in __call__(self, obj)
479 type_pprinters=self.type_printers,
480 deferred_pprinters=self.deferred_printers)
--> 481 printer.pretty(obj)
482 printer.flush()
483 return stream.getvalue()
/usr/lib/python2.7/site-packages/IPython/lib/pretty.py in pretty(self, obj)
360 if callable(meth):
361 return meth(obj, self, cycle)
--> 362 return _default_pprint(obj, self, cycle)
363 finally:
364 self.end_group()
/usr/lib/python2.7/site-packages/IPython/lib/pretty.py in _default_pprint(obj, p, cycle)
480 if getattr(klass, '__repr__', None) not in _baseclass_reprs:
481 # A user-provided repr.
--> 482 p.text(repr(obj))
483 return
484 p.begin_group(1, '<')
/usr/lib/python2.7/site-packages/pandas-0.12.0_1168_gb1485a3-py2.7-linux-x86_64.egg/pandas/core/base.pyc in __repr__(self)
53 Yields Bytestring in Py2, Unicode String in py3.
54 """
---> 55 return str(self)
56
57
/usr/lib/python2.7/site-packages/pandas-0.12.0_1168_gb1485a3-py2.7-linux-x86_64.egg/pandas/core/base.pyc in __str__(self)
33 if compat.PY3:
34 return self.__unicode__()
---> 35 return self.__bytes__()
36
37 def __bytes__(self):
/usr/lib/python2.7/site-packages/pandas-0.12.0_1168_gb1485a3-py2.7-linux-x86_64.egg/pandas/core/base.pyc in __bytes__(self)
45
46 encoding = get_option("display.encoding")
---> 47 return self.__unicode__().encode(encoding, 'replace')
48
49 def __repr__(self):
/usr/lib/python2.7/site-packages/pandas-0.12.0_1168_gb1485a3-py2.7-linux-x86_64.egg/pandas/core/frame.pyc in __unicode__(self)
455 width = None
456 self.to_string(buf=buf, max_rows=max_rows, max_cols=max_cols,
--> 457 line_width=width, show_dimensions=True)
458
459 return buf.getvalue()
/usr/lib/python2.7/site-packages/pandas-0.12.0_1168_gb1485a3-py2.7-linux-x86_64.egg/pandas/core/frame.pyc in to_string(self, buf, columns, col_space, colSpace, header, index, na_rep, formatters, float_format, sparsify, nanRep, index_names, justify, force_unicode, line_width, max_rows, max_cols, show_dimensions)
1286 max_rows=max_rows, max_cols=max_cols,
1287 show_dimensions=show_dimensions)
-> 1288 formatter.to_string()
1289
1290 if buf is None:
/usr/lib/python2.7/site-packages/pandas-0.12.0_1168_gb1485a3-py2.7-linux-x86_64.egg/pandas/core/format.pyc in to_string(self, force_unicode)
373 text = info_line
374 else:
--> 375 strcols = self._to_str_columns()
376 if self.line_width is None:
377 text = adjoin(1, *strcols)
/usr/lib/python2.7/site-packages/pandas-0.12.0_1168_gb1485a3-py2.7-linux-x86_64.egg/pandas/core/format.pyc in _to_str_columns(self)
332 minimum=max_colwidth, truncated=truncate_v)
333
--> 334 max_len = max(np.max([_strlen(x) for x in fmt_values]),
335 max_colwidth)
336 if self.justify == 'left':
/usr/lib/python2.7/site-packages/numpy/core/fromnumeric.pyc in amax(a, axis, out, keepdims)
2123 except AttributeError:
2124 return _methods._amax(a, axis=axis,
-> 2125 out=out, keepdims=keepdims)
2126 # NOTE: Dropping the keepdims parameter
2127 return amax(axis=axis, out=out)
/usr/lib/python2.7/site-packages/numpy/core/_methods.pyc in _amax(a, axis, out, keepdims)
15 def _amax(a, axis=None, out=None, keepdims=False):
16 return um.maximum.reduce(a, axis=axis,
---> 17 out=out, keepdims=keepdims)
18
19 def _amin(a, axis=None, out=None, keepdims=False):
ValueError: zero-size array to reduction operation maximum which has no identity
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5651/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5651/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5652 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5652/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5652/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5652/events | https://github.com/pandas-dev/pandas/issues/5652 | 23,871,675 | MDU6SXNzdWUyMzg3MTY3NQ== | 5,652 | "df.get(None)" throws error in 0.13 -> regression? | {
"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": "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-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 10 | 2013-12-06T17:16:00Z | 2017-09-15T13:15:20Z | 2014-01-23T22:03:09Z | CONTRIBUTOR | null | This works with pandas 0.12:
``` python
from ggplot import meat
meat.get(None)
[returns None]
```
But throws an error in 0.13 (RC):
``` python
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-11-86be6a7317b8> in <module>()
----> 1 meat.get(None)
C:\portabel\Python27\lib\site-packages\pandas\core\generic.pyc in get(self, key, default)
961 """
962 try:
--> 963 return self[key]
964 except KeyError:
965 return default
C:\portabel\Python27\lib\site-packages\pandas\core\frame.pyc in __getitem__(self, key)
1626 return self._getitem_multilevel(key)
1627 else:
-> 1628 return self._getitem_column(key)
1629
1630 def _getitem_column(self, key):
C:\portabel\Python27\lib\site-packages\pandas\core\frame.pyc in _getitem_column(self, key)
1633 # get column
1634 if self.columns.is_unique:
-> 1635 return self._get_item_cache(key)
1636
1637 # duplicate columns & possible reduce dimensionaility
C:\portabel\Python27\lib\site-packages\pandas\core\generic.pyc in _get_item_cache(self, item)
972 res = cache.get(item)
973 if res is None:
--> 974 values = self._data.get(item)
975 res = self._box_item_values(item, values)
976 cache[item] = res
C:\portabel\Python27\lib\site-packages\pandas\core\internals.pyc in get(self, item)
2737 if isnull(item):
2738 indexer = np.arange(len(self.items))[isnull(self.items)]
-> 2739 return self.get_for_nan_indexer(indexer)
2740
2741 _, block = self._find_block(item)
C:\portabel\Python27\lib\site-packages\pandas\core\internals.pyc in get_for_nan_indexer(self, indexer)
2789 indexer = indexer.item()
2790 else:
-> 2791 raise ValueError("cannot label index with a null key")
2792
2793 # take a nan indexer and return the values
ValueError: cannot label index with a null key
```
Not sure if that is intentional as this broke some code in the facet_wrap in ggplot (which now will get some update against this :-) )
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5652/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5652/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5653 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5653/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5653/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5653/events | https://github.com/pandas-dev/pandas/issues/5653 | 23,873,316 | MDU6SXNzdWUyMzg3MzMxNg== | 5,653 | BUG: Series.rename() ignores level argument on MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [] | closed | false | null | [] | null | 5 | 2013-12-06T17:42:55Z | 2013-12-06T18:55:49Z | 2013-12-06T17:49:16Z | CONTRIBUTOR | null | At least I think this is a bug. #4627 was meant to unify the Series and DataFrame.rename APIs right?
``` python
In [35]: idx = pd.MultiIndex.from_tuples([(1, 1), (1, 2), (1, 3), (2, 1), (2, 2), (2, 3)])
In [36]: s = pd.Series(np.arange(6), index=idx)
In [37]: s
Out[37]:
1 1 0
2 1
3 2
2 1 3
2 4
3 5
dtype: int64
In [38]: s.index.names = ['outer', 'inner']
In [39]: s.rena
s.rename s.rename_axis
In [39]: s.rename({1: 'L1', 2: 'L2', 3: 'L3'}, level='inner')
Out[39]:
outer inner
L1 L1 0
L2 1
L3 2
L2 L1 3
L2 4
L3 5
dtype: int64
```
Edit: I guess I'm a bit confused because the docstring seems to indicate that Series.rename() does something a bit different:
```
Conform Series to new index with optional filling logic, placing
NA/NaN in locations having no value in the previous index. A new object
is produced unless the new index is equivalent to the current one and
copy=False
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5653/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5653/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5654 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5654/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5654/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5654/events | https://github.com/pandas-dev/pandas/issues/5654 | 23,873,803 | MDU6SXNzdWUyMzg3MzgwMw== | 5,654 | performance of DataFrame.apply between 0.12 and 0.13rc1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4",
"events_url": "https://api.github.com/users/rosnfeld/events{/privacy}",
"followers_url": "https://api.github.com/users/rosnfeld/followers",
"following_url": "https://api.github.com/users/rosnfeld/following{/other_user}",
"gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rosnfeld",
"id": 5356340,
"login": "rosnfeld",
"node_id": "MDQ6VXNlcjUzNTYzNDA=",
"organizations_url": "https://api.github.com/users/rosnfeld/orgs",
"received_events_url": "https://api.github.com/users/rosnfeld/received_events",
"repos_url": "https://api.github.com/users/rosnfeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rosnfeld"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 1 | 2013-12-06T17:51:35Z | 2014-01-21T15:16:06Z | 2013-12-06T18:53:50Z | CONTRIBUTOR | null | Here is a small example of a performance regression I've noticed between 0.12 and 0.13rc1:
``` python
s = pd.Series(np.arange(4096.))
df = pd.DataFrame({i:s for i in range(4096)})
# under 0.12
%timeit df.apply((lambda x: np.corrcoef(x, s)[0, 1]), axis=1)
1 loops, best of 3: 792 ms per loop
# under 0.13rc1
%timeit df.apply((lambda x: np.corrcoef(x, s)[0, 1]), axis=1)
1 loops, best of 3: 1.7 s per loop
```
These are run on the same machine, with the following pip requirements consistent between the two setups besides pandas 0.12.0 vs 0.13.0rc1:
Cython==0.19.2
Jinja2==2.7.1
MarkupSafe==0.18
Pygments==1.6
Sphinx==1.1.3
argparse==1.2.1
docutils==0.11
ipython==1.0.0
matplotlib==1.3.0
nose==1.3.0
numpy==1.7.1
pyparsing==2.0.1
python-dateutil==2.2
pytz==2013.8
pyzmq==14.0.1
scipy==0.12.0
six==1.4.1
tornado==3.1.1
wsgiref==0.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/5654/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5654/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5655 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5655/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5655/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5655/events | https://github.com/pandas-dev/pandas/issues/5655 | 23,874,541 | MDU6SXNzdWUyMzg3NDU0MQ== | 5,655 | pd.read_json cryptic error on missing file | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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"
},
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] | closed | false | null | [] | {
"closed_at": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 8 | 2013-12-06T18:03:01Z | 2014-05-01T14:23:05Z | 2013-12-19T17:35:32Z | NONE | null | ``` python
In [12]: pd.read_json("No Such File")
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-12-f479cae2f65a> in <module>()
----> 1 pd.read_json("No Such File")
/home/user1/src/pandas/pandas/io/json.pyc in read_json(path_or_buf, orient, typ, dtype, convert_axes, convert_dates, keep_default_dates, numpy, precise_float, date_unit)
188 obj = FrameParser(json, orient, dtype, convert_axes, convert_dates,
189 keep_default_dates, numpy, precise_float,
--> 190 date_unit).parse()
191
192 if typ == 'series' or obj is None:
/home/user1/src/pandas/pandas/io/json.pyc in parse(self)
256
257 else:
--> 258 self._parse_no_numpy()
259
260 if self.obj is None:
/home/user1/src/pandas/pandas/io/json.pyc in _parse_no_numpy(self)
473 if orient == "columns":
474 self.obj = DataFrame(
--> 475 loads(json, precise_float=self.precise_float), dtype=None)
476 elif orient == "split":
477 decoded = dict((str(k), v)
ValueError: Expected object or value
```
read_json interprets strings which are not filenames as json data, then fails to parse them
if the filename names a path that doesn't exist (due to typo, or being in wrong directory for example).
That overloading makes it <del>impossible</del> nasty to distinguish two distinct error cases, e.g.
missing file and malformed json. Dubious API choice to my tastes.
in any case, catch both errors and return a saner message "missing file or malformed input" 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/5655/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5655/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5656 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5656/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5656/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5656/events | https://github.com/pandas-dev/pandas/pull/5656 | 23,876,452 | MDExOlB1bGxSZXF1ZXN0MTA2MDM0NzQ= | 5,656 | PERF: performance regression in frame/apply (GH5654) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 1 | 2013-12-06T18:36:19Z | 2014-06-23T23:26:57Z | 2013-12-06T18:53:50Z | CONTRIBUTOR | null | closes #5654
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5656/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5656/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5656.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5656",
"merged_at": "2013-12-06T18:53:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5656.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5656"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5657 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5657/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5657/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5657/events | https://github.com/pandas-dev/pandas/issues/5657 | 23,880,220 | MDU6SXNzdWUyMzg4MDIyMA== | 5,657 | df.filter(like='col_name') 2.975X slower than basic column list comprehension | {
"avatar_url": "https://avatars.githubusercontent.com/u/2701562?v=4",
"events_url": "https://api.github.com/users/dragoljub/events{/privacy}",
"followers_url": "https://api.github.com/users/dragoljub/followers",
"following_url": "https://api.github.com/users/dragoljub/following{/other_user}",
"gists_url": "https://api.github.com/users/dragoljub/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dragoljub",
"id": 2701562,
"login": "dragoljub",
"node_id": "MDQ6VXNlcjI3MDE1NjI=",
"organizations_url": "https://api.github.com/users/dragoljub/orgs",
"received_events_url": "https://api.github.com/users/dragoljub/received_events",
"repos_url": "https://api.github.com/users/dragoljub/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dragoljub/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dragoljub/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dragoljub"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
}
] | closed | false | null | [] | {
"closed_at": 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 | 2013-12-06T19:39:53Z | 2018-07-06T22:02:32Z | 2018-07-06T22:02:31Z | NONE | null | I have found that using the filter method to select columns that match a string pattern is ~3x slower than basic list comprehension on the df.columns list. Not sure how its implemented under the hood but for basic 'in' checks on lots of columns this could slow you down depending on how often you filter.
``` python
import pandas as pd
import numpy as np
# Generate Test DataFrame
NUM_ROWS = 2000
NUM_COLS = 1000
col_names = ['A'+num for num in map(str,np.arange(NUM_COLS).tolist())]
df = pd.DataFrame(np.random.randint(5, size=(NUM_ROWS,NUM_COLS)), dtype=np.int64, columns=col_names)
df['TEST'] = 0
df['TEST2'] = 0
%timeit df.filter(like='TEST')
1000 loops, best of 3: 1.19 ms per loop
%timeit df[[col for col in df.columns if 'TEST' in col]]
1000 loops, best of 3: 400 ยตs per loop
%time df.filter(like='TEST')
Wall time: 1 ms
Out[4]:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 2000 entries, 0 to 1999
Data columns (total 2 columns):
TEST 2000 non-null values
TEST2 2000 non-null values
dtypes: int64(2)
%time df[[col for col in df.columns if 'TEST' in col]]
Wall time: 1 ms
Out[5]:
<class 'pandas.core.frame.DataFrame'>
Int64Index: 2000 entries, 0 to 1999
Data columns (total 2 columns):
TEST 2000 non-null values
TEST2 2000 non-null values
dtypes: int64(2)
pd.__version__
Out[7]: '0.12.0'
np.__version__
Out[8]: '1.7.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/5657/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5657/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5658 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5658/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5658/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5658/events | https://github.com/pandas-dev/pandas/pull/5658 | 23,889,799 | MDExOlB1bGxSZXF1ZXN0MTA2MTE2ODY= | 5,658 | API: change _is_copy to is_copy attribute on pandas objects GH(5650) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-06T22:30:17Z | 2014-07-07T21:26:09Z | 2013-12-07T00:18:10Z | CONTRIBUTOR | null | closes #5650
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5658/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5658/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5658.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5658",
"merged_at": "2013-12-07T00:18:10Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5658.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5658"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5659 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5659/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5659/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5659/events | https://github.com/pandas-dev/pandas/pull/5659 | 23,894,875 | MDExOlB1bGxSZXF1ZXN0MTA2MTQ3MDM= | 5,659 | BUG: Fix for MultiIndex to_excel() with index=False. | {
"avatar_url": "https://avatars.githubusercontent.com/u/94267?v=4",
"events_url": "https://api.github.com/users/jmcnamara/events{/privacy}",
"followers_url": "https://api.github.com/users/jmcnamara/followers",
"following_url": "https://api.github.com/users/jmcnamara/following{/other_user}",
"gists_url": "https://api.github.com/users/jmcnamara/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jmcnamara",
"id": 94267,
"login": "jmcnamara",
"node_id": "MDQ6VXNlcjk0MjY3",
"organizations_url": "https://api.github.com/users/jmcnamara/orgs",
"received_events_url": "https://api.github.com/users/jmcnamara/received_events",
"repos_url": "https://api.github.com/users/jmcnamara/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jmcnamara/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jmcnamara/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jmcnamara"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 2 | 2013-12-07T00:27:33Z | 2014-06-18T19:01:49Z | 2013-12-10T13:19:30Z | CONTRIBUTOR | null | closes #5616 caused by the updated Excel MultiIndex handling.
This change should go into v0.13.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5659/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5659/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5659.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5659",
"merged_at": "2013-12-10T13:19:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5659.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5659"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5660 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5660/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5660/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5660/events | https://github.com/pandas-dev/pandas/issues/5660 | 23,900,675 | MDU6SXNzdWUyMzkwMDY3NQ== | 5,660 | 0.13rc1+ vs. 0.12 vbench, perf regressions. | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 28 | 2013-12-07T06:12:30Z | 2014-01-16T15:29:37Z | 2013-12-11T19:19:32Z | NONE | null | 30% slowdown and up.
```
melt_dataframe | 2.7920 | 2.1487 | 1.2994 |
concat_small_frames | 22.1807 | 17.0054 | 1.3043 |
dti_reset_index | 0.2950 | 0.2257 | 1.3070 |
frame_reindex_upcast | 28.8033 | 21.2270 | 1.3569 |
frame_fancy_lookup_all | 30.4507 | 22.1930 | 1.3721 |
timeseries_large_lookup_value | 0.0383 | 0.0277 | 1.3811 |
frame_boolean_row_select | 0.4419 | 0.3170 | 1.3941 |
panel_from_dict_equiv_indexes | 58.9810 | 41.6213 | 1.4171 |
panel_from_dict_same_index | 58.9364 | 41.5120 | 1.4197 |
frame_xs_row | 0.0637 | 0.0443 | 1.4355 |
groupby_frame_singlekey_integer | 4.3193 | 2.9940 | 1.4427 |
frame_ctor_nested_dict | 142.8297 | 98.7384 | 1.4465 |
frame_to_csv2 | 191.4937 | 130.7974 | 1.4640 |
series_ctor_from_dict | 5.1107 | 3.4617 | 1.4764 |
groupby_multi_python | 175.8397 | 117.9717 | 1.4905 |
frame_to_csv | 237.1720 | 154.0547 | 1.5395 |
series_string_vector_slice | 325.1186 | 208.9640 | 1.5559 |
indexing_panel_subset | 0.9351 | 0.5874 | 1.5919 |
frame_insert_500_columns_end | 198.1669 | 124.3424 | 1.5937 |
frame_ctor_nested_dict_int64 | 173.6054 | 106.8807 | 1.6243 |
frame_loc_dups | 1.2674 | 0.7770 | 1.6311 |
frame_get_dtype_counts | 0.1843 | 0.1113 | 1.6552 |
ctor_index_array_string | 0.0393 | 0.0236 | 1.6667 |
frame_get_numeric_data | 0.1736 | 0.0997 | 1.7424 |
frame_constructor_ndarray | 0.1047 | 0.0587 | 1.7846 |
frame_iteritems_cached | 1.1443 | 0.6117 | 1.8707 |
indexing_dataframe_boolean_rows_object | 0.9307 | 0.4853 | 1.9176 |
reshape_stack_simple | 2.6710 | 1.3684 | 1.9520 |
frame_iloc_dups | 0.5160 | 0.2420 | 2.1323 |
frame_xs_col | 0.0720 | 0.0323 | 2.2260 |
dataframe_getitem_scalar | 0.0199 | 0.0087 | 2.3028 |
datamatrix_getitem_scalar | 0.0193 | 0.0083 | 2.3143 |
indexing_dataframe_boolean_rows | 0.5593 | 0.2393 | 2.3374 |
series_constructor_ndarray | 0.0397 | 0.0167 | 2.3762 |
sparse_frame_constructor | 13.0450 | 4.7807 | 2.7287 |
frame_iteritems | 76.1917 | 27.6610 | 2.7545 |
indexing_frame_get_value_ix | 0.0123 | 0.0044 | 2.8182 |
series_getitem_scalar | 0.0199 | 0.0070 | 2.8523 |
frame_from_series | 0.1774 | 0.0534 | 3.3214 |
frame_fancy_lookup | 7.8727 | 1.7236 | 4.5675 |
series_get_value | 0.0123 | 0.0017 | 7.3810 |
```
**Ruled out**
```
frame_repr_tall | 49.2450 | 2.3817 | 20.6762 |
frame_repr_wide | 977.6090 | 1.1230 | 870.5710 |
```
#5550: truncated repr for large frames. legitimate change.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5660/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5660/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5661 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5661/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5661/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5661/events | https://github.com/pandas-dev/pandas/pull/5661 | 23,910,357 | MDExOlB1bGxSZXF1ZXN0MTA2MjE0OTE= | 5,661 | BUG: compat_pickle should not modify global namespace | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 27 | 2013-12-07T19:17:52Z | 2014-06-24T11:20:04Z | 2013-12-08T15:17:30Z | CONTRIBUTOR | null | turns out was modifying the python pickle just by importing pandas
when sub classing have to copy a mutable property before modifying
http://stackoverflow.com/questions/20444593/pandas-compiled-from-source-default-pickle-behavior-changed
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5661/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5661/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5661.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5661",
"merged_at": "2013-12-08T15:17:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5661.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5661"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5662 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5662/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5662/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5662/events | https://github.com/pandas-dev/pandas/issues/5662 | 23,912,545 | MDU6SXNzdWUyMzkxMjU0NQ== | 5,662 | unexpected axis ticks in tools.plotting.scatter_matrix | {
"avatar_url": "https://avatars.githubusercontent.com/u/6042395?v=4",
"events_url": "https://api.github.com/users/whoburg/events{/privacy}",
"followers_url": "https://api.github.com/users/whoburg/followers",
"following_url": "https://api.github.com/users/whoburg/following{/other_user}",
"gists_url": "https://api.github.com/users/whoburg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/whoburg",
"id": 6042395,
"login": "whoburg",
"node_id": "MDQ6VXNlcjYwNDIzOTU=",
"organizations_url": "https://api.github.com/users/whoburg/orgs",
"received_events_url": "https://api.github.com/users/whoburg/received_events",
"repos_url": "https://api.github.com/users/whoburg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/whoburg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/whoburg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/whoburg"
} | [
{
"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": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 0 | 2013-12-07T21:46:47Z | 2015-03-31T21:06:09Z | 2015-03-31T21:06:09Z | NONE | null | The upper left y axis tick marks in a scatter_matrix appear to have units/values pulled from the (0, 0) histogram counts, instead of the data values that are used for all other axis tick values.
Example:
```
In [1]: import numpy as np
In [2]: import pandas as pd
In [3]: pd.__version__
Out[3]: '0.12.0'
In [4]: df = pd.DataFrame(np.random.randn(100,3), columns=['a', 'b', 'c'])
In [5]: pd.tools.plotting.scatter_matrix(df)
Out[5]:
array([[<matplotlib.axes.AxesSubplot object at 0x1071d5d90>,
<matplotlib.axes.AxesSubplot object at 0x1089aa0d0>,
<matplotlib.axes.AxesSubplot object at 0x1071e36d0>],
[<matplotlib.axes.AxesSubplot object at 0x10a7d4f90>,
<matplotlib.axes.AxesSubplot object at 0x10a7fd450>,
<matplotlib.axes.AxesSubplot object at 0x10a8197d0>],
[<matplotlib.axes.AxesSubplot object at 0x10a83bf90>,
<matplotlib.axes.AxesSubplot object at 0x10a84fe50>,
<matplotlib.axes.AxesSubplot object at 0x10a886310>]], dtype=object)
```

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5662/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5662/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5663 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5663/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5663/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5663/events | https://github.com/pandas-dev/pandas/pull/5663 | 23,915,657 | MDExOlB1bGxSZXF1ZXN0MTA2MjMzMjg= | 5,663 | CLN: PEP8 cleanup of the io module | {
"avatar_url": "https://avatars.githubusercontent.com/u/188258?v=4",
"events_url": "https://api.github.com/users/alefnula/events{/privacy}",
"followers_url": "https://api.github.com/users/alefnula/followers",
"following_url": "https://api.github.com/users/alefnula/following{/other_user}",
"gists_url": "https://api.github.com/users/alefnula/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alefnula",
"id": 188258,
"login": "alefnula",
"node_id": "MDQ6VXNlcjE4ODI1OA==",
"organizations_url": "https://api.github.com/users/alefnula/orgs",
"received_events_url": "https://api.github.com/users/alefnula/received_events",
"repos_url": "https://api.github.com/users/alefnula/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alefnula/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alefnula/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alefnula"
} | [] | closed | false | null | [] | null | 5 | 2013-12-08T00:18:30Z | 2014-06-14T15:40:54Z | 2013-12-09T18:54:59Z | 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/5663/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5663/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5663.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5663",
"merged_at": "2013-12-09T18:54:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5663.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5663"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/5664 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5664/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5664/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5664/events | https://github.com/pandas-dev/pandas/issues/5664 | 23,917,926 | MDU6SXNzdWUyMzkxNzkyNg== | 5,664 | BUG: read_csv segfault | {
"avatar_url": "https://avatars.githubusercontent.com/u/980054?v=4",
"events_url": "https://api.github.com/users/dsm054/events{/privacy}",
"followers_url": "https://api.github.com/users/dsm054/followers",
"following_url": "https://api.github.com/users/dsm054/following{/other_user}",
"gists_url": "https://api.github.com/users/dsm054/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsm054",
"id": 980054,
"login": "dsm054",
"node_id": "MDQ6VXNlcjk4MDA1NA==",
"organizations_url": "https://api.github.com/users/dsm054/orgs",
"received_events_url": "https://api.github.com/users/dsm054/received_events",
"repos_url": "https://api.github.com/users/dsm054/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsm054/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsm054/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsm054"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] | closed | false | null | [] | {
"closed_at": "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"
} | 15 | 2013-12-08T03:52:35Z | 2017-09-22T15:23:27Z | 2015-04-12T13:37:27Z | CONTRIBUTOR | null | Came across this when trying to parse a poorly-formatted csv file and got the number of columns wrong. Mostly it segfaults; sometimes it produces a broken last row.
```
>>> import pandas as pd
>>> from StringIO import StringIO
>>> pd.__version__
'0.13.0rc1-43-g4f9fefc'
>>>
>>> f = StringIO('1,1,1,1,0\n'*2 + '\n'*2)
>>> df = pd.read_csv(f,names=list("abcd"))
Segmentation fault (core dumped)
```
When it doesn't segfault it tends to produce
```
a b c d
1 1 1 1 0
1 1 1 1 0
NaN NaN NaN NaN NaN
NaN NaN NaN NaN [unicode box: 0 0 0 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/5664/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5664/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5665 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5665/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5665/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5665/events | https://github.com/pandas-dev/pandas/pull/5665 | 23,923,699 | MDExOlB1bGxSZXF1ZXN0MTA2MjY2MzQ= | 5,665 | BUG: scatter_matrix problem, ranges of diagonal and off-diagonal plots are different | {
"avatar_url": "https://avatars.githubusercontent.com/u/2300692?v=4",
"events_url": "https://api.github.com/users/acorbe/events{/privacy}",
"followers_url": "https://api.github.com/users/acorbe/followers",
"following_url": "https://api.github.com/users/acorbe/following{/other_user}",
"gists_url": "https://api.github.com/users/acorbe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/acorbe",
"id": 2300692,
"login": "acorbe",
"node_id": "MDQ6VXNlcjIzMDA2OTI=",
"organizations_url": "https://api.github.com/users/acorbe/orgs",
"received_events_url": "https://api.github.com/users/acorbe/received_events",
"repos_url": "https://api.github.com/users/acorbe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/acorbe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/acorbe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/acorbe"
} | [] | closed | false | null | [] | {
"closed_at": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 16 | 2013-12-08T13:45:21Z | 2014-06-24T04:31:39Z | 2014-01-21T12:48:06Z | CONTRIBUTOR | null | close #5497
**Short story:**
In [this](https://github.com/pydata/pandas/issues/5497) issue I signaled that the x_lim and y_lim in scatter_matrix plots are different. In particular x/y_lim of diagonal hists and x/y_lim of scatter plots are different.
For instance, this causes peaks nonalignments in the 1-margin and 2-margin of the plotted multivariate pdf. See pictures in the issue.
This is a possible fix.
**Long Story:**
In a `scatter_matrix` plot we have a diagonal constituted by histograms and `scatter_plots` to show correlation among variables in the subplots away from the diagonal.
Let's consider this scatter matrix in which we have two variables `A` and `misfit`

The ranges of `A` and of `misfit` are shown by the axis thicks along the boundary subplots (i.e. plots in the first row and column (starting form the bottom left corner)).
As we can see there is a clear misalignment of the peak among plot 1,2 and plot 2,2.
This is due to the fact that the plot range for each plot (`xlim`) is determined automatically by matplotlib, hence there is a possible disagreement among different plots.
In this pull request, the `xlim`s and `ylim`s are forced to be consistent and are calculated as the real ranges of the variables (max - min) plus a given correction (here 5%).
i.e., for each plot
```
rdelta_ext = (rmax_ - rmin_)*xy_range_extension # xy_range_extension defaults 5%
ax.set_xlim( (rmin_ - rdelta_ext , rmax_+ rdelta_ext) )
```
This is an example of a `scatter_matrix` obtained with the correction (please compare e.g subplots 1,2 and 2,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/5665/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5665/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5665.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5665",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/5665.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5665"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5666 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5666/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5666/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5666/events | https://github.com/pandas-dev/pandas/pull/5666 | 23,940,150 | MDExOlB1bGxSZXF1ZXN0MTA2MzMxOTA= | 5,666 | BUG: Work-around a numpy regression affecting pandas.eval() with numexpr | {
"avatar_url": "https://avatars.githubusercontent.com/u/1879063?v=4",
"events_url": "https://api.github.com/users/neirbowj/events{/privacy}",
"followers_url": "https://api.github.com/users/neirbowj/followers",
"following_url": "https://api.github.com/users/neirbowj/following{/other_user}",
"gists_url": "https://api.github.com/users/neirbowj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/neirbowj",
"id": 1879063,
"login": "neirbowj",
"node_id": "MDQ6VXNlcjE4NzkwNjM=",
"organizations_url": "https://api.github.com/users/neirbowj/orgs",
"received_events_url": "https://api.github.com/users/neirbowj/received_events",
"repos_url": "https://api.github.com/users/neirbowj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/neirbowj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/neirbowj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/neirbowj"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 11 | 2013-12-09T04:31:29Z | 2014-06-13T06:54:13Z | 2013-12-09T20:19:46Z | CONTRIBUTOR | null | numpy 1.7.0 erroneously raises IndexError instead of ValueError
from ndarray.item() when the array is not of length 1. This can be
seen as a failure of
```
computation.tests.test_eval.TestScope.test_global_scope
```
for the cases that engine='numexpr'.
Absorb the splatter from this regression by explicitly catching the
erroneous IndexError.
closes #5535.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5666/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5666/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5666.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5666",
"merged_at": "2013-12-09T20:19:46Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5666.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5666"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5667 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5667/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5667/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5667/events | https://github.com/pandas-dev/pandas/pull/5667 | 23,962,804 | MDExOlB1bGxSZXF1ZXN0MTA2NDQ3NjY= | 5,667 | DOC: add pickle compat warning to docs | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-09T13:56:52Z | 2014-06-30T04:29:05Z | 2013-12-09T13:57:05Z | 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/5667/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5667/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5667.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5667",
"merged_at": "2013-12-09T13:57:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5667.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5667"
} |
|
https://api.github.com/repos/pandas-dev/pandas/issues/5668 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5668/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5668/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5668/events | https://github.com/pandas-dev/pandas/issues/5668 | 23,971,639 | MDU6SXNzdWUyMzk3MTYzOQ== | 5,668 | ENH: unsparsify multi-index column labels | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "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"
} | 1 | 2013-12-09T16:02:33Z | 2021-04-11T03:58:01Z | null | CONTRIBUTOR | null | `read_csv` requires the multi-index column labels to be non-sparse in order to properly parse them. I am not sure if this can be done automatically, though maybe a keyword could trigger this.
```
In [40]: def unsparsify_labels(index):
....: new_labels = []
....: for label in index.values:
....: if label[0].startswith('Unnamed'):
....: label = list(label)
....: label[0] = ll
....: label = tuple(label)
....: else:
....: ll = label[0]
....: new_labels.append(label)
....: return MultiIndex.from_tuples(new_labels)
....:
In [41]: unsparsify_labels(x)
Out[41]:
MultiIndex(levels=[[u'A', u'B'], [u'1', u'2']],
labels=[[0, 0, 1, 1], [0, 1, 0, 1]])
In [42]: data = """A,,B,
....: 1,2,1,2
....: 1,2,3,4
....: 5,6,7,8
....: """
In [43]: df = read_csv(StringIO(data),header=[0,1],index_col=None)
In [44]: df
Out[44]:
A Unnamed: 1_level_0 B Unnamed: 3_level_0
1 2 1 2
0 1 2 3 4
1 5 6 7 8
[2 rows x 4 columns]
In [45]: df.columns = unsparsify_labels(df.columns)
In [46]: df
Out[46]:
A B
1 2 1 2
0 1 2 3 4
1 5 6 7 8
[2 rows x 4 columns]
```
http://stackoverflow.com/questions/20473271/importing-multilevel-indexed-cvs-data-with-pandas-0-13/20474982#20474982
| {
"+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/5668/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5668/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5669 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5669/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5669/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5669/events | https://github.com/pandas-dev/pandas/issues/5669 | 23,972,970 | MDU6SXNzdWUyMzk3Mjk3MA== | 5,669 | BUG: reindex on index in a frame using a not-None method is 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": "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"
}
] | 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"
} | 9 | 2013-12-09T16:20:44Z | 2021-04-11T04:00:18Z | null | CONTRIBUTOR | null | reported here:
http://stackoverflow.com/questions/20459782/what-is-the-functionality-of-the-filling-method-when-reindexing
does not appear to be any tests for it, nor is fix that trivial
```
import pandas as pd
import numpy as np
hf_index = pd.date_range(start='2013-05-09 9:00', end='2013-05-13 23:59', freq='1min')
hf_prices = np.random.rand(len(hf_index))
hf = pd.DataFrame(hf_prices, index=hf_index)
hf.ix['2013-05-10 18:00':'2013-05-13 18:00',:]=np.nan
ind_daily = pd.date_range(start='2013-05-09 16:00', end='2013-05-13 16:00', freq='B')
daily1 = hf.reindex(index=ind_daily, method='ffill')
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5669/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5669/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5670 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5670/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5670/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5670/events | https://github.com/pandas-dev/pandas/issues/5670 | 23,978,195 | MDU6SXNzdWUyMzk3ODE5NQ== | 5,670 | BUG: lexsort segfault | {
"avatar_url": "https://avatars.githubusercontent.com/u/980054?v=4",
"events_url": "https://api.github.com/users/dsm054/events{/privacy}",
"followers_url": "https://api.github.com/users/dsm054/followers",
"following_url": "https://api.github.com/users/dsm054/following{/other_user}",
"gists_url": "https://api.github.com/users/dsm054/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dsm054",
"id": 980054,
"login": "dsm054",
"node_id": "MDQ6VXNlcjk4MDA1NA==",
"organizations_url": "https://api.github.com/users/dsm054/orgs",
"received_events_url": "https://api.github.com/users/dsm054/received_events",
"repos_url": "https://api.github.com/users/dsm054/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dsm054/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dsm054/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dsm054"
} | [] | closed | false | null | [] | null | 5 | 2013-12-09T17:32:46Z | 2013-12-14T20:04:54Z | 2013-12-10T04:55:39Z | CONTRIBUTOR | null | Found while fuzz-testing the numpy/pandas interface the other day:
```
>>> import numpy as np, pandas as pd
>>> pd.__version__
'0.13.0rc1-47-g9ac008c'
>>> df = pd.DataFrame(range(5))
>>> np.lexsort(df.values)
array([0])
>>> np.lexsort(df)
Segmentation 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/5670/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5670/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5671 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5671/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5671/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5671/events | https://github.com/pandas-dev/pandas/issues/5671 | 23,986,718 | MDU6SXNzdWUyMzk4NjcxOA== | 5,671 | performance of DataFrame.corrwith vs raw apply | {
"avatar_url": "https://avatars.githubusercontent.com/u/5356340?v=4",
"events_url": "https://api.github.com/users/rosnfeld/events{/privacy}",
"followers_url": "https://api.github.com/users/rosnfeld/followers",
"following_url": "https://api.github.com/users/rosnfeld/following{/other_user}",
"gists_url": "https://api.github.com/users/rosnfeld/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rosnfeld",
"id": 5356340,
"login": "rosnfeld",
"node_id": "MDQ6VXNlcjUzNTYzNDA=",
"organizations_url": "https://api.github.com/users/rosnfeld/orgs",
"received_events_url": "https://api.github.com/users/rosnfeld/received_events",
"repos_url": "https://api.github.com/users/rosnfeld/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rosnfeld/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rosnfeld/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rosnfeld"
} | [
{
"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": "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-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 8 | 2013-12-09T19:29:45Z | 2014-01-28T17:09:24Z | 2014-01-28T16:49:31Z | CONTRIBUTOR | null | For the following example I see corrwith performing considerably more slowly than doing a "raw" apply of np.corrcoef, with the tip code as of 2013-12-08:
```
s = pd.Series(np.arange(4096.))
df = pd.DataFrame({i:i + np.arange(3360.) for i in range(4096)})
%timeit -n 3 df.apply((lambda x: np.corrcoef(x.values, s.values)[0, 1]), axis=1)
3 loops, best of 3: 942 ms per loop
%timeit -n 3 df.corrwith(s, axis=1)
3 loops, best of 3: 1.64 s per loop
```
From comments on #5654 and the forums I would not have expected this to be slower, but it seems corrwith is just turning around and doing an "apply" itself, with some extra conditioning that seems to add significant overhead.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5671/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5671/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5672 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5672/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5672/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5672/events | https://github.com/pandas-dev/pandas/issues/5672 | 24,025,514 | MDU6SXNzdWUyNDAyNTUxNA== | 5,672 | Should pandas preserve NaNs in str methods? | {
"avatar_url": "https://avatars.githubusercontent.com/u/296164?v=4",
"events_url": "https://api.github.com/users/jseabold/events{/privacy}",
"followers_url": "https://api.github.com/users/jseabold/followers",
"following_url": "https://api.github.com/users/jseabold/following{/other_user}",
"gists_url": "https://api.github.com/users/jseabold/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jseabold",
"id": 296164,
"login": "jseabold",
"node_id": "MDQ6VXNlcjI5NjE2NA==",
"organizations_url": "https://api.github.com/users/jseabold/orgs",
"received_events_url": "https://api.github.com/users/jseabold/received_events",
"repos_url": "https://api.github.com/users/jseabold/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jseabold/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jseabold/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jseabold"
} | [
{
"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": "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": 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"
} | 15 | 2013-12-10T10:27:50Z | 2020-05-03T19:58:04Z | 2020-05-03T19:58:03Z | CONTRIBUTOR | null | Since the output of the string methods is primarily boolean, do we want to preserve NaNs? Use case. I load in some data, empty strings (i.e., missing data in a column that's string data) gets automatically converted to NaNs. I have to do fillna everywhere first, or I run into situations like this.
```
dta = pd.DataFrame([["blah"],[np.nan],["foobar"]], columns=['vari'])
dta.vari.str.startswith('f')
dta.ix[dta.vari.str.startswith('f')]
```
Since presumably the primary use case of a boolean series is indexing, do we want to just return False in place of NaNs? Just a thought.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5672/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5672/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5673 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5673/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5673/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5673/events | https://github.com/pandas-dev/pandas/issues/5673 | 24,030,565 | MDU6SXNzdWUyNDAzMDU2NQ== | 5,673 | ODD: many many isinstance calls per df cell, when invoking repr() | {
"avatar_url": "https://avatars.githubusercontent.com/u/10137?v=4",
"events_url": "https://api.github.com/users/ghost/events{/privacy}",
"followers_url": "https://api.github.com/users/ghost/followers",
"following_url": "https://api.github.com/users/ghost/following{/other_user}",
"gists_url": "https://api.github.com/users/ghost/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghost",
"id": 10137,
"login": "ghost",
"node_id": "MDQ6VXNlcjEwMTM3",
"organizations_url": "https://api.github.com/users/ghost/orgs",
"received_events_url": "https://api.github.com/users/ghost/received_events",
"repos_url": "https://api.github.com/users/ghost/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghost/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghost/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghost"
} | [
{
"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": "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": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 3 | 2013-12-10T12:10:44Z | 2014-01-03T01:43:47Z | 2014-01-03T01:43:47Z | NONE | null | ``` python
In [83]: pd.options.display.max_rows=1
...: pd.options.display.max_columns=1
...: df=DataFrame(np.random.randn(1000,1000))
...: %prun -l 5 df._repr_html_()
ncalls tottime percall cumtime percall filename:lineno(function)
209 0.000 0.000 0.000 0.000 {isinstance}
In [84]: pd.options.display.max_rows=2
...: pd.options.display.max_columns=1
...: df=DataFrame(np.random.randn(1000,1000))
...: %prun -l 5 df._repr_html_()
ncalls tottime percall cumtime percall filename:lineno(function)
246 0.000 0.000 0.000 0.000 {isinstance}
In [85]: pd.options.display.max_rows=1
...: pd.options.display.max_columns=2
...: df=DataFrame(np.random.randn(1000,1000))
...: %prun -l 5 df._repr_html_()
ncalls tottime percall cumtime percall filename:lineno(function)
307 0.000 0.000 0.000 0.000 {isinstance}
In [86]: pd.options.display.max_rows=2
...: pd.options.display.max_columns=2
...: df=DataFrame(np.random.randn(1000,1000))
...: %prun -l 5 df._repr_html_()
ncalls tottime percall cumtime percall filename:lineno(function)
355 0.000 0.000 0.000 0.000 {isinstance}
```
I find it strange that outputting a single additional cell in a new column
requires an extra 100 calls to isinstance, or extra 50 if in a new row.
the defaults f
Not necesserily a bug, just puzzling. if this applies more generally,
such as in to_html, the perf could be a problem. as it stand repr
is plenty fast for interactive use, so not a problem.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5673/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5673/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5674 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5674/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5674/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5674/events | https://github.com/pandas-dev/pandas/pull/5674 | 24,038,008 | MDExOlB1bGxSZXF1ZXN0MTA2ODY2NTQ= | 5,674 | BUG: HDFStore improperly inferring a freq on datetimeindexes | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-10T14:28:19Z | 2014-07-16T08:42:49Z | 2013-12-10T14:48:29Z | CONTRIBUTOR | null | surfaced in a doc example
http://stackoverflow.com/questions/20489519/how-come-pandas-select-results-in-the-examples-dont-match
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5674/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5674/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5674.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5674",
"merged_at": "2013-12-10T14:48:29Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5674.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5674"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5675 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5675/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5675/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5675/events | https://github.com/pandas-dev/pandas/pull/5675 | 24,069,456 | MDExOlB1bGxSZXF1ZXN0MTA3MDUxNjU= | 5,675 | BUG: properly handle a user function ingroupby that returns all scalars (GH5592) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-10T22:07:47Z | 2014-06-21T12:51:25Z | 2013-12-10T22:42:06Z | CONTRIBUTOR | null | related #5592
BUG: handle coercion of None for date/time like dtypes in a groupby result
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5675/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5675/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5675.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5675",
"merged_at": "2013-12-10T22:42:06Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5675.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5675"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5676 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5676/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5676/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5676/events | https://github.com/pandas-dev/pandas/issues/5676 | 24,077,349 | MDU6SXNzdWUyNDA3NzM0OQ== | 5,676 | Violin plots? | {
"avatar_url": "https://avatars.githubusercontent.com/u/806256?v=4",
"events_url": "https://api.github.com/users/olgabot/events{/privacy}",
"followers_url": "https://api.github.com/users/olgabot/followers",
"following_url": "https://api.github.com/users/olgabot/following{/other_user}",
"gists_url": "https://api.github.com/users/olgabot/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/olgabot",
"id": 806256,
"login": "olgabot",
"node_id": "MDQ6VXNlcjgwNjI1Ng==",
"organizations_url": "https://api.github.com/users/olgabot/orgs",
"received_events_url": "https://api.github.com/users/olgabot/received_events",
"repos_url": "https://api.github.com/users/olgabot/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/olgabot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/olgabot/subscriptions",
"type": "User",
"url": "https://api.github.com/users/olgabot"
} | [] | closed | false | null | [] | null | 19 | 2013-12-11T00:30:23Z | 2014-01-29T21:28:06Z | 2013-12-14T22:21:11Z | NONE | null | Besides boxplots, another way to look at the distribution of data is by violin plots:
http://nbviewer.ipython.org/gist/olgabot/7902901
I'd like to add this to pandas. Is there interest in these plots? It currently depends on my `prettyplotlib` but that can be removed. My concern is that it depends on `scipy.stats.gaussian_kde` - is that fine?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5676/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5676/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5677 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5677/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5677/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5677/events | https://github.com/pandas-dev/pandas/issues/5677 | 24,080,635 | MDU6SXNzdWUyNDA4MDYzNQ== | 5,677 | ENH/API: clarify groupby by to handle columns/index names | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "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": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
} | 17 | 2013-12-11T01:52:05Z | 2016-12-14T20:40:11Z | 2016-12-14T20:39:39Z | CONTRIBUTOR | null | Referenced briefly in the OP at #3275
``` python
In [11]: idx = pd.MultiIndex.from_tuples([('a', 1), ('a', 2), ('a', 3), ('b', 1), ('b', 2), ('b', 3)])
In [12]: idx.names = ['outer', 'inner']
In [13]: df = pd.DataFrame({"A": np.arange(6), 'B': ['one', 'one', 'two', 'two', 'one', 'one']}, index=idx)
```
So the idea is to be able to call
``` python
df.groupby('B', level='inner')
```
instead of
``` python
In [15]: df.reset_index().groupby(['B', 'inner']).mean()
Out[15]:
A
B inner
one 1 0.0
2 2.5
3 5.0
two 1 3.0
3 2.0
[5 rows x 1 columns]
```
Currently this raises `TypeError: 'numpy.ndarray' object is not callable`. Mostly just syntactic sugar, but I've been having to do a lot of this lately and all the `reset_index`es are getting annoying. Thoughts?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5677/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5677/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5678 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5678/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5678/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5678/events | https://github.com/pandas-dev/pandas/issues/5678 | 24,105,710 | MDU6SXNzdWUyNDEwNTcxMA== | 5,678 | API: selection from a duplicated index of a Series return a Series? | {
"avatar_url": "https://avatars.githubusercontent.com/u/101264?v=4",
"events_url": "https://api.github.com/users/floux/events{/privacy}",
"followers_url": "https://api.github.com/users/floux/followers",
"following_url": "https://api.github.com/users/floux/following{/other_user}",
"gists_url": "https://api.github.com/users/floux/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/floux",
"id": 101264,
"login": "floux",
"node_id": "MDQ6VXNlcjEwMTI2NA==",
"organizations_url": "https://api.github.com/users/floux/orgs",
"received_events_url": "https://api.github.com/users/floux/received_events",
"repos_url": "https://api.github.com/users/floux/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/floux/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/floux/subscriptions",
"type": "User",
"url": "https://api.github.com/users/floux"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 4 | 2013-12-11T13:10:33Z | 2013-12-11T18:05:38Z | 2013-12-11T15:26:47Z | NONE | null | See below for discussion
---
```
In [19]: import pandas as pd
In [20]: import numpy as np
In [21]: import random
In [22]: df = pd.DataFrame(np.random.random_sample((20,5)), index=[random.choice('ABCDE') for x in range(20)])
In [23]: df.loc[:,0].ix['A'].median()
Out[23]: 0.57704085832236685
In [24]: pd.version.version
Out[24]: '0.12.0'
In [1]: import pandas as pd
In [2]: import numpy as np
In [3]: import random
In [4]: df = pd.DataFrame(np.random.random_sample((20,5)), index=[random.choice('ABCDE') for x in range(20)])
In [5]: df.loc[:,0].ix['A'].median()
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-5-57f9fc9d1583> in <module>()
----> 1 df.loc[:,0].ix['A'].median()
AttributeError: 'numpy.ndarray' object has no attribute 'median'
In [6]: pd.version.version
Out[6]: '0.13.0rc1-43-g4f9fefc'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5678/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5678/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5679 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5679/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5679/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5679/events | https://github.com/pandas-dev/pandas/pull/5679 | 24,108,274 | MDExOlB1bGxSZXF1ZXN0MTA3MjY2MTk= | 5,679 | API/ENH: Detect trying to set inplace on copies in a nicer way, related (GH5597) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 3 | 2013-12-11T14:01:37Z | 2014-06-13T22:14:03Z | 2013-12-11T21:10:14Z | CONTRIBUTOR | null | related #5597
pretty common error that I have seen, originally from:
http://stackoverflow.com/questions/20508968/series-fillna-in-a-multiindex-dataframe-does-not-fill-is-this-a-bug
```
In [1]: a = [12, 23]
In [2]: b = [123, None]
In [3]: c = [1234, 2345]
In [4]: d = [12345, 23456]
In [5]: tuples = [('eyes', 'left'), ('eyes', 'right'), ('ears', 'left'), ('ears', 'right')]
In [6]: events = {('eyes', 'left'): a, ('eyes', 'right'): b, ('ears', 'left'): c, ('ears', 'right'): d}
In [7]: multiind = pandas.MultiIndex.from_tuples(tuples, names=['part', 'side'])
In [8]: zed = pandas.DataFrame(events, index=['a', 'b'], columns=multiind)
```
Shows a warning (the message is comewhat generic)
```
In [9]: zed['eyes']['right'].fillna(value=555, inplace=True)
/usr/local/bin/ipython:1: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame
#!/usr/local/bin/python
In [10]: zed
Out[10]:
part eyes ears
side left right left right
a 12 123 1234 12345
b 23 NaN 2345 23456
[2 rows x 4 columns]
```
Correct method
```
In [11]: zed.loc[:,('eyes','right')].fillna(value=555, inplace=True)
In [12]: zed
Out[12]:
part eyes ears
side left right left right
a 12 123 1234 12345
b 23 555 2345 23456
[2 rows x 4 columns]
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5679/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5679/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5679.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5679",
"merged_at": "2013-12-11T21:10:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5679.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5679"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5680 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5680/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5680/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5680/events | https://github.com/pandas-dev/pandas/pull/5680 | 24,110,149 | MDExOlB1bGxSZXF1ZXN0MTA3Mjc2NzE= | 5,680 | BUG: Bug in repeated indexing of object with resultant non-unique index (GH5678) | {
"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"
} | [] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 0 | 2013-12-11T14:33:26Z | 2014-07-09T16:15:48Z | 2013-12-11T15:26:47Z | CONTRIBUTOR | null | closes #5678
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5680/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5680/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5680.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5680",
"merged_at": "2013-12-11T15:26:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5680.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5680"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5681 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5681/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5681/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5681/events | https://github.com/pandas-dev/pandas/issues/5681 | 24,113,175 | MDU6SXNzdWUyNDExMzE3NQ== | 5,681 | Can't assign a sum'ed series to a dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/2766856?v=4",
"events_url": "https://api.github.com/users/darindillon/events{/privacy}",
"followers_url": "https://api.github.com/users/darindillon/followers",
"following_url": "https://api.github.com/users/darindillon/following{/other_user}",
"gists_url": "https://api.github.com/users/darindillon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/darindillon",
"id": 2766856,
"login": "darindillon",
"node_id": "MDQ6VXNlcjI3NjY4NTY=",
"organizations_url": "https://api.github.com/users/darindillon/orgs",
"received_events_url": "https://api.github.com/users/darindillon/received_events",
"repos_url": "https://api.github.com/users/darindillon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/darindillon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/darindillon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/darindillon"
} | [] | closed | false | null | [] | null | 1 | 2013-12-11T15:18:21Z | 2013-12-11T15:36:18Z | 2013-12-11T15:36:18Z | NONE | null | Using pandas 0.11, there appears to be a bug (or at least non-intuitive behavior) when setting a sum on a dataframe. Any advice?
p = pandas.DataFrame({ 'x' : [1,2,3], 'y' : [1,2,3] })
sumOfP = p.sum() #Gives a Series of [6,6]. OK.
totals = pandas.DataFrame({ 'someOtherSeries' : [1,2])
totals['sumOfP'] = sumOfP #BAD! This is now [nan, nan]
I'd expect totals['sumOfP'] to be [6,6]. So why is it nan,nan?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5681/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5681/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5682 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5682/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5682/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5682/events | https://github.com/pandas-dev/pandas/pull/5682 | 24,155,460 | MDExOlB1bGxSZXF1ZXN0MTA3NTM0NDY= | 5,682 | DISP: show column dtype in DataFrame.info() output | {
"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 | 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-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 20 | 2013-12-12T03:13:32Z | 2014-06-12T20:01:14Z | 2014-01-01T02:54:25Z | MEMBER | null | closes #3429.
Old:
```
In [39]: DataFrame(randn(10,2)).info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 10 entries, 0 to 9
Data columns (total 2 columns):
0 10 non-null values
1 10 non-null values
dtypes: float64(2)
```
New:
```
In [39]: DataFrame(randn(10,2)).info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 10 entries, 0 to 9
Data columns (total 2 columns):
0 10 non-null float64
1 10 non-null object
dtypes: float64(1), object(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/5682/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5682/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5682.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5682",
"merged_at": "2014-01-01T02:54:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/5682.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5682"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/5683 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5683/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5683/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5683/events | https://github.com/pandas-dev/pandas/issues/5683 | 24,168,273 | MDU6SXNzdWUyNDE2ODI3Mw== | 5,683 | Failed to assign new value to masked serie | {
"avatar_url": "https://avatars.githubusercontent.com/u/6168661?v=4",
"events_url": "https://api.github.com/users/omar-masmoudi/events{/privacy}",
"followers_url": "https://api.github.com/users/omar-masmoudi/followers",
"following_url": "https://api.github.com/users/omar-masmoudi/following{/other_user}",
"gists_url": "https://api.github.com/users/omar-masmoudi/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/omar-masmoudi",
"id": 6168661,
"login": "omar-masmoudi",
"node_id": "MDQ6VXNlcjYxNjg2NjE=",
"organizations_url": "https://api.github.com/users/omar-masmoudi/orgs",
"received_events_url": "https://api.github.com/users/omar-masmoudi/received_events",
"repos_url": "https://api.github.com/users/omar-masmoudi/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/omar-masmoudi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/omar-masmoudi/subscriptions",
"type": "User",
"url": "https://api.github.com/users/omar-masmoudi"
} | [
{
"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": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | {
"closed_at": "2013-12-30T19:53:14Z",
"closed_issues": 1076,
"created_at": "2012-11-15T23:33:37Z",
"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": "RC1 ANN went out on 2013-12-6: https://groups.google.com/forum/#!topic/pydata/OHutLByJvK0\r\nTwo weeks, clear all reported bugs then call it on 2013-12-20. \r\n(@y-p)\r\n\r\nsince we've had some bugs reported at a high enough rate, extending rc by one\r\nweek until 2013-12-27. \r\n(@y-p)\r\n\r\nBumping to clear debian sparc\r\n2013-12-30. \r\n(@y-p)",
"due_on": "2013-12-30T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/18",
"id": 213925,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18/labels",
"node_id": "MDk6TWlsZXN0b25lMjEzOTI1",
"number": 18,
"open_issues": 0,
"state": "closed",
"title": "0.13",
"updated_at": "2017-07-22T19:00:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/18"
} | 1 | 2013-12-12T10:15:10Z | 2013-12-12T12:44:17Z | 2013-12-12T12:44:17Z | NONE | null | Hello,
```
#!/bin/env python
import pandas as pd
import numpy as np
import sys
print sys.version
print "NUMPY:", np.__version__
print "PANDAS:", pd.__version__
df = pd.DataFrame([[0, None], [4, 3]], columns=['a','b'])
print df
df["c"] = 1.0
#print df #uncomment and result change
df["c"][~df.all(axis=1)] = 2
print df
print df.c
```
gives
```
2.7.2 (default, Jul 30 2012, 17:32:47)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
NUMPY: 1.7.1
PANDAS: 0.12.0
a b
0 0 NaN
1 4 3
a b c
0 0 NaN 1
1 4 3 1
0 2
1 1
Name: c, dtype: float64
```
As you can see, I try to change value of the c columns to "2" for the element where one of the column is null and it does not work.
The serie is however modified.
What is even stranger is that adding an intermediate print (uncomment above) changes the behavior.
I was not able to find any duplicate of this issue.
Thanks in advance for having a look.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5683/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5683/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5684 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5684/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5684/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5684/events | https://github.com/pandas-dev/pandas/issues/5684 | 24,182,757 | MDU6SXNzdWUyNDE4Mjc1Nw== | 5,684 | BUG: Series.xs() inconsistent with DataFrame.xs() with MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "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-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 4 | 2013-12-12T14:47:14Z | 2014-02-05T02:08:12Z | 2014-02-05T02:08:12Z | CONTRIBUTOR | null | _Edited to clarify the bug_
`Series.xs` slice fails with string index labels and MultiIndex:
``` python
In [1]: idx = pd.MultiIndex.from_tuples([('a', 'one'), ('a', 'two'), ('b', 'one'), ('b', 'two')])
In [2]: df = pd.Series(np.random.randn(4), index=idx)
In [4]: df.index.set_names(['L1', 'L2'], inplace=True)
In [5]: df
Out[5]:
L1 L2
a one -0.136418
two -0.346941
b one -1.468534
two 1.217693
dtype: float64
In [6]: df.xs('one', level='L2')
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-6-52601adf5184> in <module>()
----> 1 df.xs('one', level='L2')
/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas-0.13.0rc1_27_g4d5ca5c-py2.7-macosx-10.8-x86_64.egg/pandas/core/series.pyc in _xs(self, key, axis, level, copy)
437
438 def _xs(self, key, axis=0, level=None, copy=True):
--> 439 return self.__getitem__(key)
440
441 xs = _xs
/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas-0.13.0rc1_27_g4d5ca5c-py2.7-macosx-10.8-x86_64.egg/pandas/core/series.pyc in __getitem__(self, key)
482 def __getitem__(self, key):
483 try:
--> 484 return self.index.get_value(self, key)
485 except InvalidIndexError:
486 pass
/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas-0.13.0rc1_27_g4d5ca5c-py2.7-macosx-10.8-x86_64.egg/pandas/core/index.pyc in get_value(self, series, key)
2294 raise InvalidIndexError(key)
2295 else:
-> 2296 raise e1
2297 except Exception: # pragma: no cover
2298 raise e1
KeyError: 'one'
```
The same slice works on a DataFrame.
Previous post below:
``` python
In [12]: idx = pd.MultiIndex.from_tuples([('a', 0), ('a', 1), ('b', 0), ('b', 1)])
In [13]: df = pd.Series(np.random.randn(4), index=idx)
In [14]: df
Out[14]:
a 0 0.876121
1 0.638050
b 0 0.965934
1 1.061716
dtype: float64
In [15]: df.xs(0, level=1) # returns scaler
Out[15]: 0.87612104445620753
In [16]: df.index.names = ['L1', 'L2']
In [27]: df.xs(0, level='L2') # returns scaler
Out[27]: -0.98585685847339011
In [28]: df.xs(0, level='L1') # No key error
Out[28]: -0.98585685847339011
```
Works for DataFrames:
``` python
In [30]: df.xs(0, level='L2')
Out[30]:
0
L1
a -0.985857
b 0.648114
[2 rows x 1 columns]
```
`Series.xs` also seems to fail on string index labels?
``` python
In [50]: idx = pd.MultiIndex.from_tuples([('a', 'one'), ('a', 'two'), ('b', 'one'), ('b', 'two')])
In [53]: df = pd.Series(np.random.randn(4), index=idx)
In [56]: df.xs('one', level='L2')
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-56-52601adf5184> in <module>()
----> 1 df.xs('one', level='L2')
/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas-0.13.0rc1_27_g4d5ca5c-py2.7-macosx-10.8-x86_64.egg/pandas/core/series.pyc in _xs(self, key, axis, level, copy)
437
438 def _xs(self, key, axis=0, level=None, copy=True):
--> 439 return self.__getitem__(key)
440
441 xs = _xs
/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas-0.13.0rc1_27_g4d5ca5c-py2.7-macosx-10.8-x86_64.egg/pandas/core/series.pyc in __getitem__(self, key)
482 def __getitem__(self, key):
483 try:
--> 484 return self.index.get_value(self, key)
485 except InvalidIndexError:
486 pass
/Users/tom/Envs/pandas-dev/lib/python2.7/site-packages/pandas-0.13.0rc1_27_g4d5ca5c-py2.7-macosx-10.8-x86_64.egg/pandas/core/index.pyc in get_value(self, series, key)
2294 raise InvalidIndexError(key)
2295 else:
-> 2296 raise e1
2297 except Exception: # pragma: no cover
2298 raise e1
KeyError: 'one'
```
So I guess this is about 3 errors on `Series.xs` (possibly related?):
1. Returning scalers when it should return a Series when the label is an integer
2. Not raising key errors when the label is an integer
3. Failing on slices for `level>1` when the label is a string.
EDIT: Oh, and I know that `.loc` / `.ix` will work for these. I was just surprised by the results.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5684/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5684/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5685 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5685/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5685/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5685/events | https://github.com/pandas-dev/pandas/issues/5685 | 24,191,574 | MDU6SXNzdWUyNDE5MTU3NA== | 5,685 | Attribute access to DataFrame behaves incorrectly | {
"avatar_url": "https://avatars.githubusercontent.com/u/101264?v=4",
"events_url": "https://api.github.com/users/floux/events{/privacy}",
"followers_url": "https://api.github.com/users/floux/followers",
"following_url": "https://api.github.com/users/floux/following{/other_user}",
"gists_url": "https://api.github.com/users/floux/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/floux",
"id": 101264,
"login": "floux",
"node_id": "MDQ6VXNlcjEwMTI2NA==",
"organizations_url": "https://api.github.com/users/floux/orgs",
"received_events_url": "https://api.github.com/users/floux/received_events",
"repos_url": "https://api.github.com/users/floux/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/floux/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/floux/subscriptions",
"type": "User",
"url": "https://api.github.com/users/floux"
} | [] | closed | false | null | [] | null | 3 | 2013-12-12T16:50:54Z | 2013-12-13T12:32:54Z | 2013-12-13T12:32:54Z | NONE | null | ```
In [80]: dat = pd.DataFrame({'a' : [1,2,3], 'b' : [4,5,6]})
In [81]: dat
Out[81]:
a b
0 1 4
1 2 5
2 3 6
[3 rows x 2 columns]
In [82]: dat.c = 1
In [83]: dat
Out[83]:
a b
0 1 4
1 2 5
2 3 6
[3 rows x 2 columns]
In [84]: dat['c'] = 2
In [85]: dat
Out[85]:
a b c
0 1 4 2
1 2 5 2
2 3 6 2
[3 rows x 3 columns]
In [86]: dat.c
Out[86]: 1
In [87]: pd.version.version
Out[87]: '0.13.0rc1-64-gceec8bf'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5685/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5685/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5686 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5686/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5686/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5686/events | https://github.com/pandas-dev/pandas/issues/5686 | 24,193,460 | MDU6SXNzdWUyNDE5MzQ2MA== | 5,686 | Add ability to process bad lines for read_csv | {
"avatar_url": "https://avatars.githubusercontent.com/u/416731?v=4",
"events_url": "https://api.github.com/users/tbicr/events{/privacy}",
"followers_url": "https://api.github.com/users/tbicr/followers",
"following_url": "https://api.github.com/users/tbicr/following{/other_user}",
"gists_url": "https://api.github.com/users/tbicr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/tbicr",
"id": 416731,
"login": "tbicr",
"node_id": "MDQ6VXNlcjQxNjczMQ==",
"organizations_url": "https://api.github.com/users/tbicr/orgs",
"received_events_url": "https://api.github.com/users/tbicr/received_events",
"repos_url": "https://api.github.com/users/tbicr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/tbicr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/tbicr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/tbicr"
} | [
{
"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_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] | open | false | null | [] | {
"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"
} | 19 | 2013-12-12T17:16:47Z | 2021-10-16T17:40:03Z | null | NONE | null | CSV files can contains some errors, for example:
```
NAME,PAT
Peter,cat
really bad line
Fedor,cat
```
to skip really bad lines exist `error_bad_lines=False` parameter.
Another example without quotes and delimiters in field:
```
NAME,PAT
Peter,cat
Ira,cat,dog
Fedor,cat
```
Which with quotes will look like this:
```
NAME,PAT
Peter,cat
Ira,"cat,dog"
Fedor,cat
```
So it easy fix this line if know that first field not contain extra separators.
Also extra trailing delimiters issue: https://github.com/pydata/pandas/issues/2886
More real life example:
```
82,52,29,11,2,2013-08-02 00:00:00,,,gen,,FDP, employee,0,1,gen,,,0
55,69,36,19,2,2013-10-28 00:00:00,,,gen,,FDP employee,0,1,gen,,,0
```
There are difference for `FDP employee` and `FDP, employee`. So it will be grate to have ability process this bad lines with own handler.
My proposition add additional parameter `process_bad_lines` for `read_csv`.
For example, if I want fix line:
```
def bad_line_handler(items):
'''probably ugly example,
but lets imagine that `FDP, employee` is half of our data'''
fdp_index = items.index('FDP')
return items[:fdp_index] + ['FDP, employee'] + items[fdp_index + 2:]
pd.read_csv(file, process_bad_lines=bad_line_handler)
```
1. `error_bad_line` and `warn_bad_line` can work as before but at first once try replace bad string with `process_bad_lines` handler.
2. if `process_bad_lines` will return `None` when probably better just skip this line without exceptions (probably it more flexible), to store compatibility just return unchanged `items` parameter. Otherwise `None` can be equal to bad line and better raise exceptions from `process_bad_lines` handler.
3. not always I can already create CSV file with quotes, somebody already send me bad CSV.
4. I can pre-process file but it will take more time and work, see for example http://stackoverflow.com/questions/14550441/problems-reading-csv-file-with-commas-and-characters-in-pandas
Some additions:
For example I have no much string fields and can assume that one of strings contains separator:
```
int,int,int,int,int,datetime,,,str,,str,str,int,int,str,,,int
int,int,int,int,int,datetime,,,str,,str ,int,int,str,,,int
```
But it can work bad for many strings:
```
int,int,int,int,int,datetime,str,str,str,str,str,str,int,int,str,,,int
int,int,int,int,int,datetime, str,str,str,str,str ,int,int,str,,,int
```
However it also be grate have default methods to fix this strings with concatenating left strings:
```
int,int,int,int,int,datetime,str,str,str,str,str,str,int,int,str,,,int
int,int,int,int,int,datetime, STR ,str,str,str,str,int,int,str,,,int
# for example with next syntax
pd.read_csv(file, process_bad_lines='try_concat_left')
```
or right strings:
```
int,int,int,int,int,datetime,str,str,str,str,str,str,int,int,str,,,int
int,int,int,int,int,datetime,str,str,str,str, STR ,int,int,str,,,int
# for example with next syntax
pd.read_csv(file, process_bad_lines='try_concat_right')
```
and also removing extra trailing delimiters:
```
pd.read_csv(file, process_bad_lines='skip_right_delimiters')
```
| {
"+1": 23,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 23,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5686/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5686/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5687 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5687/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5687/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5687/events | https://github.com/pandas-dev/pandas/issues/5687 | 24,205,481 | MDU6SXNzdWUyNDIwNTQ4MQ== | 5,687 | Exception in detect_console_encoding when runnind under erlport | {
"avatar_url": "https://avatars.githubusercontent.com/u/837725?v=4",
"events_url": "https://api.github.com/users/ghego/events{/privacy}",
"followers_url": "https://api.github.com/users/ghego/followers",
"following_url": "https://api.github.com/users/ghego/following{/other_user}",
"gists_url": "https://api.github.com/users/ghego/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ghego",
"id": 837725,
"login": "ghego",
"node_id": "MDQ6VXNlcjgzNzcyNQ==",
"organizations_url": "https://api.github.com/users/ghego/orgs",
"received_events_url": "https://api.github.com/users/ghego/received_events",
"repos_url": "https://api.github.com/users/ghego/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ghego/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ghego/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ghego"
} | [] | closed | false | null | [] | null | 10 | 2013-12-12T20:19:40Z | 2013-12-13T11:38:27Z | 2013-12-12T21:36:13Z | NONE | null | pandas version: '0.12.0'
numpy version: '1.7.1'
erlport version: '1.0.0beta'
I am passing data between erlang and python using erlport, following the example here:
http://erlport.org/docs/python.html
the python file I'm calling only contains the line:
import pandas as pd
I am getting the error:
``` python
** exception error: {python,'exceptions.AttributeError',
"'function' object has no attribute 'lower'",
[{<<"/anaconda/lib/python2.7/site-packages/pandas/core/format.py">>,
1701,<<"detect_console_encoding">>,
<<"if not encoding or 'ascii' in encoding.lower(): # try again for something bette"...>>},
{<<"/anaconda/lib/python2.7/site-packages/pandas/core/config_init.py">>,
234,<<"<module>">>,
<<"cf.register_option('encoding', detect_console_encoding(), pc_encoding_doc,">>},
{<<"/anaconda/lib/python2.7/site-packages/pandas/__init__.py">>,
25,<<"<module>">>,<<"import pandas.core.config_init">>},
{<<"/Documents/data-algorithms/Alg"...>>,
3,<<"<module>">>,<<"import pandas as pd">>},
{<<"/Documents/testki"...>>,
237,<<"_incoming_call">>,
<<"f = __import__(module, {}, {}, [objects[0]])">>},
{<<"/Documents/te"...>>,
245,<<"_call_with_error_handler">>,<<"function(*args)">>}]}
in function erlport:call/3 (src/erlport.erl, line 234)
in call from algo_tester:start/0 (src/algo_tester.erl, line 27)
```
I can get rid of the error by commenting out the following two lines in /anaconda/lib/python2.7/site-packages/pandas/core/config_init.py:
``` python
234 cf.register_option('encoding', detect_console_encoding(), pc_encoding_doc,
235 validator=is_text)
```
but then `print` doesn't work any longer.
Has anyone encountered this before?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5687/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5687/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5688 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5688/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5688/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5688/events | https://github.com/pandas-dev/pandas/issues/5688 | 24,209,728 | MDU6SXNzdWUyNDIwOTcyOA== | 5,688 | NaT Not Correctly showing up as null value | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | {
"closed_at": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 1 | 2013-12-12T21:27:31Z | 2013-12-12T21:59:22Z | 2013-12-12T21:59:22Z | CONTRIBUTOR | null | On pandas 0.12:
```
pd.DataFrame( pd.Series([datetime(2012,12,12).replace(tzinfo=pytz.utc)] + [pd.NaT]*100))
```
I would argue this should show 1 non null-value:
```
<class 'pandas.core.frame.DataFrame'>
Int64Index: 101 entries, 0 to 100
Data columns (total 1 columns):
0 101 non-null values
dtypes: object(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/5688/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5688/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5689 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5689/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5689/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5689/events | https://github.com/pandas-dev/pandas/issues/5689 | 24,216,004 | MDU6SXNzdWUyNDIxNjAwNA== | 5,689 | BUG: timedelta64 dtype inference in Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [
{
"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": "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": "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": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 3 | 2013-12-12T23:09:22Z | 2014-02-04T15:53:19Z | 2014-01-20T23:37:17Z | CONTRIBUTOR | null | related #5690
This works:
```
pd.Series(np.array([np.timedelta64(300000000)]))
```
```
0 00:00:00.300000
dtype: timedelta64
```
but this does not:
```
pd.Series([np.timedelta64(300000000)])
```
on Numpy 1.7:
```
TypeError: don't know how to convert scalar number to float
```
and on Numpy 1.8:
```
0 300000000
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/5689/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5689/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5690 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5690/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5690/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5690/events | https://github.com/pandas-dev/pandas/issues/5690 | 24,217,963 | MDU6SXNzdWUyNDIxNzk2Mw== | 5,690 | min and max of timedelta64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "5319e7",
"default": false,
"description": "Timedelta data type",
"id": 49597148,
"name": "Timedelta",
"node_id": "MDU6TGFiZWw0OTU5NzE0OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timedelta"
}
] | closed | false | null | [] | {
"closed_at": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 4 | 2013-12-12T23:50:07Z | 2013-12-13T15:20:00Z | 2013-12-13T15:20:00Z | CONTRIBUTOR | null | related #5689
On pandas v12:
I thought this was fixed in #2990, but:
both of these:
```
pd.DataFrame(pd.Series((np.array([np.timedelta64(3000000000),np.timedelta64(3000000000)])))).min()
```
and
```
pd.Series((np.array([np.timedelta64(3000000000),np.timedelta64(3000000000)]))).min()
```
produce:
```
/usr/lib64/python2.7/site-packages/pandas/core/series.py in min(self, axis, out, skipna, level)
1509 if level is not None:
1510 return self._agg_by_level('min', level=level, skipna=skipna)
-> 1511 return nanops.nanmin(self.values, skipna=skipna)
1512
1513 @Substitution(name='maximum', shortname='max',
/usr/lib64/python2.7/site-packages/pandas/core/nanops.py in f(values, axis, skipna, **kwds)
78 result = alt(values, axis=axis, skipna=skipna, **kwds)
79 except Exception:
---> 80 result = alt(values, axis=axis, skipna=skipna, **kwds)
81
82 return result
/usr/lib64/python2.7/site-packages/pandas/core/nanops.py in nanmin(values, axis, skipna)
279 @bottleneck_switch()
280 def nanmin(values, axis=None, skipna=True):
--> 281 values, mask, dtype = _get_values(values, skipna, fill_value_typ = '+inf')
282
283 # numpy 1.6.1 workaround in Python 3.x
/usr/lib64/python2.7/site-packages/pandas/core/nanops.py in _get_values(values, skipna, fill_value, fill_value_typ, isfinite, copy)
130 mask = _isfinite(values)
131 else:
--> 132 mask = isnull(values)
133
134 dtype = values.dtype
/usr/lib64/python2.7/site-packages/pandas/core/common.py in isnull(obj)
59 given which of the element is null.
60 """
---> 61 return _isnull(obj)
62
63
/usr/lib64/python2.7/site-packages/pandas/core/common.py in _isnull_new(obj)
68 from pandas.core.generic import PandasContainer
69 if isinstance(obj, np.ndarray):
---> 70 return _isnull_ndarraylike(obj)
71 elif isinstance(obj, PandasContainer):
72 # TODO: optimize for DataFrame, etc.
/usr/lib64/python2.7/site-packages/pandas/core/common.py in _isnull_ndarraylike(obj)
157 else:
158 # -np.isfinite(obj)
--> 159 result = np.isnan(obj)
160 return result
161
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
```
I get the same Error with max as well.
median appears to work, although the type is incorrect:
```
In [144]:
pd.DataFrame(pd.Series((np.array([np.timedelta64(3000000000),np.timedelta64(3000000000)])))).median()
Out[144]:
0 3000000000
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/5690/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5690/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5691 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5691/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5691/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5691/events | https://github.com/pandas-dev/pandas/issues/5691 | 24,234,373 | MDU6SXNzdWUyNDIzNDM3Mw== | 5,691 | Attribute access bug? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1813375?v=4",
"events_url": "https://api.github.com/users/jcrmatos/events{/privacy}",
"followers_url": "https://api.github.com/users/jcrmatos/followers",
"following_url": "https://api.github.com/users/jcrmatos/following{/other_user}",
"gists_url": "https://api.github.com/users/jcrmatos/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jcrmatos",
"id": 1813375,
"login": "jcrmatos",
"node_id": "MDQ6VXNlcjE4MTMzNzU=",
"organizations_url": "https://api.github.com/users/jcrmatos/orgs",
"received_events_url": "https://api.github.com/users/jcrmatos/received_events",
"repos_url": "https://api.github.com/users/jcrmatos/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jcrmatos/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jcrmatos/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jcrmatos"
} | [] | closed | false | null | [] | null | 3 | 2013-12-13T09:09:14Z | 2013-12-13T22:22:25Z | 2013-12-13T22:22:25Z | NONE | null | Hello,
I'm using Python 7.2.3 and Pandas 0.12.0.
When I run the code below, it works as expected, by creating new items and updating them.
```
quotes_premiums = quotes_cc_returns.transpose(2, 1, 0)
quotes_premiums['RiskPremium'] = quotes_premiums.CC_Returns.sub(ff_data_factors_subset.RF, axis=0)
quotes_premiums['MktRiskPremium'] = 0.0
quotes_premiums['MktRiskPremium'] = quotes_premiums.MktRiskPremium.add(ff_data_factors_subset.MktMinusRF, axis=0)
quotes_premiums.MktRiskPremium.iloc[0] = None
quotes_premiums = quotes_premiums.transpose(2, 1, 0)
quotes_premiums['VFINX'].head()
Open High Low Close Volume AdjClose CC_Returns RiskPremium MktRiskPremium
Date
2001-01-31 118.44 126.88 118.44 126.18 0 99.74 NaN NaN NaN
2001-02-28 126.88 126.88 114.65 114.65 0 90.62 -0.095892 -0.099792 -0.1008
2001-03-31 114.77 116.99 103.12 107.07 0 84.86 -0.065672 -0.070072 -0.0727
2001-04-30 105.74 115.75 101.83 115.39 0 91.45 0.074790 0.070890 0.0795
2001-05-31 116.95 121.36 115.11 116.14 0 92.05 0.006540 0.003340 0.0073
```
However, if I make a single change, using what I think is called Attribute access, it stops updating the MktRiskPremium item (column after transpose).
```
quotes_premiums.MktRiskPremium = quotes_premiums.MktRiskPremium.add(ff_data_factors_subset.MktMinusRF, axis=0)
quotes_premiums['VFINX'].head()
Open High Low Close Volume AdjClose CC_Returns RiskPremium MktRiskPremium
Date
2001-01-31 118.44 126.88 118.44 126.18 0 99.74 NaN NaN 0
2001-02-28 126.88 126.88 114.65 114.65 0 90.62 -0.095892 -0.099792 0
2001-03-31 114.77 116.99 103.12 107.07 0 84.86 -0.065672 -0.070072 0
2001-04-30 105.74 115.75 101.83 115.39 0 91.45 0.074790 0.070890 0
2001-05-31 116.95 121.36 115.11 116.14 0 92.05 0.006540 0.003340 0
```
Is this normal?
Thanks,
JM
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5691/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5691/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5692 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5692/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5692/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5692/events | https://github.com/pandas-dev/pandas/issues/5692 | 24,243,450 | MDU6SXNzdWUyNDI0MzQ1MA== | 5,692 | Series.fillna() docs still claim self is return if inplace=True | {
"avatar_url": "https://avatars.githubusercontent.com/u/86760?v=4",
"events_url": "https://api.github.com/users/wjt/events{/privacy}",
"followers_url": "https://api.github.com/users/wjt/followers",
"following_url": "https://api.github.com/users/wjt/following{/other_user}",
"gists_url": "https://api.github.com/users/wjt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wjt",
"id": 86760,
"login": "wjt",
"node_id": "MDQ6VXNlcjg2NzYw",
"organizations_url": "https://api.github.com/users/wjt/orgs",
"received_events_url": "https://api.github.com/users/wjt/received_events",
"repos_url": "https://api.github.com/users/wjt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wjt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wjt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wjt"
} | [
{
"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": "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": "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": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 4 | 2013-12-13T12:27:49Z | 2014-02-18T19:48:40Z | 2014-02-18T19:48:40Z | CONTRIBUTOR | null | In master, `NDFrame.fillna`'s `inplace` parameter's docs claim:
> If True, fill in place. Note: this will modify any
> other views on this object, (e.g. a no-copy slice for a column in a
> DataFrame). **Still returns the object.**
But this is not consistently true. If `inplace=True`, `self` is only returned on a couple of paths. In the typical case of `s = Series(); s.fillna(-1, inplace=True)`, `None` is returned.
In 0.12.0 (and judging by a warning in an earlier version, from 0.11), `Series.fillna` consistently (and very deliberately) returns `None` if `inplace=True`, despite its docs claiming something similar:
> If True, fill the Series in place. Note: this will modify any other
> views on this Series, for example a column in a DataFrame. Returns
> a reference to the filled object, **which is self if inplace=True**
So I believe the intended behaviour is to consistently return `None` if `inplace=True`, and the docs are simply out of date.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5692/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5692/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5693 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5693/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5693/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5693/events | https://github.com/pandas-dev/pandas/issues/5693 | 24,256,737 | MDU6SXNzdWUyNDI1NjczNw== | 5,693 | incorrect behavior of string-indexed Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/706653?v=4",
"events_url": "https://api.github.com/users/gtakacs/events{/privacy}",
"followers_url": "https://api.github.com/users/gtakacs/followers",
"following_url": "https://api.github.com/users/gtakacs/following{/other_user}",
"gists_url": "https://api.github.com/users/gtakacs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gtakacs",
"id": 706653,
"login": "gtakacs",
"node_id": "MDQ6VXNlcjcwNjY1Mw==",
"organizations_url": "https://api.github.com/users/gtakacs/orgs",
"received_events_url": "https://api.github.com/users/gtakacs/received_events",
"repos_url": "https://api.github.com/users/gtakacs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gtakacs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gtakacs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gtakacs"
} | [
{
"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 | [] | null | 1 | 2013-12-13T16:30:20Z | 2013-12-13T16:33:33Z | 2013-12-13T16:33:19Z | NONE | null | The following code gives "IndexError: Out of bounds on buffer access (axis 0)"
(pandas version: 0.12.0, Python version: 3.3.2, OS: Linux):
pandas.Series([0], ["y"])[["x", "x", "y"]]
If "x" is replaced to 1 and "y" to 2, then the error disappears.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5693/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5693/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5694 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5694/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5694/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5694/events | https://github.com/pandas-dev/pandas/issues/5694 | 24,256,738 | MDU6SXNzdWUyNDI1NjczOA== | 5,694 | Incorrect resampling due to DST | {
"avatar_url": "https://avatars.githubusercontent.com/u/1470270?v=4",
"events_url": "https://api.github.com/users/dalbani/events{/privacy}",
"followers_url": "https://api.github.com/users/dalbani/followers",
"following_url": "https://api.github.com/users/dalbani/following{/other_user}",
"gists_url": "https://api.github.com/users/dalbani/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dalbani",
"id": 1470270,
"login": "dalbani",
"node_id": "MDQ6VXNlcjE0NzAyNzA=",
"organizations_url": "https://api.github.com/users/dalbani/orgs",
"received_events_url": "https://api.github.com/users/dalbani/received_events",
"repos_url": "https://api.github.com/users/dalbani/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dalbani/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dalbani/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dalbani"
} | [
{
"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": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
},
{
"color": "5319e7",
"default": false,
"description": "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": "resample method",
"id": 74975453,
"name": "Resample",
"node_id": "MDU6TGFiZWw3NDk3NTQ1Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Resample"
}
] | closed | false | null | [] | {
"closed_at": "2014-12-12T13:45:40Z",
"closed_issues": 173,
"created_at": "2014-10-07T14:40:52Z",
"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.1 of course",
"due_on": "2014-12-12T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/30",
"id": 816816,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30/labels",
"node_id": "MDk6TWlsZXN0b25lODE2ODE2",
"number": 30,
"open_issues": 0,
"state": "closed",
"title": "0.15.2",
"updated_at": "2015-07-29T20:17:19Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/30"
} | 8 | 2013-12-13T16:30:20Z | 2014-11-06T12:42:10Z | 2014-11-06T12:42:10Z | NONE | null | related #5172
Given this DataFrame, with an index containing the moment when DST changes (October 27th in the case of the "Europe/Paris" timezone):
```
index = pandas.date_range('2013-09-30', '2013-11-02', freq = '30Min', tz = 'UTC').tz_convert('Europe/Paris')
column_a = pandas.np.random.random(index.size)
column_b = pandas.np.random.random(index.size)
df = pandas.DataFrame({ "a": column_a, "b": column_b }, index = index)
```
Let's say I want to find the "min" and "max" values for each month:
```
df.resample("MS", how = { "a": "min", "b": "max" })
```
Here's the incorrect result:
```
a b
2013-09-01 00:00:00+02:00 0.015856 0.979541
2013-10-01 00:00:00+02:00 0.002039 0.999960
2013-10-31 23:00:00+01:00 NaN NaN
```
Same problem with a "W-MON" frequency:
```
a b
2013-09-30 00:00:00+02:00 0.015856 0.979541
2013-10-07 00:00:00+02:00 0.007961 0.999734
2013-10-14 00:00:00+02:00 0.002614 0.993354
2013-10-21 00:00:00+02:00 0.005655 0.999960
2013-10-27 23:00:00+01:00 NaN NaN
2013-11-03 23:00:00+01:00 NaN NaN
```
Whereas it works fine with a "D" frequency.
```
a b
...
2013-10-26 00:00:00+02:00 0.004645 0.983281
2013-10-27 00:00:00+02:00 0.030151 0.986827
2013-10-28 00:00:00+01:00 0.015891 0.981455
2013-10-29 00:00:00+01:00 0.024176 0.999306
...
```
Should I resample only the "a" column, it also works fine:
```
df["a"].resample("MS", how = "min")
```
```
2013-09-01 00:00:00+02:00 0.015856
2013-10-01 00:00:00+02:00 0.002039
2013-11-01 00:00:00+01:00 0.000747
Freq: MS, dtype: float64
```
Tested with latest pandas from GIT master.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5694/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5694/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5695 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5695/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5695/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5695/events | https://github.com/pandas-dev/pandas/issues/5695 | 24,256,820 | MDU6SXNzdWUyNDI1NjgyMA== | 5,695 | Left Join with timedelta64 does not produce correct nulls | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "5319e7",
"default": false,
"description": "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": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 0 | 2013-12-13T16:31:35Z | 2014-01-20T23:37:17Z | 2014-01-20T23:37:17Z | CONTRIBUTOR | null | related example: http://stackoverflow.com/questions/20789976/python-pandas-dataframe-1st-line-issue-with-datetime-timedelta/20802902?noredirect=1#comment31195305_20802902
```
import datetime
import pandas as pd
parms = {'d': datetime.datetime(2013, 11, 5, 5, 56), 't':datetime.timedelta(0, 22500)}
df = pd.DataFrame(columns=list('dt'))
df = df.append(parms, ignore_index=True)
erroneous code:
>>> df.append(parms, ignore_index=True)
d t
0 2013-11-05 05:56:00 22500000000000
1 2013-11-05 05:56:00 6:15:00
```
The notion of nullness is not handled well for `timedelta64` columns when performing a left join:
```
In [194]:
pd.DataFrame(pd.Series([np.timedelta64(300000000),np.timedelta64(300000000)],dtype='m8[ns]',index=["A","B"])).join(
pd.DataFrame(pd.Series([np.timedelta64(300000000)],dtype='m8[ns]',index=["A"])),rsuffix='r', how="left").info()
Out [194]:
<class 'pandas.core.frame.DataFrame'>
Index: 2 entries, A to B
Data columns (total 2 columns):
0 2 non-null values
0r 1 non-null values
dtypes: float64(1), timedelta64[ns](1)
```
The column with a mix of timedelta64 and `nulls` gets cast to a `float64`.
This seems incorrect since `NaT` should be usable to indicate the null:
```
In [196]:
pd.Series([np.timedelta64(300000000), pd.NaT],dtype='m8[ns]')
Out[196]:
0 00:00:00.300000
1 NaT
dtype: timedelta64[ns]
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5695/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5695/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5696 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5696/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5696/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5696/events | https://github.com/pandas-dev/pandas/issues/5696 | 24,258,516 | MDU6SXNzdWUyNDI1ODUxNg== | 5,696 | Display Pure "Date"s Without Time | {
"avatar_url": "https://avatars.githubusercontent.com/u/51059?v=4",
"events_url": "https://api.github.com/users/cancan101/events{/privacy}",
"followers_url": "https://api.github.com/users/cancan101/followers",
"following_url": "https://api.github.com/users/cancan101/following{/other_user}",
"gists_url": "https://api.github.com/users/cancan101/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cancan101",
"id": 51059,
"login": "cancan101",
"node_id": "MDQ6VXNlcjUxMDU5",
"organizations_url": "https://api.github.com/users/cancan101/orgs",
"received_events_url": "https://api.github.com/users/cancan101/received_events",
"repos_url": "https://api.github.com/users/cancan101/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cancan101/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cancan101/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cancan101"
} | [
{
"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": "009800",
"default": false,
"description": "Duplicate issue or pull request",
"id": 40153326,
"name": "Duplicate Report",
"node_id": "MDU6TGFiZWw0MDE1MzMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Duplicate%20Report"
}
] | closed | false | null | [] | null | 3 | 2013-12-13T16:58:01Z | 2013-12-13T17:30:57Z | 2013-12-13T17:04:52Z | CONTRIBUTOR | null | I have a `Series` of "dates" (actually `datetime`s all at midnight), Is there any way to get this `Series` or `column` to render as just the date without the time string of "00:00:00"?
```
In [248]:
pd.Series([datetime(2013,1,1),datetime(2013,2,1)])
Out[248]:
0 2013-01-01 00:00:00
1 2013-02-01 00:00:00
dtype: datetime64[ns]
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5696/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5696/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5697 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5697/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5697/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5697/events | https://github.com/pandas-dev/pandas/issues/5697 | 24,259,208 | MDU6SXNzdWUyNDI1OTIwOA== | 5,697 | data loss in read_csv | {
"avatar_url": "https://avatars.githubusercontent.com/u/706653?v=4",
"events_url": "https://api.github.com/users/gtakacs/events{/privacy}",
"followers_url": "https://api.github.com/users/gtakacs/followers",
"following_url": "https://api.github.com/users/gtakacs/following{/other_user}",
"gists_url": "https://api.github.com/users/gtakacs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gtakacs",
"id": 706653,
"login": "gtakacs",
"node_id": "MDQ6VXNlcjcwNjY1Mw==",
"organizations_url": "https://api.github.com/users/gtakacs/orgs",
"received_events_url": "https://api.github.com/users/gtakacs/received_events",
"repos_url": "https://api.github.com/users/gtakacs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gtakacs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gtakacs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gtakacs"
} | [
{
"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": "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"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 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 | 2013-12-13T17:09:12Z | 2017-05-04T13:41:27Z | 2017-05-04T13:41:27Z | NONE | null | The read_csv function gives strange results for certain input files
(pandas version: 0.12.0, Python version: 3.3.2, OS: Linux):
import io, pandas
f = io.StringIO("x\n\n1111111111111111111")
df = pandas.read_csv(f)
print(int(df.x[1])) # 1111111111111111168
We have data loss due to rounding! The correct behavior in my opinion would be to treat the column as string, if np.float64 is not enough to represent it exactly.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5697/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5697/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5698 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5698/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5698/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5698/events | https://github.com/pandas-dev/pandas/issues/5698 | 24,279,073 | MDU6SXNzdWUyNDI3OTA3Mw== | 5,698 | Series Changes breaks rpy2? | {
"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": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": "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": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 63 | 2013-12-13T23:22:57Z | 2014-09-21T00:55:42Z | 2014-01-24T15:24:19Z | CONTRIBUTOR | null | It seems that the changes to to Series break the data conversion to R: running this Notebook doesn't work anymore with some dev version from last week:
https://gist.github.com/kevindavenport/7771325/raw/87ab5603f406729c6a3866f95af9a1ebfedcf619/Mahalanobis_Outliers.ipynb
The resulting error is this:
``` python
#xydata=pandas.DataFrame(...)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-38-74fcaa767ca0> in <module>()
----> 1 get_ipython().run_cell_magic(u'R', u'-i xydata,xycols # list object to be transferred to python here', u'install.packages("ggplot2") # Had to add this for some reason, shouldn\'t be necessary\nlibrary(ggplot2)\ndf = data.frame(xydata)\nnames(df) <- c(xycols)\nprint(head(df))\nplot = ggplot(df, aes(x = X, y = Y)) + \ngeom_point(alpha = .8, color = \'dodgerblue\',size = 5) +\ngeom_point(data=subset(df, Y >= 6.7 | X >= 4), color = \'red\',size = 6) +\ntheme(axis.text.x = element_text(size= rel(1.5),angle=90, hjust=1)) +\nggtitle(\'Distance Pairs with outliers highlighted in red\')\nprint(plot)')
C:\portabel\Python27\lib\site-packages\IPython\core\interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)
2141 magic_arg_s = self.var_expand(line, stack_depth)
2142 with self.builtin_trap:
-> 2143 result = fn(magic_arg_s, cell)
2144 return result
2145
C:\portabel\Python27\lib\site-packages\IPython\extensions\rmagic.py in R(self, line, cell, local_ns)
C:\portabel\Python27\lib\site-packages\IPython\core\magic.pyc in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
C:\portabel\Python27\lib\site-packages\IPython\extensions\rmagic.py in R(self, line, cell, local_ns)
585 except KeyError:
586 raise NameError("name '%s' is not defined" % input)
--> 587 self.r.assign(input, self.pyconverter(val))
588
589 if getattr(args, 'units') is not None:
C:\portabel\Python27\lib\site-packages\rpy2\robjects\functions.pyc in __call__(self, *args, **kwargs)
84 v = kwargs.pop(k)
85 kwargs[r_k] = v
---> 86 return super(SignatureTranslatedFunction, self).__call__(*args, **kwargs)
C:\portabel\Python27\lib\site-packages\rpy2\robjects\functions.pyc in __call__(self, *args, **kwargs)
29
30 def __call__(self, *args, **kwargs):
---> 31 new_args = [conversion.py2ri(a) for a in args]
32 new_kwargs = {}
33 for k, v in kwargs.iteritems():
C:\portabel\Python27\lib\site-packages\rpy2\robjects\pandas2ri.pyc in pandas2ri(obj)
26 od[name] = StrVector(values)
27 else:
---> 28 od[name] = ro.conversion.py2ri(values)
29 return DataFrame(od)
30 elif isinstance(obj, PandasIndex):
C:\portabel\Python27\lib\site-packages\rpy2\robjects\pandas2ri.pyc in pandas2ri(obj)
49 else:
50 # converted as a numpy array
---> 51 res = original_conversion(obj)
52 # "index" is equivalent to "names" in R
53 if obj.ndim == 1:
C:\portabel\Python27\lib\site-packages\rpy2\robjects\numpy2ri.pyc in numpy2ri(o)
56 raise(ValueError("Unknown numpy array type."))
57 else:
---> 58 res = ro.default_py2ri(o)
59 return res
60
C:\portabel\Python27\lib\site-packages\rpy2\robjects\__init__.pyc in default_py2ri(o)
146 res = rinterface.SexpVector([o, ], rinterface.CPLXSXP)
147 else:
--> 148 raise(ValueError("Nothing can be done for the type %s at the moment." %(type(o))))
149 return res
150
ValueError: Nothing can be done for the type <class 'pandas.core.series.Series'> at the moment.
```
I'm not sure if this is something pandas cares, but even if not it would be nice to mention it in the release notes.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5698/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5698/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5699 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5699/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5699/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5699/events | https://github.com/pandas-dev/pandas/issues/5699 | 24,299,463 | MDU6SXNzdWUyNDI5OTQ2Mw== | 5,699 | Odd StringMixin behavior | {
"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": "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": "2014-02-03T05:17:36Z",
"closed_issues": 314,
"created_at": "2013-08-26T22:11:58Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1598379?v=4",
"events_url": "https://api.github.com/users/jtratner/events{/privacy}",
"followers_url": "https://api.github.com/users/jtratner/followers",
"following_url": "https://api.github.com/users/jtratner/following{/other_user}",
"gists_url": "https://api.github.com/users/jtratner/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jtratner",
"id": 1598379,
"login": "jtratner",
"node_id": "MDQ6VXNlcjE1OTgzNzk=",
"organizations_url": "https://api.github.com/users/jtratner/orgs",
"received_events_url": "https://api.github.com/users/jtratner/received_events",
"repos_url": "https://api.github.com/users/jtratner/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jtratner/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jtratner/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jtratner"
},
"description": "Set to 2014-01-20\r\n@y-p\r\n\r\n0.13.0 ANN finally out on 2014-01-15, resetting two weeks hence, on 2014-01-29\r\n@y-p\r\n\r\n2014-01-27: Still getting steady bug reports, pushing one week to 2014-02-4\r\n@y-p\r\n\r\n2014-02-03: Released.",
"due_on": "2014-02-04T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/23",
"id": 412013,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23/labels",
"node_id": "MDk6TWlsZXN0b25lNDEyMDEz",
"number": 23,
"open_issues": 0,
"state": "closed",
"title": "0.13.1",
"updated_at": "2014-02-03T05:18:00Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/23"
} | 15 | 2013-12-14T20:58:43Z | 2013-12-14T23:15:34Z | 2013-12-14T22:57:24Z | MEMBER | null | A unicode-indexed frame:
```
In [2]: df = mkdf(3, 2, r_idx_type='u')
In [3]: df
Out[3]:
C0 C_l0_g0 C_l0_g1
R0
7ืืฃืืืืืฆื4 R0C0 R0C1
ืืงืืื441ืืฅ R1C0 R1C1
35ืื5ืจ13ื2 R2C0 R2C1
[3 rows x 2 columns]
In [4]: <Ctrl-D>
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
```
If I don't `repr` it, things exit IPython smoothly.
A trivial subclass of `StringMixin` is fine
```
In [1]: class Blob(pandas.core.base.StringMixin):
...: def __unicode__(self):
...: return type(self).__name__
...:
In [2]: Blob()
Out[2]: Blob
In [3]: <Ctrl-D> # <- Fine
```
However, when I add unicode characters to the repr, mega-borkage follows:
```
In [1]: class Blob(pandas.core.base.StringMixin):
...: def __unicode__(self):
...: return pandas.compat.u('\u22ee')
...:
In [2]: Blob()
Out[2]: โฎ
In [3]: <Ctrl-D> # same traceback as above
```
Looks like could be IPython too. I'll see if I can't track it down.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5699/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5699/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/5700 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/5700/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/5700/comments | https://api.github.com/repos/pandas-dev/pandas/issues/5700/events | https://github.com/pandas-dev/pandas/pull/5700 | 24,299,757 | MDExOlB1bGxSZXF1ZXN0MTA4MzMyNTQ= | 5,700 | Add cdfplot | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [] | closed | false | null | [] | {
"closed_at": "2014-05-30T12:17:57Z",
"closed_issues": 755,
"created_at": "2014-01-03T20:19:04Z",
"creator": null,
"description": "2014-02-3: previous version released",
"due_on": "2014-05-31T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/24",
"id": 526062,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24/labels",
"node_id": "MDk6TWlsZXN0b25lNTI2MDYy",
"number": 24,
"open_issues": 0,
"state": "closed",
"title": "0.14.0",
"updated_at": "2016-12-29T13:57:13Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/24"
} | 4 | 2013-12-14T21:16:42Z | 2014-06-14T08:27:47Z | 2014-01-29T04:19:09Z | CONTRIBUTOR | null | WIP for now. Closes #2669
I'm using statsmodels' KDE implementation right now; it has a `cdf` method, but scipy's gaussian_kde doesn't. I need to check the math, but I think something like doing a cumsum on the density and normalizing by the sum should be the same.
I'm also going to add kwargs for things like the inverse cdf.

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/5700/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/5700/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/5700.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/5700",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/5700.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/5700"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.