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/8201 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8201/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8201/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8201/events | https://github.com/pandas-dev/pandas/pull/8201 | 42,129,560 | MDExOlB1bGxSZXF1ZXN0MjA4NTQ1MjI= | 8,201 | ERR: pass original error message in read_sql_query (GH7730) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
},
{
"color": "5319... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-06T23:14:30Z | 2014-09-09T07:51:16Z | 2014-09-09T07:51:12Z | MEMBER | null | Closes #7730
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8201/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8201/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8201.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8201",
"merged_at": "2014-09-09T07:51:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8201.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8201"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8202 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8202/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8202/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8202/events | https://github.com/pandas-dev/pandas/pull/8202 | 42,138,601 | MDExOlB1bGxSZXF1ZXN0MjA4NTg0OTQ= | 8,202 | PERF: Switch to try/except in extract() rather than instance check | {
"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": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "5319e7",
"default"... | 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"
} | 8 | 2014-09-07T09:41:37Z | 2014-09-07T19:13:15Z | 2014-09-07T16:47:56Z | CONTRIBUTOR | null | See #7269 for more. (doesn't completely resolve the speed difference, but it gets a 10-15% improvement).
Timing improvement is there, but it's small.
```
In [20]: %timeit test.str.match(pattern2)
10 loops, best of 3: 170 ms per loop
In [21]: %timeit test.str.extract(pattern2)
10 loops, best of 3: 317 ms per loop
In [22]: %timeit -n try_except_str_extract2(test, pattern2)
10 loops, best of 3: 265 ms per loop
```
@jreback - this is very minor, but if you think this needs a release note,
where should I put it?
This passed locally for me, but if Travis fails I'll fix it up.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8202/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8202/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8202.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8202",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8202.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8202"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8203 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8203/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8203/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8203/events | https://github.com/pandas-dev/pandas/pull/8203 | 42,138,899 | MDExOlB1bGxSZXF1ZXN0MjA4NTg2MjI= | 8,203 | BUG: Fix mismatched logic error in compatibility check | {
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
"id": 49254273,
"name": "IO Excel",
"node_id": "MDU6TGFiZWw0OTI1NDI3Mw==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Excel"
},
{
"color": "0052cc",
"default": false,
"de... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-07T10:01:23Z | 2014-09-07T12:52:01Z | 2014-09-07T12:52:01Z | CONTRIBUTOR | null | We want to support below 2.0 (non-inclusive), but including 1.6.1. Check was
doing the opposite. Not worth merging if we accept #7565 , but just wanted this
here as a ping if we don't so we're internally consistent.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8203/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8203/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8203.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8203",
"merged_at": "2014-09-07T12:52:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8203.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8203"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8204 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8204/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8204/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8204/events | https://github.com/pandas-dev/pandas/pull/8204 | 42,144,845 | MDExOlB1bGxSZXF1ZXN0MjA4NjEyMDg= | 8,204 | DOC: reorg indexing 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"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing o... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 7 | 2014-09-07T15:43:08Z | 2014-09-12T13:45:03Z | 2014-09-12T13:45:03Z | CONTRIBUTOR | null | DOC: created advanced indexing section
DOC: add internals section (GH4082)
Mostly just splitting up the indexing docs, but I reorded / revised the Multiindex sections
a bit to avoid duplication / make more clear.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8204/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8204/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8204.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8204",
"merged_at": "2014-09-12T13:45:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8204.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8204"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8205 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8205/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8205/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8205/events | https://github.com/pandas-dev/pandas/pull/8205 | 42,151,025 | MDExOlB1bGxSZXF1ZXN0MjA4NjM5Mzg= | 8,205 | ENH: sql support for Timestamp (GH7103) | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 4 | 2014-09-07T20:15:03Z | 2014-09-09T07:56:45Z | 2014-09-09T07:52:53Z | MEMBER | null | Superceded by #8208 (converting to object dtype also converts the datetime64 values to datetime.datetime, so it is no longer needed that sqlalchemy can work with pandas' Timestamp type.
---
Closes #7103, #7936
This adds a `pandas.io.sql.Timestamp` class to handle `Timestamp`s in `to_sql`. This basically converts it to a `datetime.datetime` before writing to the database.
Problem is that this makes it slower (I tested it with sqlite, and it's for a dataframe with only a datetime64 column about 20% slower), while it did already work before for some drivers (like psycopg2 and MySQLdb).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8205/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8205/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8205.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8205",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8205.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8205"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8206 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8206/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8206/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8206/events | https://github.com/pandas-dev/pandas/issues/8206 | 42,151,400 | MDU6SXNzdWU0MjE1MTQwMA== | 8,206 | lineterminator in to_csv doesn't work | {
"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": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"... | 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 | 2014-09-07T20:29:51Z | 2016-07-29T07:56:46Z | 2016-07-29T07:56:20Z | MEMBER | null | ```
In [3]: df = pd.DataFrame({'a': ['3.4', '34.400'], 'b': ['5,5', '10,200']})
In [4]: df
Out[4]:
a b
0 3.4 5,5
1 34.400 10,200
In [5]: df.to_csv(lineterminator='-')
Out[5]: ',a,b\n0,3.4,"5,5"\n1,34.400,"10,200"\n'
```
I would've expected
```
Out[5]: ',a,b-0,3.4,"5.5"-1,34.400,"10,200"-'
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8206/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8206/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8207 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8207/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8207/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8207/events | https://github.com/pandas-dev/pandas/issues/8207 | 42,151,803 | MDU6SXNzdWU0MjE1MTgwMw== | 8,207 | CI: updates builds | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-07T20:46:49Z | 2014-10-04T14:32:22Z | 2014-10-04T14:32:22Z | CONTRIBUTOR | null | - [ ] numpy 1.9.0
- [ ] matplotlib 1.4.0
maybe 3.4 build
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8207/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8207/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8208 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8208/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8208/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8208/events | https://github.com/pandas-dev/pandas/pull/8208 | 42,152,507 | MDExOlB1bGxSZXF1ZXN0MjA4NjQ1NzQ= | 8,208 | ENH: sql support for writing NaN + datetime64 values (GH2754, GH7103) | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate",
"id": 2822342,
"name": "Missing-data",
"node_id": "MDU6TGFiZWwyODIyMzQy",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Missing-data"
},
{
"color": "5319e7"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 15 | 2014-09-07T21:16:07Z | 2014-09-21T19:05:04Z | 2014-09-13T21:48:56Z | MEMBER | null | Closes #2754
Closes #7103, #7936 (supercedes PR #8205 for this)
Closes #7567
Database drivers expect `None` to translate this to `NULL`.
Therefore, dataframe is cast to object dtype to convert `NaN` to `None`.
To check: performance impact. In principle should also not needed for integer colums (can't have NaNs)
Kind of API change: it did already work for postgresql (psycopg2), but it was translated to postgresql's `NaN` and now to `NULL` which is something different (but I think this is actually an improvement)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8208/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8208/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8208.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8208",
"merged_at": "2014-09-13T21:48:56Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8208.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8208"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8209 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8209/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8209/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8209/events | https://github.com/pandas-dev/pandas/issues/8209 | 42,157,364 | MDU6SXNzdWU0MjE1NzM2NA== | 8,209 | AttributeError on datetime.timedelta assignment after reindex | {
"avatar_url": "https://avatars.githubusercontent.com/u/1832699?v=4",
"events_url": "https://api.github.com/users/flaviovs/events{/privacy}",
"followers_url": "https://api.github.com/users/flaviovs/followers",
"following_url": "https://api.github.com/users/flaviovs/following{/other_user}",
"gists_url": "https://api.github.com/users/flaviovs/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/flaviovs",
"id": 1832699,
"login": "flaviovs",
"node_id": "MDQ6VXNlcjE4MzI2OTk=",
"organizations_url": "https://api.github.com/users/flaviovs/orgs",
"received_events_url": "https://api.github.com/users/flaviovs/received_events",
"repos_url": "https://api.github.com/users/flaviovs/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/flaviovs/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/flaviovs/subscriptions",
"type": "User",
"url": "https://api.github.com/users/flaviovs"
} | [
{
"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",
... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 11 | 2014-09-08T00:56:58Z | 2014-09-13T22:59:30Z | 2014-09-13T22:59:30Z | NONE | null | In the code below, I expected that the assignment didn't fail, since everything seems "right" . However, AttributeError is being raised.
A bug? Am I doing something wrong?
``` python
In [106]: import pandas as pd
In [107]: import datetime as dt
In [108]: s = pd.Series([])
In [109]: s
Out[109]: Series([], dtype: float64)
In [110]: s.loc['B'] = dt.timedelta(1)
In [111]: s
Out[111]:
B 1 days
dtype: timedelta64[ns]
In [112]: s = s.reindex(s.index.insert(0, 'A'))
In [113]: s
Out[113]:
A NaT
B 1 days
dtype: timedelta64[ns]
In [114]: s.loc['A'] = dt.timedelta(1)
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-114-f662acce72ae> in <module>()
----> 1 s.loc['A'] = dt.timedelta(1)
/home/flaviovs/.virtualenv/hm/local/lib/python2.7/site-packages/pandas-0.14.1_354_g12248ff-py2.7-linux-x86_64.egg/pandas/core/indexing.pyc in __setitem__(self, key, value)
/home/flaviovs/.virtualenv/hm/local/lib/python2.7/site-packages/pandas-0.14.1_354_g12248ff-py2.7-linux-x86_64.egg/pandas/core/indexing.pyc in _setitem_with_indexer(self, indexer, value)
/home/flaviovs/.virtualenv/hm/local/lib/python2.7/site-packages/pandas-0.14.1_354_g12248ff-py2.7-linux-x86_64.egg/pandas/core/internals.pyc in setitem(self, **kwargs)
/home/flaviovs/.virtualenv/hm/local/lib/python2.7/site-packages/pandas-0.14.1_354_g12248ff-py2.7-linux-x86_64.egg/pandas/core/internals.pyc in apply(self, f, axes, filter, do_integrity_check, **kwargs)
/home/flaviovs/.virtualenv/hm/local/lib/python2.7/site-packages/pandas-0.14.1_354_g12248ff-py2.7-linux-x86_64.egg/pandas/core/internals.pyc in setitem(self, indexer, value)
/home/flaviovs/.virtualenv/hm/local/lib/python2.7/site-packages/pandas-0.14.1_354_g12248ff-py2.7-linux-x86_64.egg/pandas/core/internals.pyc in _try_coerce_args(self, values, other)
/home/flaviovs/.virtualenv/hm/local/lib/python2.7/site-packages/pandas-0.14.1_354_g12248ff-py2.7-linux-x86_64.egg/pandas/core/internals.pyc in masker(v)
AttributeError: 'datetime.timedelta' object has no attribute 'view'
```
Tried with 0.14.1 and latest on GH (v0.15pre) , to no avail.
I'm so sorry I'm not able to provide a patch right now (still wrapping my head around pandas internals -- any directions about how to fix this is issue will be appreciated, though).
Versions:
``` python
In [125]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.2.60
machine: x86_64
processor:
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
pandas: 0.14.1-354-g12248ff
nose: None
Cython: 0.20.1
numpy: 1.8.1
scipy: None
statsmodels: None
IPython: 2.1.0
sphinx: None
patsy: None
scikits.timeseries: None
dateutil: 2.2
pytz: 2014.3
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.1.1rc2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8209/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8209/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8210 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8210/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8210/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8210/events | https://github.com/pandas-dev/pandas/pull/8210 | 42,160,343 | MDExOlB1bGxSZXF1ZXN0MjA4NjgyODQ= | 8,210 | BUG: Fix groupby duplicate column error message | {
"avatar_url": "https://avatars.githubusercontent.com/u/590921?v=4",
"events_url": "https://api.github.com/users/bthyreau/events{/privacy}",
"followers_url": "https://api.github.com/users/bthyreau/followers",
"following_url": "https://api.github.com/users/bthyreau/following{/other_user}",
"gists_url": "https://api.github.com/users/bthyreau/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bthyreau",
"id": 590921,
"login": "bthyreau",
"node_id": "MDQ6VXNlcjU5MDkyMQ==",
"organizations_url": "https://api.github.com/users/bthyreau/orgs",
"received_events_url": "https://api.github.com/users/bthyreau/received_events",
"repos_url": "https://api.github.com/users/bthyreau/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bthyreau/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bthyreau/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bthyreau"
} | [
{
"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": "ffa0ff",
"default": false,
"description": "Incorrect or im... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 10 | 2014-09-08T02:41:35Z | 2014-09-14T14:30:10Z | 2014-09-10T19:50:50Z | CONTRIBUTOR | null | closes #7511
Though having duplicated column names in a dataframe is never a good idea, it may happen, and that shouldn't confuse groupby() with a meaningless message. Currently
``` python
>>> obj=pd.DataFrame(columns=["A","B","A", "C"], data=[range(4), range(2,6), range(0, 8, 2)])
>>> obj.groupby("A").mean()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "pandas/core/generic.py", line 2846, in groupby
sort=sort, group_keys=group_keys, squeeze=squeeze)
File "pandas/core/groupby.py", line 1173, in groupby
return klass(obj, by, **kwds)
File "pandas/core/groupby.py", line 390, in __init__
level=level, sort=sort)
File "pandas/core/groupby.py", line 2086, in _get_grouper
ping = Grouping(group_axis, gpr, obj=obj, name=name, level=level, sort=sort)
File "pandas/core/groupby.py", line 1925, in __init__
self.grouper = self.index.map(self.grouper)
File "pandas/core/index.py", line 1524, in map
return self._arrmap(self.values, mapper)
File "generated.pyx", line 2203, in pandas.algos.arrmap_int64 (pandas/algos.c:72274)
TypeError: 'DataFrame' object is not callable
```
This patch fixes that.
``` python
>>> obj.groupby("A").mean()
B C
A A
0 2 1 3
4 2 6
2 4 3 5
```
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/8210/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8210/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8210.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8210",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8210.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8210"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8211 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8211/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8211/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8211/events | https://github.com/pandas-dev/pandas/issues/8211 | 42,165,801 | MDU6SXNzdWU0MjE2NTgwMQ== | 8,211 | Integers coerced to float on Series construction from dictionary. | {
"avatar_url": "https://avatars.githubusercontent.com/u/1588357?v=4",
"events_url": "https://api.github.com/users/ssanderson/events{/privacy}",
"followers_url": "https://api.github.com/users/ssanderson/followers",
"following_url": "https://api.github.com/users/ssanderson/following{/other_user}",
"gists_url": "https://api.github.com/users/ssanderson/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ssanderson",
"id": 1588357,
"login": "ssanderson",
"node_id": "MDQ6VXNlcjE1ODgzNTc=",
"organizations_url": "https://api.github.com/users/ssanderson/orgs",
"received_events_url": "https://api.github.com/users/ssanderson/received_events",
"repos_url": "https://api.github.com/users/ssanderson/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ssanderson/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ssanderson/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ssanderson"
} | [
{
"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": "005... | closed | false | null | [] | null | 4 | 2014-09-08T05:34:48Z | 2014-09-08T14:44:56Z | 2014-09-08T11:07:41Z | CONTRIBUTOR | null | When constructing a Series from a dictionary, if the dictionary contains floats, all integer values in the dictionary are coerced to `float` **unless** the dictionary contains an integer value > `sys.maxint`.
Minimal repro case:
```
import pandas as pd
import sys
if __name__ == '__main__':
pd.show_versions()
# Works as expected.
t0 = {'A': 1,
'B': 10}
# B gets coerced to float.
t1 = {'A': 1.5,
'B': 10}
# B gets coerced to float.
t2 = {'A': 1.5,
'B': 10,
'C': sys.maxint}
# B is not coerced if the dictionary contains a value > maxint.
t3 = {'A': 1.5,
'B': 10,
'C': sys.maxint + 1}
test_0 = pd.Series(t0)
test_1 = pd.Series(t1)
test_2 = pd.Series(t2)
test_3 = pd.Series(t3)
for test in test_0, test_1, test_2, test_3:
print "Type at index B is %s" % format(type(test.B))
```
Output:
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.6.final.0
python-bits: 64
OS: Darwin
OS-release: 13.1.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.14.1
nose: 1.3.3
Cython: 0.20.1
numpy: 1.8.1
scipy: 0.13.2
statsmodels: 0.5.0
IPython: 2.2.0
sphinx: 1.2.1
patsy: 0.2.1
scikits.timeseries: None
dateutil: 2.2
pytz: 2014.4
bottleneck: None
tables: 3.1.1
numexpr: 2.4
matplotlib: 1.3.1
openpyxl: None
xlrd: 0.9.3
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
httplib2: 0.8
apiclient: None
rpy2: None
sqlalchemy: None
pymysql: None
psycopg2: None
Type at index B is <type 'numpy.int64'>
Type at index B is <type 'numpy.float64'>
Type at index B is <type 'numpy.float64'>
Type at index B is <type 'int'>
```
Stepping through the code, the coercion looks like it's happening in the call to `lib.fast_multiget` at https://github.com/pydata/pandas/blob/v0.14.1/pandas/core/series.py#L191.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8211/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8211/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8212 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8212/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8212/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8212/events | https://github.com/pandas-dev/pandas/issues/8212 | 42,170,106 | MDU6SXNzdWU0MjE3MDEwNg== | 8,212 | ENH: read_excel dtypes and converts | {
"avatar_url": "https://avatars.githubusercontent.com/u/1200640?v=4",
"events_url": "https://api.github.com/users/iosonofabio/events{/privacy}",
"followers_url": "https://api.github.com/users/iosonofabio/followers",
"following_url": "https://api.github.com/users/iosonofabio/following{/other_user}",
"gists_url": "https://api.github.com/users/iosonofabio/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/iosonofabio",
"id": 1200640,
"login": "iosonofabio",
"node_id": "MDQ6VXNlcjEyMDA2NDA=",
"organizations_url": "https://api.github.com/users/iosonofabio/orgs",
"received_events_url": "https://api.github.com/users/iosonofabio/received_events",
"repos_url": "https://api.github.com/users/iosonofabio/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/iosonofabio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iosonofabio/subscriptions",
"type": "User",
"url": "https://api.github.com/users/iosonofabio"
} | [
{
"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,
... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 8 | 2014-09-08T07:14:30Z | 2016-12-03T12:37:32Z | 2016-12-03T12:37:32Z | NONE | null | Dear all,
Here from the mailing list: https://groups.google.com/forum/#!topic/pydata/jKiPOvYUQ1c
I have an excel table about family ages like this
| Family | People | Mean size [cm] |
| --- | --- | --- |
| Foo | 5 | 173.0 |
| Bar | 3 | 189.0 |
and I would like to use read_excel to parse it into Python. I would like "People" to be read as an integer, "Mean size [cm]" as a float. (And "Family" as a string, but that might be a different issue.) Now:
- if I set convert_float=True, the last column reads as int
- if I set convert_float=False, the second column reads as float
Neither one is correct, for a stupid reason: there happen to be those .0 in all sizes! So I would like to specify something like:
``` python
convert_float = ['People']
```
so only that column gets converted. An even better solution would be to be explicit about types of some columns, letting pandas perform the automagic for the others, such as:
``` python
read_excel('foo.xlsx', types={'People': np.uint8, 'Family': 'S3'})
```
but this changes the signature of the function more significantly.
Are you folks in favour of any of this? If yes, I can get a look and try to code it in.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8212/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8212/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8213 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8213/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8213/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8213/events | https://github.com/pandas-dev/pandas/issues/8213 | 42,209,475 | MDU6SXNzdWU0MjIwOTQ3NQ== | 8,213 | Template for variables in to_latex() | {
"avatar_url": "https://avatars.githubusercontent.com/u/972196?v=4",
"events_url": "https://api.github.com/users/eXcuvator/events{/privacy}",
"followers_url": "https://api.github.com/users/eXcuvator/followers",
"following_url": "https://api.github.com/users/eXcuvator/following{/other_user}",
"gists_url": "https://api.github.com/users/eXcuvator/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eXcuvator",
"id": 972196,
"login": "eXcuvator",
"node_id": "MDQ6VXNlcjk3MjE5Ng==",
"organizations_url": "https://api.github.com/users/eXcuvator/orgs",
"received_events_url": "https://api.github.com/users/eXcuvator/received_events",
"repos_url": "https://api.github.com/users/eXcuvator/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eXcuvator/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eXcuvator/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eXcuvator"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
}
] | closed | false | null | [] | null | 3 | 2014-09-08T15:32:54Z | 2014-09-09T13:32:45Z | 2014-09-09T13:32:45Z | NONE | null | Me and several of my colleagues typically create output for variables that have greek letters. Inside pandas, we then call them "epsilon", "sBar" or similar. Right now we have to run a string replace on the output of to_latex() and then manually save it to a file.
It'd be nice to be able to give to_latex() a template such as ['epsilon':'$\epsilon$', 'sBar':'$\bar s$'] and then to_latex() would replace these in the output accordingly.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8213/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8213/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8214 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8214/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8214/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8214/events | https://github.com/pandas-dev/pandas/issues/8214 | 42,210,183 | MDU6SXNzdWU0MjIxMDE4Mw== | 8,214 | TST: skipping test_timedelta tests in sql after (GH8184) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"d... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-08T15:39:20Z | 2014-09-13T22:59:30Z | 2014-09-13T22:59:30Z | CONTRIBUTOR | null | https://github.com/pydata/pandas/pull/8184
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8214/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8214/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8215 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8215/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8215/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8215/events | https://github.com/pandas-dev/pandas/issues/8215 | 42,210,797 | MDU6SXNzdWU0MjIxMDc5Nw== | 8,215 | Series/Dataframe to_csv inconsistency when path=None [0.14.1] | {
"avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4",
"events_url": "https://api.github.com/users/ischwabacher/events{/privacy}",
"followers_url": "https://api.github.com/users/ischwabacher/followers",
"following_url": "https://api.github.com/users/ischwabacher/following{/other_user}",
"gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ischwabacher",
"id": 4306187,
"login": "ischwabacher",
"node_id": "MDQ6VXNlcjQzMDYxODc=",
"organizations_url": "https://api.github.com/users/ischwabacher/orgs",
"received_events_url": "https://api.github.com/users/ischwabacher/received_events",
"repos_url": "https://api.github.com/users/ischwabacher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ischwabacher"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"id": 47229171,
"name": "IO CSV",
"node_id": "MDU6TGFiZWw0NzIyOTE3MQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20CSV"
},
{
"color": "0052cc",
"default": false,
"descriptio... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 2 | 2014-09-08T15:44:51Z | 2014-09-09T16:58:14Z | 2014-09-09T16:58:14Z | CONTRIBUTOR | null | It looks like `Series.to_csv` and `DataFrame.to_csv` differ in their handling of `path=None`:
``` python
In [1]: import pandas as pd
In [2]: print pd.Series([1, 1, 1], index=[1, 2, 3]).to_csv(None)
None
In [3]: print pd.DataFrame([1, 1, 1], index=[1, 2, 3]).to_csv(None)
,0
1,1
2,1
3,1
```
I haven't gone digging yet but I expect these two methods share enough code that this is a trivial fix.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8215/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8215/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8216 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8216/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8216/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8216/events | https://github.com/pandas-dev/pandas/issues/8216 | 42,227,469 | MDU6SXNzdWU0MjIyNzQ2OQ== | 8,216 | BUG: data frame plot hangs when logx True and some x are zero | {
"avatar_url": "https://avatars.githubusercontent.com/u/616139?v=4",
"events_url": "https://api.github.com/users/danfrankj/events{/privacy}",
"followers_url": "https://api.github.com/users/danfrankj/followers",
"following_url": "https://api.github.com/users/danfrankj/following{/other_user}",
"gists_url": "https://api.github.com/users/danfrankj/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danfrankj",
"id": 616139,
"login": "danfrankj",
"node_id": "MDQ6VXNlcjYxNjEzOQ==",
"organizations_url": "https://api.github.com/users/danfrankj/orgs",
"received_events_url": "https://api.github.com/users/danfrankj/received_events",
"repos_url": "https://api.github.com/users/danfrankj/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danfrankj/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danfrankj/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danfrankj"
} | [] | closed | false | null | [] | null | 1 | 2014-09-08T18:28:40Z | 2015-10-20T22:41:20Z | 2015-10-20T22:41:19Z | CONTRIBUTOR | null | ```
In [1]: import pandas as pd
In [2]: import matplotlib.pyplot as plt
In [3]: import numpy as np
In [8]: pandas.version.version
Out[8]: '0.14.1'
In [9]: x = [1,0]
In [10]: y= [2,3]
In [11]: df = pd.DataFrame()
In [12]: df['x'] = x
In [13]: df['y'] = y
In [14]: df
Out[14]:
x y
0 1 2
1 0 3
In [15]: df.plot('x', 'y', kind = 'scatter')
Out[15]: <matplotlib.axes.AxesSubplot at 0x10d366590>
In [16]: plt.show() # this works
In [17]: df.plot('x', 'y', logx = True, kind = 'scatter')
Out[17]: <matplotlib.axes.AxesSubplot at 0x10d39bf10>
In [18]: plt.show() # hangs forever
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8216/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8216/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8217 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8217/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8217/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8217/events | https://github.com/pandas-dev/pandas/issues/8217 | 42,236,202 | MDU6SXNzdWU0MjIzNjIwMg== | 8,217 | View returned when using squeeze=True with read_csv? | {
"avatar_url": "https://avatars.githubusercontent.com/u/1348834?v=4",
"events_url": "https://api.github.com/users/patricktokeeffe/events{/privacy}",
"followers_url": "https://api.github.com/users/patricktokeeffe/followers",
"following_url": "https://api.github.com/users/patricktokeeffe/following{/other_user}",
"gists_url": "https://api.github.com/users/patricktokeeffe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/patricktokeeffe",
"id": 1348834,
"login": "patricktokeeffe",
"node_id": "MDQ6VXNlcjEzNDg4MzQ=",
"organizations_url": "https://api.github.com/users/patricktokeeffe/orgs",
"received_events_url": "https://api.github.com/users/patricktokeeffe/received_events",
"repos_url": "https://api.github.com/users/patricktokeeffe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/patricktokeeffe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patricktokeeffe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/patricktokeeffe"
} | [
{
"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",
"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-08T19:52:55Z | 2014-09-08T23:40:54Z | 2014-09-08T23:40:44Z | CONTRIBUTOR | null | ``` python
In [1]: import pandas as pd, StringIO
In [2]: csv = StringIO.StringIO('time,data\n0,10\n1,11\n2,12\n4,14\n5,15\n3,13')
In [3]: df = pd.read_csv(csv, index_col='time')
In [4]: df
Out[4]:
data
time
0 10
1 11
2 12
4 14
5 15
3 13
In [5]: df.sort(inplace=True)
In [6]: df
Out[6]:
data
time
0 10
1 11
2 12
3 13
4 14
5 15
```
Specifying `squeeze=True` returns a view instead of first-class object? Is this by design and if so, why?
As of 0.14.1, `inplace=True` is the default (related #5190) for series sorts so the following error will occur by default if `squeeze=True` was specified.
``` python
In [1]: import pandas as pd, StringIO
In [2]: csv = StringIO.StringIO('time,data\n0,10\n1,11\n2,12\n4,14\n5,15\n3,13')
In [3]: df = pd.read_csv(csv, index_col='time', squeeze=True)
In [4]: df
Out[4]:
data
time
0 10
1 11
2 12
4 14
5 15
3 13
In [5]: df.sort(inplace=True)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-850f333de498> in <module>()
----> 1 df.sort(inplace=True)
C:\WinPython-64bit-2.7.5.3\python-2.7.5.amd64\lib\site-packages\pandas\core\series.pyc in sort(self, axis, ascending, kind, na_position, inplace)
1651 kind=kind,
1652 na_position=na_position,
-> 1653 inplace=inplace)
1654
1655 def order(self, na_last=None, ascending=True, kind='quicksort', na_position='last', inplace=False):
C:\WinPython-64bit-2.7.5.3\python-2.7.5.amd64\lib\site-packages\pandas\core\series.pyc in order(self, na_last, ascending, kind, na_position, inplace)
1684 # GH 5856/5853
1685 if inplace and self._is_cached:
-> 1686 raise ValueError("This Series is a view of some other array, to "
1687 "sort in-place you must create a copy")
1688
ValueError: This Series is a view of some other array, to sort in-place you must create a copy
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8217/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8217/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8218 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8218/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8218/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8218/events | https://github.com/pandas-dev/pandas/pull/8218 | 42,253,909 | MDExOlB1bGxSZXF1ZXN0MjA5MjQyOTM= | 8,218 | BUG: Bug in read_csv where squeeze=True would return a view (GH8217) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "5319e7",
"default": false,
"description": "read_csv, to_csv",
"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-08T23:08:34Z | 2014-09-08T23:40:44Z | 2014-09-08T23:40:44Z | CONTRIBUTOR | null | closes #8217
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8218/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8218/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8218.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8218",
"merged_at": "2014-09-08T23:40:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8218.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8218"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8219 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8219/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8219/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8219/events | https://github.com/pandas-dev/pandas/pull/8219 | 42,271,330 | MDExOlB1bGxSZXF1ZXN0MjA5MzQxNjc= | 8,219 | ENH to_latex mi index will use & sep for levels | {
"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": "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-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 2 | 2014-09-09T05:11:14Z | 2014-09-20T22:12:29Z | 2014-09-14T14:13:51Z | CONTRIBUTOR | null | follow up of #7982
_One question I had was the use of `{ }` (is that a convention? I removed it and it seems to compile ok.)_
Note: should test MI cols and MI index. Ah cripes... the names of the column Index don't print, not did they 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/8219/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8219/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8219.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8219",
"merged_at": "2014-09-14T14:13:51Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8219.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8219"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8220 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8220/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8220/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8220/events | https://github.com/pandas-dev/pandas/pull/8220 | 42,285,390 | MDExOlB1bGxSZXF1ZXN0MjA5NDIxMTU= | 8,220 | API: Series.to_csv(path=None) should return string to match DataFrame.to_csv() | {
"avatar_url": "https://avatars.githubusercontent.com/u/1460294?v=4",
"events_url": "https://api.github.com/users/onesandzeroes/events{/privacy}",
"followers_url": "https://api.github.com/users/onesandzeroes/followers",
"following_url": "https://api.github.com/users/onesandzeroes/following{/other_user}",
"gists_url": "https://api.github.com/users/onesandzeroes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/onesandzeroes",
"id": 1460294,
"login": "onesandzeroes",
"node_id": "MDQ6VXNlcjE0NjAyOTQ=",
"organizations_url": "https://api.github.com/users/onesandzeroes/orgs",
"received_events_url": "https://api.github.com/users/onesandzeroes/received_events",
"repos_url": "https://api.github.com/users/onesandzeroes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/onesandzeroes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onesandzeroes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/onesandzeroes"
} | [
{
"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,... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 3 | 2014-09-09T09:08:06Z | 2014-09-09T11:29:36Z | 2014-09-09T11:29:21Z | CONTRIBUTOR | null | Addresses #8215. Currently, `Series.to_csv(path=None)` returns `None`. The `DataFrame` method returns a string, and already had this behaviour mentioned in the docstring, so it should be OK to make the `Series` method match 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/8220/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8220/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8220.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8220",
"merged_at": "2014-09-09T11:29:21Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8220.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8220"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8221 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8221/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8221/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8221/events | https://github.com/pandas-dev/pandas/pull/8221 | 42,309,513 | MDExOlB1bGxSZXF1ZXN0MjA5NTcwNDE= | 8,221 | DOC: numexpr is now on github | {
"avatar_url": "https://avatars.githubusercontent.com/u/1260667?v=4",
"events_url": "https://api.github.com/users/zachcp/events{/privacy}",
"followers_url": "https://api.github.com/users/zachcp/followers",
"following_url": "https://api.github.com/users/zachcp/following{/other_user}",
"gists_url": "https://api.github.com/users/zachcp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/zachcp",
"id": 1260667,
"login": "zachcp",
"node_id": "MDQ6VXNlcjEyNjA2Njc=",
"organizations_url": "https://api.github.com/users/zachcp/orgs",
"received_events_url": "https://api.github.com/users/zachcp/received_events",
"repos_url": "https://api.github.com/users/zachcp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/zachcp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/zachcp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/zachcp"
} | [] | closed | false | null | [] | null | 1 | 2014-09-09T14:03:43Z | 2014-09-09T14:14:13Z | 2014-09-09T14:12:05Z | CONTRIBUTOR | null | numexpr is now on github
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8221/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8221/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8221.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8221",
"merged_at": "2014-09-09T14:12:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8221.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8221"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8222 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8222/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8222/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8222/events | https://github.com/pandas-dev/pandas/issues/8222 | 42,312,381 | MDU6SXNzdWU0MjMxMjM4MQ== | 8,222 | BUG: applymap on empty DataFrame returns Series | {
"avatar_url": "https://avatars.githubusercontent.com/u/3525666?v=4",
"events_url": "https://api.github.com/users/ojdo/events{/privacy}",
"followers_url": "https://api.github.com/users/ojdo/followers",
"following_url": "https://api.github.com/users/ojdo/following{/other_user}",
"gists_url": "https://api.github.com/users/ojdo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ojdo",
"id": 3525666,
"login": "ojdo",
"node_id": "MDQ6VXNlcjM1MjU2NjY=",
"organizations_url": "https://api.github.com/users/ojdo/orgs",
"received_events_url": "https://api.github.com/users/ojdo/received_events",
"repos_url": "https://api.github.com/users/ojdo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ojdo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ojdo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ojdo"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"de... | closed | false | null | [] | {
"closed_at": "2017-05-06T10:20:19Z",
"closed_issues": 987,
"created_at": "2016-02-08T15:30:21Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.19.x series",
"due_on": "2017-05-12T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/39",
"id": 1570595,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39/labels",
"node_id": "MDk6TWlsZXN0b25lMTU3MDU5NQ==",
"number": 39,
"open_issues": 0,
"state": "closed",
"title": "0.20.0",
"updated_at": "2018-10-28T08:18:42Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/39"
} | 5 | 2014-09-09T14:30:18Z | 2016-12-24T20:53:51Z | 2016-12-24T20:53:51Z | CONTRIBUTOR | null | I'm unsure about a corner case I encountered:
``` python
>>> pd.DataFrame([]).applymap(round)
Series([], dtype: float64)
```
full example
```
In [1]: df = pandas.DataFrame({ 'x' : [], 'y' : [], 'z' : []})
In [2]: df
Out[2]:
Empty DataFrame
Columns: [x, y, z]
Index: []
In [3]: df.applymap(lambda x: x)
Out[3]:
x NaN
y NaN
z NaN
dtype: float64
In [4]: df = pandas.DataFrame({ 'x' : [1], 'y' : [1], 'z' : [1]})
In [5]: df.applymap(lambda x: x)
Out[5]:
x y z
0 1 1 1
```
I would have expected to get the empty DataFrame back.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8222/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8222/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8223 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8223/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8223/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8223/events | https://github.com/pandas-dev/pandas/pull/8223 | 42,314,940 | MDExOlB1bGxSZXF1ZXN0MjA5NjA0Nzk= | 8,223 | DOC: fix formatting error in io.rst | {
"avatar_url": "https://avatars.githubusercontent.com/u/1284973?v=4",
"events_url": "https://api.github.com/users/isms/events{/privacy}",
"followers_url": "https://api.github.com/users/isms/followers",
"following_url": "https://api.github.com/users/isms/following{/other_user}",
"gists_url": "https://api.github.com/users/isms/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/isms",
"id": 1284973,
"login": "isms",
"node_id": "MDQ6VXNlcjEyODQ5NzM=",
"organizations_url": "https://api.github.com/users/isms/orgs",
"received_events_url": "https://api.github.com/users/isms/received_events",
"repos_url": "https://api.github.com/users/isms/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/isms/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isms/subscriptions",
"type": "User",
"url": "https://api.github.com/users/isms"
} | [] | closed | false | null | [] | null | 1 | 2014-09-09T14:53:53Z | 2014-09-09T14:57:16Z | 2014-09-09T14:57:12Z | CONTRIBUTOR | null | Lines had an extra space causing the code block above to keep going for the rest of the note.
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/8223/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8223/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8223.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8223",
"merged_at": "2014-09-09T14:57:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8223.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8223"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8224 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8224/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8224/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8224/events | https://github.com/pandas-dev/pandas/issues/8224 | 42,315,313 | MDU6SXNzdWU0MjMxNTMxMw== | 8,224 | saving Panel with PeriodIndex to HDF in table format loses Period information | {
"avatar_url": "https://avatars.githubusercontent.com/u/358378?v=4",
"events_url": "https://api.github.com/users/andreas-h/events{/privacy}",
"followers_url": "https://api.github.com/users/andreas-h/followers",
"following_url": "https://api.github.com/users/andreas-h/following{/other_user}",
"gists_url": "https://api.github.com/users/andreas-h/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andreas-h",
"id": 358378,
"login": "andreas-h",
"node_id": "MDQ6VXNlcjM1ODM3OA==",
"organizations_url": "https://api.github.com/users/andreas-h/orgs",
"received_events_url": "https://api.github.com/users/andreas-h/received_events",
"repos_url": "https://api.github.com/users/andreas-h/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andreas-h/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andreas-h/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andreas-h"
} | [
{
"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",
... | closed | false | null | [] | null | 2 | 2014-09-09T14:57:03Z | 2014-09-09T15:02:58Z | 2014-09-09T15:02:12Z | CONTRIBUTOR | null | ```
(Pdb) print pd.__version__
0.14.0-403-ge131df1
(Pdb) print data
<class 'pandas.core.panel.Panel'>
Dimensions: 2 (items) x 35 (major_axis) x 21 (minor_axis)
Items axis: Constant Prices to Current Prices
Major_axis axis: Andaman & Nicobar to West Bengal
Minor_axis axis: 1994 to 2014
(Pdb) print data.minor_axis
<class 'pandas.tseries.period.PeriodIndex'>
[1994, ..., 2014]
Length: 21, Freq: A-MAR
(Pdb) data.to_hdf("test.h5", "test_no_table")
(Pdb) data.to_hdf("test.h5", "test_table", format="table")
(Pdb) pd.read_hdf("test.h5", "/test_no_table").minor_axis
<class 'pandas.tseries.period.PeriodIndex'>
[1994, ..., 2014]
Length: 21, Freq: A-MAR
(Pdb) pd.read_hdf("test.h5", "/test_table").minor_axis
Int64Index([35, 36, 37, 38, 39, 40, 41, 42, 43, 44], 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/8224/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8224/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8225 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8225/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8225/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8225/events | https://github.com/pandas-dev/pandas/issues/8225 | 42,336,277 | MDU6SXNzdWU0MjMzNjI3Nw== | 8,225 | Timestamp constructor parses ISO 8601 incorrectly near DST boundaries | {
"avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4",
"events_url": "https://api.github.com/users/ischwabacher/events{/privacy}",
"followers_url": "https://api.github.com/users/ischwabacher/followers",
"following_url": "https://api.github.com/users/ischwabacher/following{/other_user}",
"gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ischwabacher",
"id": 4306187,
"login": "ischwabacher",
"node_id": "MDQ6VXNlcjQzMDYxODc=",
"organizations_url": "https://api.github.com/users/ischwabacher/orgs",
"received_events_url": "https://api.github.com/users/ischwabacher/received_events",
"repos_url": "https://api.github.com/users/ischwabacher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ischwabacher"
} | [
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
}
] | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 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"
} | 21 | 2014-09-09T18:29:09Z | 2015-10-30T14:58:28Z | 2015-10-30T14:58:28Z | CONTRIBUTOR | null | Original post, edited to correct ISO 8601 formats. The originally titled bug does not exist. There is, however, some unexpected behavior:
> It looks like short-form ISO 8601 parsing uses the right sign after all:
>
> ``` python
> In [1]: import pandas as pd
>
> In [2]: t = pd.Timestamp('2013-11-03 1:30:00', tz='America/Havana')
>
> In [3]: t.strftime('%Y-%m-%d %H:%M:%S %Z %z')
> Out[3]: '2013-11-03 01:30:00 CST -0500'
>
> In [4]: t.strftime('%Y%m%dT%H%M%S%z') # ISO 8601 short format
> Out[4]: '20131103T013000-0500'
>
> In [5]: pd.Timestamp(t.strftime('%Y%m%dT%H%M%S%z'))
> Out[5]: Timestamp('2013-11-03 01:30:00-0500', tz='tzoffset(None, -18000)')
>
> In [6]: t == _
> Out[6]: True # Not a bug after all!
>
> In [7]: t.strftime('%Y-%m-%dT%H:%M:%S%z') # ISO 8601 long format
> Out[7]: '2013-11-03T01:30:00-0500'
>
> In [8]: pd.Timestamp(t.strftime('%Y-%m-%dT%H:%M:%S%z'))
> Out[8]: Timestamp('2013-11-03 01:30:00-0500', tz='pytz.FixedOffset(-300)') # why pytz?
>
> In [9]: t == _
> Out[9]: True
>
> In [10]: t.strftime('%Y%m%dT%H%M%SZ%z') # Not a real ISO 8601 format (note the 'Z')
> Out[10]: '20131103T013000Z-0500'
>
> In [11]: pd.Timestamp(t.strftime('%Y%m%dT%H%M%SZ%z'))
> Out[11]: Timestamp('2013-11-03 01:30:00+0500', tz='tzoffset(None, 18000)')
> # This is the behavior that inspired the bug report. I don't know if this is a valid parse
> # or not, but it sure is unexpected.
> ```
>
> It would be awfully embarrassing if I filed a bug report because I couldn't read ISO 8601...
However, in the process of investigating this issue, I encountered the following, which is definitely a bug:
``` python
In [12]: ts = ['2013-11-%s3 %s1:30:00' % (x, y) for x in ['', '0'] for y in ['', '0']]
In [13]: ts
Out[13]:
['2013-11-3 1:30:00',
'2013-11-3 01:30:00',
'2013-11-03 1:30:00',
'2013-11-03 01:30:00'] # only this one is ISO 8601
In [14]: tzs = ['America/%s' % s for s in ['Chicago', 'New_York', 'Havana']]
In [15]: [[pd.Timestamp(t, tz=tz) for t in ts] for tz in tzs]
Out[15]:
[[Timestamp('2013-11-03 01:30:00-0600', tz='America/Chicago'),
Timestamp('2013-11-03 01:30:00-0600', tz='America/Chicago'),
Timestamp('2013-11-03 01:30:00-0600', tz='America/Chicago'),
Timestamp('2013-11-03 01:30:00-0500', tz='America/Chicago')], # DST
[Timestamp('2013-11-03 01:30:00-0500', tz='America/New_York'),
Timestamp('2013-11-03 01:30:00-0500', tz='America/New_York'),
Timestamp('2013-11-03 01:30:00-0500', tz='America/New_York'),
Timestamp('2013-11-03 01:30:00-0400', tz='America/New_York')], # DST
[Timestamp('2013-11-03 01:30:00-0500', tz='America/Havana'),
Timestamp('2013-11-03 01:30:00-0500', tz='America/Havana'),
Timestamp('2013-11-03 01:30:00-0500', tz='America/Havana'),
Timestamp('2013-11-03 00:30:00-0500', tz='America/Havana')]] # Just plain wrong
```
I'm not sure what's going on here.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8225/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8225/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8226 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8226/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8226/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8226/events | https://github.com/pandas-dev/pandas/issues/8226 | 42,342,530 | MDU6SXNzdWU0MjM0MjUzMA== | 8,226 | API: make '+' and '-' for Index either do numeric operations of raise TypeError (instead of setops) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 25 | 2014-09-09T19:39:55Z | 2014-09-20T13:42:31Z | 2014-09-11T15:44:57Z | CONTRIBUTOR | null | see comments at the end of #8184
so this type of syntax
`index1 + index2`
would be replaced by
`index1.union(index2)`
and
`index1 - index2`
by
`index1.diff(index2)`
Their is some internal code to fix but not a lot.
This would go a long ways toward simplifying the user API for index ops. I think.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8226/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8226/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8227 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8227/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8227/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8227/events | https://github.com/pandas-dev/pandas/pull/8227 | 42,359,045 | MDExOlB1bGxSZXF1ZXN0MjA5ODgzNDI= | 8,227 | API: raise on setops for + and - for Indexes (GH8226) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on series/frames, not to indexes themselves",
"id": 2822098,
"name": "Indexing",
"node_id": "MDU6TGFiZWwyODIyMDk4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Indexing"
},
{
"color": "AD... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 7 | 2014-09-09T22:31:37Z | 2014-10-06T14:28:34Z | 2014-09-11T15:44:57Z | CONTRIBUTOR | null | closes #8226
- ToDo
- [x] currently a raise `TypeError` (need a better message), possibly could deprecate and just warn
- [x] API example
Combining indexes via `+` now requires `.union()`
Diffing indexes via `-` now requires `.diff()`
These make the Indexes use setops (`&`,`|`,`^`) ONLY
numeric ops will work on appropriate Index ONLY (see #8184) (e.g. `DatetimeIndex` +/- `Timedelta` or `TimedeltaIndex` +/- `TImedeltaIndex`)
Also `Int64/Float64Index` would gain ability to `+/-` as well
This will promote consistency that `+` means add (and not union), and `-` means subtract (and not difference), which IIRC has come up in a few issues
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8227/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8227/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8227.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8227",
"merged_at": "2014-09-11T15:44:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8227.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8227"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8228 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8228/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8228/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8228/events | https://github.com/pandas-dev/pandas/issues/8228 | 42,365,421 | MDU6SXNzdWU0MjM2NTQyMQ== | 8,228 | read_csv() little problem with file_path containing accentuated characters | {
"avatar_url": "https://avatars.githubusercontent.com/u/8534386?v=4",
"events_url": "https://api.github.com/users/danielboone/events{/privacy}",
"followers_url": "https://api.github.com/users/danielboone/followers",
"following_url": "https://api.github.com/users/danielboone/following{/other_user}",
"gists_url": "https://api.github.com/users/danielboone/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/danielboone",
"id": 8534386,
"login": "danielboone",
"node_id": "MDQ6VXNlcjg1MzQzODY=",
"organizations_url": "https://api.github.com/users/danielboone/orgs",
"received_events_url": "https://api.github.com/users/danielboone/received_events",
"repos_url": "https://api.github.com/users/danielboone/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/danielboone/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielboone/subscriptions",
"type": "User",
"url": "https://api.github.com/users/danielboone"
} | [
{
"color": "444444",
"default": false,
"description": "Unicode strings",
"id": 36380025,
"name": "Unicode",
"node_id": "MDU6TGFiZWwzNjM4MDAyNQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Unicode"
},
{
"color": "5319e7",
"default": false,
"description... | closed | false | null | [] | null | 3 | 2014-09-10T00:11:53Z | 2015-10-20T22:41:31Z | 2015-10-20T22:41:31Z | NONE | null | Bonjour,
The pd.read_csv() function crash when common latin1 characters (ex: éàèç) occurs in the file path. We can use the following workaround in python 2.7 (Note: I use pandas 0.14 and from **future** import unicode_literals):
> > > import locale
> > > os_codec = locale.getdefaultlocale()[1] # this is 'cp1252' on winXP
> > > data = pd.read_csv(myfilepath.encode(os_codec))
> > > However in python 3.4 I can't figure how to do it. We get the following error message:
> > > IOError: Expected file path name or file-like object, got <class 'byte'> type.
It would be nice if the getdefaultlocale() could be managed inside pandas instead of at the user level?
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/8228/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8228/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8229 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8229/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8229/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8229/events | https://github.com/pandas-dev/pandas/issues/8229 | 42,368,102 | MDU6SXNzdWU0MjM2ODEwMg== | 8,229 | groupby objects can't be pickled | {
"avatar_url": "https://avatars.githubusercontent.com/u/8716660?v=4",
"events_url": "https://api.github.com/users/0zeroth/events{/privacy}",
"followers_url": "https://api.github.com/users/0zeroth/followers",
"following_url": "https://api.github.com/users/0zeroth/following{/other_user}",
"gists_url": "https://api.github.com/users/0zeroth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0zeroth",
"id": 8716660,
"login": "0zeroth",
"node_id": "MDQ6VXNlcjg3MTY2NjA=",
"organizations_url": "https://api.github.com/users/0zeroth/orgs",
"received_events_url": "https://api.github.com/users/0zeroth/received_events",
"repos_url": "https://api.github.com/users/0zeroth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0zeroth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0zeroth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0zeroth"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects ... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 1 | 2014-09-10T01:00:38Z | 2018-07-06T22:31:32Z | 2018-07-06T22:31:27Z | NONE | null | From this discussion: https://groups.google.com/d/msg/pydata/AExc0ITFm94/Q5k5hcwZQFMJ
It appears that groupby object cannot be unpickled. The following code reproduces the problem for me:
```
import pandas as pd
import pickle
df = pd.DataFrame([[1,2,3], [4,5,6], [7,8,9]])
gr = df.groupby(0)
b = pickle.dumps(gr)
gr2 = pickle.loads(b) # Fails with RuntimeError
<snip 50 repeat lines...>
File "C:\Miniconda3\lib\site-packages\pandas\core\groupby.py", line 482, in __getattr__
if attr in self.obj:
File "C:\Miniconda3\lib\site-packages\pandas\core\groupby.py", line 482, in __getattr__
if attr in self.obj:
RuntimeError: maximum recursion depth exceeded while calling a Python 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/8229/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8229/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8230 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8230/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8230/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8230/events | https://github.com/pandas-dev/pandas/issues/8230 | 42,368,235 | MDU6SXNzdWU0MjM2ODIzNQ== | 8,230 | DataFrame.to_string ignores col_space when header=False | {
"avatar_url": "https://avatars.githubusercontent.com/u/8716660?v=4",
"events_url": "https://api.github.com/users/0zeroth/events{/privacy}",
"followers_url": "https://api.github.com/users/0zeroth/followers",
"following_url": "https://api.github.com/users/0zeroth/following{/other_user}",
"gists_url": "https://api.github.com/users/0zeroth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0zeroth",
"id": 8716660,
"login": "0zeroth",
"node_id": "MDQ6VXNlcjg3MTY2NjA=",
"organizations_url": "https://api.github.com/users/0zeroth/orgs",
"received_events_url": "https://api.github.com/users/0zeroth/received_events",
"repos_url": "https://api.github.com/users/0zeroth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0zeroth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0zeroth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0zeroth"
} | [
{
"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 objec... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-10T01:03:51Z | 2014-09-10T18:09:15Z | 2014-09-10T18:09:15Z | NONE | null | ```
import pandas as pd
df = pd.DataFrame([[0,1,2]], index=['Sum'], columns=['A','B','C'])
print(df.to_string(col_space=20))
print(df.to_string(col_space=20, header=False))
```
Output:
```
A B C
Sum 0 1 2
Sum 0 1 2
```
(a minor irritation...)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8230/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8230/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8231 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8231/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8231/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8231/events | https://github.com/pandas-dev/pandas/pull/8231 | 42,371,470 | MDExOlB1bGxSZXF1ZXN0MjA5OTU3MDA= | 8,231 | Groupbydocs | {
"avatar_url": "https://avatars.githubusercontent.com/u/6242856?v=4",
"events_url": "https://api.github.com/users/mcjcode/events{/privacy}",
"followers_url": "https://api.github.com/users/mcjcode/followers",
"following_url": "https://api.github.com/users/mcjcode/following{/other_user}",
"gists_url": "https://api.github.com/users/mcjcode/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mcjcode",
"id": 6242856,
"login": "mcjcode",
"node_id": "MDQ6VXNlcjYyNDI4NTY=",
"organizations_url": "https://api.github.com/users/mcjcode/orgs",
"received_events_url": "https://api.github.com/users/mcjcode/received_events",
"repos_url": "https://api.github.com/users/mcjcode/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mcjcode/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mcjcode/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mcjcode"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160... | closed | false | null | [] | null | 10 | 2014-09-10T02:17:00Z | 2014-09-15T03:47:10Z | 2014-09-14T16:50:10Z | CONTRIBUTOR | null | Addresses #6944, by defining whitelisted methods in the `DataFrameGroupBy` and `SeriesGroupBy` class definitions. After this change, users of the whitelisted methods now get useful results from `help`, argument name completion, and auto-generated api docs. These `DataFrameGroupBy` and `SeriesGroupBy` methods are added to the api doc. Existing unit tests are extended to check for the presence of the whitelisted methods in the class definitions, and a new unit test verifies that old and new paths produce the same results for methods supporting level, axis, skipna arguments. (Existing methods already explicitly defined in `GroupBy` or derived classes are not overwritten.)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8231/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8231/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8231.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8231",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8231.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8231"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8232 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8232/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8232/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8232/events | https://github.com/pandas-dev/pandas/pull/8232 | 42,376,362 | MDExOlB1bGxSZXF1ZXN0MjA5OTg1Mjk= | 8,232 | Fix to merge code from `_create_table_statement` and `get_schema` | {
"avatar_url": "https://avatars.githubusercontent.com/u/833768?v=4",
"events_url": "https://api.github.com/users/artemyk/events{/privacy}",
"followers_url": "https://api.github.com/users/artemyk/followers",
"following_url": "https://api.github.com/users/artemyk/following{/other_user}",
"gists_url": "https://api.github.com/users/artemyk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/artemyk",
"id": 833768,
"login": "artemyk",
"node_id": "MDQ6VXNlcjgzMzc2OA==",
"organizations_url": "https://api.github.com/users/artemyk/orgs",
"received_events_url": "https://api.github.com/users/artemyk/received_events",
"repos_url": "https://api.github.com/users/artemyk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/artemyk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artemyk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/artemyk"
} | [
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 14 | 2014-09-10T04:16:17Z | 2014-09-15T21:50:33Z | 2014-09-15T21:43:01Z | CONTRIBUTOR | null | Closes #8097
Reorganized a lot of the SQL schema creation code. Now database table is not dropped / create when `PandasSQLTable` object is instantiated, but instead when `insert` method is called on it. This allow us to `get_schema` to generate `CREATE TABLE` code without actually creating the table.
(Includes updates from #8083, so will have to be rebased when that is merged)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8232/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8232/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8232.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8232",
"merged_at": "2014-09-15T21:43:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8232.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8232"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8233 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8233/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8233/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8233/events | https://github.com/pandas-dev/pandas/pull/8233 | 42,394,501 | MDExOlB1bGxSZXF1ZXN0MjEwMDkwNjI= | 8,233 | BUG: DataFrame.to_string ignores col_space when header=False | {
"avatar_url": "https://avatars.githubusercontent.com/u/1460294?v=4",
"events_url": "https://api.github.com/users/onesandzeroes/events{/privacy}",
"followers_url": "https://api.github.com/users/onesandzeroes/followers",
"following_url": "https://api.github.com/users/onesandzeroes/following{/other_user}",
"gists_url": "https://api.github.com/users/onesandzeroes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/onesandzeroes",
"id": 1460294,
"login": "onesandzeroes",
"node_id": "MDQ6VXNlcjE0NjAyOTQ=",
"organizations_url": "https://api.github.com/users/onesandzeroes/orgs",
"received_events_url": "https://api.github.com/users/onesandzeroes/received_events",
"repos_url": "https://api.github.com/users/onesandzeroes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/onesandzeroes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onesandzeroes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/onesandzeroes"
} | [
{
"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 objec... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 2 | 2014-09-10T09:37:14Z | 2014-09-10T18:09:15Z | 2014-09-10T18:09:05Z | CONTRIBUTOR | null | Fixes #8230. I think this is a pretty easy fix, `col_space` wasn't being used at all when `header` was `False` so just had to add the minimum width.
Results:
``` python
import pandas as pd
df = pd.DataFrame([[0,1,2]], index=['Sum'], columns=['A','B','C'])
print(df.to_string(col_space=20))
# Output:
A B C
Sum 0 1 2
print(df.to_string(col_space=20, header=False))
# Output:
Sum 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/8233/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8233/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8233.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8233",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8233.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8233"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8234 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8234/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8234/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8234/events | https://github.com/pandas-dev/pandas/issues/8234 | 42,405,850 | MDU6SXNzdWU0MjQwNTg1MA== | 8,234 | DOC: some errors in the vis docs regarding multiple axes | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "8AE234",
"default": false,
"description": null,
"id": 241332... | 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"
} | 6 | 2014-09-10T12:10:57Z | 2015-02-12T14:22:59Z | 2015-02-12T14:22:59Z | MEMBER | null | Opening an issue to not forget this, see https://github.com/pydata/pandas/pull/7736#issuecomment-53970872
@sinhrks
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8234/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8234/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8235 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8235/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8235/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8235/events | https://github.com/pandas-dev/pandas/pull/8235 | 42,424,680 | MDExOlB1bGxSZXF1ZXN0MjEwMjgxNDI= | 8,235 | BUG: interpolate with no nans and limit | {
"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": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, d... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-10T15:21:35Z | 2014-09-10T17:45:37Z | 2014-09-10T17:45:32Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/7173
I was assuming that there would be at least one NaN when I was adjusting for the limits. Pretty simple fix.
Here's the intended behavior:
``` python
In [1]: s = pd.Series([1., 2, 3])
In [2]: s.interpolate()
Out[2]:
0 1
1 2
2 3
dtype: float64
In [3]: s.interpolate(limit=1)
Out[3]:
0 1
1 2
2 3
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/8235/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8235/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8235.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8235",
"merged_at": "2014-09-10T17:45:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8235.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8235"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8236 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8236/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8236/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8236/events | https://github.com/pandas-dev/pandas/issues/8236 | 42,430,714 | MDU6SXNzdWU0MjQzMDcxNA== | 8,236 | CustomBusinessDay slow for increments <0 and >1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/832380?v=4",
"events_url": "https://api.github.com/users/bjonen/events{/privacy}",
"followers_url": "https://api.github.com/users/bjonen/followers",
"following_url": "https://api.github.com/users/bjonen/following{/other_user}",
"gists_url": "https://api.github.com/users/bjonen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bjonen",
"id": 832380,
"login": "bjonen",
"node_id": "MDQ6VXNlcjgzMjM4MA==",
"organizations_url": "https://api.github.com/users/bjonen/orgs",
"received_events_url": "https://api.github.com/users/bjonen/received_events",
"repos_url": "https://api.github.com/users/bjonen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bjonen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bjonen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bjonen"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "0052cc",
"default"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-10T16:13:30Z | 2014-10-04T13:37:55Z | 2014-10-04T13:37:55Z | CONTRIBUTOR | null | For rolling back or for moving forward more than one step, `DateOffset`s create a new instance setting `n` [accordingly](https://github.com/bjonen/pandas/blob/master/pandas/tseries/offsets.py#L312). The `CustomBusinessDay` constructor can be very slow, however, when a large list of `holidays` is passed. The holidays are [processed](https://github.com/bjonen/pandas/blob/master/pandas/tseries/offsets.py#L633) to datetime64.
As a result speed deteriorates by two magnitudes.
```
import pandas as pd
import datetime as dt
pd.__version__
Out[6]:
'0.14.1'
In [7]:
cbday = pd.offsets.CustomBusinessDay()
date + cbday
%timeit date + cbday
100000 loops, best of 3: 14.6 µs per loop
In [8]:
hdays = [dt.datetime(2013,1,1) for ele in range(1000)]
cbdayh = pd.offsets.CustomBusinessDay(holidays=hdays)
date + cbdayh
%timeit date + cbdayh
%timeit date + 2*cbdayh
%timeit date - 1*cbdayh
%timeit date - 10*cbday
100000 loops, best of 3: 14.6 µs per loop
100 loops, best of 3: 3.4 ms per loop
100 loops, best of 3: 6.76 ms per loop
10000 loops, best of 3: 27.8 µs per loop
```
I think it makes sense to have the user call `to_dt64` before initializing `CustomBusinessDay` and to rely on the holidays to be passed in the correct format. Any other ideas how to handle this problem? Shall I create a PR for 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/8236/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8236/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8237 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8237/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8237/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8237/events | https://github.com/pandas-dev/pandas/pull/8237 | 42,430,853 | MDExOlB1bGxSZXF1ZXN0MjEwMzE5NDA= | 8,237 | BUG: Bug in putting a PeriodIndex into a Series would convert to int64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "eb6420",
"default": false,
"description": "Period data type",
"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-10T16:14:58Z | 2014-09-10T18:09:28Z | 2014-09-10T18:09:27Z | CONTRIBUTOR | null | closes #7932
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8237/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8237/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8237.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8237",
"merged_at": "2014-09-10T18:09:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8237.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8237"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8238 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8238/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8238/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8238/events | https://github.com/pandas-dev/pandas/pull/8238 | 42,465,599 | MDExOlB1bGxSZXF1ZXN0MjEwNTMxODM= | 8,238 | BUG: normalize rolling_window() weights, remove scikits-timeseries dependency for testing | {
"avatar_url": "https://avatars.githubusercontent.com/u/7545449?v=4",
"events_url": "https://api.github.com/users/stahlous/events{/privacy}",
"followers_url": "https://api.github.com/users/stahlous/followers",
"following_url": "https://api.github.com/users/stahlous/following{/other_user}",
"gists_url": "https://api.github.com/users/stahlous/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stahlous",
"id": 7545449,
"login": "stahlous",
"node_id": "MDQ6VXNlcjc1NDU0NDk=",
"organizations_url": "https://api.github.com/users/stahlous/orgs",
"received_events_url": "https://api.github.com/users/stahlous/received_events",
"repos_url": "https://api.github.com/users/stahlous/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stahlous/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stahlous/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stahlous"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "006b75",
"d... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 44 | 2014-09-10T21:53:49Z | 2014-09-23T14:34:58Z | 2014-09-23T13:04:18Z | CONTRIBUTOR | null | This closes #7618 and removes the dependency on scikits-timeseries for testing rolling_window functions. Scikits-timeseries has not been maintained since 2009, and I had difficulty simply installing it on my system. Instead of using scikits-timeseries to calculate the various rolling moments on randomly generated data, the tests use pre-calculated data.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8238/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8238/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8238.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8238",
"merged_at": "2014-09-23T13:04:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8238.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8238"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8239 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8239/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8239/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8239/events | https://github.com/pandas-dev/pandas/issues/8239 | 42,478,427 | MDU6SXNzdWU0MjQ3ODQyNw== | 8,239 | API: unified sorting | {
"avatar_url": "https://avatars.githubusercontent.com/u/1348834?v=4",
"events_url": "https://api.github.com/users/patricktokeeffe/events{/privacy}",
"followers_url": "https://api.github.com/users/patricktokeeffe/followers",
"following_url": "https://api.github.com/users/patricktokeeffe/following{/other_user}",
"gists_url": "https://api.github.com/users/patricktokeeffe/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/patricktokeeffe",
"id": 1348834,
"login": "patricktokeeffe",
"node_id": "MDQ6VXNlcjEzNDg4MzQ=",
"organizations_url": "https://api.github.com/users/patricktokeeffe/orgs",
"received_events_url": "https://api.github.com/users/patricktokeeffe/received_events",
"repos_url": "https://api.github.com/users/patricktokeeffe/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/patricktokeeffe/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/patricktokeeffe/subscriptions",
"type": "User",
"url": "https://api.github.com/users/patricktokeeffe"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"de... | 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"
} | 9 | 2014-09-11T00:49:44Z | 2015-08-02T23:01:30Z | 2015-08-02T23:01:29Z | CONTRIBUTOR | null | originally #5190
xref #9816
xref #3942
This issue is for creating a unified API to Series & DataFrame sorting methods. Panels are not addressed (yet) but a unified API should be easy to extend to them. Related are #2094, #5190, #6847, #7121, #2615. As discussion proceeds, this post will be edited.
For reference, the 0.14.1 signatures are:
``` python
Series.sort(axis=0, ascending=True, kind='quicksort', na_position='last', inplace=True)
Series.sort_index(ascending=True)
Series.sortlevel(level=0, ascending=True, sort_remaining=True)
DataFrame.sort(columns=None, axis=0, ascending=True, inplace=False, kind='quicksort',
na_position='last')
DataFrame.sort_index(axis=0, by=None, ascending=True, inplace=False, kind='quicksort',
na_position='last')
DataFrame.sortlevel(level=0, axis=0, ascending=True, inplace=False, sort_remaining=True)
```
Proposed unified signature for `Series.sort` and `DataFrame.sort` (except Series version retains current inplace=True):
``` python
def sort(self, by=None, axis=0, level=None, ascending=True, inplace=False,
kind='quicksort', na_position='last', sort_remaining=True):
"""Sort by labels (along either axis), by the values in column(s) or both.
If both, labels take precedence over columns. If neither is specified,
behavior is object-dependent: series = on values, dataframe = on index.
Parameters
----------
by : column name or list of column names
if not None, sort on values in specified column name; perform nested
sort if list of column names specified. this argument ignored by series
axis : {0, 1}
sort index/rows (0) or columns (1); for Series, only 0 can be specified
level : int or level name or list of ints or list of column names
if not None, sort on values in specified index level(s)
ascending : bool or list of bool
Sort ascending vs. descending. Specify list for multiple sort orders.
inplace : bool
if True, perform operation in-place (without creating new instance)
kind : {‘quicksort’, ‘mergesort’, ‘heapsort’}
Choice of sorting algorithm. See np.sort for more information.
‘mergesort’ is the only stable algorithm. For data frames, this option is
only applied when sorting on a single column or label.
na_position : {'first', 'last'}
‘first’ puts NaNs at the beginning, ‘last’ puts NaNs at the end
sort_remaining : bool
if true and sorting by level and index is multilevel, sort by other levels
too (in order) after sorting by specified level
"""
```
The `sort_index` signatures change too and `sort_columns` is created:
``` python
Series.sort_index(level=0, ascending=True, inplace=False, kind='quicksort',
na_position='last', sort_remaining=True)
DataFrame.sort_index(level=0, axis=0, by=None, ascending=True, inplace=False,
kind='quicksort', na_position='last', sort_remaining=True)
# by is DEPRECATED, see change 7
DataFrame.sort_columns(by=None, level=0, ascending=True, inplace=False,
kind='quicksort', na_position='last', sort_remaining=True)
# or maybe level=None
```
Proposed changes:
1. ~~make `inplace=False` default (changes `Series.sort`)~~ _maybe, possibly in 1.0_
2. new `by` argument to accept column-name/list-of-column-names in first position
- deprecate `columns` keyword of `DataFrame.sort`, replaced with `by` (df.sort signature would need to retain columns keyword until finally removed but it's not shown in proposal)
- don't allow tuples to access levels of multi-index (`columns` arg of `DataFrame.sort` allows tuples); use new `level` argument instead
- don't swap order of `by`/`axis` in `DataFrame.sort_index` (see change 7)
- this argument is ignored by series but `axis` is too so for the sake of working with dataframes, it gets first position
3. new `level` argument to accept integer/level-name/list-of-ints/list-of-level-names for sorting (multi)index by particular level(s)
- replaces tuple behavior of `columns` arg of `DataFrame.sort`
- add `level` argument to `sort_index` in first position so level(s) of multilevel index can be specified; this makes `sort_index`==`sortlevel` (see change 8)
- also adds `sort_remaining` arg to handle multi-level indexes
4. new method `DataFrame.sort_columns`==`sort(axis=1)` (see syntax below)
5. deprecate `Series.order` since change 1 makes `Series.sort` equivalent (?)
6. add `inplace`, `kind`, and `na_position` arguments to `Series.sort_index` (to match `DataFrame.sort_index`); `by` and `axis` args are not added since they don't make sense for series
7. deprecate and eventually remove `by` argument from `DataFrame.sort_index` since it makes `sort_index` equivalent to `sort`
8. deprecate `sortlevel` since change 3b makes `sort_index` equivalent
Notes:
- default behavior of `sort` is still object-dependent: for series, sorts by values and for data frames, sorts by index
- new `level` arg makes `sort_index` and `sortlevel` equivalent. if sortlevel is retained:
- should rename `sortlevel` to `sort_level` for naming conventions
- `Series.sortlevel` should have `inplace` argument added
- maybe don't add `level` and `sort_remaining` args to `sort_index` so it's not equivalent to `sort_level` (intentionally limiting sort_index seems like a bad idea though)
- it's unclear if default should be `level=None` for `sort_columns`. probably not since level=None falls back to level=0 anyway
- both `by` and `axis` arguments should be ignored by `Series.sort`
Syntax:
- dataframes
- `sort()` == `sort(level=0)` == `sort_index()` == `sortlevel()`
- without columns or level specified, defaults to current behavior of sort on index
- `sort(['A','B'])`
- since columns are specified, default index sort should not occur; sorting only happens using columns 'A' and 'B'
- `sort(level='spam')` == `sort_index('spam')` == `sortlevel('spam')`
- sort occurs on row index named 'spam' or level of multi-index named 'spam'
- `sort(['A','B'], level='spam')`
- `level` controls here even though columns are specified so sort happens along row index named 'spam' first, then nested sort occurs using columns 'A' and 'B'
- `sort(axis=1)` == `sort(axis=1, level=0)` == `sort_columns()`
- since data frames default to sort on index, leaving level=None is the same as level=0
- `sort(['A','B'], axis=1)` == `sort_columns(['A','B'])`
- as with preceding example, level=None becomes level=0 in sort_columns
- `sort(['A','B'], axis=1, level='spam')` == `sort_columns(['A','B'], level='spam')`
- `axis` controls `level` so sort will be on columns named 'A' and 'B' in column index named 'spam'
- series:
- `sort()` == `order()` -- sorts on values
- with `level` specified, sorts on index/named index/level of multi-index:
- `sort(level=0)` == `sort_index()` == `sortlevel()`
- `sort(level='spam')` == `sort_index('spam')` == `sortlevel('spam')`
Comments welcome.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8239/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8239/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8240 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8240/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8240/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8240/events | https://github.com/pandas-dev/pandas/pull/8240 | 42,483,813 | MDExOlB1bGxSZXF1ZXN0MjEwNjM3NDA= | 8,240 | BUG: boxplot fails when one column is all NaNs | {
"avatar_url": "https://avatars.githubusercontent.com/u/1460294?v=4",
"events_url": "https://api.github.com/users/onesandzeroes/events{/privacy}",
"followers_url": "https://api.github.com/users/onesandzeroes/followers",
"following_url": "https://api.github.com/users/onesandzeroes/following{/other_user}",
"gists_url": "https://api.github.com/users/onesandzeroes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/onesandzeroes",
"id": 1460294,
"login": "onesandzeroes",
"node_id": "MDQ6VXNlcjE0NjAyOTQ=",
"organizations_url": "https://api.github.com/users/onesandzeroes/orgs",
"received_events_url": "https://api.github.com/users/onesandzeroes/received_events",
"repos_url": "https://api.github.com/users/onesandzeroes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/onesandzeroes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onesandzeroes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/onesandzeroes"
} | [
{
"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,
... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 5 | 2014-09-11T02:50:00Z | 2014-09-27T03:17:58Z | 2014-09-17T19:32:26Z | CONTRIBUTOR | null | Fixes #8181. Currently the boxplot fails when trying to compute quantiles on an empty array, which numpy can't deal with. Works okay if we use an array with a single `np.nan` instead, the empty column is just left out of the plot as expected.
I guess that might be a bit of a hack, relying on how numpy deals with a single `np.nan` in an array versus an empty array? If people think it's too risky to depend on that behaviour I'll try to rethink.
New output:
``` python
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
df = pd.DataFrame(np.random.randn(100, 4))
df.loc[:, 0] = np.nan
df.plot(kind='box')
plt.show()
```

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8240/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8240/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8240.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8240",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8240.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8240"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8241 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8241/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8241/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8241/events | https://github.com/pandas-dev/pandas/issues/8241 | 42,496,620 | MDU6SXNzdWU0MjQ5NjYyMA== | 8,241 | BUG: reindex on level of multi-index does not respect order of new index ? | {
"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": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stac... | closed | false | null | [] | null | 1 | 2014-09-11T07:31:31Z | 2014-09-11T11:37:35Z | 2014-09-11T11:37:35Z | MEMBER | null | When having a MultiIndex, and reindexing on a level of it, `reindex` does not respect the order of the new index. Is this a bug? Or a limitation of the multi-index reindexing (as in one level you don't have unique elements?) which should be documented?
```
In [69]: s = pd.Series([0,1,2,3,4,5,6,7], index=pd.MultiIndex.from_product([[1,2,3,4],[7,8]]))
In [70]: s
Out[70]:
1 7 0
8 1
2 7 2
8 3
3 7 4
8 5
4 7 6
8 7
dtype: int64
In [71]: s.reindex([3,2], level=0)
Out[71]:
2 7 2
8 3
3 7 4
8 5
dtype: int64
```
Als with a dataframe multi-indexed columns:
```
In [72]: df = pd.DataFrame(np.random.randn(5,6), columns=pd.MultiIndex.from_prod
uct([list('abc'), list('ef')]))
In [73]: df
Out[73]:
a b c
e f e f e f
0 -0.968421 0.343670 0.353754 0.211625 1.964620 0.696301
1 -1.082284 0.532646 0.099657 -1.355934 -0.748171 -0.766453
2 0.674002 -0.440444 -0.296365 0.225170 0.592352 -0.691878
3 0.880808 0.470677 0.330382 0.937828 -0.225192 -1.059934
4 -0.616588 0.501665 -0.232722 1.300403 0.235369 2.318810
In [74]: df.reindex(columns=['c', 'b'], level=0)
Out[74]:
b c
e f e f
0 0.353754 0.211625 1.964620 0.696301
1 0.099657 -1.355934 -0.748171 -0.766453
2 -0.296365 0.225170 0.592352 -0.691878
3 0.330382 0.937828 -0.225192 -1.059934
4 -0.232722 1.300403 0.235369 2.318810
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8241/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8241/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8242 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8242/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8242/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8242/events | https://github.com/pandas-dev/pandas/issues/8242 | 42,513,987 | MDU6SXNzdWU0MjUxMzk4Nw== | 8,242 | Multiple calls to .plot(): colors not correctly cycled | {
"avatar_url": "https://avatars.githubusercontent.com/u/674200?v=4",
"events_url": "https://api.github.com/users/twiecki/events{/privacy}",
"followers_url": "https://api.github.com/users/twiecki/followers",
"following_url": "https://api.github.com/users/twiecki/following{/other_user}",
"gists_url": "https://api.github.com/users/twiecki/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/twiecki",
"id": 674200,
"login": "twiecki",
"node_id": "MDQ6VXNlcjY3NDIwMA==",
"organizations_url": "https://api.github.com/users/twiecki/orgs",
"received_events_url": "https://api.github.com/users/twiecki/received_events",
"repos_url": "https://api.github.com/users/twiecki/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/twiecki/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/twiecki/subscriptions",
"type": "User",
"url": "https://api.github.com/users/twiecki"
} | [] | closed | false | null | [] | null | 4 | 2014-09-11T11:27:48Z | 2014-09-12T17:19:58Z | 2014-09-12T17:19:35Z | CONTRIBUTOR | null | Versions:
Pandas 0.14.1
Matplotlib: 1.4.0
Reproduce:
Run:
``` python
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
for i in range(20):
pd.Series(np.random.rand(20)).plot(label=i)
plt.legend()
```
Output:

You can see that the colors are cycled once and then only blue (i.e. the first color) is being used.
Expected output:

You can see that colors are being cycled correctly.
The expected output was produced using matplotlib's `plot()` command. But note that if `Series.plot()` was run once in the interpreter, matplotlib's `plot()` command produces the same errenous behavior (only plotting blue after the first cycle). It thus appears that `Series.plot()` sets some global matplotlib state that causes 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/8242/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8242/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8243 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8243/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8243/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8243/events | https://github.com/pandas-dev/pandas/issues/8243 | 42,517,276 | MDU6SXNzdWU0MjUxNzI3Ng== | 8,243 | pandas.stats.ols.MovingOLS._calc_betas incompatibility issue with newer numpy | {
"avatar_url": "https://avatars.githubusercontent.com/u/6585675?v=4",
"events_url": "https://api.github.com/users/wangshun98/events{/privacy}",
"followers_url": "https://api.github.com/users/wangshun98/followers",
"following_url": "https://api.github.com/users/wangshun98/following{/other_user}",
"gists_url": "https://api.github.com/users/wangshun98/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wangshun98",
"id": 6585675,
"login": "wangshun98",
"node_id": "MDQ6VXNlcjY1ODU2NzU=",
"organizations_url": "https://api.github.com/users/wangshun98/orgs",
"received_events_url": "https://api.github.com/users/wangshun98/received_events",
"repos_url": "https://api.github.com/users/wangshun98/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wangshun98/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wangshun98/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wangshun98"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] | closed | false | null | [] | {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 8 | 2014-09-11T12:16:26Z | 2016-12-11T14:02:01Z | 2016-12-10T23:29:31Z | NONE | null | numpy version 1.8.2
pandas version 0.14.1
In pandas/stats/ols.py:821, we have:
mask = -np.isnan(betas).any(axis=1)
This causes problem with newer numpy which deprecated negative unary operator (-) on boolean arrays. I got this following error when running into this line:
DeprecationWarning: numpy boolean negative (the unary `-` operator) is deprecated, use the bitwise_xor (the `^` operator) or the logical_xor function instead.
When I change "-" to "~", the problem goes away. It's minor, but hope we can incorporate this into next pandas update. 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/8243/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8243/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8244 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8244/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8244/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8244/events | https://github.com/pandas-dev/pandas/issues/8244 | 42,540,036 | MDU6SXNzdWU0MjU0MDAzNg== | 8,244 | ENH/VIS: Pass DataFrame column to size argument in df.scatter | {
"avatar_url": "https://avatars.githubusercontent.com/u/1312546?v=4",
"events_url": "https://api.github.com/users/TomAugspurger/events{/privacy}",
"followers_url": "https://api.github.com/users/TomAugspurger/followers",
"following_url": "https://api.github.com/users/TomAugspurger/following{/other_user}",
"gists_url": "https://api.github.com/users/TomAugspurger/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/TomAugspurger",
"id": 1312546,
"login": "TomAugspurger",
"node_id": "MDQ6VXNlcjEzMTI1NDY=",
"organizations_url": "https://api.github.com/users/TomAugspurger/orgs",
"received_events_url": "https://api.github.com/users/TomAugspurger/received_events",
"repos_url": "https://api.github.com/users/TomAugspurger/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/TomAugspurger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TomAugspurger/subscriptions",
"type": "User",
"url": "https://api.github.com/users/TomAugspurger"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "8AE234",
"default": false,
"description": null,
... | 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 | 2014-09-11T15:53:59Z | 2018-07-06T22:30:32Z | 2018-07-06T22:30:27Z | CONTRIBUTOR | null | You can already kind of do this by passing in the numpy array
```
In [83]: df = pd.DataFrame(np.random.randn(100, 2))
In [84]: df['z'] = np.random.uniform(size=(100))
In [85]: df.plot(kind='scatter', x=0, y=1, s=df.z.values * 1000)
Out[85]: <matplotlib.axes._subplots.AxesSubplot at 0x11a81df60>
```

But when I merge https://github.com/pydata/pandas/pull/7780/ (coloring by column) it would be natural (and awesome) to do `df.plot(kind='scatter', x='x', y='y', c='color', s='size')`
Shouldn't be too hard if we're willing.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8244/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8244/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8245 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8245/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8245/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8245/events | https://github.com/pandas-dev/pandas/issues/8245 | 42,540,960 | MDU6SXNzdWU0MjU0MDk2MA== | 8,245 | DataFrame.index.asof() bug | {
"avatar_url": "https://avatars.githubusercontent.com/u/1412400?v=4",
"events_url": "https://api.github.com/users/ifmihai/events{/privacy}",
"followers_url": "https://api.github.com/users/ifmihai/followers",
"following_url": "https://api.github.com/users/ifmihai/following{/other_user}",
"gists_url": "https://api.github.com/users/ifmihai/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ifmihai",
"id": 1412400,
"login": "ifmihai",
"node_id": "MDQ6VXNlcjE0MTI0MDA=",
"organizations_url": "https://api.github.com/users/ifmihai/orgs",
"received_events_url": "https://api.github.com/users/ifmihai/received_events",
"repos_url": "https://api.github.com/users/ifmihai/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ifmihai/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ifmihai/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ifmihai"
} | [
{
"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,
... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 5 | 2014-09-11T16:02:17Z | 2014-09-11T23:38:47Z | 2014-09-11T23:38:47Z | NONE | null | An example is best:
``` python
2 Inn: df = P.DataFrame(index=P.date_range('2014-9-6 1:30', '2014-9-9', freq='6H'))
3 Inn: df
3 Out:
2014-09-06 01:30:00
2014-09-06 07:30:00
2014-09-06 13:30:00
2014-09-06 19:30:00
2014-09-07 01:30:00
2014-09-07 07:30:00
2014-09-07 13:30:00
2014-09-07 19:30:00
2014-09-08 01:30:00
2014-09-08 07:30:00
2014-09-08 13:30:00
2014-09-08 19:30:00
2014-09-09 01:30:00
4 Inn: df.index.asof('2014-9-8') # wrong
4 Out: Timestamp('2014-09-08 00:00:00')
5 Inn: df.index.asof(P.to_datetime('2014-9-8')) # right
5 Out: Timestamp('2014-09-07 19:30:00', offset='6H')
7 Inn: P.version.version
7 Out: '0.14.1'
```
df.index.asof() appears to know how to handle datetime strings, but it cant
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8245/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8245/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8246 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8246/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8246/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8246/events | https://github.com/pandas-dev/pandas/pull/8246 | 42,549,871 | MDExOlB1bGxSZXF1ZXN0MjExMDM3NTg= | 8,246 | BUG: DatetimeIndex.asof matches partial dates | {
"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 | 1 | 2014-09-11T17:30:33Z | 2014-09-11T23:38:48Z | 2014-09-11T23:38:48Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/8245
current master:
``` python
In [6]: idx.asof('2010-02')
Out[6]: Timestamp('2010-02-01 00:00:00')
```
fixed:
``` python
In [3]: idx.asof('2010-02')
Out[3]: Timestamp('2010-01-31 00:00:00', offset='M')
```
Will try to do a test_perf on this later. I've been working in python 3, but I don't think vbench is ported for that.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8246/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8246/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8246.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8246",
"merged_at": "2014-09-11T23:38:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8246.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8246"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8247 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8247/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8247/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8247/events | https://github.com/pandas-dev/pandas/pull/8247 | 42,563,043 | MDExOlB1bGxSZXF1ZXN0MjExMTIyNTk= | 8,247 | DOC: Correct Series.nonzero docstring | {
"avatar_url": "https://avatars.githubusercontent.com/u/1297788?v=4",
"events_url": "https://api.github.com/users/kyleam/events{/privacy}",
"followers_url": "https://api.github.com/users/kyleam/followers",
"following_url": "https://api.github.com/users/kyleam/following{/other_user}",
"gists_url": "https://api.github.com/users/kyleam/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kyleam",
"id": 1297788,
"login": "kyleam",
"node_id": "MDQ6VXNlcjEyOTc3ODg=",
"organizations_url": "https://api.github.com/users/kyleam/orgs",
"received_events_url": "https://api.github.com/users/kyleam/received_events",
"repos_url": "https://api.github.com/users/kyleam/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kyleam/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kyleam/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kyleam"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 7 | 2014-09-11T19:44:14Z | 2014-09-12T14:54:49Z | 2014-09-12T14:52:16Z | CONTRIBUTOR | null | The function returns indices, not a boolean array. The description now
matches `numpy.nonzero`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8247/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8247/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8247.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8247",
"merged_at": "2014-09-12T14:52:16Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8247.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8247"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8248 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8248/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8248/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8248/events | https://github.com/pandas-dev/pandas/issues/8248 | 42,577,365 | MDU6SXNzdWU0MjU3NzM2NQ== | 8,248 | Incorrect unit conversion in `to_timedelta` when unit='h' or unit='m' | {
"avatar_url": "https://avatars.githubusercontent.com/u/443776?v=4",
"events_url": "https://api.github.com/users/unutbu/events{/privacy}",
"followers_url": "https://api.github.com/users/unutbu/followers",
"following_url": "https://api.github.com/users/unutbu/following{/other_user}",
"gists_url": "https://api.github.com/users/unutbu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/unutbu",
"id": 443776,
"login": "unutbu",
"node_id": "MDQ6VXNlcjQ0Mzc3Ng==",
"organizations_url": "https://api.github.com/users/unutbu/orgs",
"received_events_url": "https://api.github.com/users/unutbu/received_events",
"repos_url": "https://api.github.com/users/unutbu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/unutbu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/unutbu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/unutbu"
} | [] | closed | false | null | [] | null | 3 | 2014-09-11T22:17:31Z | 2014-09-11T22:23:33Z | 2014-09-11T22:23:33Z | CONTRIBUTOR | null | This issue was uncovered in this [Stackoverflow question](http://stackoverflow.com/q/25797245/190597):
Using Pandas 0.14.0: `pd.to_timedelta` seems to ignore the units when `unit` is `h` or `m`:
```
In [263]: pd.to_timedelta(16, unit='h')
Out[263]: numpy.timedelta64(16,'ns')
In [264]: pd.to_timedelta(16, unit='m')
Out[264]: numpy.timedelta64(16,'ns')
```
Other units seem to work as expected:
```
In [269]: pd.to_timedelta(16, unit='D')
Out[269]: numpy.timedelta64(1382400000000000,'ns')
In [270]: pd.to_timedelta(16, unit='s')
Out[270]: numpy.timedelta64(16000000000,'ns')
In [271]: pd.to_timedelta(16, unit='ms')
Out[271]: numpy.timedelta64(16000000,'ns')
In [272]: pd.to_timedelta(16, unit='us')
Out[272]: numpy.timedelta64(16000,'ns')
In [273]: pd.to_timedelta(16, unit='ns')
Out[273]: numpy.timedelta64(16,'ns')
```
I think the behavior comes from `tslib.convert_to_timedelta`:
```
In [279]: import pandas.tslib
In [280]: pandas.tslib.convert_to_timedelta(16, 'h')
Out[280]: numpy.timedelta64(16,'ns')
In [281]: pandas.tslib.convert_to_timedelta(16, 'D')
Out[281]: numpy.timedelta64(1382400000000000,'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/8248/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8248/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8249 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8249/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8249/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8249/events | https://github.com/pandas-dev/pandas/pull/8249 | 42,585,133 | MDExOlB1bGxSZXF1ZXN0MjExMjY1NDQ= | 8,249 | BUG: plot methods modified rcParams | {
"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 | 0 | 2014-09-12T00:22:20Z | 2014-09-12T17:19:35Z | 2014-09-12T17:19:35Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/8242
Just made a copy of the rcParams when we get 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/8249/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8249/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8249.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8249",
"merged_at": "2014-09-12T17:19:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8249.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8249"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8250 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8250/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8250/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8250/events | https://github.com/pandas-dev/pandas/issues/8250 | 42,587,908 | MDU6SXNzdWU0MjU4NzkwOA== | 8,250 | Running optimization using Scipy and Pandas packages | {
"avatar_url": "https://avatars.githubusercontent.com/u/8743929?v=4",
"events_url": "https://api.github.com/users/Prashantmdgl9/events{/privacy}",
"followers_url": "https://api.github.com/users/Prashantmdgl9/followers",
"following_url": "https://api.github.com/users/Prashantmdgl9/following{/other_user}",
"gists_url": "https://api.github.com/users/Prashantmdgl9/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Prashantmdgl9",
"id": 8743929,
"login": "Prashantmdgl9",
"node_id": "MDQ6VXNlcjg3NDM5Mjk=",
"organizations_url": "https://api.github.com/users/Prashantmdgl9/orgs",
"received_events_url": "https://api.github.com/users/Prashantmdgl9/received_events",
"repos_url": "https://api.github.com/users/Prashantmdgl9/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Prashantmdgl9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Prashantmdgl9/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Prashantmdgl9"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 1 | 2014-09-12T01:17:53Z | 2014-09-12T12:00:55Z | 2014-09-12T12:00:55Z | NONE | null | I have written the code
import pandas as pd
import numpy as np
from scipy.optimize import minimize
pd.set_option('display.mpl_style', 'default')
"""Read the input file into the dataframe""" """T1 file contains the decision variables, corresponding investments and their upper and lower bounds"""
df = pd.DataFrame.from_csv('C:\Users\prashant.mudgal\Downloads\T1.csv')
"""T2 file contains the parameters for the decision variables, note that there can be 2 or more entries for the same decison variable""" """ Our objective func will be prep from T2 file , it will be of the form sum (all DV in params file) (a_(b + c \* DV_name)_\* power) """
df2 = pd.DataFrame.from_csv('C:\Users\prashant.mudgal\Downloads\T2.csv')
"""subset of DV"""
decisionVars= df2['DV']
"""subset for coeff """
coeff = df2['coef']
"""subset for power"""
power = df2['p']
x0 = df['Hist_Inv']
bnds = df[['LB','UB']].values
def objFunc(decisionVars,sign=1.0) :
return sign_(sum(coeff.values[0:] *(df2['weight_f'].values[0:] + df2['weight_v'].values[0:] \* decisionVars[0:])_*power.values[0:]))
"""bounds for the decision variables have been hardcoded """ """ The bounds have been hardcoded and it will be cumbersome if there are thousands of Decision vars """ """ The bounds have been specified in T1.csv file, we want to ream them via the file """
""" Though we are not using constraints as of now, but is it correct form""" """ How to form the constraints for say x + y < 5 ? """ cons = ({'type': 'ineq', 'fun': lambda x: decisionVars[1] - 2 \* decisionVars[1] + 2}, {'type': 'ineq', 'fun': lambda x: -decisionVars[2] - 2 \* decisionVars[1] + 6}, {'type': 'ineq', 'fun': lambda x: -decisionVars[0] + 2 \* decisionVars[1] + 2})
""" the second parameter is the initial values that needs to be optimized""" """ Now, the number of distinct decision vars in the files are 3 in numbers while the total number of decision vars are 12 in number . if we specify x0 as the dataframe of investment (3 in number in the T1 file) , then it gives error that ::: operands could not be broadcast together with shapes (12,) (3,)"""
res = minimize(objFunc, x0,args=(-1.0,),method='SLSQP',bounds = bnds,
options={'disp': True})
"""Print the results"""
print (res)
T1.csv is like DV LB UB Hist_Inv X1 0.7 1.3 28462739.43 X2 0.7 1.3 177407.18 X3 0.7 1.3 1423271.12
T2.csv is
Count DV weight_f weight_v p coef
1 X1 2.310281831 3.661156016 0.5 1828.105881
2 X1 0.693084549 2.20503016 0.5 1460.686147
3 X1 0.207925365 2.030522789 0.5 1436.277144
4 X1 0 5.248353307 0.8 1050.493355
5 X1 0 1.591805116 0.8 983.9964128
6 X1 0 1.933056056 0.8 459.9371809
7 X2 7.322516444 138 0.5 387.4659072
8 X2 3.661258222 139 0.5 606.8684771
9 X2 1.830629111 176.5 0.5 358.8902965
10 X3 164294.4758 77024 0.2 282.0477107
11 X3 98576.68545 122261.4 0.2 345.9217482
12 X3 59146.01127 166242.84 0.2 364.9587162
I create my obj function using vars in T2, there are a lot of vars which are repeated in T2.csv on running optimization I am getting the error operands could not be broadcast together with shapes (12,) (3,) because it is taking all the variables in T2 as different. How should I avoid this issue? X1, X2 AND X3 are the only three vars here.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8250/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8250/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8251 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8251/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8251/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8251/events | https://github.com/pandas-dev/pandas/issues/8251 | 42,594,308 | MDU6SXNzdWU0MjU5NDMwOA== | 8,251 | Panel.fillna with method='ffill' ignores the axis parameter and only fills along axis=1 | {
"avatar_url": "https://avatars.githubusercontent.com/u/8716660?v=4",
"events_url": "https://api.github.com/users/0zeroth/events{/privacy}",
"followers_url": "https://api.github.com/users/0zeroth/followers",
"following_url": "https://api.github.com/users/0zeroth/following{/other_user}",
"gists_url": "https://api.github.com/users/0zeroth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0zeroth",
"id": 8716660,
"login": "0zeroth",
"node_id": "MDQ6VXNlcjg3MTY2NjA=",
"organizations_url": "https://api.github.com/users/0zeroth/orgs",
"received_events_url": "https://api.github.com/users/0zeroth/received_events",
"repos_url": "https://api.github.com/users/0zeroth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0zeroth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0zeroth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0zeroth"
} | [
{
"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, d... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 4 | 2014-09-12T03:56:24Z | 2018-07-06T20:21:04Z | 2017-07-11T09:57:59Z | NONE | null | This is also a documentation error, as the docs say the default axis is axis = 0
```
import pandas as pd
from pandas.util.testing import makePanel
#
# Demo A: We want to fill along axis 0
#
p = makePanel().transpose(1,0,2)
p.iloc[10:20,0,0] = np.nan
# Demonstrate we have a gap
p.iloc[:,0,0].plot()
# Demonstrate that nothing seems to fill the gap
p.fillna(method='ffill').iloc[:,0,0].plot()
p.fillna(method='ffill', axis=0).iloc[:,0,0].plot()
p.fillna(method='ffill', axis=1).iloc[:,0,0].plot()
p.fillna(method='ffill', axis=2).iloc[:,0,0].plot()
# At least one of the above should be the same as:
p.apply(lambda series: series.fillna(method='ffill'), axis=0).iloc[:,0,0].plot()
#
# Demo B: We want to fill along axis 1
#
p = makePanel()
p.iloc[0, 10:20,0] = np.nan
# Demonstrate we have a gap
p.iloc[0,:,0].plot()
# Demonstrate the gap is filled regardless of the axis
p.fillna(method='ffill').iloc[0,:,0].plot()
p.fillna(method='ffill', axis=0).iloc[0,:,0].plot()
p.fillna(method='ffill', axis=1).iloc[0,:,0].plot()
p.fillna(method='ffill', axis=2).iloc[0,:,0].plot()
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8251/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8251/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8252 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8252/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8252/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8252/events | https://github.com/pandas-dev/pandas/issues/8252 | 42,605,806 | MDU6SXNzdWU0MjYwNTgwNg== | 8,252 | MemoryError with more than 1E9 rows | {
"avatar_url": "https://avatars.githubusercontent.com/u/2779998?v=4",
"events_url": "https://api.github.com/users/mattdowle/events{/privacy}",
"followers_url": "https://api.github.com/users/mattdowle/followers",
"following_url": "https://api.github.com/users/mattdowle/following{/other_user}",
"gists_url": "https://api.github.com/users/mattdowle/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mattdowle",
"id": 2779998,
"login": "mattdowle",
"node_id": "MDQ6VXNlcjI3Nzk5OTg=",
"organizations_url": "https://api.github.com/users/mattdowle/orgs",
"received_events_url": "https://api.github.com/users/mattdowle/received_events",
"repos_url": "https://api.github.com/users/mattdowle/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mattdowle/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mattdowle/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mattdowle"
} | [
{
"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"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 3 | 2014-09-12T08:10:40Z | 2014-09-21T19:37:05Z | 2014-09-20T16:50:06Z | NONE | null | I have 240GB of RAM. Nothing else running on the machine. I'm trying to create 1.5E9 rows, which I think should create a data frame of around 100GB, but getting this MemoryError. This works fine with 1E9 but not 1.5E9. I could understand a limit at about 2^31 (2E9) or 2^32 (4E9) but all 240GB seems exhausted (according to htop) at somewhere between 1E9 and 1.5E9 rows. Any ideas? Thanks.
``` python
$ python3
Python 3.4.0 (default, Apr 11 2014, 13:05:11)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas as pd
>>> import numpy as np
>>> import timeit
>>> pd.__version__
'0.14.1'
>>> def randChar(f, numGrp, N) :
... things = [f%x for x in range(numGrp)]
... return [things[x] for x in np.random.choice(numGrp, N)]
...
>>> def randFloat(numGrp, N) :
... things = [round(100*np.random.random(),4) for x in range(numGrp)]
... return [things[x] for x in np.random.choice(numGrp, N)]
...
>>> N=int(1.5e9) # N=int(1e9) works fine
>>> K=100
>>> DF = pd.DataFrame({
... 'id1' : randChar("id%03d", K, N), # large groups (char)
... 'id2' : randChar("id%03d", K, N), # large groups (char)
... 'id3' : randChar("id%010d", N//K, N), # small groups (char)
... 'id4' : np.random.choice(K, N), # large groups (int)
... 'id5' : np.random.choice(K, N), # large groups (int)
... 'id6' : np.random.choice(N//K, N), # small groups (int)
... 'v1' : np.random.choice(5, N), # int in range [1,5]
... 'v2' : np.random.choice(5, N), # int in range [1,5]
... 'v3' : randFloat(100,N) # numeric e.g. 23.5749
... })
Traceback (most recent call last):
File "<stdin>", line 10, in <module>
File "/usr/lib/python3/dist-packages/pandas/core/frame.py", line 203, in __init__
mgr = self._init_dict(data, index, columns, dtype=dtype)
File "/usr/lib/python3/dist-packages/pandas/core/frame.py", line 327, in _init_dict
dtype=dtype)
File "/usr/lib/python3/dist-packages/pandas/core/frame.py", line 4630, in _arrays_to_mgr
return create_block_manager_from_arrays(arrays, arr_names, axes)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3235, in create_block_manager_from_arrays
blocks = form_blocks(arrays, names, axes)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3322, in form_blocks
object_items, np.object_)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3346, in _simple_blockify
values, placement = _stack_arrays(tuples, dtype)
File "/usr/lib/python3/dist-packages/pandas/core/internals.py", line 3410, in _stack_arrays
stacked = np.empty(shape, dtype=dtype)
MemoryError
```
``` bash
$ lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 32
On-line CPU(s) list: 0-31
Thread(s) per core: 2
Core(s) per socket: 8
Socket(s): 2
NUMA node(s): 2
Vendor ID: GenuineIntel
CPU family: 6
Model: 62
Stepping: 4
CPU MHz: 2494.070
BogoMIPS: 5054.21
Hypervisor vendor: Xen
Virtualization type: full
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 25600K
NUMA node0 CPU(s): 0-7,16-23
NUMA node1 CPU(s): 8-15,24-31
$ free -h
total used free shared buffers cached
Mem: 240G 2.3G 237G 364K 66M 632M
-/+ buffers/cache: 1.6G 238G
Swap: 0B 0B 0B
$
```
An earlier question on S.O. is here : http://stackoverflow.com/questions/25631076/is-this-the-fastest-way-to-group-in-pandas
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8252/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8252/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8253 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8253/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8253/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8253/events | https://github.com/pandas-dev/pandas/pull/8253 | 42,613,699 | MDExOlB1bGxSZXF1ZXN0MjExNDMyMzM= | 8,253 | PERF: Improve performance CustmBusinessDay | {
"avatar_url": "https://avatars.githubusercontent.com/u/832380?v=4",
"events_url": "https://api.github.com/users/bjonen/events{/privacy}",
"followers_url": "https://api.github.com/users/bjonen/followers",
"following_url": "https://api.github.com/users/bjonen/following{/other_user}",
"gists_url": "https://api.github.com/users/bjonen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bjonen",
"id": 832380,
"login": "bjonen",
"node_id": "MDQ6VXNlcjgzMjM4MA==",
"organizations_url": "https://api.github.com/users/bjonen/orgs",
"received_events_url": "https://api.github.com/users/bjonen/received_events",
"repos_url": "https://api.github.com/users/bjonen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bjonen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bjonen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bjonen"
} | [] | closed | false | null | [] | null | 2 | 2014-09-12T09:59:22Z | 2014-09-20T00:32:15Z | 2014-09-17T13:19:15Z | CONTRIBUTOR | null | Closes #8236
`CustomBusinessDay` is now fast with holiday calendar and incrementing in different ways.
import pandas as pd
import numpy as np
import datetime as dt
date = pd.Timestamp('20120101')
cbday = pd.offsets.CustomBusinessDay()
date + cbday
%timeit date + cbday
10000 loops, best of 3: 17.2 µs per loop
hdays = [dt.datetime(2013,1,1) for ele in range(1000)]
cbdayh = pd.offsets.CustomBusinessDay.from_various(holidays=hdays)
%timeit date + cbdayh
%timeit date + 2 \* cbdayh
%timeit date - 1 \* cbdayh
%timeit date - 10 \* cbday
100000 loops, best of 3: 14.6 µs per loop
100000 loops, best of 3: 19.7 µs per loop
10000 loops, best of 3: 22.7 µs per loop
10000 loops, best of 3: 22.3 µs per loop
Please check whether you agree with the way I initialize custom offsets now (using classmethod).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8253/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8253/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8253.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8253",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8253.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8253"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8254 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8254/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8254/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8254/events | https://github.com/pandas-dev/pandas/issues/8254 | 42,629,356 | MDU6SXNzdWU0MjYyOTM1Ng== | 8,254 | INT/CLN: remove to_datetime from class methods | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "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": "r... | 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"
} | 17 | 2014-09-12T13:32:57Z | 2016-09-01T08:01:28Z | 2016-08-29T12:42:43Z | CONTRIBUTOR | null | see https://github.com/pydata/pandas/pull/8184
related #8185
`Index.to_datetime` currently exists but really no need for this as `pd.to_datetime` subsumes this functionaility (and is more general). and just pollutes the interface.
so remove:
- [x] `Timestamp.to_datetime`
- [x] `DatetimeIndex.to_datetime` #14096
- [x] `Index.to_datetime` #14096
- [x] `NaT.to_datetime`
- [x] `PeriodIndex.to_datetime`#14113
(and fix the parser to call directly try the conversion / use a helper function).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8254/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8254/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8255 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8255/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8255/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8255/events | https://github.com/pandas-dev/pandas/issues/8255 | 42,655,736 | MDU6SXNzdWU0MjY1NTczNg== | 8,255 | AsIs class in R dataframe conversion prevents easy plotting w/ ggplot2 | {
"avatar_url": "https://avatars.githubusercontent.com/u/660712?v=4",
"events_url": "https://api.github.com/users/benjschiller/events{/privacy}",
"followers_url": "https://api.github.com/users/benjschiller/followers",
"following_url": "https://api.github.com/users/benjschiller/following{/other_user}",
"gists_url": "https://api.github.com/users/benjschiller/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benjschiller",
"id": 660712,
"login": "benjschiller",
"node_id": "MDQ6VXNlcjY2MDcxMg==",
"organizations_url": "https://api.github.com/users/benjschiller/orgs",
"received_events_url": "https://api.github.com/users/benjschiller/received_events",
"repos_url": "https://api.github.com/users/benjschiller/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benjschiller/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benjschiller/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benjschiller"
} | [
{
"color": "e102d8",
"default": false,
"description": "Unexpected or buggy dtype conversions",
"id": 31404521,
"name": "Dtype Conversions",
"node_id": "MDU6TGFiZWwzMTQwNDUyMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Dtype%20Conversions"
}
] | closed | false | null | [] | null | 1 | 2014-09-12T18:14:53Z | 2015-03-08T14:40:09Z | 2015-03-08T14:40:09Z | NONE | null | When using pandas.rpy.common.convert_to_r_dataframe to convert pandas DataFrame --> R data.frame, columns get assigned two classes: AsIs, some data type
ggplot2 sees AsIs and refuses to deal with the data type properly. It would be nice to have the AsIs automatically stripped like here:
http://stackoverflow.com/questions/25175530/can-rpy2-code-be-run-in-parallel
I put the hack in my code like this:
```
from rpy2.robjects import r as R
hack_pandas = R("""
function(df) {
data.frame(lapply(df, function(X) {
if ("AsIs" %in% class(X))
class(X) <- class(X)[-match("AsIs", class(X))]
X
}))
}
""")
df = hack_pandas(com.convert_to_r_dataframe(data))
```
It would be nice to have this done on-the-fly, perhaps optionally (strip_asis=True?).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8255/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8255/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8256 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8256/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8256/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8256/events | https://github.com/pandas-dev/pandas/issues/8256 | 42,659,984 | MDU6SXNzdWU0MjY1OTk4NA== | 8,256 | hist(by=) breaks when the output does not fill all rows and columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/126879?v=4",
"events_url": "https://api.github.com/users/CerebralMastication/events{/privacy}",
"followers_url": "https://api.github.com/users/CerebralMastication/followers",
"following_url": "https://api.github.com/users/CerebralMastication/following{/other_user}",
"gists_url": "https://api.github.com/users/CerebralMastication/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CerebralMastication",
"id": 126879,
"login": "CerebralMastication",
"node_id": "MDQ6VXNlcjEyNjg3OQ==",
"organizations_url": "https://api.github.com/users/CerebralMastication/orgs",
"received_events_url": "https://api.github.com/users/CerebralMastication/received_events",
"repos_url": "https://api.github.com/users/CerebralMastication/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CerebralMastication/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CerebralMastication/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CerebralMastication"
} | [
{
"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,
... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 7 | 2014-09-12T19:00:45Z | 2014-09-15T14:52:26Z | 2014-09-15T14:52:07Z | NONE | null | Example:
import pandas as pd
pd.Series(randn(1000)).hist(by=randint(0, 6, 1000), sharex=True, sharey=True)
pd.Series(randn(1000)).hist(by=randint(0, 5, 1000), sharex=True, sharey=True)


| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8256/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8256/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8257 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8257/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8257/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8257/events | https://github.com/pandas-dev/pandas/issues/8257 | 42,664,894 | MDU6SXNzdWU0MjY2NDg5NA== | 8,257 | compare two series objects ignores index | {
"avatar_url": "https://avatars.githubusercontent.com/u/3824388?v=4",
"events_url": "https://api.github.com/users/longislandfarmer/events{/privacy}",
"followers_url": "https://api.github.com/users/longislandfarmer/followers",
"following_url": "https://api.github.com/users/longislandfarmer/following{/other_user}",
"gists_url": "https://api.github.com/users/longislandfarmer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/longislandfarmer",
"id": 3824388,
"login": "longislandfarmer",
"node_id": "MDQ6VXNlcjM4MjQzODg=",
"organizations_url": "https://api.github.com/users/longislandfarmer/orgs",
"received_events_url": "https://api.github.com/users/longislandfarmer/received_events",
"repos_url": "https://api.github.com/users/longislandfarmer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/longislandfarmer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/longislandfarmer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/longislandfarmer"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "0052cc",
"default": false,
"description": "pandas objects compat... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 5 | 2014-09-12T19:58:50Z | 2016-11-11T10:33:49Z | 2016-11-11T10:33:42Z | NONE | null | It seems that when comparing two Series objects, index is ignored, here is an trivial example
```
In [177]: pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.7.final.0
python-bits: 64
OS: Linux
OS-release: 3.2.0-0.bpo.4-amd64
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US
pandas: 0.14.0
nose: 1.3.0
Cython: 0.19.2
numpy: 1.8.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 2.0.0
sphinx: 1.1.3
patsy: 0.2.1
scikits.timeseries: None
dateutil: 1.5
pytz: 2014.3
bottleneck: None
tables: 3.0.0
numexpr: 2.2.2
matplotlib: 1.3.1
openpyxl: 1.6.2
xlrd: 0.9.2
xlwt: 0.7.5
xlsxwriter: None
lxml: 3.2.3
bs4: 4.3.1
html5lib: None
bq: None
apiclient: None
rpy2: None
sqlalchemy: 0.8.3
pymysql: None
psycopg2: None
In [158]: a = pd.Series([100, 101, 102, 103], index=[1,2,3,4])
In [168]: b = pd.Series([102, 103, 104, 105], index=[3, 4, 5, 6])
In [170]: a
Out[170]:
1 100
2 101
3 102
4 103
dtype: int64
In [171]: b
Out[171]:
3 102
4 103
5 104
6 105
dtype: int64
In [172]: a > b
Out[172]:
1 False
2 False
3 False
4 False
dtype: bool
In [173]: a < b
Out[173]:
1 True
2 True
3 True
4 True
dtype: bool
In [174]: a == b
Out[174]:
1 False
2 False
3 False
4 False
dtype: bool
In [175]: a - b
Out[175]:
1 NaN
2 NaN
3 0
4 0
5 NaN
6 NaN
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/8257/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8257/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8258 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8258/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8258/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8258/events | https://github.com/pandas-dev/pandas/issues/8258 | 42,666,469 | MDU6SXNzdWU0MjY2NjQ2OQ== | 8,258 | BUG: alignment bug when setting a subset of rows and attempting to switch columns | {
"avatar_url": "https://avatars.githubusercontent.com/u/8753876?v=4",
"events_url": "https://api.github.com/users/johne13/events{/privacy}",
"followers_url": "https://api.github.com/users/johne13/followers",
"following_url": "https://api.github.com/users/johne13/following{/other_user}",
"gists_url": "https://api.github.com/users/johne13/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/johne13",
"id": 8753876,
"login": "johne13",
"node_id": "MDQ6VXNlcjg3NTM4NzY=",
"organizations_url": "https://api.github.com/users/johne13/orgs",
"received_events_url": "https://api.github.com/users/johne13/received_events",
"repos_url": "https://api.github.com/users/johne13/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/johne13/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/johne13/subscriptions",
"type": "User",
"url": "https://api.github.com/users/johne13"
} | [
{
"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 s... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-12T20:17:25Z | 2014-10-04T17:19:50Z | 2014-10-04T17:19:50Z | NONE | null | Originally posted at stackexchange:
http://stackoverflow.com/questions/25811529/setting-values-on-a-subset-of-rows-indexing-boolean-setting/25812825#25812825
Jeff suggested posting here also.
``` python
df = DataFrame({'L': ['left', 'right', 'left', 'right'],
'R': ['right', 'left', 'right', 'left'],
'idx': [False, True, False, True],
'num': np.arange(4) })
df1 = df.copy()
df2 = df.copy()
df3 = df.copy()
df4 = df.copy()
#1 nothing happens (expected result)
df1.loc[df1.idx,['L','R']] = df1.loc[df1.idx,['R','L']]
#2 something weird happens
df2.loc[df2.idx,['L','R']] = df2[['R','L']]
```
Results below:
``` python
In [572]: df
Out[572]:
L R idx num
0 left right False 0
1 right left True 1
2 left right False 2
3 right left True 3
In [573]: df1
Out[573]:
L R idx num
0 left right False 0
1 right left True 1
2 left right False 2
3 right left True 3
In [574]: df2
Out[574]:
L R idx num
0 left right False 0
1 left right True 1
2 left right False 2
3 right left True 3
```
```
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.7.final.0
python-bits: 64
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 26 Stepping 5, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.14.1.dev
nose: 1.3.3
Cython: 0.20.1
numpy: 1.8.1
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 2.1.0
sphinx: 1.2.2
patsy: 0.2.1
scikits.timeseries: None
dateutil: 1.5
pytz: 2014.3
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.3.1
openpyxl: 1.8.5
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: 0.5.5
lxml: 3.3.5
bs4: 4.3.1
html5lib: None
httplib2: None
apiclient: None
rpy2: None
sqlalchemy: 0.9.4
pymysql: None
psycopg2: None
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8258/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8258/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8259 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8259/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8259/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8259/events | https://github.com/pandas-dev/pandas/issues/8259 | 42,677,843 | MDU6SXNzdWU0MjY3Nzg0Mw== | 8,259 | datetime not properly converted from Series; timezone dropped | {
"avatar_url": "https://avatars.githubusercontent.com/u/660712?v=4",
"events_url": "https://api.github.com/users/benjschiller/events{/privacy}",
"followers_url": "https://api.github.com/users/benjschiller/followers",
"following_url": "https://api.github.com/users/benjschiller/following{/other_user}",
"gists_url": "https://api.github.com/users/benjschiller/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benjschiller",
"id": 660712,
"login": "benjschiller",
"node_id": "MDQ6VXNlcjY2MDcxMg==",
"organizations_url": "https://api.github.com/users/benjschiller/orgs",
"received_events_url": "https://api.github.com/users/benjschiller/received_events",
"repos_url": "https://api.github.com/users/benjschiller/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benjschiller/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benjschiller/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benjschiller"
} | [] | closed | false | null | [] | null | 9 | 2014-09-12T22:47:52Z | 2014-09-12T23:47:04Z | 2014-09-12T22:52:08Z | NONE | null | This bug also happens if you use the .convert_objects() method of DataFrame or Series.
To reproduce:
```
In [83]: import pytz
In [85]: d = datetime.datetime(2014, 9, 3, 2, 40, 16, tzinfo=pytz.utc)
In [88]: pd.to_datetime(pd.Series([d]))[0]
Out[88]: Timestamp('2014-09-03 02:40:16', tz=None)
In [89]: pd.to_datetime([d])[0]
Out[89]: Timestamp('2014-09-03 02:40:16+0000', tz='UTC')
In [91]: pd.__version__
Out[91]: '0.13.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/8259/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8259/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8260 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8260/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8260/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8260/events | https://github.com/pandas-dev/pandas/issues/8260 | 42,680,629 | MDU6SXNzdWU0MjY4MDYyOQ== | 8,260 | INT: support DatetimeBlock with timezones | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "fbca04",
"default": false,
"description": "Related to non-user accessible pandas implementation",
"id": 49094459,
"name": "Internals",
"node_id": "MDU6TGFiZWw0OTA5NDQ1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Internals"
},
{
"color": "5319e7... | closed | false | null | [] | {
"closed_at": "2015-10-09T18:34:35Z",
"closed_issues": 593,
"created_at": "2015-03-23T10:47:38Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2015-10-10T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/34",
"id": 1033710,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34/labels",
"node_id": "MDk6TWlsZXN0b25lMTAzMzcxMA==",
"number": 34,
"open_issues": 0,
"state": "closed",
"title": "0.17.0",
"updated_at": "2016-12-11T14:02:02Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/34"
} | 3 | 2014-09-12T23:43:59Z | 2015-09-05T16:17:23Z | 2015-09-05T16:17:23Z | CONTRIBUTOR | null | to allow real support / conversions of timezone aware Series.
xref #9560; `DatetimeIndex.to_series()` can be changed to preserve the tz always
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8260/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8260/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8261 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8261/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8261/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8261/events | https://github.com/pandas-dev/pandas/issues/8261 | 42,682,358 | MDU6SXNzdWU0MjY4MjM1OA== | 8,261 | .ix slicing doesn't work on a dataframe obtained by groupby.get_group() | {
"avatar_url": "https://avatars.githubusercontent.com/u/7418646?v=4",
"events_url": "https://api.github.com/users/grechkay/events{/privacy}",
"followers_url": "https://api.github.com/users/grechkay/followers",
"following_url": "https://api.github.com/users/grechkay/following{/other_user}",
"gists_url": "https://api.github.com/users/grechkay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/grechkay",
"id": 7418646,
"login": "grechkay",
"node_id": "MDQ6VXNlcjc0MTg2NDY=",
"organizations_url": "https://api.github.com/users/grechkay/orgs",
"received_events_url": "https://api.github.com/users/grechkay/received_events",
"repos_url": "https://api.github.com/users/grechkay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/grechkay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/grechkay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/grechkay"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
}
] | closed | false | null | [] | null | 24 | 2014-09-13T00:24:41Z | 2014-09-13T14:14:47Z | 2014-09-13T02:32:23Z | CONTRIBUTOR | null | I have a dataframe with a column "actor"; I created a groupby object as such:
a = df.groupby('actor')
Then I create a new DataFrame as follows:
b = a.get_group(a.groups.keys()[0])
Now, b.ix[0,0] gives an error:
KeyError: 0L
I can still use .ix to slice by index and column, but not by position.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8261/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8261/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8262 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8262/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8262/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8262/events | https://github.com/pandas-dev/pandas/pull/8262 | 42,696,771 | MDExOlB1bGxSZXF1ZXN0MjExOTMzNTE= | 8,262 | Clarification to .ix functionality | {
"avatar_url": "https://avatars.githubusercontent.com/u/7418646?v=4",
"events_url": "https://api.github.com/users/grechkay/events{/privacy}",
"followers_url": "https://api.github.com/users/grechkay/followers",
"following_url": "https://api.github.com/users/grechkay/following{/other_user}",
"gists_url": "https://api.github.com/users/grechkay/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/grechkay",
"id": 7418646,
"login": "grechkay",
"node_id": "MDQ6VXNlcjc0MTg2NDY=",
"organizations_url": "https://api.github.com/users/grechkay/orgs",
"received_events_url": "https://api.github.com/users/grechkay/received_events",
"repos_url": "https://api.github.com/users/grechkay/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/grechkay/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/grechkay/subscriptions",
"type": "User",
"url": "https://api.github.com/users/grechkay"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-13T14:13:18Z | 2015-01-17T09:59:00Z | 2014-09-13T22:42:12Z | CONTRIBUTOR | null | Made clear that .ix does not support positional indexing
in the case where the corresponding dimension has an
integer 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/8262/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8262/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8262.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8262",
"merged_at": "2014-09-13T22:42:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8262.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8262"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8263 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8263/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8263/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8263/events | https://github.com/pandas-dev/pandas/issues/8263 | 42,702,460 | MDU6SXNzdWU0MjcwMjQ2MA== | 8,263 | ENH: set multi-index names as NamedTuples | {
"avatar_url": "https://avatars.githubusercontent.com/u/3160562?v=4",
"events_url": "https://api.github.com/users/dr-leo/events{/privacy}",
"followers_url": "https://api.github.com/users/dr-leo/followers",
"following_url": "https://api.github.com/users/dr-leo/following{/other_user}",
"gists_url": "https://api.github.com/users/dr-leo/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dr-leo",
"id": 3160562,
"login": "dr-leo",
"node_id": "MDQ6VXNlcjMxNjA1NjI=",
"organizations_url": "https://api.github.com/users/dr-leo/orgs",
"received_events_url": "https://api.github.com/users/dr-leo/received_events",
"repos_url": "https://api.github.com/users/dr-leo/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dr-leo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dr-leo/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dr-leo"
} | [
{
"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": "005... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 17 | 2014-09-13T18:36:33Z | 2018-07-06T22:28:25Z | 2018-07-06T22:28:21Z | CONTRIBUTOR | null | import pandas as PD
s1=PD.Series((1,4,9,16), name=dict(a=1,b=2))
s2=s1*2
s2.name=dict(c=5,d=7)
s1
0 1
1 4
2 9
3 16
Name: {'a': 1, 'b': 2}, dtype: int32
df = PD.concat((s1,s2), axis=1) # this should raise ValueError as the resulting df is broken
df.shape # ok, this works...
(4, 2)
df # But this doesn't.
<repr(<pandas.core.frame.DataFrame at 0x35af770>) failed: TypeError: unhashable type: 'dict'>
df.columns # This is not a proper index...
Index([{'a': 1, 'b': 2}, {'c': 5, 'd': 7}], dtype='object')
Comments:
1. There may be other ways aside from concat that lead to broken df's if a Series.name attribute is unhashable.
2. If Series.name is a dict, one could try to convert it into a namedtuple. That's hashable.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8263/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8263/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8264 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8264/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8264/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8264/events | https://github.com/pandas-dev/pandas/pull/8264 | 42,708,207 | MDExOlB1bGxSZXF1ZXN0MjExOTg1MTM= | 8,264 | BUG: Bug in inference in a MultiIndex with datetime.date inputs (GH7888) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-13T23:18:33Z | 2014-09-14T01:09:42Z | 2014-09-14T01:09:42Z | CONTRIBUTOR | null | closes #7888
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8264/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8264/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8264.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8264",
"merged_at": "2014-09-14T01:09:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8264.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8264"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8265 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8265/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8265/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8265/events | https://github.com/pandas-dev/pandas/issues/8265 | 42,710,756 | MDU6SXNzdWU0MjcxMDc1Ng== | 8,265 | HDF5 index corruption | {
"avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4",
"events_url": "https://api.github.com/users/rockg/events{/privacy}",
"followers_url": "https://api.github.com/users/rockg/followers",
"following_url": "https://api.github.com/users/rockg/following{/other_user}",
"gists_url": "https://api.github.com/users/rockg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rockg",
"id": 3195015,
"login": "rockg",
"node_id": "MDQ6VXNlcjMxOTUwMTU=",
"organizations_url": "https://api.github.com/users/rockg/orgs",
"received_events_url": "https://api.github.com/users/rockg/received_events",
"repos_url": "https://api.github.com/users/rockg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rockg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rockg"
} | [
{
"color": "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",
... | closed | false | null | [] | null | 14 | 2014-09-14T02:27:16Z | 2015-04-18T19:00:14Z | 2015-04-18T19:00:14Z | CONTRIBUTOR | null | I generated a multindexed DataFrame and wrote it to hdf5 using to_hdf. It uses zlib level 5 compression. The file was written all at once. The file is located here: https://www.dropbox.com/s/122q55g5ubcf4fl/indexIssue.h5?dl=0
The below methods should be identical but the former select with a where clause has 2892 records but getting all values and subselecting on the path returns 2972 (values are missing for path 6 between 3-5-2015 20:00 to 3-6-2015 9:00). I tried using reindex on the able but that didn't fix anything. I don't really know what's going on.
```
store = HDFStore(path_to_file, mode='r')
p1 = store.select('ts', where=Term('Path', '=', 6), auto_close=False)
print(len(p1))
p2 = store.select('ts', auto_close=False)
p2s = p2[p2.index.get_level_values('Path') == 6]
print(len(p2s))
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8265/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8265/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8266 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8266/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8266/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8266/events | https://github.com/pandas-dev/pandas/pull/8266 | 42,713,848 | MDExOlB1bGxSZXF1ZXN0MjEyMDA4NjE= | 8,266 | DOC: Add notes explaining params is db driver dep. GH7573 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6062071?v=4",
"events_url": "https://api.github.com/users/jnmclarty/events{/privacy}",
"followers_url": "https://api.github.com/users/jnmclarty/followers",
"following_url": "https://api.github.com/users/jnmclarty/following{/other_user}",
"gists_url": "https://api.github.com/users/jnmclarty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jnmclarty",
"id": 6062071,
"login": "jnmclarty",
"node_id": "MDQ6VXNlcjYwNjIwNzE=",
"organizations_url": "https://api.github.com/users/jnmclarty/orgs",
"received_events_url": "https://api.github.com/users/jnmclarty/received_events",
"repos_url": "https://api.github.com/users/jnmclarty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jnmclarty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jnmclarty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jnmclarty"
} | [
{
"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 | [] | null | 3 | 2014-09-14T05:49:51Z | 2014-10-08T05:31:22Z | 2014-09-16T06:14:26Z | CONTRIBUTOR | null | This is my first PR. It's just an update to two doc strings.
Closes #7573
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8266/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8266/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8266.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8266",
"merged_at": "2014-09-16T06:14:26Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8266.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8266"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8267 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8267/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8267/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8267/events | https://github.com/pandas-dev/pandas/pull/8267 | 42,721,235 | MDExOlB1bGxSZXF1ZXN0MjEyMDQyODA= | 8,267 | Minor doc clean for ambiguous time handling | {
"avatar_url": "https://avatars.githubusercontent.com/u/3195015?v=4",
"events_url": "https://api.github.com/users/rockg/events{/privacy}",
"followers_url": "https://api.github.com/users/rockg/followers",
"following_url": "https://api.github.com/users/rockg/following{/other_user}",
"gists_url": "https://api.github.com/users/rockg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rockg",
"id": 3195015,
"login": "rockg",
"node_id": "MDQ6VXNlcjMxOTUwMTU=",
"organizations_url": "https://api.github.com/users/rockg/orgs",
"received_events_url": "https://api.github.com/users/rockg/received_events",
"repos_url": "https://api.github.com/users/rockg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rockg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rockg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rockg"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 3 | 2014-09-14T14:05:26Z | 2014-09-14T17:10:22Z | 2014-09-14T17:10:17Z | 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/8267/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8267/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8267.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8267",
"merged_at": "2014-09-14T17:10:17Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8267.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8267"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/8268 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8268/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8268/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8268/events | https://github.com/pandas-dev/pandas/pull/8268 | 42,721,511 | MDExOlB1bGxSZXF1ZXN0MjEyMDQzOTg= | 8,268 | TST: tests for reduction of series with nan timedelta (GH7661) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "5319e7",
"d... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-14T14:19:16Z | 2014-09-14T15:48:40Z | 2014-09-14T15:48:40Z | CONTRIBUTOR | null | xref #7661
just tests for coverage
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8268/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8268/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8268.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8268",
"merged_at": "2014-09-14T15:48:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8268.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8268"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8269 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8269/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8269/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8269/events | https://github.com/pandas-dev/pandas/issues/8269 | 42,724,719 | MDU6SXNzdWU0MjcyNDcxOQ== | 8,269 | Unexpected behavior for rolling moments when center=True and min_periods < window | {
"avatar_url": "https://avatars.githubusercontent.com/u/7545449?v=4",
"events_url": "https://api.github.com/users/stahlous/events{/privacy}",
"followers_url": "https://api.github.com/users/stahlous/followers",
"following_url": "https://api.github.com/users/stahlous/following{/other_user}",
"gists_url": "https://api.github.com/users/stahlous/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/stahlous",
"id": 7545449,
"login": "stahlous",
"node_id": "MDQ6VXNlcjc1NDU0NDk=",
"organizations_url": "https://api.github.com/users/stahlous/orgs",
"received_events_url": "https://api.github.com/users/stahlous/received_events",
"repos_url": "https://api.github.com/users/stahlous/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/stahlous/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/stahlous/subscriptions",
"type": "User",
"url": "https://api.github.com/users/stahlous"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, ... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 14 | 2014-09-14T16:43:48Z | 2014-09-17T13:07:02Z | 2014-09-17T13:07:02Z | CONTRIBUTOR | null | I noticed while using rolling moment functions with `center=True` and with `min_periods` < `window` that the values at the end of the series were showing up as `NaN` when they should have be finite floating point values. The reason for this behavior is that `_rolling_moment()` concats extra `NaN` values to the end of the input series when `center=True` to allow the `roll_generic()` function to continue on past the end of the original series and compute the values that will "come within view" when the result is centered. However, adding those `NaN` values into the window can bork the calculation and change a result that should be finite into a `NaN`.
This example illustrates the behavior:
```
n = 12
s = Series(np.random.randn(n))
s.plot(color='b')
win=7
minp = 5
pd.rolling_mean(s, win, min_periods=minp, center=False).plot(color='g')
pd.rolling_mean(s, win, min_periods=minp, center=True).plot(color='r')
ticks = plt.xticks(np.arange(0, n, 1.0))
```

I was able to mitigate this behavior, for one calculation at least, by modifying the cython function to essentially strip the trailing `NaN` values for the calculations made towards the end of the series. This requires passing in the `offset` calculated in `_rolling_moment()`.
Fixing this is going to touch a lot of functions that depend on `_rolling_moment()`. Before I go much further with this, I thought I'd raise the issue here and see if anyone else has insight or better ideas about how to fix this.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8269/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8269/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8270 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8270/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8270/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8270/events | https://github.com/pandas-dev/pandas/pull/8270 | 42,729,185 | MDExOlB1bGxSZXF1ZXN0MjEyMDc3NjM= | 8,270 | use z-scores in rolling skew/kurt calculations | {
"avatar_url": "https://avatars.githubusercontent.com/u/1288998?v=4",
"events_url": "https://api.github.com/users/behzadnouri/events{/privacy}",
"followers_url": "https://api.github.com/users/behzadnouri/followers",
"following_url": "https://api.github.com/users/behzadnouri/following{/other_user}",
"gists_url": "https://api.github.com/users/behzadnouri/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/behzadnouri",
"id": 1288998,
"login": "behzadnouri",
"node_id": "MDQ6VXNlcjEyODg5OTg=",
"organizations_url": "https://api.github.com/users/behzadnouri/orgs",
"received_events_url": "https://api.github.com/users/behzadnouri/received_events",
"repos_url": "https://api.github.com/users/behzadnouri/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/behzadnouri/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/behzadnouri/subscriptions",
"type": "User",
"url": "https://api.github.com/users/behzadnouri"
} | [
{
"color": "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"
},
{
"c... | 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"
} | 20 | 2014-09-14T20:13:46Z | 2014-09-30T03:26:27Z | 2014-09-29T12:57:56Z | CONTRIBUTOR | null | adds _some_ stability to rolling `skew` and `kurt` calculation by using the `z-scores` instead of original values; related: https://github.com/pydata/pandas/issues/6929
on master:
```
In [3]: np.random.seed(2718281)
In [4]: xs = np.random.rand(10)
In [5]: pd.stats.moments.rolling_skew(xs, 4) - pd.stats.moments.rolling_skew(xs + 5000, 4)
Out[5]:
array([ nan, nan, nan,
-1.64816426e-03, 1.10392004e-03, 1.09544324e-03,
7.99253200e-03, 8.66733795e-05, -4.48450842e-03,
-6.03475754e-03])
In [6]: pd.stats.moments.rolling_kurt(xs, 4) - pd.stats.moments.rolling_kurt(xs + 100, 4)
Out[6]:
array([ nan, nan, nan,
-1.39880824e-04, -2.91491317e-04, -2.35463343e-04,
-7.36046530e-04, -3.99141811e-04, -8.61177376e-05,
9.26058376e-06])
```
on branch:
```
In [7]: pd.stats.moments.rolling_skew(xs, 4) - pd.stats.moments.rolling_skew(xs + 5000, 4)
Out[7]:
array([ nan, nan, nan,
-1.03450581e-12, 7.36521955e-13, 2.42605935e-12,
-2.43799425e-12, -1.85962357e-12, -1.06048503e-12,
1.66638925e-12])
In [8]: pd.stats.moments.rolling_kurt(xs, 4) - pd.stats.moments.rolling_kurt(xs + 100, 4)
Out[8]:
array([ nan, nan, nan,
-1.24344979e-13, -7.99360578e-14, 6.75015599e-14,
-9.05941988e-14, -5.15143483e-14, -1.11910481e-13,
-5.15143483e-14])
```
This does _not_ handle all situations that causes instability, but I think it is generally more stable to work with z-scores; In particular, affine transformations generate same results.
Also, `input` is a python 3 built-in. I suggest renaming all instances of `input` in `algo.pyx` file to `inp` or something else.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8270/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8270/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8270.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8270",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8270.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8270"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8271 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8271/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8271/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8271/events | https://github.com/pandas-dev/pandas/pull/8271 | 42,744,410 | MDExOlB1bGxSZXF1ZXN0MjEyMTUxNDc= | 8,271 | ENH: Ensure that rolling_var of identical values is exactly zero | {
"avatar_url": "https://avatars.githubusercontent.com/u/3343990?v=4",
"events_url": "https://api.github.com/users/jaimefrio/events{/privacy}",
"followers_url": "https://api.github.com/users/jaimefrio/followers",
"following_url": "https://api.github.com/users/jaimefrio/following{/other_user}",
"gists_url": "https://api.github.com/users/jaimefrio/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jaimefrio",
"id": 3343990,
"login": "jaimefrio",
"node_id": "MDQ6VXNlcjMzNDM5OTA=",
"organizations_url": "https://api.github.com/users/jaimefrio/orgs",
"received_events_url": "https://api.github.com/users/jaimefrio/received_events",
"repos_url": "https://api.github.com/users/jaimefrio/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jaimefrio/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jaimefrio/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jaimefrio"
} | [
{
"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"
},
{
"c... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 30 | 2014-09-15T06:23:09Z | 2014-09-19T23:43:07Z | 2014-09-19T23:33:11Z | CONTRIBUTOR | null | Add a check to rolling_var for repeated observations, in order to
produce an exactly zero value of the variance when all entries are
identical. Related to the discussion in #7900
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8271/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8271/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8271.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8271",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8271.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8271"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8272 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8272/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8272/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8272/events | https://github.com/pandas-dev/pandas/issues/8272 | 42,757,855 | MDU6SXNzdWU0Mjc1Nzg1NQ== | 8,272 | when a column contains alpha numeric ending with 'e', pandas converts these to float64 | {
"avatar_url": "https://avatars.githubusercontent.com/u/8776889?v=4",
"events_url": "https://api.github.com/users/Siva1018/events{/privacy}",
"followers_url": "https://api.github.com/users/Siva1018/followers",
"following_url": "https://api.github.com/users/Siva1018/following{/other_user}",
"gists_url": "https://api.github.com/users/Siva1018/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Siva1018",
"id": 8776889,
"login": "Siva1018",
"node_id": "MDQ6VXNlcjg3NzY4ODk=",
"organizations_url": "https://api.github.com/users/Siva1018/orgs",
"received_events_url": "https://api.github.com/users/Siva1018/received_events",
"repos_url": "https://api.github.com/users/Siva1018/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Siva1018/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Siva1018/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Siva1018"
} | [
{
"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": "bfe... | closed | false | null | [] | null | 9 | 2014-09-15T10:14:40Z | 2015-10-20T23:11:53Z | 2015-10-20T23:11:53Z | NONE | null | I'm reading some excel spreadsheets (xlsx format) into pandas using read_excel, which generally works great. The problem I have is that when a column contains alpha numeric ending with 'e', pandas converts these to float64 type without 'e' in its value, and I would like them to be treated as strings. After reading them in, I can convert the column to str:

dataset = read_excel(excel_file,sheet_name,na_values=[" "])
while reading this excel file to dataset it shows loan id as a number without 'e'

| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8272/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8272/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8273 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8273/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8273/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8273/events | https://github.com/pandas-dev/pandas/issues/8273 | 42,770,788 | MDU6SXNzdWU0Mjc3MDc4OA== | 8,273 | to_html function fail when max_rows is specified | {
"avatar_url": "https://avatars.githubusercontent.com/u/8778777?v=4",
"events_url": "https://api.github.com/users/pilollipietro/events{/privacy}",
"followers_url": "https://api.github.com/users/pilollipietro/followers",
"following_url": "https://api.github.com/users/pilollipietro/following{/other_user}",
"gists_url": "https://api.github.com/users/pilollipietro/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/pilollipietro",
"id": 8778777,
"login": "pilollipietro",
"node_id": "MDQ6VXNlcjg3Nzg3Nzc=",
"organizations_url": "https://api.github.com/users/pilollipietro/orgs",
"received_events_url": "https://api.github.com/users/pilollipietro/received_events",
"repos_url": "https://api.github.com/users/pilollipietro/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/pilollipietro/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pilollipietro/subscriptions",
"type": "User",
"url": "https://api.github.com/users/pilollipietro"
} | [
{
"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": "006b7... | closed | false | null | [] | null | 4 | 2014-09-15T13:15:38Z | 2015-10-20T22:41:46Z | 2015-10-20T22:41:46Z | NONE | null | The error is:
list index out of range
Exception Location: /home/pietro/lod4statenv/local/lib/python2.7/site-packages/pandas/core/format.py in _write_body, line 923
In order to fix it I have replaced line 922 from:
for i in range(len(self.frame)):
to:
for i in range(min(len(self.frame), self.max_rows)):
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8273/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8273/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8274 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8274/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8274/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8274/events | https://github.com/pandas-dev/pandas/issues/8274 | 42,785,484 | MDU6SXNzdWU0Mjc4NTQ4NA== | 8,274 | to_hdf:[unicode] is not implemented as a table column | {
"avatar_url": "https://avatars.githubusercontent.com/u/8779801?v=4",
"events_url": "https://api.github.com/users/cyyang81/events{/privacy}",
"followers_url": "https://api.github.com/users/cyyang81/followers",
"following_url": "https://api.github.com/users/cyyang81/following{/other_user}",
"gists_url": "https://api.github.com/users/cyyang81/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/cyyang81",
"id": 8779801,
"login": "cyyang81",
"node_id": "MDQ6VXNlcjg3Nzk4MDE=",
"organizations_url": "https://api.github.com/users/cyyang81/orgs",
"received_events_url": "https://api.github.com/users/cyyang81/received_events",
"repos_url": "https://api.github.com/users/cyyang81/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/cyyang81/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cyyang81/subscriptions",
"type": "User",
"url": "https://api.github.com/users/cyyang81"
} | [] | closed | false | null | [] | null | 2 | 2014-09-15T15:36:08Z | 2014-09-16T00:06:41Z | 2014-09-16T00:05:12Z | NONE | null | First,sorry for my bad english:)
I want to store data use DataFrame.to_hdf() function.
when i use df600000.to_hdf(path_or_buf='H:\store.h5',key='SH600000',format='f',mode='r+'),it works good,since i change format='t' will raise TypeError,why?
detail as followed:
## In [55]:df600000.to_hdf(path_or_buf='H:\store.h5',key='SH600000',format='t',mode='r+')
TypeError Traceback (most recent call last)
<ipython-input-55-ce1cae8be680> in <module>()
----> 1 df600000.to_hdf(path_or_buf='H:\store.h5',key='SH600000',format='t',mode='r+')
D:\winpython\WinPython-32bit-2.7.6.4\python-2.7.6\lib\site-packages\pandas\core\generic.pyc in to_hdf(self, path_or_buf, key, *_kwargs)
882
883 from pandas.io import pytables
--> 884 return pytables.to_hdf(path_or_buf, key, self, *_kwargs)
885
886 def to_msgpack(self, path_or_buf=None, **kwargs):
D:\winpython\WinPython-32bit-2.7.6.4\python-2.7.6\lib\site-packages\pandas\io\pytables.pyc in to_hdf(path_or_buf, key, value, mode, complevel, complib, append, **kwargs)
277 with get_store(path_or_buf, mode=mode, complevel=complevel,
278 complib=complib) as store:
--> 279 f(store)
280 else:
281 f(path_or_buf)
D:\winpython\WinPython-32bit-2.7.6.4\python-2.7.6\lib\site-packages\pandas\io\pytables.pyc in <lambda>(store)
272 f = lambda store: store.append(key, value, *_kwargs)
273 else:
--> 274 f = lambda store: store.put(key, value, *_kwargs)
275
276 if isinstance(path_or_buf, string_types):
D:\winpython\WinPython-32bit-2.7.6.4\python-2.7.6\lib\site-packages\pandas\io\pytables.pyc in put(self, key, value, format, append, *_kwargs)
819 format = get_option("io.hdf.default_format") or 'fixed'
820 kwargs = self._validate_format(format, kwargs)
--> 821 self._write_to_group(key, value, append=append, *_kwargs)
822
823 def remove(self, key, where=None, start=None, stop=None):
D:\winpython\WinPython-32bit-2.7.6.4\python-2.7.6\lib\site-packages\pandas\io\pytables.pyc in _write_to_group(self, key, value, format, index, append, complib, encoding, *_kwargs)
1271
1272 # write the object
-> 1273 s.write(obj=value, append=append, complib=complib, *_kwargs)
1274
1275 if s.is_table and index:
D:\winpython\WinPython-32bit-2.7.6.4\python-2.7.6\lib\site-packages\pandas\io\pytables.pyc in write(self, obj, axes, append, complib, complevel, fletcher32, min_itemsize, chunksize, expectedrows, dropna, *_kwargs)
3576 self.create_axes(axes=axes, obj=obj, validate=append,
3577 min_itemsize=min_itemsize,
-> 3578 *_kwargs)
3579
3580 if not self.is_exists:
D:\winpython\WinPython-32bit-2.7.6.4\python-2.7.6\lib\site-packages\pandas\io\pytables.pyc in create_axes(self, axes, obj, validate, nan_rep, data_columns, min_itemsize, **kwargs)
3271 self.values_axes.append(col)
3272 except (NotImplementedError, ValueError, TypeError) as e:
-> 3273 raise e
3274 except Exception as detail:
3275 raise Exception(
TypeError: [unicode] is not implemented as a table column
In [5]:df600000.dtypes
Out[5]:
trad_date object
open float64
high float64
low float64
close float64
vol int64
val float64
dtype: object
In [51]: df600000[:5]
Out[51]:
trad_date open high low close vol val
0 2000-01-04 3.43 3.54 3.40 3.51 4496000 113946784
1 2000-01-05 3.51 3.56 3.45 3.47 5252800 134465424
2 2000-01-06 3.45 3.61 3.44 3.57 6229600 160059792
3 2000-01-07 3.61 3.77 3.58 3.69 21355300 575751104
4 2000-01-10 3.70 3.82 3.66 3.74 16539700 450453504
## INSTALLED VERSIONS
commit: None
python: 2.7.6.final.0
python-bits: 32
OS: Windows
OS-release: 7
machine: AMD64
processor: Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.13.1
Cython: 0.20.1
numpy: 1.8.1
scipy: 0.13.3
statsmodels: 0.5.0
IPython: 2.0.0
sphinx: 1.2.2
patsy: 0.2.1
scikits.timeseries: None
dateutil: 2.2
pytz: 2013.9
bottleneck: None
tables: 3.1.1
numexpr: 2.3.1
matplotlib: 1.3.1
openpyxl: None
xlrd: 0.9.3
xlwt: 0.7.5
xlsxwriter: None
sqlalchemy: 0.9.4
lxml: 3.3.5
bs4: 4.3.2
html5lib: None
bq: None
apiclient: None
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8274/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8274/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8275 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8275/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8275/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8275/events | https://github.com/pandas-dev/pandas/pull/8275 | 42,803,139 | MDExOlB1bGxSZXF1ZXN0MjEyNTA2NTc= | 8,275 | BUG: rolling_apply(..., center=True) should not append NaNs | {
"avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4",
"events_url": "https://api.github.com/users/seth-p/events{/privacy}",
"followers_url": "https://api.github.com/users/seth-p/followers",
"following_url": "https://api.github.com/users/seth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/seth-p",
"id": 7441788,
"login": "seth-p",
"node_id": "MDQ6VXNlcjc0NDE3ODg=",
"organizations_url": "https://api.github.com/users/seth-p/orgs",
"received_events_url": "https://api.github.com/users/seth-p/received_events",
"repos_url": "https://api.github.com/users/seth-p/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seth-p/subscriptions",
"type": "User",
"url": "https://api.github.com/users/seth-p"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "006b75",
"default": false,
"description": "Arithmetic, Comparison, ... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 11 | 2014-09-15T18:25:33Z | 2014-09-17T13:24:32Z | 2014-09-17T13:07:02Z | CONTRIBUTOR | null | Closes #8269.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8275/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8275/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8275.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8275",
"merged_at": "2014-09-17T13:07:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8275.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8275"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8276 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8276/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8276/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8276/events | https://github.com/pandas-dev/pandas/issues/8276 | 42,809,108 | MDU6SXNzdWU0MjgwOTEwOA== | 8,276 | SparseDataFrame.isnull raises an error | {
"avatar_url": "https://avatars.githubusercontent.com/u/368583?v=4",
"events_url": "https://api.github.com/users/isofer/events{/privacy}",
"followers_url": "https://api.github.com/users/isofer/followers",
"following_url": "https://api.github.com/users/isofer/following{/other_user}",
"gists_url": "https://api.github.com/users/isofer/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/isofer",
"id": 368583,
"login": "isofer",
"node_id": "MDQ6VXNlcjM2ODU4Mw==",
"organizations_url": "https://api.github.com/users/isofer/orgs",
"received_events_url": "https://api.github.com/users/isofer/received_events",
"repos_url": "https://api.github.com/users/isofer/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/isofer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/isofer/subscriptions",
"type": "User",
"url": "https://api.github.com/users/isofer"
} | [
{
"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": "009800",
"default": false,
"description": "Sparse D... | 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"
} | 1 | 2014-09-15T19:25:56Z | 2016-08-31T07:57:34Z | 2016-08-31T07:57:34Z | NONE | null | pandas version 0.14.0:
SparseDataFrame.isnull method raises an error
```
>>> import pandas as pd
>>> from numpy.random import rand
>>> a = pd.SparseDataFrame(rand(5,5))
>>> a.isnull()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/generic.py", line 2606, in isnull
return isnull(self).__finalize__(self)
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/common.py", line 129, in isnull
return _isnull(obj)
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/common.py", line 141, in _isnull_new
return obj._constructor(obj._data.isnull(func=isnull))
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/internals.py", line 2179, in isnull
return self.apply('apply', **kwargs)
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/internals.py", line 2164, in apply
applied = getattr(b, f)(**kwargs)
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/internals.py", line 234, in apply
result = make_block(values=result, placement=self.mgr_locs,)
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/internals.py", line 1837, in make_block
placement=placement)
File "/Users/isofer/anaconda/lib/python2.7/site-packages/pandas/core/internals.py", line 74, in __init__
len(self.values), len(self.mgr_locs)))
ValueError: Wrong number of items passed 5, placement implies 1
>>> a = pd.DataFrame(rand(5,5))
>>> a.isnull()
0 1 2 3 4
0 False False False False False
1 False False False False False
2 False False False False False
3 False False False False False
4 False False False False False
>>>
```
I was also able to reproduce it also in new env with pandas 0.14.1.
(conda create pandas -n test)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8276/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8276/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8277 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8277/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8277/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8277/events | https://github.com/pandas-dev/pandas/issues/8277 | 42,822,946 | MDU6SXNzdWU0MjgyMjk0Ng== | 8,277 | SQL: use of connection context manager not supported by mysql.connector | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-15T21:49:48Z | 2014-09-17T09:06:27Z | 2014-09-17T09:06:27Z | MEMBER | null | Coming from discussion in #8232, current master breaks with `mysql.connector` as the MySQL driver in the fallback modus (deprecated) due to the use of context managers.
This was introduced in #8062, to ensure that the different chunks would be inserted in one transaction (when using the `chunksize` argument).
The connection context manager is however nog DBAPI specified behaviour, and differs among drivers:
- sqlite3 returns a connection from the context manager, but has a connection.executemany, so that of course works (otherwise the tests would not pass at all)
- pymysql returns a cursor, but does not close that cursor automatically (I don't know if this is a problem)
- MySQLdb does now support such a context manager (from 1.2.5, so only the latest version), and does the same as pymysql
- mysql.connector does not support it, so the current implementation fails with that.
So problem is that with the current code in master, we break the fallback mode when using `mysql.connector`.
Solution: I think remove the context managers for now (which will make the code a bit more complex), until mysql support is fully dropped
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8277/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8277/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8278 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8278/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8278/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8278/events | https://github.com/pandas-dev/pandas/pull/8278 | 42,837,851 | MDExOlB1bGxSZXF1ZXN0MjEyNzI3NDQ= | 8,278 | Eliminating contextmanager based transaction-handling | {
"avatar_url": "https://avatars.githubusercontent.com/u/833768?v=4",
"events_url": "https://api.github.com/users/artemyk/events{/privacy}",
"followers_url": "https://api.github.com/users/artemyk/followers",
"following_url": "https://api.github.com/users/artemyk/following{/other_user}",
"gists_url": "https://api.github.com/users/artemyk/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/artemyk",
"id": 833768,
"login": "artemyk",
"node_id": "MDQ6VXNlcjgzMzc2OA==",
"organizations_url": "https://api.github.com/users/artemyk/orgs",
"received_events_url": "https://api.github.com/users/artemyk/received_events",
"repos_url": "https://api.github.com/users/artemyk/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/artemyk/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/artemyk/subscriptions",
"type": "User",
"url": "https://api.github.com/users/artemyk"
} | [
{
"color": "5319e7",
"default": false,
"description": "to_sql, read_sql, read_sql_query",
"id": 47232590,
"name": "IO SQL",
"node_id": "MDU6TGFiZWw0NzIzMjU5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20SQL"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 10 | 2014-09-16T02:04:25Z | 2014-09-17T09:06:48Z | 2014-09-17T09:06:27Z | CONTRIBUTOR | null | To close #8277
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8278/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8278/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8278.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8278",
"merged_at": "2014-09-17T09:06:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8278.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8278"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8279 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8279/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8279/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8279/events | https://github.com/pandas-dev/pandas/issues/8279 | 42,840,160 | MDU6SXNzdWU0Mjg0MDE2MA== | 8,279 | API: add ddof=1 argument to expanding/rolling_cov() | {
"avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4",
"events_url": "https://api.github.com/users/seth-p/events{/privacy}",
"followers_url": "https://api.github.com/users/seth-p/followers",
"following_url": "https://api.github.com/users/seth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/seth-p",
"id": 7441788,
"login": "seth-p",
"node_id": "MDQ6VXNlcjc0NDE3ODg=",
"organizations_url": "https://api.github.com/users/seth-p/orgs",
"received_events_url": "https://api.github.com/users/seth-p/received_events",
"repos_url": "https://api.github.com/users/seth-p/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seth-p/subscriptions",
"type": "User",
"url": "https://api.github.com/users/seth-p"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "006b75",
"default": false,
"description": "A... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-16T03:01:14Z | 2014-09-17T18:03:54Z | 2014-09-17T18:03:54Z | CONTRIBUTOR | null | I think `expanding/rolling_cov()` should support a `ddof` argument, the way `expanding/rolling_std/var()` do (though the latter is not documented; see #8064). So long as `ddof` defaults to `1`, it will be backwards compatible, so I don't see any downsides. This is very easy/straightforward.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8279/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8279/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8280 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8280/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8280/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8280/events | https://github.com/pandas-dev/pandas/pull/8280 | 42,840,191 | MDExOlB1bGxSZXF1ZXN0MjEyNzQxMTQ= | 8,280 | API: add ddof to expanding/rolling_cov() | {
"avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4",
"events_url": "https://api.github.com/users/seth-p/events{/privacy}",
"followers_url": "https://api.github.com/users/seth-p/followers",
"following_url": "https://api.github.com/users/seth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/seth-p",
"id": 7441788,
"login": "seth-p",
"node_id": "MDQ6VXNlcjc0NDE3ODg=",
"organizations_url": "https://api.github.com/users/seth-p/orgs",
"received_events_url": "https://api.github.com/users/seth-p/received_events",
"repos_url": "https://api.github.com/users/seth-p/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seth-p/subscriptions",
"type": "User",
"url": "https://api.github.com/users/seth-p"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
},
{
"color": "006b75",
"default": false,
"description": "A... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 14 | 2014-09-16T03:02:07Z | 2014-09-17T18:07:20Z | 2014-09-17T18:03:54Z | CONTRIBUTOR | null | Closes #8279
closes #8064
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8280/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8280/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8280.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8280",
"merged_at": "2014-09-17T18:03:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8280.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8280"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8281 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8281/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8281/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8281/events | https://github.com/pandas-dev/pandas/pull/8281 | 42,855,777 | MDExOlB1bGxSZXF1ZXN0MjEyODI4NjM= | 8,281 | ENH groupby: more user-friendly error message (GH7511) | {
"avatar_url": "https://avatars.githubusercontent.com/u/590921?v=4",
"events_url": "https://api.github.com/users/bthyreau/events{/privacy}",
"followers_url": "https://api.github.com/users/bthyreau/followers",
"following_url": "https://api.github.com/users/bthyreau/following{/other_user}",
"gists_url": "https://api.github.com/users/bthyreau/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bthyreau",
"id": 590921,
"login": "bthyreau",
"node_id": "MDQ6VXNlcjU5MDkyMQ==",
"organizations_url": "https://api.github.com/users/bthyreau/orgs",
"received_events_url": "https://api.github.com/users/bthyreau/received_events",
"repos_url": "https://api.github.com/users/bthyreau/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bthyreau/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bthyreau/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bthyreau"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-16T08:24:32Z | 2014-10-02T02:35:07Z | 2014-09-16T14:43:54Z | CONTRIBUTOR | null | better error message for groupy on duplicated columns name. (Followup for branch GH8210 (Bug GH7511)). E.g.
```
ValueError: Grouper for 'A' not 1-dimensional
ValueError: Grouper for '<class '__main__.gr'>' not 1-dimensional
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8281/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8281/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8281.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8281",
"merged_at": "2014-09-16T14:43:54Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8281.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8281"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8282 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8282/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8282/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8282/events | https://github.com/pandas-dev/pandas/pull/8282 | 42,894,180 | MDExOlB1bGxSZXF1ZXN0MjEzMDUzNDk= | 8,282 | BUG: make sure that the multi-index is lex-sorted before passing to _lexsort_indexer (GH8017) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "0b02e1",
"default": false,
"description": "Related to indexing on s... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 1 | 2014-09-16T15:18:35Z | 2014-10-29T14:47:16Z | 2014-09-17T12:20:13Z | CONTRIBUTOR | null | BUG: sparse repr of multi-index frame with a FloatIndex as a level was incorrect
closes #8017
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8282/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8282/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8282.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8282",
"merged_at": "2014-09-17T12:20:13Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8282.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8282"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8283 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8283/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8283/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8283/events | https://github.com/pandas-dev/pandas/issues/8283 | 42,895,809 | MDU6SXNzdWU0Mjg5NTgwOQ== | 8,283 | CLN/TST: move consoliate sort_index to core/generic.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "FCE94F",
"default": false,
"description": "Internal refactoring of code",
"id": 127681,
"name": "Refactor",
"node_id": "MDU6TGFiZWwxMjc2ODE=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Refactor"
},
{
"color": "AD7FA8",
"default": false,
"de... | closed | false | null | [] | {
"closed_at": "2020-12-26T13:57:50Z",
"closed_issues": 1768,
"created_at": "2020-05-29T23:47:32Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "on-merge: backport to 1.2.x",
"due_on": "2020-12-15T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/73",
"id": 5479819,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73/labels",
"node_id": "MDk6TWlsZXN0b25lNTQ3OTgxOQ==",
"number": 73,
"open_issues": 0,
"state": "closed",
"title": "1.2",
"updated_at": "2021-04-13T15:46:43Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/73"
} | 2 | 2014-09-16T15:31:42Z | 2020-09-15T02:11:48Z | 2020-09-15T02:11:48Z | CONTRIBUTOR | null | xref #8282
xref #8239 (this issue won't touch the API per se)
expand extend: `core/generic.py/NDFrame.sort_index`: https://github.com/pydata/pandas/blob/master/pandas/core/generic.py#L1606
with the frame version.
https://github.com/pydata/pandas/blob/master/pandas/core/frame.py#L2689
needs generic docs (e.g. look how reindex is done)
as prob best to start with the frame version that handles ndim=2. Need tests for added capabilities to Series/Panel, e.g. mainly supporting sort_index on a multi-level 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/8283/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8283/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8284 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8284/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8284/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8284/events | https://github.com/pandas-dev/pandas/issues/8284 | 42,910,633 | MDU6SXNzdWU0MjkxMDYzMw== | 8,284 | Unable to write to HDF5 table if DataFrame has mixed object types (pd.Timestamp and str) | {
"avatar_url": "https://avatars.githubusercontent.com/u/4663973?v=4",
"events_url": "https://api.github.com/users/kvncp/events{/privacy}",
"followers_url": "https://api.github.com/users/kvncp/followers",
"following_url": "https://api.github.com/users/kvncp/following{/other_user}",
"gists_url": "https://api.github.com/users/kvncp/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/kvncp",
"id": 4663973,
"login": "kvncp",
"node_id": "MDQ6VXNlcjQ2NjM5NzM=",
"organizations_url": "https://api.github.com/users/kvncp/orgs",
"received_events_url": "https://api.github.com/users/kvncp/received_events",
"repos_url": "https://api.github.com/users/kvncp/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/kvncp/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kvncp/subscriptions",
"type": "User",
"url": "https://api.github.com/users/kvncp"
} | [
{
"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,
... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 9 | 2014-09-16T17:42:07Z | 2019-11-08T01:06:32Z | 2018-07-06T22:22:06Z | NONE | null | When attempting to store data in an HDF5 table, I found a problem where an error is raised if there are multiple object columns containing different data.
``` python
import pandas as pd
data = {'ints':pd.Series([1,2,3], index=index), 'Timestamps': pd.Series([pd.Timestamp('2014-1-1 12:00', tz='UTC'), pd.Timestamp('2014-1-2 12:00', tz='UTC'), pd.Timestamp('2014-1-3 12:00', tz='UTC')], index=index), 'strings': pd.Series(['r','g','b'], index=index)}
df = pd.DataFrame(data)
df.to_hdf('test.h5', 'data', format='table')
```
This leads to an exception: TypeError: Cannot serialize the column [Timestamps] because
its data contents are [datetime] object dtype
However, if I remove the string column:
``` python
del df['strings']
df.to_hdf('test.h5', 'data', format='table')
```
Now it works fine - so it isn't a problem with using the pd.Timestamp type.
Digging a little deeper, it appears the problem is that pandas.io.pytables.Table.create_axes groups the columns by data type, with all columns of type object being grouped into one set of data. Then when set_atom is called, it does this:
``` python
rvalues = block.values.ravel()
inferred_type = lib.infer_dtype(rvalues)
```
This leads to an inferred type of 'mixed' since there are multiple types of objects present, and this isn't handled and throws the exception.
As a fix, it seems that each object column should be handled separately, or at least grouped by the inferred type. I haven't committed to pandas before, or dug this deeply into this section of code, so I'm not sure of the best way to fix this and what other implications there may be, but I'd be happy to help however I can.
| {
"+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/8284/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8284/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8285 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8285/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8285/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8285/events | https://github.com/pandas-dev/pandas/issues/8285 | 42,943,891 | MDU6SXNzdWU0Mjk0Mzg5MQ== | 8,285 | BUG? Can construct constant Series and DataFrame, but not Panel or Panel4D | {
"avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4",
"events_url": "https://api.github.com/users/seth-p/events{/privacy}",
"followers_url": "https://api.github.com/users/seth-p/followers",
"following_url": "https://api.github.com/users/seth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/seth-p",
"id": 7441788,
"login": "seth-p",
"node_id": "MDQ6VXNlcjc0NDE3ODg=",
"organizations_url": "https://api.github.com/users/seth-p/orgs",
"received_events_url": "https://api.github.com/users/seth-p/received_events",
"repos_url": "https://api.github.com/users/seth-p/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seth-p/subscriptions",
"type": "User",
"url": "https://api.github.com/users/seth-p"
} | [
{
"color": "AD7FA8",
"default": false,
"description": null,
"id": 35818298,
"name": "API Design",
"node_id": "MDU6TGFiZWwzNTgxODI5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/API%20Design"
}
] | 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"
} | 1 | 2014-09-16T22:57:04Z | 2015-03-14T01:31:43Z | 2015-03-14T01:31:43Z | CONTRIBUTOR | null | Is it accidental that the Series and DataFrame constructors accept a single number for `data`, but the Panel and Panel4D constructors do not?
```
In [182]: from pandas import Series, DataFrame, Panel, Panel4D
In [183]: Series(1., index=range(2))
Out[183]:
0 1
1 1
dtype: float64
In [184]: DataFrame(1., index=range(2), columns=range(2))
Out[184]:
0 1
0 1 1
1 1 1
In [185]: Panel(1., items=range(2), major_axis=range(2), minor_axis=range(2))
---------------------------------------------------------------------------
PandasError Traceback (most recent call last)
<ipython-input-185-89f6618b848f> in <module>()
----> 1 Panel(1., items=range(2), major_axis=range(2), minor_axis=range(2))
C:\Python34\lib\site-packages\pandas\core\panel.py in __init__(self, data, items, major_axis, minor_axis, copy, dtype)
133 copy=False, dtype=None):
134 self._init_data(data=data, items=items, major_axis=major_axis,
--> 135 minor_axis=minor_axis, copy=copy, dtype=dtype)
136
137 def _init_data(self, data, copy, dtype, **kwargs):
C:\Python34\lib\site-packages\pandas\core\panel.py in _init_data(self, data, copy, dtype, **kwargs)
161 dtype = None
162 else: # pragma: no cover
--> 163 raise PandasError('Panel constructor not properly called!')
164
165 NDFrame.__init__(self, mgr, axes=axes, copy=copy, dtype=dtype)
PandasError: Panel constructor not properly called!
In [186]: Panel4D(1., labels=range(2), items=range(2), major_axis=range(2), minor_axis=range(2))
---------------------------------------------------------------------------
PandasError Traceback (most recent call last)
<ipython-input-187-8f22d9107a3e> in <module>()
----> 1 Panel4D(1., labels=range(2), items=range(2), major_axis=range(2), minor_axis=range(2))
C:\Python34\lib\site-packages\pandas\core\panel4d.py in panel4d_init(self, data, labels, items, major_axis, minor_axis, copy, dtype)
37 self._init_data(data=data, labels=labels, items=items,
38 major_axis=major_axis, minor_axis=minor_axis,
---> 39 copy=copy, dtype=dtype)
40
41 Panel4D.__init__ = panel4d_init
C:\Python34\lib\site-packages\pandas\core\panel.py in _init_data(self, data, copy, dtype, **kwargs)
161 dtype = None
162 else: # pragma: no cover
--> 163 raise PandasError('Panel constructor not properly called!')
164
165 NDFrame.__init__(self, mgr, axes=axes, copy=copy, dtype=dtype)
PandasError: Panel constructor not properly called!
```
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8285/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8285/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8286 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8286/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8286/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8286/events | https://github.com/pandas-dev/pandas/pull/8286 | 42,954,170 | MDExOlB1bGxSZXF1ZXN0MjEzNDA0ODM= | 8,286 | CLN Pep8 on format.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/226109?v=4",
"events_url": "https://api.github.com/users/iwschris/events{/privacy}",
"followers_url": "https://api.github.com/users/iwschris/followers",
"following_url": "https://api.github.com/users/iwschris/following{/other_user}",
"gists_url": "https://api.github.com/users/iwschris/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/iwschris",
"id": 226109,
"login": "iwschris",
"node_id": "MDQ6VXNlcjIyNjEwOQ==",
"organizations_url": "https://api.github.com/users/iwschris/orgs",
"received_events_url": "https://api.github.com/users/iwschris/received_events",
"repos_url": "https://api.github.com/users/iwschris/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/iwschris/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/iwschris/subscriptions",
"type": "User",
"url": "https://api.github.com/users/iwschris"
} | [
{
"color": "eb6420",
"default": false,
"description": "Code style, linting, code_checks",
"id": 106935113,
"name": "Code Style",
"node_id": "MDU6TGFiZWwxMDY5MzUxMTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Code%20Style"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 8 | 2014-09-17T01:41:42Z | 2015-01-25T11:43:56Z | 2014-09-19T12:12:03Z | CONTRIBUTOR | null | While looking at making a separate PR in format.py, I decided to first clean up the file and make it PEP8 compliant. I used 99 maximum-line-length per http://legacy.python.org/dev/peps/pep-0008/#maximum-line-length.
I also noticed that line 965 (in master) has a list comprehension that iterates through a non-instantiated variable (**row**):
``` python
for i in range(nrows):
if truncate_v and i == (self.fmt.tr_row_num):
str_sep_row = [ '...' for ele in row ]
self.write_tr(str_sep_row, indent, self.indent_delta, tags=None, nindex_levels=1)
row = []
row.append(index_values[i])
row.extend(fmt_values[j][i] for j in range(ncols))
```
By the time it has gone through the loop once, **row** is set, but it really should be instantiated ahead of the loop to be safe.
Additionally, I thought it might be useful to add a PEP8 test in test_format, just to make sure that future commits don't break PEP8.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8286/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8286/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8286.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8286",
"merged_at": "2014-09-19T12:12:03Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8286.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8286"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8287 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8287/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8287/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8287/events | https://github.com/pandas-dev/pandas/issues/8287 | 42,957,043 | MDU6SXNzdWU0Mjk1NzA0Mw== | 8,287 | BUG: HDFStore.select ignores start and stop parameters | {
"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": "3465A4",
"default": false,
"description": null,
"id": 134699,
... | 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"
} | 4 | 2014-09-17T02:39:48Z | 2016-05-24T15:28:17Z | 2016-05-24T15:28:17Z | CONTRIBUTOR | null | Or I'm doing this wrong
```
In [1]: df = pd.DataFrame(np.random.randn(10, 4))
In [3]: df.to_hdf('test.h5', 'df')
In [4]: with pd.get_store('test.h5') as store:
...: df_ = store.select('df', start=0, stop=2)
...:
In [5]: df_
Out[5]:
0 1 2 3
0 1.504814 0.209394 -0.360703 -0.339684
1 0.272718 0.768927 -1.061029 0.919742
2 0.315669 0.337206 -1.358443 1.223715
3 -0.414095 0.015512 -0.320634 0.703489
4 0.889063 -0.194524 1.342604 1.078340
5 -1.636940 -0.725176 -0.096803 0.346356
6 -1.359400 -0.588007 0.651720 -0.127604
7 -1.613468 1.131560 -0.074385 -0.830540
8 0.176463 -1.298918 -0.215537 0.984911
9 -0.372920 0.898528 -0.869616 1.178704
```
Docstring says:
```
start : integer (defaults to None), row number to start selection
stop : integer (defaults to None), row number to stop selection
```
I can look tomorrow (catching up on pandas stuff all day tomorrow hopefully)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8287/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8287/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8288 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8288/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8288/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8288/events | https://github.com/pandas-dev/pandas/pull/8288 | 42,959,505 | MDExOlB1bGxSZXF1ZXN0MjEzNDI5Mjg= | 8,288 | DOC: Cookbook Inline Examples 2014Q3 | {
"avatar_url": "https://avatars.githubusercontent.com/u/6062071?v=4",
"events_url": "https://api.github.com/users/jnmclarty/events{/privacy}",
"followers_url": "https://api.github.com/users/jnmclarty/followers",
"following_url": "https://api.github.com/users/jnmclarty/following{/other_user}",
"gists_url": "https://api.github.com/users/jnmclarty/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jnmclarty",
"id": 6062071,
"login": "jnmclarty",
"node_id": "MDQ6VXNlcjYwNjIwNzE=",
"organizations_url": "https://api.github.com/users/jnmclarty/orgs",
"received_events_url": "https://api.github.com/users/jnmclarty/received_events",
"repos_url": "https://api.github.com/users/jnmclarty/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jnmclarty/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jnmclarty/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jnmclarty"
} | [
{
"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 | [] | null | 21 | 2014-09-17T03:21:11Z | 2014-10-11T02:34:58Z | 2014-10-10T23:09:30Z | CONTRIBUTOR | null | As per Joris's guidance, this PR is only partially completed. I fully intend to add more. It might be a week or two, possibly more, until i'm finished.
I'll squash it all into one commit when I think I'm done and ready for final review. Feel free to make suggestions as I go, but consider it all a draft until I squash.
Addresses #6918
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8288/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8288/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8288.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8288",
"merged_at": "2014-10-10T23:09:30Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8288.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8288"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8289 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8289/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8289/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8289/events | https://github.com/pandas-dev/pandas/issues/8289 | 42,962,826 | MDU6SXNzdWU0Mjk2MjgyNg== | 8,289 | applymap for Panel | {
"avatar_url": "https://avatars.githubusercontent.com/u/8716660?v=4",
"events_url": "https://api.github.com/users/0zeroth/events{/privacy}",
"followers_url": "https://api.github.com/users/0zeroth/followers",
"following_url": "https://api.github.com/users/0zeroth/following{/other_user}",
"gists_url": "https://api.github.com/users/0zeroth/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/0zeroth",
"id": 8716660,
"login": "0zeroth",
"node_id": "MDQ6VXNlcjg3MTY2NjA=",
"organizations_url": "https://api.github.com/users/0zeroth/orgs",
"received_events_url": "https://api.github.com/users/0zeroth/received_events",
"repos_url": "https://api.github.com/users/0zeroth/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/0zeroth/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/0zeroth/subscriptions",
"type": "User",
"url": "https://api.github.com/users/0zeroth"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "02d7e1",
"default": false,
"description": "Concat, ... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 2 | 2014-09-17T04:31:29Z | 2018-07-06T20:21:05Z | 2017-07-11T09:53:37Z | NONE | null | applymap function for panel, as per DataFrame
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8289/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8289/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8290 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8290/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8290/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8290/events | https://github.com/pandas-dev/pandas/pull/8290 | 42,998,758 | MDExOlB1bGxSZXF1ZXN0MjEzNTk1NDA= | 8,290 | BUG: DataFrame.to_html() fails when index=False and max_rows is specified | {
"avatar_url": "https://avatars.githubusercontent.com/u/1460294?v=4",
"events_url": "https://api.github.com/users/onesandzeroes/events{/privacy}",
"followers_url": "https://api.github.com/users/onesandzeroes/followers",
"following_url": "https://api.github.com/users/onesandzeroes/following{/other_user}",
"gists_url": "https://api.github.com/users/onesandzeroes/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/onesandzeroes",
"id": 1460294,
"login": "onesandzeroes",
"node_id": "MDQ6VXNlcjE0NjAyOTQ=",
"organizations_url": "https://api.github.com/users/onesandzeroes/orgs",
"received_events_url": "https://api.github.com/users/onesandzeroes/received_events",
"repos_url": "https://api.github.com/users/onesandzeroes/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/onesandzeroes/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onesandzeroes/subscriptions",
"type": "User",
"url": "https://api.github.com/users/onesandzeroes"
} | [
{
"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": "006b7... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 1 | 2014-09-17T11:19:57Z | 2015-05-09T16:00:51Z | 2015-05-09T16:00:51Z | CONTRIBUTOR | null | This addresses #8273, but it doesn't actually fully fix the issue, since the same bug still occurs when we have a MultiIndex. I've got a fix for the single-index case, and I'm not sure if I have time to decipher what's happening with hierarchical indexes right now. I'll open a new issue for the MultiIndex case if that's OK, having a MultiIndexed dataframe and then not printing the index seems like a bit of an edge case to me anyway.
``` python
import pandas as pd
import numpy as np
df = pd.DataFrame({'a': np.arange(0, 10), 'b': np.arange(9, -1, -1)})
df.to_html(max_rows=3, index=False)
```
now produces:
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th>a</th>
<th>b</th>
</tr>
</thead>
<tbody>
<tr>
<td> 0</td>
<td> 9</td>
</tr>
<tr>
<td>...</td>
<td>...</td>
</tr>
<tr>
<td> 9</td>
<td> 0</td>
</tr>
</tbody>
</table>
as expected.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8290/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8290/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8290.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8290",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/8290.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8290"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8291 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8291/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8291/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8291/events | https://github.com/pandas-dev/pandas/pull/8291 | 43,003,349 | MDExOlB1bGxSZXF1ZXN0MjEzNjE1NzU= | 8,291 | BUG: fix setting dataframe column to a sparse array | {
"avatar_url": "https://avatars.githubusercontent.com/u/579798?v=4",
"events_url": "https://api.github.com/users/immerrr/events{/privacy}",
"followers_url": "https://api.github.com/users/immerrr/followers",
"following_url": "https://api.github.com/users/immerrr/following{/other_user}",
"gists_url": "https://api.github.com/users/immerrr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/immerrr",
"id": 579798,
"login": "immerrr",
"node_id": "MDQ6VXNlcjU3OTc5OA==",
"organizations_url": "https://api.github.com/users/immerrr/orgs",
"received_events_url": "https://api.github.com/users/immerrr/received_events",
"repos_url": "https://api.github.com/users/immerrr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/immerrr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/immerrr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/immerrr"
} | [
{
"color": "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": "Sparse Data Type",
"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 2 | 2014-09-17T12:05:30Z | 2014-09-17T14:48:32Z | 2014-09-17T14:48:25Z | CONTRIBUTOR | null | This should fix #8131.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8291/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8291/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8291.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8291",
"merged_at": "2014-09-17T14:48:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8291.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8291"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8292 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8292/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8292/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8292/events | https://github.com/pandas-dev/pandas/issues/8292 | 43,004,477 | MDU6SXNzdWU0MzAwNDQ3Nw== | 8,292 | BUG: int sparse series is converted to float if sliced | {
"avatar_url": "https://avatars.githubusercontent.com/u/579798?v=4",
"events_url": "https://api.github.com/users/immerrr/events{/privacy}",
"followers_url": "https://api.github.com/users/immerrr/followers",
"following_url": "https://api.github.com/users/immerrr/following{/other_user}",
"gists_url": "https://api.github.com/users/immerrr/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/immerrr",
"id": 579798,
"login": "immerrr",
"node_id": "MDQ6VXNlcjU3OTc5OA==",
"organizations_url": "https://api.github.com/users/immerrr/orgs",
"received_events_url": "https://api.github.com/users/immerrr/received_events",
"repos_url": "https://api.github.com/users/immerrr/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/immerrr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/immerrr/subscriptions",
"type": "User",
"url": "https://api.github.com/users/immerrr"
} | [
{
"color": "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 dtyp... | 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"
} | 1 | 2014-09-17T12:20:02Z | 2016-08-31T07:57:34Z | 2016-08-31T07:57:34Z | CONTRIBUTOR | null | This looks weird:
``` python
In [1]: pd.__version__
Out[1]: '0.14.1-388-g54678dd'
In [2]: sp_series = pd.Series([0,0,1]).to_sparse(fill_value=0)
In [3]: sp_series.dtype
Out[3]: dtype('int64')
In [4]: sp_series[::-1].dtype
Out[4]: dtype('float64')
In [5]: sp_series[::2].dtype
Out[5]: dtype('float64')
In [6]: sp_series[:-1].dtype
Out[6]: 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/8292/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8292/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8293 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8293/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8293/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8293/events | https://github.com/pandas-dev/pandas/pull/8293 | 43,009,423 | MDExOlB1bGxSZXF1ZXN0MjEzNjUxNDU= | 8,293 | PERF: Improve performance CustmBusinessDay - 2nd | {
"avatar_url": "https://avatars.githubusercontent.com/u/832380?v=4",
"events_url": "https://api.github.com/users/bjonen/events{/privacy}",
"followers_url": "https://api.github.com/users/bjonen/followers",
"following_url": "https://api.github.com/users/bjonen/following{/other_user}",
"gists_url": "https://api.github.com/users/bjonen/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bjonen",
"id": 832380,
"login": "bjonen",
"node_id": "MDQ6VXNlcjgzMjM4MA==",
"organizations_url": "https://api.github.com/users/bjonen/orgs",
"received_events_url": "https://api.github.com/users/bjonen/received_events",
"repos_url": "https://api.github.com/users/bjonen/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bjonen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bjonen/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bjonen"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "0052cc",
"default"... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 27 | 2014-09-17T13:16:48Z | 2014-10-04T13:38:16Z | 2014-10-04T13:37:55Z | CONTRIBUTOR | null | New attempt to close #8236
CustomBusinessDay is now fast with holiday calendar and incrementing in different ways. `busdaycalendar` is cached in self.kwds.
```
In [15]:
date = pd.Timestamp('20120101')
cbday = pd.offsets.CustomBusinessDay()
date + cbday
%timeit date + cbday
100000 loops, best of 3: 14.9 µs per loop
In [16]:
hdays = [dt.datetime(2013,1,1) for ele in range(1000)]
cbdayh = pd.offsets.CustomBusinessDay(holidays=hdays)
cbme = pd.offsets.CustomBusinessMonthEnd(holidays=hdays)
cbmb = pd.offsets.CustomBusinessMonthBegin(holidays=hdays)
%timeit date + cbdayh
%timeit date + 2 * cbdayh
%timeit date - 1 * cbdayh
%timeit date - 10 * cbday
%timeit date + cbmb
%timeit date + 10 * cbmb
%timeit date - 10 * cbmb
%timeit date + cbme
%timeit date + 10 * cbme
%timeit date - 10 * cbme
```
100000 loops, best of 3: 14.8 µs per loop
10000 loops, best of 3: 20.1 µs per loop
10000 loops, best of 3: 24 µs per loop
10000 loops, best of 3: 23.7 µs per loop
10000 loops, best of 3: 108 µs per loop
10000 loops, best of 3: 104 µs per loop
10000 loops, best of 3: 117 µs per loop
10000 loops, best of 3: 118 µs per loop
10000 loops, best of 3: 188 µs per loop
1000 loops, best of 3: 147 µs per loop
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8293/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8293/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8293.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8293",
"merged_at": "2014-10-04T13:37:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8293.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8293"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8294 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8294/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8294/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8294/events | https://github.com/pandas-dev/pandas/pull/8294 | 43,032,827 | MDExOlB1bGxSZXF1ZXN0MjEzNzgwNzE= | 8,294 | ERR: DataFrame.from_records raises misleading exception on shape mismatch | {
"avatar_url": "https://avatars.githubusercontent.com/u/4306187?v=4",
"events_url": "https://api.github.com/users/ischwabacher/events{/privacy}",
"followers_url": "https://api.github.com/users/ischwabacher/followers",
"following_url": "https://api.github.com/users/ischwabacher/following{/other_user}",
"gists_url": "https://api.github.com/users/ischwabacher/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ischwabacher",
"id": 4306187,
"login": "ischwabacher",
"node_id": "MDQ6VXNlcjQzMDYxODc=",
"organizations_url": "https://api.github.com/users/ischwabacher/orgs",
"received_events_url": "https://api.github.com/users/ischwabacher/received_events",
"repos_url": "https://api.github.com/users/ischwabacher/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ischwabacher/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ischwabacher/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ischwabacher"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 7 | 2014-09-17T16:22:35Z | 2014-09-17T20:41:33Z | 2014-09-17T20:40:28Z | CONTRIBUTOR | null | Currently, `DataFrame.from_records` raises a misleading exception when the shape of the input data do not match the shape implied by the axes:
``` python
In [1]: import pandas as pd
In [2]: pd.DataFrame.from_records([(0, 1), (0, 1), (0, 1)], index=[0, 1],
...: columns=['A', 'B'])
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-b8c920ac0f12> in <module>()
1 pd.DataFrame.from_records([(0, 1), (0, 1), (0, 1)], index=[0, 1],
----> 2 columns=['A', 'B'])
/Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/frame.pyc in from_records(cls, data, index, exclude, columns, coerce_float, nrows)
833
834 mgr = _arrays_to_mgr(arrays, arr_columns, result_index,
--> 835 columns)
836
837 return cls(mgr)
/Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/frame.pyc in _arrays_to_mgr(arrays, arr_names, index, columns, dtype)
4628 axes = [_ensure_index(columns), _ensure_index(index)]
4629
-> 4630 return create_block_manager_from_arrays(arrays, arr_names, axes)
4631
4632
/Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/internals.pyc in create_block_manager_from_arrays(arrays, names, axes)
3238 return mgr
3239 except (ValueError) as e:
-> 3240 construction_error(len(arrays), arrays[0].shape[1:], axes, e)
3241
3242
/Users/afni/homebrew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/internals.pyc in construction_error(tot_items, block_shape, axes, e)
3209 raise e
3210 raise ValueError("Shape of passed values is {0}, indices imply {1}".format(
-> 3211 passed,implied))
3212
3213
ValueError: Shape of passed values is (2,), indices imply (2, 2)
```
This error message leads the user to believe that the error is internal (after all, the input data were _definitely_ 2-dimensional) and hides the true error, which is that the shape of the passed values is actually `(2, 3)`.
For some reason, this behavior was explicitly specified by a test.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8294/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8294/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8294.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8294",
"merged_at": "2014-09-17T20:40:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8294.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8294"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8295 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8295/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8295/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8295/events | https://github.com/pandas-dev/pandas/issues/8295 | 43,038,701 | MDU6SXNzdWU0MzAzODcwMQ== | 8,295 | ENH: allow axis argument to append / move append code to generic.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "02d7e1",
"default": false,
"description": "Concat, Merge/Join, Stack/Unstack, Explode",
"id": 13098779,
"name": "Reshaping",
"node_id": "MDU6TGFiZWwxMzA5ODc3OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Reshaping"
},
{
"color": "AD7FA8",
"de... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 5 | 2014-09-17T17:14:11Z | 2018-07-06T22:18:21Z | 2018-07-06T22:18:15Z | CONTRIBUTOR | null | http://stackoverflow.com/questions/25896241/creating-columns-dynamically-assigning-them-a-constant-row-vector/25896504#25896504
e.g.
Instead of
`pd.concat([df,DataFrame([[1,2,3,4]],columns=list('ABCD'),index=df.index)],axis=1)`
allow as a convience feature
`df.append(DataFrame([[1,2,3,4]],columns=list('ABCD'),index=df.index),axis=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/8295/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8295/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8296 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8296/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8296/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8296/events | https://github.com/pandas-dev/pandas/issues/8296 | 43,049,191 | MDU6SXNzdWU0MzA0OTE5MQ== | 8,296 | TST: test_boxplot failures | {
"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": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "8AE234",
"d... | 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 | 2014-09-17T18:52:15Z | 2014-10-04T13:56:49Z | 2014-10-04T13:56:26Z | CONTRIBUTOR | null | These are failing for me on master
```
nosetests test_graphics:TestDataFramePlots.test_boxplot test_graphics:TestDataFramePlots.test_boxplot_vertical
FF
======================================================================
FAIL: test_boxplot (test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/Envs/py3/lib/python3.4/site-packages/pandas/pandas/tests/test_graphics.py", line 1736, in test_boxplot
self.assertEqual(len(ax.lines), 8 * len(numeric_cols))
AssertionError: 21 != 24
======================================================================
FAIL: test_boxplot_vertical (test_graphics.TestDataFramePlots)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/tom/Envs/py3/lib/python3.4/site-packages/pandas/pandas/tests/test_graphics.py", line 1770, in test_boxplot_vertical
self.assertEqual(len(ax.lines), 8 * len(numeric_cols))
AssertionError: 21 != 24
----------------------------------------------------------------------
Ran 2 tests in 0.659s
FAILED (failures=2)
```
``` python
In [1]: pd.__version__
Out[1]: '0.14.1-445-g83ff5b1'
```
Will look later.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8296/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8296/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/8297 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8297/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8297/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8297/events | https://github.com/pandas-dev/pandas/pull/8297 | 43,049,924 | MDExOlB1bGxSZXF1ZXN0MjEzODgwMDU= | 8,297 | API: accept -1 for layout in plot functions | {
"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": "8AE234",
"default": false,
"description": null,
"id": 2413328,
"name": "Visualization",
"node_id": "MDU6TGFiZWwyNDEzMzI4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Visualization"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 6 | 2014-09-17T18:59:06Z | 2014-09-18T18:16:57Z | 2014-09-18T17:16:32Z | CONTRIBUTOR | null | Closes https://github.com/pydata/pandas/issues/8071#issuecomment-55906171
``` python
In [1]: df = pd.DataFrame(np.random.randn(20, 3))
In [2]: df.plot(subplots=True, layout=(-1, 2))
Out[2]:
array([[<matplotlib.axes._subplots.AxesSubplot object at 0x116b134e0>,
<matplotlib.axes._subplots.AxesSubplot object at 0x117819240>],
[<matplotlib.axes._subplots.AxesSubplot object at 0x11786b6a0>,
<matplotlib.axes._subplots.AxesSubplot object at 0x1178a5ba8>]], 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/8297/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8297/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8297.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8297",
"merged_at": "2014-09-18T17:16:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8297.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8297"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8298 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8298/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8298/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8298/events | https://github.com/pandas-dev/pandas/pull/8298 | 43,051,444 | MDExOlB1bGxSZXF1ZXN0MjEzODkwNjQ= | 8,298 | BUG: Bug in iat return boxing for Timestamp/Timedelta (GH7729) | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
... | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 0 | 2014-09-17T19:14:57Z | 2014-09-17T20:46:01Z | 2014-09-17T20:46:01Z | CONTRIBUTOR | null | CLN/COMPAT: cleanup timedelta64[ns] series inferrence
closes #7729
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8298/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8298/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8298.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8298",
"merged_at": "2014-09-17T20:46:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8298.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8298"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8299 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8299/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8299/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8299/events | https://github.com/pandas-dev/pandas/pull/8299 | 43,053,979 | MDExOlB1bGxSZXF1ZXN0MjEzOTA3Mzk= | 8,299 | TST: suppress gratuitous warnings in test_moments.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/7441788?v=4",
"events_url": "https://api.github.com/users/seth-p/events{/privacy}",
"followers_url": "https://api.github.com/users/seth-p/followers",
"following_url": "https://api.github.com/users/seth-p/following{/other_user}",
"gists_url": "https://api.github.com/users/seth-p/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/seth-p",
"id": 7441788,
"login": "seth-p",
"node_id": "MDQ6VXNlcjc0NDE3ODg=",
"organizations_url": "https://api.github.com/users/seth-p/orgs",
"received_events_url": "https://api.github.com/users/seth-p/received_events",
"repos_url": "https://api.github.com/users/seth-p/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/seth-p/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/seth-p/subscriptions",
"type": "User",
"url": "https://api.github.com/users/seth-p"
} | [
{
"color": "0052cc",
"default": false,
"description": "pandas objects compatability with Numpy or Python functions",
"id": 76865106,
"name": "Compat",
"node_id": "MDU6TGFiZWw3Njg2NTEwNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Compat"
}
] | closed | false | null | [] | {
"closed_at": "2014-10-23T11:43:09Z",
"closed_issues": 530,
"created_at": "2014-07-06T18:44:54Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "after 0.14.1 of course!",
"due_on": "2014-10-19T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/28",
"id": 711567,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28/labels",
"node_id": "MDk6TWlsZXN0b25lNzExNTY3",
"number": 28,
"open_issues": 0,
"state": "closed",
"title": "0.15.0",
"updated_at": "2017-11-24T10:50:44Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/28"
} | 10 | 2014-09-17T19:42:01Z | 2014-09-23T15:39:55Z | 2014-09-23T15:35:39Z | CONTRIBUTOR | null | This PR suppresses expected warnings in test_moments.py, which are otherwise distracting.
Note that the changes are not nearly as extensive as they look. I simply indented blocks of code under newly added `with warnings.catch_warnings():`.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/8299/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8299/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/8299.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/8299",
"merged_at": "2014-09-23T15:35:39Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/8299.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/8299"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/8300 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/8300/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/8300/comments | https://api.github.com/repos/pandas-dev/pandas/issues/8300/events | https://github.com/pandas-dev/pandas/issues/8300 | 43,054,641 | MDU6SXNzdWU0MzA1NDY0MQ== | 8,300 | BUG: columns misaligned in repr when having >10 columns with integer index | {
"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": "ededed",
"default": false,
"description": "__repr__ of pandas objec... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 278,
"created_at": "2013-01-06T03:02:01Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "Milestone for filing things away that may be reached someday (at which point such issues should be moved to the appropriate release milestone)",
"due_on": "2022-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/20",
"id": 239227,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20/labels",
"node_id": "MDk6TWlsZXN0b25lMjM5MjI3",
"number": 20,
"open_issues": 108,
"state": "open",
"title": "Someday",
"updated_at": "2021-08-08T01:48:22Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/20"
} | 11 | 2014-09-17T19:49:11Z | 2019-10-21T19:34:16Z | null | MEMBER | null | On master, with integer index, with more than 10 columns, the numbers of one char are misaligned:
```
In [37]: df = pd.DataFrame(np.random.randn(10,20))
In [38]: pd.options.display.max_columns = 4
In [39]: df
Out[39]:
0 1 ... 18 19
0 -0.112066 -0.315377 ... 1.579197 -0.718384
1 -1.007079 0.234835 ... -0.485022 -0.317984
2 -0.718872 1.094609 ... -2.083531 0.559202
3 -0.165058 -0.127335 ... 0.296100 1.071882
4 0.874132 0.880632 ... -1.648739 0.903484
5 -0.443316 0.673899 ... 0.823925 0.365219
6 0.215746 1.092637 ... 0.645429 -1.164019
7 1.853194 -1.682354 ... 1.071287 -0.366133
8 -0.568050 -1.205619 ... -1.644478 -2.206907
9 2.136091 -0.253217 ... 1.148933 1.390127
[10 rows x 20 columns]
In [40]: df = pd.DataFrame(np.random.randn(10,10))
In [41]: df
Out[41]:
0 1 ... 8 9
0 0.337429 -0.627859 ... 0.174635 1.378869
1 -1.679982 1.498135 ... 0.554562 1.804903
2 0.682877 -0.539606 ... -0.065115 0.871922
3 0.517217 -0.850968 ... 0.998076 -1.141827
4 0.131862 1.702232 ... -1.048214 -1.424597
5 0.926904 -0.120110 ... 0.852535 1.052194
6 -0.474197 -0.984774 ... 1.206264 -0.710416
7 0.532609 -0.797821 ... -1.082022 -0.137153
8 -0.075104 -0.524546 ... 0.177842 -0.030325
9 1.568465 1.206357 ... 0.410863 1.575516
[10 rows x 10 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/8300/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/8300/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.