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/26113 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26113/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26113/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26113/events | https://github.com/pandas-dev/pandas/pull/26113 | 434,022,085 | MDExOlB1bGxSZXF1ZXN0MjcxMTAzODUx | 26,113 | BUG: Preserve index order when constructing DataFrame from dict | {
"avatar_url": "https://avatars.githubusercontent.com/u/2050208?v=4",
"events_url": "https://api.github.com/users/bchu/events{/privacy}",
"followers_url": "https://api.github.com/users/bchu/followers",
"following_url": "https://api.github.com/users/bchu/following{/other_user}",
"gists_url": "https://api.github.com/users/bchu/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/bchu",
"id": 2050208,
"login": "bchu",
"node_id": "MDQ6VXNlcjIwNTAyMDg=",
"organizations_url": "https://api.github.com/users/bchu/orgs",
"received_events_url": "https://api.github.com/users/bchu/received_events",
"repos_url": "https://api.github.com/users/bchu/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/bchu/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bchu/subscriptions",
"type": "User",
"url": "https://api.github.com/users/bchu"
} | [
{
"color": "370f77",
"default": false,
"description": "DataFrame data structure",
"id": 1049312478,
"name": "DataFrame",
"node_id": "MDU6TGFiZWwxMDQ5MzEyNDc4",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/DataFrame"
}
] | closed | false | null | [] | null | 10 | 2019-04-16T23:05:15Z | 2019-05-03T05:26:38Z | 2019-05-03T05:26:38Z | NONE | null | - [x] closes #24859
- [x] tests added / passed
(no new tests added)
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
This resolves the issue of `pd.DataFrame(dict)` or `pd.DataFrame.from_dict(dict)` not preserving the order of the index specified in `dict`.
This required fixing up tests that relied on alphabetical ordering. The changes to these tests also test for this new preserved ordering; let me know if I should add an additional explicit 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/26113/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26113/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26113.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26113",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26113.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26113"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26114 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26114/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26114/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26114/events | https://github.com/pandas-dev/pandas/pull/26114 | 434,023,102 | MDExOlB1bGxSZXF1ZXN0MjcxMTA0NzAy | 26,114 | CLN: replace usage internally of .iteritems with .items | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 21 | 2019-04-16T23:09:29Z | 2019-07-10T23:01:51Z | 2019-07-10T19:16:55Z | CONTRIBUTOR | null | - [x] xref #25725
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Now that Python2 is being removed, ``.iteritems`` should be deprecated, and ``.items`` should be used instead.
EDIT: This PR ended up not deprecating .iteritems, but only change its usage internally with using .items | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26114/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26114/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26114.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26114",
"merged_at": "2019-07-10T19:16:55Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26114.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26114"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26115 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26115/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26115/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26115/events | https://github.com/pandas-dev/pandas/pull/26115 | 434,040,566 | MDExOlB1bGxSZXF1ZXN0MjcxMTE4NDk3 | 26,115 | Updated PeriodIndex docstrings #10094 | {
"avatar_url": "https://avatars.githubusercontent.com/u/17144735?v=4",
"events_url": "https://api.github.com/users/ExSidius/events{/privacy}",
"followers_url": "https://api.github.com/users/ExSidius/followers",
"following_url": "https://api.github.com/users/ExSidius/following{/other_user}",
"gists_url": "https://api.github.com/users/ExSidius/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ExSidius",
"id": 17144735,
"login": "ExSidius",
"node_id": "MDQ6VXNlcjE3MTQ0NzM1",
"organizations_url": "https://api.github.com/users/ExSidius/orgs",
"received_events_url": "https://api.github.com/users/ExSidius/received_events",
"repos_url": "https://api.github.com/users/ExSidius/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ExSidius/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ExSidius/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ExSidius"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 10 | 2019-04-17T00:31:11Z | 2019-04-18T23:17:23Z | 2019-04-17T20:43:59Z | CONTRIBUTOR | null | - [x] closes #10094
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26115/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26115/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26115.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26115",
"merged_at": "2019-04-17T20:43:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26115.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26115"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26116 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26116/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26116/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26116/events | https://github.com/pandas-dev/pandas/pull/26116 | 434,131,871 | MDExOlB1bGxSZXF1ZXN0MjcxMTg3MTM5 | 26,116 | DOC: fixup code-block directives from GH26076 | {
"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"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-17T07:25:55Z | 2019-04-17T08:06:48Z | 2019-04-17T08:06:44Z | MEMBER | null | Forgot to change some ipython directives to code-block directives in #26076 (should have checked the travis doc build log there ..) | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26116/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26116/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26116.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26116",
"merged_at": "2019-04-17T08:06:44Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26116.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26116"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26117 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26117/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26117/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26117/events | https://github.com/pandas-dev/pandas/pull/26117 | 434,145,914 | MDExOlB1bGxSZXF1ZXN0MjcxMTk3OTA2 | 26,117 | DOC: bunch of docstring formatting fixes (sphinx warnings) | {
"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"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-17T08:03:47Z | 2019-04-17T12:51:00Z | 2019-04-17T12:45:50Z | MEMBER | null | WIP towards getting sphinx doc build warning free | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26117/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26117/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26117.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26117",
"merged_at": "2019-04-17T12:45:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26117.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26117"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26118 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26118/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26118/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26118/events | https://github.com/pandas-dev/pandas/issues/26118 | 434,223,869 | MDU6SXNzdWU0MzQyMjM4Njk= | 26,118 | Should assert_frame_equal allow for a 'None' diff when there is actually a difference? | {
"avatar_url": "https://avatars.githubusercontent.com/u/6840039?v=4",
"events_url": "https://api.github.com/users/lovemeblender/events{/privacy}",
"followers_url": "https://api.github.com/users/lovemeblender/followers",
"following_url": "https://api.github.com/users/lovemeblender/following{/other_user}",
"gists_url": "https://api.github.com/users/lovemeblender/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lovemeblender",
"id": 6840039,
"login": "lovemeblender",
"node_id": "MDQ6VXNlcjY4NDAwMzk=",
"organizations_url": "https://api.github.com/users/lovemeblender/orgs",
"received_events_url": "https://api.github.com/users/lovemeblender/received_events",
"repos_url": "https://api.github.com/users/lovemeblender/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lovemeblender/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lovemeblender/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lovemeblender"
} | [
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
}
] | closed | false | null | [] | null | 7 | 2019-04-17T11:07:25Z | 2020-09-01T02:03:52Z | 2020-03-08T18:24:53Z | NONE | null | #### Code Sample, a copy-pastable example if possible
From this module used in dataframes' comparison [here](https://github.com/pandas-dev/pandas/blob/master/pandas/util/testing.py#L829).
#### Problem description
First of all, great job, I am excited to be using Pandas and thanks for everything! :)
While asserting for dataframe equality in PyTest using PyCharm I get a message that some values are different (100.0%) but the diff is None (diff = None). This is rather confusing and since there is no obvious difference between these values I struggle to find it.
#### Expected Output
If diff is none, I would expect for `assert_frame_equal` method to not throw an exception and return true. If the assertion is false and an exception is being raised I would expect it to always have some diff to show. If for any reason, having a "diff" is not feasible, I would expect this to be injected in the output message.
#### Output of ``pd.show_versions()``
<details>
Latest
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26118/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26118/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26119 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26119/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26119/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26119/events | https://github.com/pandas-dev/pandas/issues/26119 | 434,235,829 | MDU6SXNzdWU0MzQyMzU4Mjk= | 26,119 | Modify index of Series derived from Dataframe affects index of it's column. | {
"avatar_url": "https://avatars.githubusercontent.com/u/4918852?v=4",
"events_url": "https://api.github.com/users/dave-cz/events{/privacy}",
"followers_url": "https://api.github.com/users/dave-cz/followers",
"following_url": "https://api.github.com/users/dave-cz/following{/other_user}",
"gists_url": "https://api.github.com/users/dave-cz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dave-cz",
"id": 4918852,
"login": "dave-cz",
"node_id": "MDQ6VXNlcjQ5MTg4NTI=",
"organizations_url": "https://api.github.com/users/dave-cz/orgs",
"received_events_url": "https://api.github.com/users/dave-cz/received_events",
"repos_url": "https://api.github.com/users/dave-cz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dave-cz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dave-cz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dave-cz"
} | [
{
"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... | open | false | null | [] | null | 3 | 2019-04-17T11:38:58Z | 2020-09-22T04:18:10Z | null | NONE | null | ```python
import pandas as pd
from datetime import datetime
import pytz
dt_from = datetime(2019, 3, 30, 0, tzinfo=pytz.utc)
dt_to = datetime(2019, 3, 30, 4, tzinfo=pytz.utc)
idx = pd.date_range(dt_from, dt_to, freq='H')
df = pd.DataFrame(data={
'a': {i: v for i, v in zip(idx, range(idx.size))},
'b': {i: v+10 for i, v in zip(idx, range(idx.size))}}
)
>>> df
a b
2019-03-30 00:00:00+00:00 0 10
2019-03-30 01:00:00+00:00 1 11
2019-03-30 02:00:00+00:00 2 12
2019-03-30 03:00:00+00:00 3 13
2019-03-30 04:00:00+00:00 4 14
s = df['a'] # df.loc[:, 'a'] instead of df['a'] works the same
s.index = s.index.tz_convert('Europe/Prague')
>>> s
2019-03-30 01:00:00+01:00 0
2019-03-30 02:00:00+01:00 1
2019-03-30 03:00:00+01:00 2
2019-03-30 04:00:00+01:00 3
2019-03-30 05:00:00+01:00 4
Name: a, dtype: int64
# good
>>> df
a b
2019-03-30 00:00:00+00:00 0 10
2019-03-30 01:00:00+00:00 1 11
2019-03-30 02:00:00+00:00 2 12
2019-03-30 03:00:00+00:00 3 13
2019-03-30 04:00:00+00:00 4 14
# good
>>> df['a']
2019-03-30 01:00:00+01:00 0
2019-03-30 02:00:00+01:00 1
2019-03-30 03:00:00+01:00 2
2019-03-30 04:00:00+01:00 3
2019-03-30 05:00:00+01:00 4
Name: a, dtype: int64
# BAD INDEX
>>> df['b']
2019-03-30 00:00:00+00:00 10
2019-03-30 01:00:00+00:00 11
2019-03-30 02:00:00+00:00 12
2019-03-30 03:00:00+00:00 13
2019-03-30 04:00:00+00:00 14
Name: b, dtype: int64
# good
```
#### Workaround
```python
s = df['a'].copy()
```
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.15.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: None
pip: 19.0.3
setuptools: 40.8.0
Cython: 0.29.5
numpy: 1.14.6
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 5.8.0
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.8
feather: None
matplotlib: 2.2.3
openpyxl: 2.6.0
xlrd: 1.2.0
xlwt: None
xlsxwriter: 1.1.5
lxml.etree: 4.3.1
bs4: 4.7.1
html5lib: None
sqlalchemy: 1.2.17
pymysql: None
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: 0.7.0
gcsfs: None
</details> | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26119/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26119/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26120 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26120/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26120/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26120/events | https://github.com/pandas-dev/pandas/issues/26120 | 434,264,764 | MDU6SXNzdWU0MzQyNjQ3NjQ= | 26,120 | pandas.Series.shift 1 sample error | {
"avatar_url": "https://avatars.githubusercontent.com/u/25043401?v=4",
"events_url": "https://api.github.com/users/Caballero93/events{/privacy}",
"followers_url": "https://api.github.com/users/Caballero93/followers",
"following_url": "https://api.github.com/users/Caballero93/following{/other_user}",
"gists_url": "https://api.github.com/users/Caballero93/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Caballero93",
"id": 25043401,
"login": "Caballero93",
"node_id": "MDQ6VXNlcjI1MDQzNDAx",
"organizations_url": "https://api.github.com/users/Caballero93/orgs",
"received_events_url": "https://api.github.com/users/Caballero93/received_events",
"repos_url": "https://api.github.com/users/Caballero93/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Caballero93/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Caballero93/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Caballero93"
} | [
{
"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 | 2019-04-17T12:49:29Z | 2019-04-17T20:04:48Z | 2019-04-17T20:03:49Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
# Creating pandas>Series with timedeltas as index - 1 microsecond step:
import numpy as np
import pandas as pd
time = np.arange(0,1, 1e-6)
time_index = pd.to_timedelta(time, unit='s')
values = np.ones(len(time_index))
sig = pd.Series(data=values, index=time_index)
# shift signal for 1000 samples
sig_shifted_2 = sig.shift(1000)
print("Sample 0: {}".format(sig_shifted_2[0]))
print("Sample 999: {}".format(sig_shifted_2[999]))
print("Sample 1000: {}".format(sig_shifted_2[1000]))
print("Sample 1001: {}".format(sig_shifted_2[1001]))
```
#### Problem description
When signal is shifted for 1000 samples, what is expected is that samples from 0 to 999 have nan value, while sample 1000 should have value form index 0 on non-shifted signal. For 10 microsecond step it works like expected, but with 1 microsecond step index 1000 still has nan value, as can be seen on the output:

Version 0.24.2 is used
#### Expected Output
Output if 10 microsecond step is used

#### Output of ``pd.show_versions()``
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 158 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: 4.4.0
pip: 10.0.1
setuptools: 38.5.1
Cython: 0.28.2
numpy: 1.14.3
scipy: 1.0.1
pyarrow: None
xarray: None
IPython: 6.4.0
sphinx: 1.7.6
patsy: None
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: None
tables: 3.4.3
numexpr: 2.6.5
feather: None
matplotlib: 2.1.1
openpyxl: 1.7.0
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 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/26120/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26120/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26121 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26121/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26121/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26121/events | https://github.com/pandas-dev/pandas/issues/26121 | 434,288,542 | MDU6SXNzdWU0MzQyODg1NDI= | 26,121 | to_parquet and read_parquet are not symmetric if a column contains python lists | {
"avatar_url": "https://avatars.githubusercontent.com/u/19466803?v=4",
"events_url": "https://api.github.com/users/dave-kirby/events{/privacy}",
"followers_url": "https://api.github.com/users/dave-kirby/followers",
"following_url": "https://api.github.com/users/dave-kirby/following{/other_user}",
"gists_url": "https://api.github.com/users/dave-kirby/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/dave-kirby",
"id": 19466803,
"login": "dave-kirby",
"node_id": "MDQ6VXNlcjE5NDY2ODAz",
"organizations_url": "https://api.github.com/users/dave-kirby/orgs",
"received_events_url": "https://api.github.com/users/dave-kirby/received_events",
"repos_url": "https://api.github.com/users/dave-kirby/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/dave-kirby/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dave-kirby/subscriptions",
"type": "User",
"url": "https://api.github.com/users/dave-kirby"
} | [
{
"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": "parquet, feather",
"... | open | false | null | [] | null | 1 | 2019-04-17T13:38:00Z | 2020-04-19T19:24:44Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
>>> import pandas as pd
>>> df = pd.DataFrame({'A': ["this is a list".split(), "so is this one".split()]})
>>> df.to_parquet('tmp.parquet', 'pyarrow')
>>> df2 = pd.read_parquet('tmp.parquet', 'pyarrow')
>>> print("Type:", type(df2.A[0]), "Value:", repr(df2.A[0]))
Type: <class 'numpy.ndarray'> Value: array(['this', 'is', 'a', 'list'], dtype=object)
```
#### Problem description
If a pandas DataFrame has one or more columns where the cells are python objects containing a list of strings, then converting the DataFrame to parquet and back using pyarrow as the back end will result in the columns being converted to numpy arrays of strings. This can cause unexpected problems later in the code. For example trying to write the dataframe to a SQL database with `DataFrame.to_sql` will blow up since it does not know how to handle numpy arrays.
While investigating this I found that using fastparquet as the back end for both saving and loading worked OK, but saving with fastparquet and loading with pyarrow changed the lists into byte strings containing the repr of the list, i.e.
```
>>> df.to_parquet('tmp.parquet', 'fastparquet')
>>> df2 = pd.read_parquet('tmp.parquet', 'pyarrow')
>>> print("Type:", type(df2.A[0]), "Value:", repr(df2.A[0]))
Type: <class 'bytes'> Value: b'["this", "is", "a", "list"]'
```
Also saving with pyarrow and loading with fastparquet throws an exception:
```
>>> df.to_parquet('tmp.parquet', 'pyarrow')
>>> df2 = pd.read_parquet('tmp.parquet', 'fastparquet')
Traceback (most recent call last):
File "<ipython-input-22-b30bd30928a4>", line 1, in <module>
df2 = pd.read_parquet('tmp.parquet', 'fastparquet')
File "/home/dave/anaconda3/envs/tca/lib/python3.6/site-packages/pandas/io/parquet.py", line 282, in read_parquet
return impl.read(path, columns=columns, **kwargs)
File "/home/dave/anaconda3/envs/tca/lib/python3.6/site-packages/pandas/io/parquet.py", line 211, in read
return parquet_file.to_pandas(columns=columns, **kwargs)
File "/home/dave/anaconda3/envs/tca/lib/python3.6/site-packages/fastparquet/api.py", line 421, in to_pandas
check_column_names(self.columns + list(self.cats), columns, categories)
File "/home/dave/anaconda3/envs/tca/lib/python3.6/site-packages/fastparquet/util.py", line 92, in check_column_names
if set(arg) - set(columns):
TypeError: unhashable type: 'dict'
```
N.B. I am not sure which of these are bugs in pandas and which are bugs in pyarrow & fastparquet. If this is not the right place for this then let me know and I will raise tickets on the respective projects.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-47-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.24.2
pytest: 3.8.2
pip: 18.1
setuptools: 40.4.3
Cython: 0.29.5
numpy: 1.15.4
scipy: 1.2.1
pyarrow: 0.13.0
xarray: None
IPython: 7.3.0
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.12
xlrd: 1.1.0
xlwt: None
xlsxwriter: None
lxml.etree: 3.8.0
bs4: None
html5lib: 1.0.1
sqlalchemy: 1.2.18
pymysql: None
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.8.1
s3fs: None
fastparquet: 0.3.0
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26121/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26121/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26122 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26122/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26122/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26122/events | https://github.com/pandas-dev/pandas/issues/26122 | 434,395,995 | MDU6SXNzdWU0MzQzOTU5OTU= | 26,122 | Unexpected 'to_datetime' behaviour for datetime strings with different offset in 'arg', when errors='coerce' | {
"avatar_url": "https://avatars.githubusercontent.com/u/45976948?v=4",
"events_url": "https://api.github.com/users/anmyachev/events{/privacy}",
"followers_url": "https://api.github.com/users/anmyachev/followers",
"following_url": "https://api.github.com/users/anmyachev/following{/other_user}",
"gists_url": "https://api.github.com/users/anmyachev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/anmyachev",
"id": 45976948,
"login": "anmyachev",
"node_id": "MDQ6VXNlcjQ1OTc2OTQ4",
"organizations_url": "https://api.github.com/users/anmyachev/orgs",
"received_events_url": "https://api.github.com/users/anmyachev/received_events",
"repos_url": "https://api.github.com/users/anmyachev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/anmyachev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anmyachev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/anmyachev"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-04-17T17:16:50Z | 2019-05-07T01:59:20Z | 2019-05-07T01:59:20Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
arr = ['March 1, 2018 12:00:00+0400', 'March 1, 2018 12:00:00+0500', '20100240']
result = pd.to_datetime(arr, errors='coerce')
```
`>>> result`:
`Index(['March 1, 2018 12:00:00+0400', 'March 1, 2018 12:00:00+0500', '20100240'], dtype='object')`
#### Problem description
In `to_datetime` docstring:
`- If 'coerce', then invalid parsing will be set as NaT`
So.. it seems to me, that this is unexpected behaviour
#### Expected Output
`>>> result`:
`Index([2018-03-01 12:00:00+04:00, 2018-03-01 12:00:00+05:00, NaT], dtype='object')`
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: 4.3.0
pip: 19.0.3
setuptools: 39.0.1
Cython: 0.29.3
numpy: 1.16.0
scipy: 1.2.1
pyarrow: None
xarray: 0.11.3
IPython: 7.3.0
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 3.0.3
openpyxl: 2.5.12
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.5
lxml.etree: 4.3.2
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.1
pymysql: 0.9.3
psycopg2: 2.7.7 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: 0.2.0
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26122/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26122/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26123 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26123/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26123/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26123/events | https://github.com/pandas-dev/pandas/issues/26123 | 434,421,582 | MDU6SXNzdWU0MzQ0MjE1ODI= | 26,123 | Reindexing a sparse data structure with a different index results in losing the dtype | {
"avatar_url": "https://avatars.githubusercontent.com/u/1069646?v=4",
"events_url": "https://api.github.com/users/hdinh/events{/privacy}",
"followers_url": "https://api.github.com/users/hdinh/followers",
"following_url": "https://api.github.com/users/hdinh/following{/other_user}",
"gists_url": "https://api.github.com/users/hdinh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/hdinh",
"id": 1069646,
"login": "hdinh",
"node_id": "MDQ6VXNlcjEwNjk2NDY=",
"organizations_url": "https://api.github.com/users/hdinh/orgs",
"received_events_url": "https://api.github.com/users/hdinh/received_events",
"repos_url": "https://api.github.com/users/hdinh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/hdinh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/hdinh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/hdinh"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "e11d21",
"default": false,
"description": "Functionality that used ... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | 2019-04-17T18:21:20Z | 2020-04-25T20:44:16Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
for dtype in (np.float32, np.int32, np.bool):
s = pd.SparseSeries([1, 0], dtype=dtype)
print('original:', s.dtype)
print('reindexed:', s.reindex([0, 1, 2]).dtype)
```
**Output**
```
original: Sparse[float32, nan]
reindexed: Sparse[float64, nan]
original: Sparse[int32, 0]
reindexed: Sparse[float64, 0]
original: Sparse[bool, False]
reindexed: Sparse[float64, False]
```
#### Problem description
The output sparse series is always of type ```Sparse[float64]``` instead of the dtype passed in.
This looks to be a regression from v0.23.4. Perhaps it has to do with the new SparseArray rework in v0.24.x.
#### Expected Output
Ideally the dtype would not be lost. Although that wasn't exactly true in v0.23.4, the sparse float dtypes were not upcasted. My use case for casting to a sparse dtype is to save space, so the conversion to float64 breaks things.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.13.0-16-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 4.3.1
pip: 19.0.3
setuptools: 40.8.0
Cython: 0.29.6
numpy: 1.16.2
scipy: 1.2.1
pyarrow: 0.12.0
xarray: None
IPython: 7.3.0
sphinx: 1.8.5
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: 1.2.1
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 2.2.3
openpyxl: 2.6.1
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.5
lxml.etree: 4.3.2
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.1
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26123/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26123/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26124 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26124/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26124/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26124/events | https://github.com/pandas-dev/pandas/issues/26124 | 434,425,210 | MDU6SXNzdWU0MzQ0MjUyMTA= | 26,124 | to_csv to Google Cloud Storage ignores encoding | {
"avatar_url": "https://avatars.githubusercontent.com/u/11373934?v=4",
"events_url": "https://api.github.com/users/vackosar/events{/privacy}",
"followers_url": "https://api.github.com/users/vackosar/followers",
"following_url": "https://api.github.com/users/vackosar/following{/other_user}",
"gists_url": "https://api.github.com/users/vackosar/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vackosar",
"id": 11373934,
"login": "vackosar",
"node_id": "MDQ6VXNlcjExMzczOTM0",
"organizations_url": "https://api.github.com/users/vackosar/orgs",
"received_events_url": "https://api.github.com/users/vackosar/received_events",
"repos_url": "https://api.github.com/users/vackosar/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vackosar/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vackosar/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vackosar"
} | [
{
"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": "0052cc",
"default": false,
"description": "pandas-gbq compatability... | 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"
} | 3 | 2019-04-17T18:29:51Z | 2020-09-03T03:06:19Z | 2020-09-03T03:06:19Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
df.to_csv(path_or_buf='gs://mybucket/my_file', encoding='utf8')
```
#### Problem description
Instead of expected UTF-8 file is stored in latin-1 on Windows. I can also see that current implementation of method ```pandas.io.gcs.get_filepath_or_buffer``` ignores encoding argument.
I can submit PR if are open to it.
#### Expected Output
Uploaded file encoded in UTF8 even on Windows.
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.1.final.0
python-bits: 64
OS: Linux
OS-release: 4.18.0-17-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 10.0.1
setuptools: 39.1.0
Cython: None
numpy: 1.16.2
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: 0.9.0
pandas_datareader: None
gcsfs: 0.2.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26124/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26124/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26125 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26125/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26125/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26125/events | https://github.com/pandas-dev/pandas/issues/26125 | 434,440,913 | MDU6SXNzdWU0MzQ0NDA5MTM= | 26,125 | BUG: np.min(pd.Index) and np.max(pd.Index) raise a TypeError | {
"avatar_url": "https://avatars.githubusercontent.com/u/5332445?v=4",
"events_url": "https://api.github.com/users/jschendel/events{/privacy}",
"followers_url": "https://api.github.com/users/jschendel/followers",
"following_url": "https://api.github.com/users/jschendel/following{/other_user}",
"gists_url": "https://api.github.com/users/jschendel/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jschendel",
"id": 5332445,
"login": "jschendel",
"node_id": "MDQ6VXNlcjUzMzI0NDU=",
"organizations_url": "https://api.github.com/users/jschendel/orgs",
"received_events_url": "https://api.github.com/users/jschendel/received_events",
"repos_url": "https://api.github.com/users/jschendel/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jschendel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jschendel/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jschendel"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-04-17T19:09:01Z | 2019-05-09T12:36:35Z | 2019-05-09T12:36:35Z | MEMBER | null | #### Code Sample, a copy-pastable example if possible
```python
In [1]: import numpy as np; import pandas as pd
In [2]: np.__version__, pd.__version__
Out[2]: ('1.16.2', '0.25.0.dev0+421.g8b60ebb359')
In [3]: idx = pd.Index([10, 20, 11]); idx
Out[3]: Int64Index([10, 20, 11], dtype='int64')
In [4]: np.min(idx)
---------------------------------------------------------------------------
TypeError: min() got an unexpected keyword argument 'out'
In [5]: np.max(idx)
---------------------------------------------------------------------------
TypeError: max() got an unexpected keyword argument 'out'
```
Note that other numpy functions work fine:
```python
In [6]: np.sum(idx), np.prod(idx), np.argmax(idx), np.argmin(idx)
Out[6]: (41, 2200, 1, 0)
```
And `np.min` and `np.max` work on other pandas data structures:
```python
In [7]: s = pd.Series([10, 20, 11])
In [8]: np.min(s), np.max(s)
Out[8]: (10, 20)
In [9]: df = pd.DataFrame({'A': [10, 20, 11], 'B': [3, 1, 4]})
In [10]: np.min(df)
Out[10]:
A 10
B 1
dtype: int64
In [11]: np.max(df)
Out[11]:
A 20
B 4
dtype: int64
```
#### Problem description
Both `np.min` and `np.max` raise a `TypeError` when applied to a `pd.Index`. Using `pd.Index.min` and `pd.Index.max` is more idiomatic for pandas, but using the numpy equivalent functions should work, as they do for other pandas data structures.
#### Expected Output
I'd expect `np.min(pd.Index)` and `np.max(pd.Index)` to be equivalent to `pd.Index.min` and `pd.Index.max`, as is the case with other pandas data structures.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: 8b60ebb3598881571b390276d2c75ec7c7a95212
python: 3.6.8.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 78 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.25.0.dev0+421.g8b60ebb359
pytest: 4.2.0
pip: 19.0.1
setuptools: 40.6.3
Cython: 0.28.2
numpy: 1.16.2
scipy: 1.2.1
pyarrow: 0.6.0
xarray: 0.9.6
IPython: 7.2.0
sphinx: 1.8.2
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.4.2
numexpr: 2.6.9
feather: 0.4.0
matplotlib: 2.0.2
openpyxl: 2.4.8
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 0.9.8
lxml.etree: 3.8.0
bs4: None
html5lib: 0.999
sqlalchemy: 1.1.13
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: 0.1.5
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26125/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26125/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26126 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26126/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26126/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26126/events | https://github.com/pandas-dev/pandas/issues/26126 | 434,513,138 | MDU6SXNzdWU0MzQ1MTMxMzg= | 26,126 | to_html(index = False) not dropping df.columns.name in the html output | {
"avatar_url": "https://avatars.githubusercontent.com/u/39537367?v=4",
"events_url": "https://api.github.com/users/benpap24/events{/privacy}",
"followers_url": "https://api.github.com/users/benpap24/followers",
"following_url": "https://api.github.com/users/benpap24/following{/other_user}",
"gists_url": "https://api.github.com/users/benpap24/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/benpap24",
"id": 39537367,
"login": "benpap24",
"node_id": "MDQ6VXNlcjM5NTM3MzY3",
"organizations_url": "https://api.github.com/users/benpap24/orgs",
"received_events_url": "https://api.github.com/users/benpap24/received_events",
"repos_url": "https://api.github.com/users/benpap24/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/benpap24/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/benpap24/subscriptions",
"type": "User",
"url": "https://api.github.com/users/benpap24"
} | [
{
"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 | 2019-04-17T22:30:02Z | 2019-04-18T04:31:35Z | 2019-04-18T04:31:35Z | NONE | null | ```
df = pd.DataFrame({'A': [1,2],
'B': [3,4]})
df.columns.name = 'Test'
df.to_html(index = False)
#Output
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th>Test</th>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<th></th>
<td>1</td>
<td>3</td>
</tr>
<tr>
<th></th>
<td>2</td>
<td>4</td>
</tr>
</tbody>
</table>
```
#### Problem description
I recently updated one of my projects from 0.23.4 to 0.24.1 and the html output of ```df.to_html(index = False)``` changed when there is a column name (ie. one generated from when you create a pivot table).
Previously, ```df.to_html(index = False)``` would drop the column name, however now it creates an empty column with the column name.
I've also confirmed reverting to 0.23.4 fixes the issue.
#### Expected Output
```
<table border="1" class="dataframe">
<thead>
<tr style="text-align: right;">
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>3</td>
</tr>
<tr>
<td>2</td>
<td>4</td>
</tr>
</tbody>
</table>
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.0.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 10, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.1
pytest: 3.8.0
pip: 10.0.1
setuptools: 40.2.0
Cython: 0.28.5
numpy: 1.16.0
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.5.0
sphinx: 1.7.9
patsy: 0.5.1
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.0
openpyxl: 2.5.6
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.1.0
lxml.etree: 4.3.0
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.11
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26126/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26126/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26127 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26127/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26127/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26127/events | https://github.com/pandas-dev/pandas/issues/26127 | 434,527,339 | MDU6SXNzdWU0MzQ1MjczMzk= | 26,127 | Inspection of some cython produced functions causes segfault | {
"avatar_url": "https://avatars.githubusercontent.com/u/5341706?v=4",
"events_url": "https://api.github.com/users/jakebailey/events{/privacy}",
"followers_url": "https://api.github.com/users/jakebailey/followers",
"following_url": "https://api.github.com/users/jakebailey/following{/other_user}",
"gists_url": "https://api.github.com/users/jakebailey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jakebailey",
"id": 5341706,
"login": "jakebailey",
"node_id": "MDQ6VXNlcjUzNDE3MDY=",
"organizations_url": "https://api.github.com/users/jakebailey/orgs",
"received_events_url": "https://api.github.com/users/jakebailey/received_events",
"repos_url": "https://api.github.com/users/jakebailey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jakebailey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakebailey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jakebailey"
} | [
{
"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": "d93f0b... | closed | false | null | [] | null | 10 | 2019-04-17T23:27:05Z | 2019-11-21T20:55:56Z | 2019-11-21T20:55:56Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
from pandas._libs.algos import backfill
getattr(backfill, "__kwdefaults__", None)
```
Run with `-X faulthandler` to get more info.
#### Problem description
Trying to access `__kwdefaults__`, either by `getattr` or `hasattr`, segfaults the Python process. This occurs at least on macOS when pandas is installed from PyPI using `pip install pandas`. If it is instead installed via `pip install pandas --no-binary :all:`, then it does not segfault. There may be other functions which do this, but this is the first we encounter.
This impacts our Python language server as it uses the `inspect` library to examine libraries without Python source. The code sample above is a minimal repro, but in reality it's being called by `inspect.getfullargspec()` (which eventually does [this](https://github.com/python/cpython/blob/3.7/Lib/inspect.py#L1837)). When it segfaults, our process crashes (and on some OSs like macOS produces a visible popup as the OS is tracking these sorts of crashes). See: Microsoft/python-language-server#740
cython/cython#1470 looks to be related, and would be fixed in Cython 0.29.6, so maybe a version bump is all that would be required. Given I can do `--no-binary` to do the compilation locally, it may be that what is building for PyPI is older than what happens on my machine.
#### Expected Output
Anything, just not crash. Here's what macOS's crash reporter says:
<details>
Process: Python [80749]
Path: /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.3 (3.7.3)
Code Type: X86-64 (Native)
Parent Process: zsh [72384]
Responsible: Python [80749]
User ID: 501
Date/Time: 2019-04-17 16:18:22.448 -0700
OS Version: Mac OS X 10.14.4 (18E226)
Report Version: 12
Bridge OS Version: 3.0 (14Y674)
Anonymous UUID: 5A957B3E-4E8F-3DE2-C606-5B11FE48E6DD
Sleep/Wake UUID: 02FDA72B-8D53-471B-80AE-6514E0B386FB
Time Awake Since Boot: 23000 seconds
Time Since Wake: 2200 seconds
System Integrity Protection: disabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [80749]
VM Regions Near 0:
-->
__TEXT 000000010a32a000-000000010a32c000 [ 8K] r-x/rwx SM=COW /usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 algos.cpython-37m-darwin.so 0x0000000116045520 __pyx_pf_6pandas_5_libs_5algos_600__defaults__ + 32
1 algos.cpython-37m-darwin.so 0x0000000116195ed0 __Pyx_CyFunction_get_kwdefaults + 48
2 org.python.python 0x000000010a352587 getset_get + 58
3 org.python.python 0x000000010a379c2f _PyObject_GenericGetAttrWithDict + 180
4 org.python.python 0x000000010a379b20 _PyObject_LookupAttr + 166
5 org.python.python 0x000000010a3d6d66 builtin_getattr + 141
6 org.python.python 0x000000010a34d6f2 _PyMethodDef_RawFastCallKeywords + 495
7 org.python.python 0x000000010a34cc8e _PyCFunction_FastCallKeywords + 44
8 org.python.python 0x000000010a3e1db2 call_function + 636
9 org.python.python 0x000000010a3dac35 _PyEval_EvalFrameDefault + 6594
10 org.python.python 0x000000010a3e26d3 _PyEval_EvalCodeWithName + 1867
11 org.python.python 0x000000010a3d91d0 PyEval_EvalCode + 51
12 org.python.python 0x000000010a40779b run_mod + 54
13 org.python.python 0x000000010a4067c5 PyRun_FileExFlags + 163
14 org.python.python 0x000000010a405e6b PyRun_SimpleFileExFlags + 263
15 org.python.python 0x000000010a41e9b0 pymain_main + 5367
16 org.python.python 0x000000010a41f088 _Py_UnixMain + 56
17 libdyld.dylib 0x00007fff5dead3d5 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fff5dfe586a __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff5e09e56e _pthread_cond_wait + 722
2 libopenblasp-r0.3.5.dev.dylib 0x000000010af14a3b blas_thread_server + 619
3 libsystem_pthread.dylib 0x00007fff5e09b2eb _pthread_body + 126
4 libsystem_pthread.dylib 0x00007fff5e09e249 _pthread_start + 66
5 libsystem_pthread.dylib 0x00007fff5e09a40d thread_start + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fff5dfe586a __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff5e09e56e _pthread_cond_wait + 722
2 libopenblasp-r0.3.5.dev.dylib 0x000000010af14a3b blas_thread_server + 619
3 libsystem_pthread.dylib 0x00007fff5e09b2eb _pthread_body + 126
4 libsystem_pthread.dylib 0x00007fff5e09e249 _pthread_start + 66
5 libsystem_pthread.dylib 0x00007fff5e09a40d thread_start + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff5dfe586a __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff5e09e56e _pthread_cond_wait + 722
2 libopenblasp-r0.3.5.dev.dylib 0x000000010af14a3b blas_thread_server + 619
3 libsystem_pthread.dylib 0x00007fff5e09b2eb _pthread_body + 126
4 libsystem_pthread.dylib 0x00007fff5e09e249 _pthread_start + 66
5 libsystem_pthread.dylib 0x00007fff5e09a40d thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x000000010a75fd68 rcx: 0x000000010a75fd50 rdx: 0x00000001177329c0
rdi: 0x000000010a75fd80 rsi: 0x0000000000000000 rbp: 0x00007ffee58d49e0 rsp: 0x00007ffee58d49d0
r8: 0x1678a558da7df69e r9: 0x00007ffee58d4a90 r10: 0x00007fe0bb081a68 r11: 0x00007ffee58d4ae8
r12: 0x0000000116209a08 r13: 0x00000001161a8698 r14: 0x0000000116209a08 r15: 0x0000000000000000
rip: 0x0000000116045520 rfl: 0x0000000000010202 cr2: 0x0000000000000000
Logical CPU: 6
Error Code: 0x00000004
Trap Number: 14
</details>
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Darwin
OS-release: 18.5.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 19.0.3
setuptools: 40.8.0
Cython: None
numpy: 1.16.2
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26127/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26127/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26128 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26128/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26128/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26128/events | https://github.com/pandas-dev/pandas/pull/26128 | 434,531,820 | MDExOlB1bGxSZXF1ZXN0MjcxNTA1ODYx | 26,128 | CLN: remove unneeded inheritance from base object | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-04-17T23:48:09Z | 2019-04-19T17:13:24Z | 2019-04-18T21:52:15Z | CONTRIBUTOR | null | - [x] xref #25725
Bit of a tedious whopper to review (sorry), but this PR removes all instances of inheriting from the base ``object`` from the code base, as dropping Python2 support means that this particular idiom is no longer needed.
Additionally, as part of the above, I've removed the check in code_checks.sh that classes must inherit, as that is no longer a requirement after dropping Python2. I don't think a different check is possible to do now, but I can change instead of delete the check if anyone thinks that would make sense.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26128/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26128/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26128.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26128",
"merged_at": "2019-04-18T21:52:15Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26128.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26128"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26129 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26129/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26129/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26129/events | https://github.com/pandas-dev/pandas/pull/26129 | 434,539,541 | MDExOlB1bGxSZXF1ZXN0MjcxNTExOTM0 | 26,129 | CLN: rename test method parameter name 'object' to 'self' | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
},
{
"color": "207de5",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-18T00:25:15Z | 2019-04-19T17:13:36Z | 2019-04-18T03:48:23Z | CONTRIBUTOR | null | As part of #26128, I saw that in three test methods, their first parameter has been named ``object`` rather than ``self``. This rectifies 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/26129/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26129/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26129.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26129",
"merged_at": "2019-04-18T03:48:23Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26129.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26129"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26130 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26130/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26130/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26130/events | https://github.com/pandas-dev/pandas/issues/26130 | 434,545,157 | MDU6SXNzdWU0MzQ1NDUxNTc= | 26,130 | register_index_accessor Question | {
"avatar_url": "https://avatars.githubusercontent.com/u/5131271?v=4",
"events_url": "https://api.github.com/users/achapkowski/events{/privacy}",
"followers_url": "https://api.github.com/users/achapkowski/followers",
"following_url": "https://api.github.com/users/achapkowski/following{/other_user}",
"gists_url": "https://api.github.com/users/achapkowski/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/achapkowski",
"id": 5131271,
"login": "achapkowski",
"node_id": "MDQ6VXNlcjUxMzEyNzE=",
"organizations_url": "https://api.github.com/users/achapkowski/orgs",
"received_events_url": "https://api.github.com/users/achapkowski/received_events",
"repos_url": "https://api.github.com/users/achapkowski/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/achapkowski/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/achapkowski/subscriptions",
"type": "User",
"url": "https://api.github.com/users/achapkowski"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "6138b5",
"default": false,
"descript... | closed | false | null | [] | null | 6 | 2019-04-18T00:55:46Z | 2019-04-19T10:56:43Z | 2019-04-18T18:16:48Z | NONE | null | When implementing a index accessor, does it overwrite the default ‘index’ property, or is there a way to create a custom index class to pass into index? How could I make it iloc or loc compatible?
Additionally, the register_index_accessor, besides the init, what else is needed to properly work?
My goal is to use an rtree index to find my content. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26130/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26130/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26131 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26131/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26131/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26131/events | https://github.com/pandas-dev/pandas/issues/26131 | 434,638,099 | MDU6SXNzdWU0MzQ2MzgwOTk= | 26,131 | pd.Timestamp.isoformat does not implement keyword timespec | {
"avatar_url": "https://avatars.githubusercontent.com/u/31591159?v=4",
"events_url": "https://api.github.com/users/MaximeWeyl/events{/privacy}",
"followers_url": "https://api.github.com/users/MaximeWeyl/followers",
"following_url": "https://api.github.com/users/MaximeWeyl/following{/other_user}",
"gists_url": "https://api.github.com/users/MaximeWeyl/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/MaximeWeyl",
"id": 31591159,
"login": "MaximeWeyl",
"node_id": "MDQ6VXNlcjMxNTkxMTU5",
"organizations_url": "https://api.github.com/users/MaximeWeyl/orgs",
"received_events_url": "https://api.github.com/users/MaximeWeyl/received_events",
"repos_url": "https://api.github.com/users/MaximeWeyl/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/MaximeWeyl/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MaximeWeyl/subscriptions",
"type": "User",
"url": "https://api.github.com/users/MaximeWeyl"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
... | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/62092582?v=4",
"events_url": "https://api.github.com/users/boringow/events{/privacy}",
"followers_url": "https://api.github.com/users/boringow/followers",
"following_url": "https://api.github.com/users/boringow/following{/other_user}",
"gists_url": "https://api.github.com/users/boringow/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/boringow",
"id": 62092582,
"login": "boringow",
"node_id": "MDQ6VXNlcjYyMDkyNTgy",
"organizations_url": "https://api.github.com/users/boringow/orgs",
"received_events_url": "https://api.github.com/users/boringow/received_events",
"repos_url": "https://api.github.com/users/boringow/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/boringow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/boringow/subscriptions",
"type": "User",
"url": "https://api.github.com/users/boringow"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/62092582?v=4",
"events_url": "https://api.github.com/users/boringow/events{/privacy}",
"followers_url": "https://api.github.com/users/boringow/followers",
"following_url": "https://api.github.com/users/boringow/following{/other_user}",
"gi... | {
"closed_at": null,
"closed_issues": 1203,
"created_at": "2021-06-09T18:28:42Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2021-12-31T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/86",
"id": 6840253,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86/labels",
"node_id": "MDk6TWlsZXN0b25lNjg0MDI1Mw==",
"number": 86,
"open_issues": 77,
"state": "open",
"title": "1.4",
"updated_at": "2021-11-21T02:34:31Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/86"
} | 15 | 2019-04-18T07:56:24Z | 2021-11-14T03:19:08Z | 2021-11-14T03:19:08Z | NONE | null | ## Code Sample
**[IN]**
```python
import pandas as pd
now = pd.Timestamp.utcnow()
help(now.isoformat)
```
**[OUT]**
Help on method isoformat in module pandas._libs.tslibs.timestamps:
isoformat(sep='T') method of pandas._libs.tslibs.timestamps.Timestamp instance
[sep] -> string in ISO 8601 format, YYYY-MM-DDT[HH[:MM[:SS[.mmm[uuu]]]]][+HH:MM].
sep is used to separate the year from the time, and defaults to 'T'.
timespec specifies what components of the time to include (allowed values are 'auto', 'hours', 'minutes', 'seconds', 'milliseconds', and 'microseconds').
**[IN]**
```python
now.isoformat(timespec="seconds")
```
**[OUT]**
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-8-3626478eeb62> in <module>
----> 1 now.isoformat(timespec="seconds")
pandas\_libs\tslibs\timestamps.pyx in pandas._libs.tslibs.timestamps.Timestamp.isoformat()
TypeError: isoformat() got an unexpected keyword argument 'timespec'
**[IN]**
```python
now.to_pydatetime().isoformat(timespec="seconds")
```
**[OUT]**
'2019-04-18T07:38:50+00:00'
## Problem description
The help method has given me the feeling that I can use timespec just like I can with standard datetime objects (since python 3.6).
## Expected Output
We could mimic standard datetime.isoformat behavior, or at least remove this false information from the help message.
## Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: fr_FR.UTF-8
LOCALE: None.None
pandas: 0.24.2
pytest: 4.4.1
pip: 19.0.3
setuptools: 41.0.0
Cython: None
numpy: 1.16.2
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.4.0
sphinx: 2.0.1
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: 4.3.3
bs4: 4.7.1
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 10,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 10,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26131/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26131/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26132 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26132/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26132/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26132/events | https://github.com/pandas-dev/pandas/pull/26132 | 434,649,979 | MDExOlB1bGxSZXF1ZXN0MjcxNTk1NTk1 | 26,132 | DOC: add deprecated to docstring of Series.data/itemsize/strides/flags/base | {
"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"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-04-18T08:28:09Z | 2019-04-18T15:31:45Z | 2019-04-18T15:31:40Z | MEMBER | null | xref https://github.com/pandas-dev/pandas/issues/20419#issuecomment-481773575 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26132/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26132/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26132.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26132",
"merged_at": "2019-04-18T15:31:40Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26132.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26132"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26133 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26133/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26133/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26133/events | https://github.com/pandas-dev/pandas/issues/26133 | 434,652,470 | MDU6SXNzdWU0MzQ2NTI0NzA= | 26,133 | Unclear error message when dealing with IntegerArrays | {
"avatar_url": "https://avatars.githubusercontent.com/u/32699121?v=4",
"events_url": "https://api.github.com/users/aperiodicchain/events{/privacy}",
"followers_url": "https://api.github.com/users/aperiodicchain/followers",
"following_url": "https://api.github.com/users/aperiodicchain/following{/other_user}",
"gists_url": "https://api.github.com/users/aperiodicchain/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/aperiodicchain",
"id": 32699121,
"login": "aperiodicchain",
"node_id": "MDQ6VXNlcjMyNjk5MTIx",
"organizations_url": "https://api.github.com/users/aperiodicchain/orgs",
"received_events_url": "https://api.github.com/users/aperiodicchain/received_events",
"repos_url": "https://api.github.com/users/aperiodicchain/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/aperiodicchain/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/aperiodicchain/subscriptions",
"type": "User",
"url": "https://api.github.com/users/aperiodicchain"
} | [] | closed | false | null | [] | null | 2 | 2019-04-18T08:34:22Z | 2019-04-19T03:49:57Z | 2019-04-19T03:49:57Z | NONE | null | Since the recent addition of [Integer NA Support](http://pandas-docs.github.io/pandas-docs-travis/whatsnew/v0.24.0.html#optional-integer-na-support) writing IntegerArrays to disk is a common scenario. Below are two examples of `to_hdf` method, the first returns a confusing error message while the second is very clear. Could we raise a `TypeError` in the first case too?
#### reproduce:
```python
r = pd.Series( ['0','1', None, np.nan])
s = pd.to_numeric( r, downcast='integer').astype('Int64')
```
```python
s.to_hdf('file', 'df', mode='w', complevel=9)
```
#### `AttributeError:` 'NoneType' object has no attribute 'names'
```python
s.to_hdf('file', 'df', mode='w')
```
#### TypeError: objects of type ``IntegerArray`` are not supported in this context, sorry; supported objects are: NumPy array, record or scalar; homogeneous list or tuple, integer, float, complex or bytes
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en
LOCALE: None.None
pandas: 0.24.2
pytest: 3.8.0
pip: 19.0.3
setuptools: 40.2.0
Cython: 0.28.5
numpy: 1.15.4
scipy: 1.1.0
pyarrow: 0.10.0
xarray: None
IPython: 6.5.0
sphinx: 1.8.5
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: 1.2.1
tables: 3.4.4
numexpr: 2.6.8
feather: 0.4.0
matplotlib: 2.2.3
openpyxl: 2.5.6
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.1.0
lxml.etree: 4.2.5
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: 1.2.11
pymysql: None
psycopg2: 2.7.5 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: 0.10.0
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26133/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26133/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26134 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26134/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26134/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26134/events | https://github.com/pandas-dev/pandas/pull/26134 | 434,758,888 | MDExOlB1bGxSZXF1ZXN0MjcxNjc5NDc0 | 26,134 | BUG: errors and segfaults in groupby cython transforms (#16771) | {
"avatar_url": "https://avatars.githubusercontent.com/u/7279321?v=4",
"events_url": "https://api.github.com/users/adbull/events{/privacy}",
"followers_url": "https://api.github.com/users/adbull/followers",
"following_url": "https://api.github.com/users/adbull/following{/other_user}",
"gists_url": "https://api.github.com/users/adbull/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adbull",
"id": 7279321,
"login": "adbull",
"node_id": "MDQ6VXNlcjcyNzkzMjE=",
"organizations_url": "https://api.github.com/users/adbull/orgs",
"received_events_url": "https://api.github.com/users/adbull/received_events",
"repos_url": "https://api.github.com/users/adbull/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adbull/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adbull/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adbull"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT,... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 10 | 2019-04-18T13:02:18Z | 2019-04-20T16:45:06Z | 2019-04-20T16:45:02Z | CONTRIBUTOR | null | - [x] closes #16771
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26134/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26134/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26134.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26134",
"merged_at": "2019-04-20T16:45:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26134.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26134"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26135 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26135/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26135/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26135/events | https://github.com/pandas-dev/pandas/pull/26135 | 434,829,706 | MDExOlB1bGxSZXF1ZXN0MjcxNzM1NDEz | 26,135 | ENH: allow saving wide dataframes to hdf with format table | {
"avatar_url": "https://avatars.githubusercontent.com/u/23280737?v=4",
"events_url": "https://api.github.com/users/P-Tillmann/events{/privacy}",
"followers_url": "https://api.github.com/users/P-Tillmann/followers",
"following_url": "https://api.github.com/users/P-Tillmann/following{/other_user}",
"gists_url": "https://api.github.com/users/P-Tillmann/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/P-Tillmann",
"id": 23280737,
"login": "P-Tillmann",
"node_id": "MDQ6VXNlcjIzMjgwNzM3",
"organizations_url": "https://api.github.com/users/P-Tillmann/orgs",
"received_events_url": "https://api.github.com/users/P-Tillmann/received_events",
"repos_url": "https://api.github.com/users/P-Tillmann/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/P-Tillmann/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/P-Tillmann/subscriptions",
"type": "User",
"url": "https://api.github.com/users/P-Tillmann"
} | [
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
"id": 47229190,
"name": "IO HDF5",
"node_id": "MDU6TGFiZWw0NzIyOTE5MA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20HDF5"
}
] | closed | false | null | [] | null | 15 | 2019-04-18T15:28:30Z | 2019-09-20T14:41:04Z | 2019-09-20T14:41:04Z | CONTRIBUTOR | null | based on #11788
closes #6245
This PR allows to save wide dataframes to hdf. It will break forward compatibility, old versions of pandas will not be able to read hdfs from new versions.
The column is saved to a vlarray with object atomic. This is rather slow for very wide dfs but does not require any type checks.
One test fails because the saved column is not compressed but the compression level is checked for all nodes. I think this is fine but i wanted to consult with you before rewriting the test.
Two tests were added to check if a wide df can be saved and if it is appendable.
Please let me know what you think and if there is additional need for test 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/26135/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26135/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26135.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26135",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26135.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26135"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26136 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26136/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26136/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26136/events | https://github.com/pandas-dev/pandas/issues/26136 | 434,895,229 | MDU6SXNzdWU0MzQ4OTUyMjk= | 26,136 | Confusing "MergeError: incompatible merge keys [1] category and category, must be the same type" | {
"avatar_url": "https://avatars.githubusercontent.com/u/632858?v=4",
"events_url": "https://api.github.com/users/chrish42/events{/privacy}",
"followers_url": "https://api.github.com/users/chrish42/followers",
"following_url": "https://api.github.com/users/chrish42/following{/other_user}",
"gists_url": "https://api.github.com/users/chrish42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrish42",
"id": 632858,
"login": "chrish42",
"node_id": "MDQ6VXNlcjYzMjg1OA==",
"organizations_url": "https://api.github.com/users/chrish42/orgs",
"received_events_url": "https://api.github.com/users/chrish42/received_events",
"repos_url": "https://api.github.com/users/chrish42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrish42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrish42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrish42"
} | [
{
"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": "e11d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-18T18:14:32Z | 2019-05-01T21:48:01Z | 2019-05-01T21:48:01Z | CONTRIBUTOR | null | I'm using `pd.merges_asof()` to merge two dataframes together. The `by` keys are categoricals, but not equal, apparently (one has a few values more than the other). It took me a little bit to figure that out, however, because the error message for this was a bit confusing: "incompatible merge keys [1] category and category, must be the same type". It'd be nice if it was clearer. I can do the pull request, once we figure out how to make this better.
I see the following possible solutions:
1. Special-case the error message for dtypes that take parameters and so are not necessarily all equal. Something a bit like: "incompatible merge keys: both are category, but not equal ones" (Easiest solution.)
2. Make a nicer error message for categories, by digging a little bit into what makes them not equal. Something like "incompatible merge keys: both categories, but the left one has 3 levels more", or "but they have different levels: ..."
3. Change the `__str__` method for CategoricalDType to print something a bit more informative than "category". (No guarantee though that what we would print would always allow people to distinguish two not-equal categoricals as not equal.. unless we were to print out all the levels.)
Anything that sounds good 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/26136/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26136/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26137 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26137/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26137/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26137/events | https://github.com/pandas-dev/pandas/pull/26137 | 434,902,059 | MDExOlB1bGxSZXF1ZXN0MjcxNzkxODI2 | 26,137 | Deprecate SparseDataFrame and SparseSeries | {
"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": "009800",
"default": false,
"description": "Sparse Data Type",
"id": 49182326,
"name": "Sparse",
"node_id": "MDU6TGFiZWw0OTE4MjMyNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Sparse"
},
{
"color": "5319e7",
"default": false,
"description"... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-04-18T18:32:25Z | 2019-05-29T14:06:24Z | 2019-05-29T02:15:24Z | CONTRIBUTOR | null | Closes https://github.com/pandas-dev/pandas/issues/19239
This currently includes the changes from https://github.com/pandas-dev/pandas/pull/25682, which I think is mergeable.
I think this would be good to have for 0.25.0. I think it's close, but I may not have time to push this across the finish line. Anyone interested in finishing it off? | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26137/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26137/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26137.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26137",
"merged_at": "2019-05-29T02:15:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26137.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26137"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26138 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26138/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26138/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26138/events | https://github.com/pandas-dev/pandas/pull/26138 | 434,915,380 | MDExOlB1bGxSZXF1ZXN0MjcxODAyMTIz | 26,138 | Cython Unicode Method Cleanups | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-18T19:06:22Z | 2019-04-18T20:02:55Z | 2019-04-18T19:47:01Z | MEMBER | null | Removal of some items that should no longer be required after Py2 drop | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26138/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26138/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26138.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26138",
"merged_at": "2019-04-18T19:47:01Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26138.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26138"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26139 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26139/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26139/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26139/events | https://github.com/pandas-dev/pandas/issues/26139 | 434,962,941 | MDU6SXNzdWU0MzQ5NjI5NDE= | 26,139 | Doc for HDFStore compression unclear on what the default value of None does | {
"avatar_url": "https://avatars.githubusercontent.com/u/632858?v=4",
"events_url": "https://api.github.com/users/chrish42/events{/privacy}",
"followers_url": "https://api.github.com/users/chrish42/followers",
"following_url": "https://api.github.com/users/chrish42/following{/other_user}",
"gists_url": "https://api.github.com/users/chrish42/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/chrish42",
"id": 632858,
"login": "chrish42",
"node_id": "MDQ6VXNlcjYzMjg1OA==",
"organizations_url": "https://api.github.com/users/chrish42/orgs",
"received_events_url": "https://api.github.com/users/chrish42/received_events",
"repos_url": "https://api.github.com/users/chrish42/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/chrish42/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/chrish42/subscriptions",
"type": "User",
"url": "https://api.github.com/users/chrish42"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-04-18T21:16:32Z | 2019-04-21T10:52:32Z | 2019-04-21T10:52:32Z | CONTRIBUTOR | null | The doc for the `HDFStore` class mentions:
```
complevel : int, 0-9, default None
Specifies a compression level for data.
A value of 0 disables compression.
```
That doesn't actually answer the question of what compression level is used when the default (None) is used, though. Is None translated further down to 0? it turns out yes, but you have to dig in the code to actually figure that out. And it could as well have been translated eventually to any other value.
Two options:
1. Actually change the default in the `complevel` argument to be "0". (It's an immutable object, so it's fine as a default value for a function argument.)
2. Just adjust the doc in some way.
When the right solution is decided, I can do a pull request with it. 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/26139/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26139/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26140 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26140/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26140/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26140/events | https://github.com/pandas-dev/pandas/pull/26140 | 434,995,192 | MDExOlB1bGxSZXF1ZXN0MjcxODY0NzIx | 26,140 | BUG: update cython to fix segfault accessing __kwdefaults__ | {
"avatar_url": "https://avatars.githubusercontent.com/u/5341706?v=4",
"events_url": "https://api.github.com/users/jakebailey/events{/privacy}",
"followers_url": "https://api.github.com/users/jakebailey/followers",
"following_url": "https://api.github.com/users/jakebailey/following{/other_user}",
"gists_url": "https://api.github.com/users/jakebailey/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jakebailey",
"id": 5341706,
"login": "jakebailey",
"node_id": "MDQ6VXNlcjUzNDE3MDY=",
"organizations_url": "https://api.github.com/users/jakebailey/orgs",
"received_events_url": "https://api.github.com/users/jakebailey/received_events",
"repos_url": "https://api.github.com/users/jakebailey/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jakebailey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakebailey/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jakebailey"
} | [
{
"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": "d93f0b... | closed | false | null | [] | null | 7 | 2019-04-18T23:19:39Z | 2019-05-03T05:22:19Z | 2019-05-03T05:22:18Z | NONE | null | - [x] closes #26127
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
This ups the cython minimum version to fix bugs as seen in #26127. I've added a test which goes through the members of `_libs` to check that they don't segfault when accessed. If you manually install 0.28.2 and run the test, you'll see it segfault.
I'm not sure how to place this change in the "whatsnow", so I'd be happy if I could get some advice there (and anywhere else I've gone wrong, of course). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26140/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26140/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26140.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26140",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26140.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26140"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26141 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26141/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26141/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26141/events | https://github.com/pandas-dev/pandas/pull/26141 | 435,005,399 | MDExOlB1bGxSZXF1ZXN0MjcxODcyODU1 | 26,141 | Added example to docstring | {
"avatar_url": "https://avatars.githubusercontent.com/u/17144735?v=4",
"events_url": "https://api.github.com/users/ExSidius/events{/privacy}",
"followers_url": "https://api.github.com/users/ExSidius/followers",
"following_url": "https://api.github.com/users/ExSidius/following{/other_user}",
"gists_url": "https://api.github.com/users/ExSidius/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ExSidius",
"id": 17144735,
"login": "ExSidius",
"node_id": "MDQ6VXNlcjE3MTQ0NzM1",
"organizations_url": "https://api.github.com/users/ExSidius/orgs",
"received_events_url": "https://api.github.com/users/ExSidius/received_events",
"repos_url": "https://api.github.com/users/ExSidius/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ExSidius/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ExSidius/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ExSidius"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv, to_csv",
... | closed | false | null | [] | null | 11 | 2019-04-19T00:12:06Z | 2019-05-01T13:57:49Z | 2019-05-01T13:14:52Z | CONTRIBUTOR | null | - [X] closes #22055
- [x] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26141/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26141/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26141.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26141",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26141.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26141"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26142 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26142/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26142/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26142/events | https://github.com/pandas-dev/pandas/issues/26142 | 435,021,214 | MDU6SXNzdWU0MzUwMjEyMTQ= | 26,142 | dev-requirements missing 'gitpython' | {
"avatar_url": "https://avatars.githubusercontent.com/u/17144735?v=4",
"events_url": "https://api.github.com/users/ExSidius/events{/privacy}",
"followers_url": "https://api.github.com/users/ExSidius/followers",
"following_url": "https://api.github.com/users/ExSidius/following{/other_user}",
"gists_url": "https://api.github.com/users/ExSidius/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ExSidius",
"id": 17144735,
"login": "ExSidius",
"node_id": "MDQ6VXNlcjE3MTQ0NzM1",
"organizations_url": "https://api.github.com/users/ExSidius/orgs",
"received_events_url": "https://api.github.com/users/ExSidius/received_events",
"repos_url": "https://api.github.com/users/ExSidius/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ExSidius/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ExSidius/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ExSidius"
} | [] | closed | false | null | [] | null | 1 | 2019-04-19T01:54:41Z | 2019-04-19T02:30:28Z | 2019-04-19T02:30:28Z | CONTRIBUTOR | null | `python make html` fails without gitpython, which currently doesn't install from dev-requirements. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26142/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26142/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26143 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26143/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26143/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26143/events | https://github.com/pandas-dev/pandas/pull/26143 | 435,021,255 | MDExOlB1bGxSZXF1ZXN0MjcxODg0NjQ5 | 26,143 | Add gitpython to requirements | {
"avatar_url": "https://avatars.githubusercontent.com/u/17144735?v=4",
"events_url": "https://api.github.com/users/ExSidius/events{/privacy}",
"followers_url": "https://api.github.com/users/ExSidius/followers",
"following_url": "https://api.github.com/users/ExSidius/following{/other_user}",
"gists_url": "https://api.github.com/users/ExSidius/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ExSidius",
"id": 17144735,
"login": "ExSidius",
"node_id": "MDQ6VXNlcjE3MTQ0NzM1",
"organizations_url": "https://api.github.com/users/ExSidius/orgs",
"received_events_url": "https://api.github.com/users/ExSidius/received_events",
"repos_url": "https://api.github.com/users/ExSidius/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ExSidius/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ExSidius/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ExSidius"
} | [] | closed | false | null | [] | null | 6 | 2019-04-19T01:54:57Z | 2019-04-19T02:34:31Z | 2019-04-19T02:30:18Z | CONTRIBUTOR | null | - [X] closes #26142
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26143/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26143/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26143.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26143",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26143.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26143"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26144 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26144/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26144/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26144/events | https://github.com/pandas-dev/pandas/issues/26144 | 435,030,453 | MDU6SXNzdWU0MzUwMzA0NTM= | 26,144 | to_hdf5 with pd.Int32Dtype gives ValueError: cannot convert float NaN to integer OR IntegerArray not supported | {
"avatar_url": "https://avatars.githubusercontent.com/u/8008618?v=4",
"events_url": "https://api.github.com/users/NumesSanguis/events{/privacy}",
"followers_url": "https://api.github.com/users/NumesSanguis/followers",
"following_url": "https://api.github.com/users/NumesSanguis/following{/other_user}",
"gists_url": "https://api.github.com/users/NumesSanguis/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/NumesSanguis",
"id": 8008618,
"login": "NumesSanguis",
"node_id": "MDQ6VXNlcjgwMDg2MTg=",
"organizations_url": "https://api.github.com/users/NumesSanguis/orgs",
"received_events_url": "https://api.github.com/users/NumesSanguis/received_events",
"repos_url": "https://api.github.com/users/NumesSanguis/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/NumesSanguis/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/NumesSanguis/subscriptions",
"type": "User",
"url": "https://api.github.com/users/NumesSanguis"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf... | open | false | null | [] | null | 8 | 2019-04-19T02:50:11Z | 2021-07-02T05:29:31Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
# init dataframe with newly supported IntegerArray for missing values
d = {'col1': [1, 2, None]}
df = pd.DataFrame(data=d, dtype=pd.Int32Dtype())
df.dtypes
# Error: ValueError: cannot convert float NaN to integer
df.to_hdf("foo.h5", key='df', mode='w', format='table')
# Another error: TypeError: objects of type ``IntegerArray`` are not supported in this context, sorry; supported objects are: NumPy array, record or scalar; homogeneous list or tuple, integer, float, complex or bytes
df.to_hdf("foo.h5", key='df', mode='w') # , format='table'
# same error: TypeError: objects of type ``IntegerArray`` are not supported in this context, sorry; supported objects are: NumPy array, record or scalar; homogeneous list or tuple, integer, float, complex or bytes
with pd.HDFStore("bar.h5", 'a') as h5_pd:
h5_pd["spam"] = df
```
#### Problem description
Starting from version 0.24.0, pandas supports [`pandas.arrays.IntegerArray`](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.arrays.IntegerArray.html) to help deal with missing values (I'm aware it is still experimental).
However, when trying to store this dataframe in a HDF5 file, errors are thrown (2 different errors, depending on whether `format='table'` is set or not). See the code example comments.
#### Expected Output
An errorless creation of an HDF5 file containing a pandas DataFrame.
#### Observed Output
Either:
```
ValueError: cannot convert float NaN to integer
```
or
```
TypeError: objects of type ``IntegerArray`` are not supported in this context, sorry; supported objects are: NumPy array, record or scalar; homogeneous list or tuple, integer, float, complex or bytes
```
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.8.final.0
python-bits: 64
OS: Linux
OS-release: 4.15.0-47-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 19.0.3
setuptools: 40.8.0
Cython: None
numpy: 1.16.2
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.1.1
sphinx: None
patsy: None
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
#### Output of ``conda list``
<details><summary>Conda environment (CLICK ME)</summary>
```
# packages in conda environment:
#
# Name Version Build Channel
asn1crypto 0.24.0 py36_0
attrs 19.1.0 py_0 conda-forge
audioread 2.1.6 py36_0 conda-forge
backcall 0.1.0 py_0 conda-forge
blas 2.4 openblas conda-forge
bleach 3.1.0 py_0 conda-forge
blosc 1.15.0 hd408876_0
bokeh 1.1.0 py_0 bokeh
bzip2 1.0.6 h14c3975_1002 conda-forge
ca-certificates 2019.3.9 hecc5488_0 conda-forge
certifi 2019.3.9 py36_0 conda-forge
cffi 1.12.2 py36h2e261b9_1
chardet 3.0.4 py36_1
cryptography 2.6.1 py36h1ba5d50_0
cycler 0.10.0 py_1 conda-forge
dbus 1.13.2 h714fa37_1
decorator 4.4.0 py_0 conda-forge
defusedxml 0.5.0 py_1 conda-forge
entrypoints 0.3 py36_1000 conda-forge
expat 2.2.5 hf484d3e_1002 conda-forge
ffmpeg 4.1.1 h167e202_0 conda-forge
fontconfig 2.13.1 he4413a7_1000 conda-forge
freetype 2.10.0 he983fc9_0 conda-forge
futures-compat 1.0 py3_0
gettext 0.19.8.1 hc5be6a0_1002 conda-forge
glib 2.56.2 had28632_1001 conda-forge
gmp 6.1.2 hf484d3e_1000 conda-forge
gnutls 3.6.5 hd3a4fd2_1002 conda-forge
gst-plugins-base 1.14.0 hbbd80ab_1
gstreamer 1.14.0 hb453b48_1
h5py 2.9.0 py36h7918eee_0
hdf5 1.10.4 hb1b8bf9_0
holoviews 1.12.1 py_0 pyviz
icu 58.2 hf484d3e_1000 conda-forge
idna 2.8 py36_0
ipykernel 5.1.0 py36h24bf2e0_1002 conda-forge
ipython 7.1.1 py36h24bf2e0_1000 conda-forge
ipython_genutils 0.2.0 py_1 conda-forge
ipywidgets 7.4.2 py_0 conda-forge
jaconv 0.2.4 pypi_0 pypi
jedi 0.13.3 py36_0 conda-forge
jinja2 2.10 py_1 conda-forge
joblib 0.13.2 py_0 conda-forge
jpeg 9c h14c3975_1001 conda-forge
js2py 0.60 pypi_0 pypi
jsonschema 3.0.1 py36_0 conda-forge
jupyter 1.0.0 py_2 conda-forge
jupyter_client 5.2.4 py_3 conda-forge
jupyter_console 6.0.0 py_0 conda-forge
jupyter_core 4.4.0 py_0 conda-forge
kiwisolver 1.0.1 py36h6bb024c_1002 conda-forge
lame 3.100 h14c3975_1001 conda-forge
libblas 3.8.0 4_openblas conda-forge
libcblas 3.8.0 4_openblas conda-forge
libedit 3.1.20181209 hc058e9b_0
libffi 3.2.1 hd88cf55_4
libflac 1.3.1 hf484d3e_1002 conda-forge
libgcc-ng 8.2.0 hdf63c60_1
libgfortran 3.0.0 1 conda-forge
libgfortran-ng 7.3.0 hdf63c60_0
libiconv 1.15 h516909a_1005 conda-forge
liblapack 3.8.0 4_openblas conda-forge
liblapacke 3.8.0 4_openblas conda-forge
libogg 1.3.2 h14c3975_1001 conda-forge
libopenblas 0.3.3 h5a2b251_3
libpng 1.6.36 h84994c4_1000 conda-forge
librosa 0.6.3 py_0 conda-forge
libsndfile 1.0.28 hf484d3e_1000 conda-forge
libsodium 1.0.16 h14c3975_1001 conda-forge
libstdcxx-ng 8.2.0 hdf63c60_1
libtiff 4.0.10 h648cc4a_1001 conda-forge
libuuid 2.32.1 h14c3975_1000 conda-forge
libvorbis 1.3.5 h14c3975_1001 conda-forge
libxcb 1.13 h14c3975_1002 conda-forge
libxml2 2.9.8 h143f9aa_1005 conda-forge
llvmlite 0.26.0 py36hdbcaa40_1000 conda-forge
lzo 2.10 h49e0be7_2
markdown 3.0.1 py36_0
markupsafe 1.1.1 py36h14c3975_0 conda-forge
matplotlib 3.0.2 py36h8a2030e_1001 conda-forge
matplotlib-base 3.0.2 py36h167e16e_1001 conda-forge
mistune 0.8.4 py36h14c3975_1000 conda-forge
nbconvert 5.4.1 py_2 conda-forge
nbformat 4.4.0 py_1 conda-forge
ncurses 6.1 he6710b0_1
nettle 3.4.1 h1bed415_1002 conda-forge
nodejs 10.13.0 he6710b0_0
notebook 5.7.6 py36_0 conda-forge
numba 0.41.0 py36h637b7d7_1000 conda-forge
numexpr 2.6.9 py36h2ffa06c_0
numpy 1.16.2 py36h8b7e671_1 conda-forge
olefile 0.46 py_0 conda-forge
openblas 0.3.5 ha44fe06_0 conda-forge
openh264 1.8.0 hdbcaa40_1000 conda-forge
openssl 1.1.1b h14c3975_1 conda-forge
packaging 19.0 py_0 conda-forge
pandas 0.24.2 py36he6710b0_0
pandoc 2.7.1 0 conda-forge
pandocfilters 1.4.2 py_1 conda-forge
panel 0.4.0 py_0 pyviz
param 1.8.2 py_0 conda-forge
parso 0.3.4 py_0 conda-forge
pcre 8.43 he6710b0_0
pexpect 4.6.0 py36_1000 conda-forge
pickleshare 0.7.5 py36_1000 conda-forge
pillow 5.3.0 py36h00a061d_1000 conda-forge
pip 19.0.3 py36_0
plotly 3.7.0 py_0
prometheus_client 0.6.0 py_0 conda-forge
prompt_toolkit 2.0.9 py_0 conda-forge
pthread-stubs 0.4 h14c3975_1001 conda-forge
ptyprocess 0.6.0 py36_1000 conda-forge
pyasn1 0.4.5 pypi_0 pypi
pycparser 2.19 py36_0
pyct 0.4.6 py_0 pyviz
pyct-core 0.4.6 py_0 pyviz
pygments 2.3.1 py_0 conda-forge
pyjsparser 2.5.2 pypi_0 pypi
pyopenssl 19.0.0 py36_0
pyparsing 2.3.1 py_0 conda-forge
pyqt 5.6.0 py36h13b7fb3_1008 conda-forge
pyrsistent 0.14.11 py36h14c3975_0 conda-forge
pysmb 1.1.27 pypi_0 pypi
pysocks 1.6.8 py36_0
pysoundfile 0.10.2 pyh14c3975_1000 conda-forge
pytables 3.5.1 py36h71ec239_0
python 3.6.8 h0371630_0
python-dateutil 2.8.0 py_0 conda-forge
pytz 2018.9 py36_0
pyviz_comms 0.7.2 py_0 conda-forge
pyyaml 5.1 py36h14c3975_0 conda-forge
pyzmq 18.0.1 py36h0e1adb2_0 conda-forge
qt 5.6.3 h8bf5577_3
qtconsole 4.4.3 py_0 conda-forge
readline 7.0 h7b6447c_5
requests 2.21.0 py36_0
resampy 0.2.1 py_1 conda-forge
retrying 1.3.3 py36_2
scikit-learn 0.20.3 py36h22eb022_0
scipy 1.2.1 py36he2b7bc3_0
send2trash 1.5.0 py_0 conda-forge
setuptools 40.8.0 py36_0
sip 4.18.1 py36hf484d3e_1000 conda-forge
six 1.12.0 py36_1000 conda-forge
snappy 1.1.7 hbae5bb6_3
sqlite 3.27.2 h7b6447c_0
terminado 0.8.1 py36_1001 conda-forge
testpath 0.3.1 py36_0
tk 8.6.8 hbc83047_0
tornado 6.0.2 py36h516909a_0 conda-forge
traitlets 4.3.2 py36_1000 conda-forge
tzlocal 1.5.1 pypi_0 pypi
urllib3 1.24.1 py36_0
wcwidth 0.1.7 py_1 conda-forge
webencodings 0.5.1 py_1 conda-forge
wheel 0.33.1 py36_0
widgetsnbextension 3.4.2 py36_1000 conda-forge
x264 1!152.20180806 h14c3975_0 conda-forge
xlrd 1.2.0 py36_0
xorg-libxau 1.0.9 h14c3975_0 conda-forge
xorg-libxdmcp 1.1.3 h516909a_0 conda-forge
xz 5.2.4 h14c3975_4
yaml 0.1.7 h14c3975_1001 conda-forge
zeromq 4.2.5 hf484d3e_1006 conda-forge
zlib 1.2.11 h7b6447c_3
```
</details> | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26144/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26144/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26145 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26145/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26145/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26145/events | https://github.com/pandas-dev/pandas/issues/26145 | 435,037,405 | MDU6SXNzdWU0MzUwMzc0MDU= | 26,145 | to_excel column name can't output to excel | {
"avatar_url": "https://avatars.githubusercontent.com/u/48944742?v=4",
"events_url": "https://api.github.com/users/duo66/events{/privacy}",
"followers_url": "https://api.github.com/users/duo66/followers",
"following_url": "https://api.github.com/users/duo66/following{/other_user}",
"gists_url": "https://api.github.com/users/duo66/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/duo66",
"id": 48944742,
"login": "duo66",
"node_id": "MDQ6VXNlcjQ4OTQ0NzQy",
"organizations_url": "https://api.github.com/users/duo66/orgs",
"received_events_url": "https://api.github.com/users/duo66/received_events",
"repos_url": "https://api.github.com/users/duo66/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/duo66/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/duo66/subscriptions",
"type": "User",
"url": "https://api.github.com/users/duo66"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 2 | 2019-04-19T03:34:32Z | 2021-07-02T05:30:17Z | null | NONE | null | # DataFrame

# DataFrame.to_excel

# Output Excel File

### how output '大区'?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26145/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26145/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26146 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26146/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26146/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26146/events | https://github.com/pandas-dev/pandas/issues/26146 | 435,082,226 | MDU6SXNzdWU0MzUwODIyMjY= | 26,146 | Fix Type Annotation in pandas/core/accessor.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/22582828?v=4",
"events_url": "https://api.github.com/users/vaibhavhrt/events{/privacy}",
"followers_url": "https://api.github.com/users/vaibhavhrt/followers",
"following_url": "https://api.github.com/users/vaibhavhrt/following{/other_user}",
"gists_url": "https://api.github.com/users/vaibhavhrt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vaibhavhrt",
"id": 22582828,
"login": "vaibhavhrt",
"node_id": "MDQ6VXNlcjIyNTgyODI4",
"organizations_url": "https://api.github.com/users/vaibhavhrt/orgs",
"received_events_url": "https://api.github.com/users/vaibhavhrt/received_events",
"repos_url": "https://api.github.com/users/vaibhavhrt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vaibhavhrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vaibhavhrt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vaibhavhrt"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-04-19T07:38:23Z | 2019-04-21T16:04:47Z | 2019-04-21T16:04:47Z | CONTRIBUTOR | null | Part of #25882
Current errors are:
pandas\core\accessor.py:14: error: Need type annotation for '_accessors'
PR coming soon | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26146/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26146/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26147 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26147/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26147/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26147/events | https://github.com/pandas-dev/pandas/pull/26147 | 435,087,588 | MDExOlB1bGxSZXF1ZXN0MjcxOTMzNDc1 | 26,147 | Fix Type Annotation in pandas.core.accessor | {
"avatar_url": "https://avatars.githubusercontent.com/u/22582828?v=4",
"events_url": "https://api.github.com/users/vaibhavhrt/events{/privacy}",
"followers_url": "https://api.github.com/users/vaibhavhrt/followers",
"following_url": "https://api.github.com/users/vaibhavhrt/following{/other_user}",
"gists_url": "https://api.github.com/users/vaibhavhrt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vaibhavhrt",
"id": 22582828,
"login": "vaibhavhrt",
"node_id": "MDQ6VXNlcjIyNTgyODI4",
"organizations_url": "https://api.github.com/users/vaibhavhrt/orgs",
"received_events_url": "https://api.github.com/users/vaibhavhrt/received_events",
"repos_url": "https://api.github.com/users/vaibhavhrt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vaibhavhrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vaibhavhrt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vaibhavhrt"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 8 | 2019-04-19T07:59:17Z | 2019-04-21T16:56:39Z | 2019-04-21T16:04:47Z | CONTRIBUTOR | null | - [x] closes #26146
- [x] tests passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26147/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26147/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26147.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26147",
"merged_at": "2019-04-21T16:04:47Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26147.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26147"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26148 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26148/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26148/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26148/events | https://github.com/pandas-dev/pandas/issues/26148 | 435,095,450 | MDU6SXNzdWU0MzUwOTU0NTA= | 26,148 | Fix Type Annotation in pandas/core/api.py | {
"avatar_url": "https://avatars.githubusercontent.com/u/22582828?v=4",
"events_url": "https://api.github.com/users/vaibhavhrt/events{/privacy}",
"followers_url": "https://api.github.com/users/vaibhavhrt/followers",
"following_url": "https://api.github.com/users/vaibhavhrt/following{/other_user}",
"gists_url": "https://api.github.com/users/vaibhavhrt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vaibhavhrt",
"id": 22582828,
"login": "vaibhavhrt",
"node_id": "MDQ6VXNlcjIyNTgyODI4",
"organizations_url": "https://api.github.com/users/vaibhavhrt/orgs",
"received_events_url": "https://api.github.com/users/vaibhavhrt/received_events",
"repos_url": "https://api.github.com/users/vaibhavhrt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vaibhavhrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vaibhavhrt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vaibhavhrt"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-04-19T08:27:37Z | 2019-05-12T14:52:12Z | 2019-05-12T14:52:12Z | CONTRIBUTOR | null | Part of #25882
Current errors are:
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'Int8Dtype'
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'Int16Dtype'
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'Int32Dtype'
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'Int64Dtype'
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'UInt8Dtype'
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'UInt16Dtype'
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'UInt32Dtype'
pandas\core\api.py:5: error: Module 'pandas.core.arrays.integer' has no attribute 'UInt64Dtype'
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26148/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26148/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26149 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26149/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26149/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26149/events | https://github.com/pandas-dev/pandas/issues/26149 | 435,125,095 | MDU6SXNzdWU0MzUxMjUwOTU= | 26,149 | Option to give service account in case of Google buckets | {
"avatar_url": "https://avatars.githubusercontent.com/u/16288331?v=4",
"events_url": "https://api.github.com/users/prateek2408/events{/privacy}",
"followers_url": "https://api.github.com/users/prateek2408/followers",
"following_url": "https://api.github.com/users/prateek2408/following{/other_user}",
"gists_url": "https://api.github.com/users/prateek2408/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/prateek2408",
"id": 16288331,
"login": "prateek2408",
"node_id": "MDQ6VXNlcjE2Mjg4MzMx",
"organizations_url": "https://api.github.com/users/prateek2408/orgs",
"received_events_url": "https://api.github.com/users/prateek2408/received_events",
"repos_url": "https://api.github.com/users/prateek2408/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/prateek2408/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/prateek2408/subscriptions",
"type": "User",
"url": "https://api.github.com/users/prateek2408"
} | [
{
"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": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 3 | 2019-04-19T10:07:11Z | 2019-04-19T15:53:00Z | 2019-04-19T15:53:00Z | NONE | null | #### Code Sample, a copy-pastable example if possible
Parameters like project, token should be taken and added if provided in case of GCP buckets.
```
def get_filepath_or_buffer(filepath_or_buffer, encoding=None,
compression=None, mode=None, project=None, token=None):
if mode is None:
mode = 'rb'
fs = gcsfs.GCSFileSystem(project=project, token=token)
filepath_or_buffer = fs.open(
filepath_or_buffer, mode) # type: gcsfs.GCSFile
return filepath_or_buffer, None, compression, True
```
#### Problem description
Currently if you do a read_csv in pandas with a google bucket URL like 'pd.read_csv('gs://abc/def.csv')', there is no way you can provide service account or token details for authorization.
The library that supports reading from gcp buckets [here](https://github.com/pandas-dev/pandas/blob/master/pandas/io/gcs.py) should take **'token'** parameter as well, as shown above
#### Expected Output
#### Output of ``pd.show_versions()``
[paste the output of ``pd.show_versions()`` here below this line]
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Linux
OS-release: 3.10.0-862.11.6.el7.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: 3.3.1
pip: 19.0.3
setuptools: 41.0.0
Cython: 0.27.3
numpy: 1.16.2
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.4.0
sphinx: 1.6.5
patsy: None
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: 4.7.1
html5lib: None
sqlalchemy: 1.2.0
pymysql: None
psycopg2: 2.7.3.2 (dt dec pq3 ext lo64)
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: 0.2.1
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26149/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26149/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26150 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26150/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26150/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26150/events | https://github.com/pandas-dev/pandas/issues/26150 | 435,167,375 | MDU6SXNzdWU0MzUxNjczNzU= | 26,150 | Weird performance characteristics of resampled quantile() function (100 times slower) | {
"avatar_url": "https://avatars.githubusercontent.com/u/4216919?v=4",
"events_url": "https://api.github.com/users/joelrich/events{/privacy}",
"followers_url": "https://api.github.com/users/joelrich/followers",
"following_url": "https://api.github.com/users/joelrich/following{/other_user}",
"gists_url": "https://api.github.com/users/joelrich/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/joelrich",
"id": 4216919,
"login": "joelrich",
"node_id": "MDQ6VXNlcjQyMTY5MTk=",
"organizations_url": "https://api.github.com/users/joelrich/orgs",
"received_events_url": "https://api.github.com/users/joelrich/received_events",
"repos_url": "https://api.github.com/users/joelrich/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/joelrich/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/joelrich/subscriptions",
"type": "User",
"url": "https://api.github.com/users/joelrich"
} | [
{
"color": "a10c02",
"default": false,
"description": "Memory or execution speed performance",
"id": 8935311,
"name": "Performance",
"node_id": "MDU6TGFiZWw4OTM1MzEx",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Performance"
},
{
"color": "207de5",
"default"... | open | false | null | [] | null | 6 | 2019-04-19T12:51:14Z | 2019-10-22T15:48:21Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
from time import time
print("Pandas version:", pd.__version__)
print("Numpy version:", np.__version__)
index = pd.date_range("2016-01-01", periods=int(1e7), freq="ms")
df = pd.DataFrame(np.random.rand(len(index)), columns=["column"], index=index)
print()
print("Median")
start = time()
df.resample("1min").median()
print("df.resample.median", time() - start)
start = time()
df.column.resample("1min").median()
print("df.column.resample.median", time() - start)
start = time()
df.resample("1min").column.median()
print("df.resample.column.median", time() - start)
start = time()
df.resample("1min").apply(lambda x: np.median(x))
print("df.resample.apply np.median", time() - start)
start = time()
df.column.resample("1min").apply(lambda x: np.median(x))
print("df.column.resample.apply np.median", time() - start)
start = time()
df.column.resample("1min").apply(lambda x: x.median())
print("df.column.resample.apply pd.median", time() - start)
start = time()
df.resample("1min").column.apply(lambda x: np.median(x))
print("df.resample.column.apply np.median", time() - start)
start = time()
df.resample("1min").column.apply(lambda x: x.median())
print("df.resample.column.apply pd.median", time() - start)
print()
print("Quantile")
start = time()
df.resample("1min").quantile(0.25)
print("df.resample.quantile", time() - start)
start = time()
df.column.resample("1min").quantile(0.25)
print("df.column.resample.quantile", time() - start)
start = time()
df.resample("1min").column.quantile(0.25)
print("df.resample.column.quantile", time() - start)
start = time()
df.resample("1min").apply(lambda x: np.quantile(x, 0.25))
print("df.resample.apply np.quantile", time() - start)
start = time()
df.resample("1min").apply(lambda x: x.quantile(0.25))
print("df.resample.apply pd.quantile", time() - start)
start = time()
df.column.resample("1min").apply(lambda x: np.quantile(x, 0.25))
print("df.column.resample.apply np.quantile", time() - start)
start = time()
df.resample("1min").column.apply(lambda x: x.quantile(0.25))
print("df.resample.column.apply pd.quantile", time() - start)
```
Output:
```
Pandas version: 0.24.2
Numpy version: 1.16.2
Median
df.resample.median 0.5927023887634277
df.column.resample.median 0.5536832809448242
df.resample.column.median 0.5364699363708496
df.resample.apply np.median 0.1465294361114502
df.column.resample.apply np.median 0.14081549644470215
df.column.resample.apply pd.median 0.19739317893981934
df.resample.column.apply np.median 0.704085111618042
df.resample.column.apply pd.median 0.7553591728210449
Quantile
df.resample.quantile 0.8943967819213867
df.column.resample.quantile 16.76218605041504
df.resample.column.quantile 16.512025117874146
df.resample.apply np.quantile 0.15454792976379395
df.resample.apply pd.quantile 0.2752718925476074
df.column.resample.apply np.quantile 0.1515665054321289
df.resample.column.apply pd.quantile 0.8622317314147949
```
#### Problem description
I have noticed that `quantile()` is sometimes extremely slow even though `median()` (which should have a similar run time) is not. While debugging the behaviour, I have found the following two problems:
1) apply + numpy is significantly faster than the corresponding pandas functions. This is surprising since I would have expected that the pandas operations avoid the overhead of apply().
2) If you perform `quantile()` on a series instead of a dataframe, then the operation is much slower. In the example above, it is 100 times slower than the fastest equivalent.
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-17134-Microsoft
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: C.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 19.0.2
setuptools: 40.8.0
Cython: None
numpy: 1.16.2
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.4.0
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2018.9
blosc: None
bottleneck: None
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.0.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: 1.3.1
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26150/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26150/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26151 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26151/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26151/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26151/events | https://github.com/pandas-dev/pandas/issues/26151 | 435,168,259 | MDU6SXNzdWU0MzUxNjgyNTk= | 26,151 | pandas.read_csv index=Flase not working | {
"avatar_url": "https://avatars.githubusercontent.com/u/45975685?v=4",
"events_url": "https://api.github.com/users/Zhavi221/events{/privacy}",
"followers_url": "https://api.github.com/users/Zhavi221/followers",
"following_url": "https://api.github.com/users/Zhavi221/following{/other_user}",
"gists_url": "https://api.github.com/users/Zhavi221/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Zhavi221",
"id": 45975685,
"login": "Zhavi221",
"node_id": "MDQ6VXNlcjQ1OTc1Njg1",
"organizations_url": "https://api.github.com/users/Zhavi221/orgs",
"received_events_url": "https://api.github.com/users/Zhavi221/received_events",
"repos_url": "https://api.github.com/users/Zhavi221/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Zhavi221/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Zhavi221/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Zhavi221"
} | [] | closed | false | null | [] | null | 1 | 2019-04-19T12:54:39Z | 2019-04-19T12:57:56Z | 2019-04-19T12:57:56Z | NONE | null | Trying to erase the first collum in my table, the index collum.
```python
df = pd.read_csv(DBPath, index=False)
db_table = df.head(891).to_html(escape=False)
fig, ax = plt.subplots()
df.groupby('Pclass')['Survived'].aggregate(lambda x: x.sum() / len(x)).plot(kind='bar')
encoded = fig_to_base64(fig)
plot_img = '<img src="data:image/png;base64, {}">'.format(encoded.decode('utf-8'))
```
DBPath is predefiend so there is no need to worry about that.

see the first collum, how do I get rid of that?
Thanks in advance. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26151/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26151/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26152 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26152/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26152/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26152/events | https://github.com/pandas-dev/pandas/pull/26152 | 435,239,483 | MDExOlB1bGxSZXF1ZXN0MjcyMDQyNTIy | 26,152 | Fix Bug with NA value in Grouping for Groupby.nth | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-04-19T16:54:38Z | 2020-01-16T00:34:07Z | 2019-05-05T22:20:01Z | MEMBER | null | - [X] closes #26011
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] whatsnew entry
Would ideally like to combine first, nth and last implementations. Consider this a precursor
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26152/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26152/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26152.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26152",
"merged_at": "2019-05-05T22:20:00Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26152.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26152"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26153 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26153/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26153/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26153/events | https://github.com/pandas-dev/pandas/pull/26153 | 435,246,500 | MDExOlB1bGxSZXF1ZXN0MjcyMDQ4MDcz | 26,153 | Removed NDFrameSplitter class | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "207de5",
"default": false,
"description": null,
"id": ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-19T17:19:29Z | 2019-04-19T20:33:27Z | 2019-04-19T19:48:59Z | MEMBER | null | More GroupBy cleanup post Panel removal
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26153/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26153/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26153.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26153",
"merged_at": "2019-04-19T19:48:59Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26153.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26153"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26154 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26154/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26154/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26154/events | https://github.com/pandas-dev/pandas/issues/26154 | 435,247,410 | MDU6SXNzdWU0MzUyNDc0MTA= | 26,154 | Nlargest on boolean return False first | {
"avatar_url": "https://avatars.githubusercontent.com/u/17848620?v=4",
"events_url": "https://api.github.com/users/Wirg/events{/privacy}",
"followers_url": "https://api.github.com/users/Wirg/followers",
"following_url": "https://api.github.com/users/Wirg/following{/other_user}",
"gists_url": "https://api.github.com/users/Wirg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Wirg",
"id": 17848620,
"login": "Wirg",
"node_id": "MDQ6VXNlcjE3ODQ4NjIw",
"organizations_url": "https://api.github.com/users/Wirg/orgs",
"received_events_url": "https://api.github.com/users/Wirg/received_events",
"repos_url": "https://api.github.com/users/Wirg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Wirg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Wirg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Wirg"
} | [
{
"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": "Non-arithmetic algos: va... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-04-19T17:23:14Z | 2019-04-23T12:12:28Z | 2019-04-23T12:12:28Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
pd.Series([True, False]).nlargest(1)
```
> 1 False
> dtype: bool
#### Problem description
If you cast this to any other type, you will have the opposite and expected order.
More generally in python `True > False`. You still have the same order everywhere in pandas.
```python
df = pd.DataFrame({'True': True, 'False': [False] * 2})
df['True'] > df['False']
```
The result is misleading and can easily lead to a debugging process.
- [X] Check for duplicate
- [X] Pandas 0.24.2
#### Expected Output
> 1 True
> dtype: bool
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.7.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-17763-Microsoft
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: C.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.2
pytest: None
pip: 9.0.1
setuptools: 40.6.3
Cython: 0.26.1
numpy: 1.16.2
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: 0.5.0
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: 2.5.8
xlrd: None
xlwt: None
xlsxwriter: 1.1.2
lxml.etree: 4.2.5
bs4: None
html5lib: 0.999999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26154/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26154/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26155 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26155/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26155/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26155/events | https://github.com/pandas-dev/pandas/pull/26155 | 435,342,167 | MDExOlB1bGxSZXF1ZXN0MjcyMTIyNTA3 | 26,155 | BUG: Raise KeyError when indexing a Series with MultiIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/40122794?v=4",
"events_url": "https://api.github.com/users/ryanreh99/events{/privacy}",
"followers_url": "https://api.github.com/users/ryanreh99/followers",
"following_url": "https://api.github.com/users/ryanreh99/following{/other_user}",
"gists_url": "https://api.github.com/users/ryanreh99/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ryanreh99",
"id": 40122794,
"login": "ryanreh99",
"node_id": "MDQ6VXNlcjQwMTIyNzk0",
"organizations_url": "https://api.github.com/users/ryanreh99/orgs",
"received_events_url": "https://api.github.com/users/ryanreh99/received_events",
"repos_url": "https://api.github.com/users/ryanreh99/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ryanreh99/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ryanreh99/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ryanreh99"
} | [
{
"color": "ffa0ff",
"default": false,
"description": "Incorrect or improved errors from pandas",
"id": 42670965,
"name": "Error Reporting",
"node_id": "MDU6TGFiZWw0MjY3MDk2NQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Error%20Reporting"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-04-20T01:20:03Z | 2019-04-26T08:30:02Z | 2019-04-26T01:12:43Z | CONTRIBUTOR | null | - [x] closes #14885
- [x] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26155/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26155/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26155.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26155",
"merged_at": "2019-04-26T01:12:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26155.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26155"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26156 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26156/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26156/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26156/events | https://github.com/pandas-dev/pandas/issues/26156 | 435,345,420 | MDU6SXNzdWU0MzUzNDU0MjA= | 26,156 | GroupbyRolling aggregate error introduced by bottleneck | {
"avatar_url": "https://avatars.githubusercontent.com/u/8158673?v=4",
"events_url": "https://api.github.com/users/swanderz/events{/privacy}",
"followers_url": "https://api.github.com/users/swanderz/followers",
"following_url": "https://api.github.com/users/swanderz/following{/other_user}",
"gists_url": "https://api.github.com/users/swanderz/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/swanderz",
"id": 8158673,
"login": "swanderz",
"node_id": "MDQ6VXNlcjgxNTg2NzM=",
"organizations_url": "https://api.github.com/users/swanderz/orgs",
"received_events_url": "https://api.github.com/users/swanderz/received_events",
"repos_url": "https://api.github.com/users/swanderz/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/swanderz/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/swanderz/subscriptions",
"type": "User",
"url": "https://api.github.com/users/swanderz"
} | [
{
"color": "eb6420",
"default": false,
"description": "Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff",
"id": 57296398,
"name": "Algos",
"node_id": "MDU6TGFiZWw1NzI5NjM5OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Algos"
},
{
... | closed | false | null | [] | null | 11 | 2019-04-20T02:05:06Z | 2019-04-21T00:06:32Z | 2019-04-20T14:48:07Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
df = pd.read_json('{"Month":{"0":"2018-01-01","1":"2018-02-01","2":"2018-03-01","3":"2018-04-01","4":"2018-05-01","5":"2018-01-01","6":"2018-02-01","7":"2018-03-01","8":"2018-04-01","9":"2018-05-01","10":"2018-01-01","11":"2018-02-01","12":"2018-03-01","13":"2018-04-01","14":"2018-05-01"},"Person":{"0":"A","1":"A","2":"A","3":"A","4":"A","5":"B","6":"B","7":"B","8":"B","9":"B","10":"C","11":"C","12":"C","13":"C","14":"C"},"Foo":{"0":2,"1":3,"2":4,"3":4,"4":3,"5":10,"6":8,"7":6,"8":4,"9":8,"10":5,"11":6,"12":5,"13":6,"14":5},"Bar":{"0":10,"1":30,"2":5,"3":40,"4":20,"5":80,"6":70,"7":60,"8":50,"9":40,"10":50,"11":50,"12":50,"13":50,"14":50}}'
, convert_dates = ['Month'])
df_rolls = (df
.sort_values(by=['Month', 'Person'], ascending=True)
.set_index(['Month'])
.groupby(['Person'])
.rolling(3, min_periods=3)
)
```
this works without bottleneck installed but throws this error: `# AttributeError: 'float' object has no attribute 'round'`
```python
df_rolls.agg([lambda x: x.mean().round(4])
```
#### Problem description
my intention is to compute rolling a rolling mean and sum on multiple columns at once (see below). I was using agg because it allows for multiple functions at once.
```python
df_rolls.agg([MeanRound, 'sum'])
```
#### Expected Output
```python
df_rolls.agg([MeanRound])
```

```python
df_rolls.agg([MeanRound, 'sum'])
```
I was able get a workaround with apply (even though `.transform()` isn't implemented for `RollingGroupby`?)
```
df_rolls.apply(MeanRound, raw = True)
```

#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
before bottleneck
```
INSTALLED VERSIONS
------------------
commit: d04fe2a3f27f84b91e4df800cd8b0836bd8b0dfc
python: 3.6.7.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.1
pytest: 4.4.1
pip: 18.1
setuptools: 40.6.2
Cython: 0.29
numpy: 1.14.6
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: None
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: 2.6.8
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
```
after bottleneck
```
------------------
commit: d04fe2a3f27f84b91e4df800cd8b0836bd8b0dfc
python: 3.6.7.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: None.None
pandas: 0.24.1
pytest: 4.4.1
pip: 18.1
setuptools: 40.6.2
Cython: 0.29
numpy: 1.14.6
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.2.0
sphinx: None
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: 1.2.1
tables: None
numexpr: 2.6.8
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
```
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26156/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26156/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26157 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26157/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26157/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26157/events | https://github.com/pandas-dev/pandas/pull/26157 | 435,354,518 | MDExOlB1bGxSZXF1ZXN0MjcyMTMwMDAz | 26,157 | BUG: Series.nlargest thinks True < False | {
"avatar_url": "https://avatars.githubusercontent.com/u/10072033?v=4",
"events_url": "https://api.github.com/users/swyoon/events{/privacy}",
"followers_url": "https://api.github.com/users/swyoon/followers",
"following_url": "https://api.github.com/users/swyoon/following{/other_user}",
"gists_url": "https://api.github.com/users/swyoon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/swyoon",
"id": 10072033,
"login": "swyoon",
"node_id": "MDQ6VXNlcjEwMDcyMDMz",
"organizations_url": "https://api.github.com/users/swyoon/orgs",
"received_events_url": "https://api.github.com/users/swyoon/received_events",
"repos_url": "https://api.github.com/users/swyoon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/swyoon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/swyoon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/swyoon"
} | [
{
"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": "Non-arithmetic algos: va... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-04-20T04:10:14Z | 2019-04-23T12:12:32Z | 2019-04-23T12:12:28Z | CONTRIBUTOR | null | - use `1-arr` instead of `-arr` when sorting a boolean array casted to uint
- [x] closes #26154
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26157/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26157/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26157.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26157",
"merged_at": "2019-04-23T12:12:28Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26157.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26157"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26158 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26158/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26158/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26158/events | https://github.com/pandas-dev/pandas/pull/26158 | 435,357,894 | MDExOlB1bGxSZXF1ZXN0MjcyMTMyMjY2 | 26,158 | GH26139, DOC: Explicit statement of default complevel for HDFStore | {
"avatar_url": "https://avatars.githubusercontent.com/u/10072033?v=4",
"events_url": "https://api.github.com/users/swyoon/events{/privacy}",
"followers_url": "https://api.github.com/users/swyoon/followers",
"following_url": "https://api.github.com/users/swyoon/following{/other_user}",
"gists_url": "https://api.github.com/users/swyoon/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/swyoon",
"id": 10072033,
"login": "swyoon",
"node_id": "MDQ6VXNlcjEwMDcyMDMz",
"organizations_url": "https://api.github.com/users/swyoon/orgs",
"received_events_url": "https://api.github.com/users/swyoon/received_events",
"repos_url": "https://api.github.com/users/swyoon/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/swyoon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/swyoon/subscriptions",
"type": "User",
"url": "https://api.github.com/users/swyoon"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "5319e7",
"default": false,
"description": "read_hdf, HDFStore",
... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-04-20T05:07:41Z | 2019-04-22T10:32:07Z | 2019-04-21T10:52:32Z | CONTRIBUTOR | null | State what `None` complevel in `HDFStore` means explicitly.
- [x] closes #26139
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26158/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26158/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26158.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26158",
"merged_at": "2019-04-21T10:52:32Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26158.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26158"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26159 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26159/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26159/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26159/events | https://github.com/pandas-dev/pandas/pull/26159 | 435,357,915 | MDExOlB1bGxSZXF1ZXN0MjcyMTMyMjg0 | 26,159 | CLN: replace %s syntax with .format in pandas.core.indexes | {
"avatar_url": "https://avatars.githubusercontent.com/u/10672804?v=4",
"events_url": "https://api.github.com/users/makeajourney/events{/privacy}",
"followers_url": "https://api.github.com/users/makeajourney/followers",
"following_url": "https://api.github.com/users/makeajourney/following{/other_user}",
"gists_url": "https://api.github.com/users/makeajourney/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/makeajourney",
"id": 10672804,
"login": "makeajourney",
"node_id": "MDQ6VXNlcjEwNjcyODA0",
"organizations_url": "https://api.github.com/users/makeajourney/orgs",
"received_events_url": "https://api.github.com/users/makeajourney/received_events",
"repos_url": "https://api.github.com/users/makeajourney/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/makeajourney/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/makeajourney/subscriptions",
"type": "User",
"url": "https://api.github.com/users/makeajourney"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | null | 5 | 2019-04-20T05:08:06Z | 2019-05-07T01:50:18Z | 2019-05-07T01:50:18Z | CONTRIBUTOR | null | progress towards #16130
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26159/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26159/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26159.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26159",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26159.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26159"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26160 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26160/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26160/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26160/events | https://github.com/pandas-dev/pandas/issues/26160 | 435,365,727 | MDU6SXNzdWU0MzUzNjU3Mjc= | 26,160 | list of day-light savings days | {
"avatar_url": "https://avatars.githubusercontent.com/u/17816393?v=4",
"events_url": "https://api.github.com/users/gmohandas/events{/privacy}",
"followers_url": "https://api.github.com/users/gmohandas/followers",
"following_url": "https://api.github.com/users/gmohandas/following{/other_user}",
"gists_url": "https://api.github.com/users/gmohandas/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gmohandas",
"id": 17816393,
"login": "gmohandas",
"node_id": "MDQ6VXNlcjE3ODE2Mzkz",
"organizations_url": "https://api.github.com/users/gmohandas/orgs",
"received_events_url": "https://api.github.com/users/gmohandas/received_events",
"repos_url": "https://api.github.com/users/gmohandas/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gmohandas/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gmohandas/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gmohandas"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "AFEEEE",
"default": false,
"description": null,
... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 3 | 2019-04-20T07:16:24Z | 2019-04-20T14:21:47Z | 2019-04-20T14:21:09Z | NONE | null | Would it be useful to add a feature that returns a list of days within a given time interval where the clock changes due to daylight savings? Personally, I've had occasion to find such days/dates as part of my work. I do not know of a one-shot way with which to do so in pandas at the moment. I'd be happy to contribute this functionality as an enhancement if there is some interest. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26160/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26160/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26161 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26161/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26161/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26161/events | https://github.com/pandas-dev/pandas/pull/26161 | 435,406,375 | MDExOlB1bGxSZXF1ZXN0MjcyMTU2NzUz | 26,161 | TST: parameterize indexes base test to introspect ufuncs fails on numpy_dev | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "C4A000",
"default": false,
"description": "pandas testing functions or related to the test suite",
"id": 127685,
"name": "Testing",
"node_id": "MDU6TGFiZWwxMjc2ODU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Testing"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-04-20T14:38:53Z | 2019-04-20T16:45:59Z | 2019-04-20T16:43:43Z | 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/26161/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26161/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26161.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26161",
"merged_at": "2019-04-20T16:43:42Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26161.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26161"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/26162 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26162/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26162/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26162/events | https://github.com/pandas-dev/pandas/pull/26162 | 435,419,931 | MDExOlB1bGxSZXF1ZXN0MjcyMTY1MzI0 | 26,162 | BUG: groupby ffill adds labels as extra column (#21521) | {
"avatar_url": "https://avatars.githubusercontent.com/u/7279321?v=4",
"events_url": "https://api.github.com/users/adbull/events{/privacy}",
"followers_url": "https://api.github.com/users/adbull/followers",
"following_url": "https://api.github.com/users/adbull/following{/other_user}",
"gists_url": "https://api.github.com/users/adbull/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/adbull",
"id": 7279321,
"login": "adbull",
"node_id": "MDQ6VXNlcjcyNzkzMjE=",
"organizations_url": "https://api.github.com/users/adbull/orgs",
"received_events_url": "https://api.github.com/users/adbull/received_events",
"repos_url": "https://api.github.com/users/adbull/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/adbull/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adbull/subscriptions",
"type": "User",
"url": "https://api.github.com/users/adbull"
} | [
{
"color": "729FCF",
"default": false,
"description": null,
"id": 233160,
"name": "Groupby",
"node_id": "MDU6TGFiZWwyMzMxNjA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Groupby"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT,... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 15 | 2019-04-20T17:10:04Z | 2019-05-15T19:02:34Z | 2019-05-15T01:41:43Z | CONTRIBUTOR | null | - [x] closes #21521
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26162/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26162/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26162.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26162",
"merged_at": "2019-05-15T01:41:43Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26162.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26162"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26163 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26163/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26163/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26163/events | https://github.com/pandas-dev/pandas/pull/26163 | 435,420,822 | MDExOlB1bGxSZXF1ZXN0MjcyMTY1OTA2 | 26,163 | TST: add strict=False; xref #26069 | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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"
},
{
"color": "5319e7",
"default": false,
"description": ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-04-20T17:21:20Z | 2019-04-20T18:22:42Z | 2019-04-20T18:20:12Z | CONTRIBUTOR | null | xref #26069 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26163/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26163/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26163.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26163",
"merged_at": "2019-04-20T18:20:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26163.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26163"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26164 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26164/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26164/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26164/events | https://github.com/pandas-dev/pandas/pull/26164 | 435,423,709 | MDExOlB1bGxSZXF1ZXN0MjcyMTY3ODQx | 26,164 | CLN: remove util._doctools._WritableDoc | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-04-20T17:56:51Z | 2019-04-20T18:45:52Z | 2019-04-20T18:44:50Z | CONTRIBUTOR | null | - [x] xref #25725
Removes the metaclass ``_WritableDoc`` from the code base. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26164/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26164/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26164.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26164",
"merged_at": "2019-04-20T18:44:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26164.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26164"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26165 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26165/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26165/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26165/events | https://github.com/pandas-dev/pandas/pull/26165 | 435,440,441 | MDExOlB1bGxSZXF1ZXN0MjcyMTc2ODc5 | 26,165 | CLN: remove compat.add_metaclass | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-04-20T21:00:25Z | 2019-04-21T16:31:42Z | 2019-04-21T15:50:51Z | CONTRIBUTOR | null | - [x] xref #25725
This removes the ``compat.add_metaclass`` function from the code base and replaces it with a metaclass parameter in class instation.
I don't understand why ``ExcelWriter`` needs to use a abc.ABCMeta metaclass, as the class is being used directly in the code base and I thought abstract classes couldn't be instantiated, but needed subclassing. I've kept abc.ABCMeta metaclass in ``ExcelWriter``, but would appreciate advice. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26165/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26165/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26165.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26165",
"merged_at": "2019-04-21T15:50:50Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26165.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26165"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26166 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26166/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26166/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26166/events | https://github.com/pandas-dev/pandas/pull/26166 | 435,441,904 | MDExOlB1bGxSZXF1ZXN0MjcyMTc3NjA5 | 26,166 | CLN: remove abc.abstractproperty from code base | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-20T21:15:28Z | 2019-04-21T16:31:32Z | 2019-04-21T15:54:27Z | CONTRIBUTOR | null | - [x] xref #25725
- [x] xref #26165
While doing #26165 I discovered some uses of ``abc.abstractproperty`` in the codebase. This propery was deprecated in Python 3.3 and superseeded by using ``abc.abstractmethod`` and ``property`` together instead (see [python abc.abstractproperty docs](https://docs.python.org/3.7/library/abc.html#abc.abstractproperty)). I've therefore removed the uses of ``abc.abstractproperty`` from the code base.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26166/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26166/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26166.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26166",
"merged_at": "2019-04-21T15:54:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26166.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26166"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26167 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26167/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26167/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26167/events | https://github.com/pandas-dev/pandas/pull/26167 | 435,447,290 | MDExOlB1bGxSZXF1ZXN0MjcyMTgwMDk0 | 26,167 | BUG: DataFrame/Series constructor with tz aware data and datetime64[ns] dtype converts to naive | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"color": "5319e7",
"default": false,
"description": "Timezone data dtype",
"id": 60458168,
"name": "Timezones",
"node_id": "MDU6TGFiZWw2MDQ1ODE2OA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timezones"
},
{
"color": "370f77",
"default": false,
"des... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-20T22:12:20Z | 2019-04-21T17:51:36Z | 2019-04-21T16:37:05Z | MEMBER | null | - [x] closes #25843
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26167/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26167/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26167.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26167",
"merged_at": "2019-04-21T16:37:05Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26167.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26167"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26168 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26168/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26168/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26168/events | https://github.com/pandas-dev/pandas/pull/26168 | 435,452,190 | MDExOlB1bGxSZXF1ZXN0MjcyMTgyMzc0 | 26,168 | CLN: Unused imports in tslibs | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-20T23:07:16Z | 2019-04-21T15:50:18Z | 2019-04-21T15:49:19Z | MEMBER | null | Removed unused imports in tslibs found via PyCharm. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26168/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26168/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26168.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26168",
"merged_at": "2019-04-21T15:49:19Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26168.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26168"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26169 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26169/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26169/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26169/events | https://github.com/pandas-dev/pandas/pull/26169 | 435,474,587 | MDExOlB1bGxSZXF1ZXN0MjcyMTkzNDc0 | 26,169 | ENH: Functionality for read_csv to ignore comments when skipping rows… | {
"avatar_url": "https://avatars.githubusercontent.com/u/26772174?v=4",
"events_url": "https://api.github.com/users/mukundm19/events{/privacy}",
"followers_url": "https://api.github.com/users/mukundm19/followers",
"following_url": "https://api.github.com/users/mukundm19/following{/other_user}",
"gists_url": "https://api.github.com/users/mukundm19/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mukundm19",
"id": 26772174,
"login": "mukundm19",
"node_id": "MDQ6VXNlcjI2NzcyMTc0",
"organizations_url": "https://api.github.com/users/mukundm19/orgs",
"received_events_url": "https://api.github.com/users/mukundm19/received_events",
"repos_url": "https://api.github.com/users/mukundm19/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mukundm19/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mukundm19/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mukundm19"
} | [] | closed | false | null | [] | null | 1 | 2019-04-21T04:34:37Z | 2019-04-21T05:10:08Z | 2019-04-21T05:09:53Z | NONE | null | … and only skip data rows
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26169/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26169/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26169.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26169",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26169.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26169"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26170 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26170/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26170/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26170/events | https://github.com/pandas-dev/pandas/pull/26170 | 435,476,888 | MDExOlB1bGxSZXF1ZXN0MjcyMTk0ODk4 | 26,170 | BUG: read_json converted date strings with Z to UTC | {
"avatar_url": "https://avatars.githubusercontent.com/u/10647082?v=4",
"events_url": "https://api.github.com/users/mroeschke/events{/privacy}",
"followers_url": "https://api.github.com/users/mroeschke/followers",
"following_url": "https://api.github.com/users/mroeschke/following{/other_user}",
"gists_url": "https://api.github.com/users/mroeschke/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mroeschke",
"id": 10647082,
"login": "mroeschke",
"node_id": "MDQ6VXNlcjEwNjQ3MDgy",
"organizations_url": "https://api.github.com/users/mroeschke/orgs",
"received_events_url": "https://api.github.com/users/mroeschke/received_events",
"repos_url": "https://api.github.com/users/mroeschke/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mroeschke/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mroeschke/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mroeschke"
} | [
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "5319e7",
"default": fa... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-04-21T05:23:24Z | 2019-05-07T15:19:45Z | 2019-05-07T04:19:24Z | MEMBER | null | - [x] closes #25546
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26170/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26170/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26170.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26170",
"merged_at": "2019-05-07T04:19:24Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26170.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26170"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26171 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26171/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26171/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26171/events | https://github.com/pandas-dev/pandas/issues/26171 | 435,482,633 | MDU6SXNzdWU0MzU0ODI2MzM= | 26,171 | TypeError: __init__() got an unexpected keyword argument 'max_rows' | {
"avatar_url": "https://avatars.githubusercontent.com/u/38874030?v=4",
"events_url": "https://api.github.com/users/ShahWaseem/events{/privacy}",
"followers_url": "https://api.github.com/users/ShahWaseem/followers",
"following_url": "https://api.github.com/users/ShahWaseem/following{/other_user}",
"gists_url": "https://api.github.com/users/ShahWaseem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShahWaseem",
"id": 38874030,
"login": "ShahWaseem",
"node_id": "MDQ6VXNlcjM4ODc0MDMw",
"organizations_url": "https://api.github.com/users/ShahWaseem/orgs",
"received_events_url": "https://api.github.com/users/ShahWaseem/received_events",
"repos_url": "https://api.github.com/users/ShahWaseem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShahWaseem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShahWaseem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShahWaseem"
} | [] | closed | false | null | [] | null | 3 | 2019-04-21T07:11:56Z | 2020-06-03T12:00:16Z | 2019-04-21T11:31:15Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import pystan
from fbprophet import Prophet
plt.style.use('fivethirtyeight')
y = [t1_tmax['date'], t1_tmax['value']]
import pandas as pd
df = pd.DataFrame({'date': y[0], 'value': y[1]})
df.dtypes
df = df.rename(columns={'date': 'ds','value': 'y'})
df
my_model = Prophet(interval_width=0.95)
my_model.fit(df)
```
#### Problem description
I have installed the latest Pystan and fbprophet versions:
pystan 2.17.1.0
fbprophet 0.4.post2
Currently, I'm using conda 4.6.14 with Python 3.6.7 version as suggested after uninstalling 3.7 in other threads!
#### Expected Output
#### Output of ``
my_model.fit(df)
``
<details>
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-134-2eba425e3c88> in <module>
2 #with weekly_seasonality=True
3 #instantiate Prophet
----> 4 my_model.fit(df) #fit the model with your dataframe
~\Anaconda3\Anaconda\lib\site-packages\fbprophet\forecaster.py in fit(self, df, **kwargs)
1010 """
1011 if self.history is not None:
-> 1012 raise Exception('Prophet object can only be fit once. '
1013 'Instantiate a new object.')
1014 if ('ds' not in df) or ('y' not in df):
Exception: Prophet object can only be fit once. Instantiate a new object.
</details> | {
"+1": 1,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26171/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26171/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26172 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26172/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26172/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26172/events | https://github.com/pandas-dev/pandas/pull/26172 | 435,486,324 | MDExOlB1bGxSZXF1ZXN0MjcyMjAwODE4 | 26,172 | ENH: adding functionality to support 'skipdatarows' flag in read_csv to … | {
"avatar_url": "https://avatars.githubusercontent.com/u/26772174?v=4",
"events_url": "https://api.github.com/users/mukundm19/events{/privacy}",
"followers_url": "https://api.github.com/users/mukundm19/followers",
"following_url": "https://api.github.com/users/mukundm19/following{/other_user}",
"gists_url": "https://api.github.com/users/mukundm19/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mukundm19",
"id": 26772174,
"login": "mukundm19",
"node_id": "MDQ6VXNlcjI2NzcyMTc0",
"organizations_url": "https://api.github.com/users/mukundm19/orgs",
"received_events_url": "https://api.github.com/users/mukundm19/received_events",
"repos_url": "https://api.github.com/users/mukundm19/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mukundm19/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mukundm19/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mukundm19"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "5319e7",
"default": false,
"description": "read_csv... | 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 | 2019-04-21T08:05:35Z | 2019-04-22T02:52:04Z | 2019-04-21T18:29:56Z | NONE | null | - [x] closes #23067
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Adding feature for issue https://github.com/pandas-dev/pandas/issues/23067#issue-368463820. The newly added 'skipdatarows' flag allows the first n rows excluding comments to be skipped when read_csv is 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/26172/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26172/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26172.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26172",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26172.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26172"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26173 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26173/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26173/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26173/events | https://github.com/pandas-dev/pandas/issues/26173 | 435,488,707 | MDU6SXNzdWU0MzU0ODg3MDc= | 26,173 | Plotting ExtensionArrays | {
"avatar_url": "https://avatars.githubusercontent.com/u/13157776?v=4",
"events_url": "https://api.github.com/users/andrewgsavage/events{/privacy}",
"followers_url": "https://api.github.com/users/andrewgsavage/followers",
"following_url": "https://api.github.com/users/andrewgsavage/following{/other_user}",
"gists_url": "https://api.github.com/users/andrewgsavage/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/andrewgsavage",
"id": 13157776,
"login": "andrewgsavage",
"node_id": "MDQ6VXNlcjEzMTU3Nzc2",
"organizations_url": "https://api.github.com/users/andrewgsavage/orgs",
"received_events_url": "https://api.github.com/users/andrewgsavage/received_events",
"repos_url": "https://api.github.com/users/andrewgsavage/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/andrewgsavage/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/andrewgsavage/subscriptions",
"type": "User",
"url": "https://api.github.com/users/andrewgsavage"
} | [
{
"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,
... | open | false | null | [] | null | 5 | 2019-04-21T08:39:41Z | 2021-07-02T05:32:08Z | null | NONE | null | I'd like to plot data from an ExtensionArray. This currently results in an error `TypeError: Empty 'DataFrame': no numeric data to plot`
This is because the EA data is filtered out. Adding the ExtensionDtype to the filter criteria makes the plot work.
https://github.com/pandas-dev/pandas/blob/master/pandas/plotting/_core.py#L367
```python3
numeric_data = data.select_dtypes(include=[np.number,
"datetime",
"datetimetz",
"timedelta",
pint.PintType])
```
Could we get a property of the ExtensionDtype that flags the dtype as holding plotable numeric 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/26173/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26173/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26174 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26174/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26174/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26174/events | https://github.com/pandas-dev/pandas/issues/26174 | 435,511,282 | MDU6SXNzdWU0MzU1MTEyODI= | 26,174 | Exception: Prophet object can only be fit once. Instantiate a new object. | {
"avatar_url": "https://avatars.githubusercontent.com/u/38874030?v=4",
"events_url": "https://api.github.com/users/ShahWaseem/events{/privacy}",
"followers_url": "https://api.github.com/users/ShahWaseem/followers",
"following_url": "https://api.github.com/users/ShahWaseem/following{/other_user}",
"gists_url": "https://api.github.com/users/ShahWaseem/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ShahWaseem",
"id": 38874030,
"login": "ShahWaseem",
"node_id": "MDQ6VXNlcjM4ODc0MDMw",
"organizations_url": "https://api.github.com/users/ShahWaseem/orgs",
"received_events_url": "https://api.github.com/users/ShahWaseem/received_events",
"repos_url": "https://api.github.com/users/ShahWaseem/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ShahWaseem/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ShahWaseem/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ShahWaseem"
} | [] | closed | false | null | [] | null | 2 | 2019-04-21T13:44:55Z | 2019-04-21T14:12:21Z | 2019-04-21T14:05:11Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import pystan
from fbprophet import Prophet
plt.style.use('fivethirtyeight')
y = [t1_tmax['date'], t1_tmax['value']]
import pandas as pd
df = pd.DataFrame({'date': y[0], 'value': y[1]})
df.dtypes
df = df.rename(columns={'date': 'ds','value': 'y'})
df
my_model = Prophet(interval_width=0.95)
my_model.fit(df)
```
#### Problem description
I have installed the latest Pystan and fbprophet versions:
pystan 2.17.1.0
fbprophet 0.4.post2
Currently, I'm using conda 4.6.14 with Python 3.6.7 version as suggested after uninstalling 3.7 in other threads!
#### Expected Output
#### Output of ``my_model.fit(df) ``
---------------------------------------------------------------------------
Exception Traceback (most recent call last)
<ipython-input-134-2eba425e3c88> in <module>
2 #with weekly_seasonality=True
3 #instantiate Prophet
----> 4 my_model.fit(df) #fit the model with your dataframe
~\Anaconda3\Anaconda\lib\site-packages\fbprophet\forecaster.py in fit(self, df, **kwargs)
1010 """
1011 if self.history is not None:
-> 1012 raise Exception('Prophet object can only be fit once. '
1013 'Instantiate a new object.')
1014 if ('ds' not in df) or ('y' not in df):
Exception: Prophet object can only be fit once. Instantiate a new object.
[paste the output of ``pd.show_versions()`` here below this line]
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26174/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26174/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26175 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26175/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26175/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26175/events | https://github.com/pandas-dev/pandas/issues/26175 | 435,531,489 | MDU6SXNzdWU0MzU1MzE0ODk= | 26,175 | Add Type and Final pandas._typing | {
"avatar_url": "https://avatars.githubusercontent.com/u/22582828?v=4",
"events_url": "https://api.github.com/users/vaibhavhrt/events{/privacy}",
"followers_url": "https://api.github.com/users/vaibhavhrt/followers",
"following_url": "https://api.github.com/users/vaibhavhrt/following{/other_user}",
"gists_url": "https://api.github.com/users/vaibhavhrt/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/vaibhavhrt",
"id": 22582828,
"login": "vaibhavhrt",
"node_id": "MDQ6VXNlcjIyNTgyODI4",
"organizations_url": "https://api.github.com/users/vaibhavhrt/orgs",
"received_events_url": "https://api.github.com/users/vaibhavhrt/received_events",
"repos_url": "https://api.github.com/users/vaibhavhrt/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/vaibhavhrt/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/vaibhavhrt/subscriptions",
"type": "User",
"url": "https://api.github.com/users/vaibhavhrt"
} | [
{
"color": "ea91a4",
"default": false,
"description": "type annotations, mypy/pyright type checking",
"id": 1280988427,
"name": "Typing",
"node_id": "MDU6TGFiZWwxMjgwOTg4NDI3",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Typing"
}
] | closed | false | null | [] | null | 11 | 2019-04-21T17:42:33Z | 2019-04-24T15:10:38Z | 2019-04-24T15:10:38Z | CONTRIBUTOR | null | Since we are not merging #25975 `Type` and `Final` needs to be added to `pandas._typing` module.
`Final` is required for PR #25961
`Type` is required to stay compatible with python 3.5.1 as `Type` was added in 3.5.2 [python docs](https://docs.python.org/3/library/typing.html#typing.Type)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26175/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26175/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26176 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26176/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26176/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26176/events | https://github.com/pandas-dev/pandas/pull/26176 | 435,536,012 | MDExOlB1bGxSZXF1ZXN0MjcyMjMzMjk2 | 26,176 | BUG: fallback from issue 20824 no longer occurs due to skipna flag | {
"avatar_url": "https://avatars.githubusercontent.com/u/26772174?v=4",
"events_url": "https://api.github.com/users/mukundm19/events{/privacy}",
"followers_url": "https://api.github.com/users/mukundm19/followers",
"following_url": "https://api.github.com/users/mukundm19/following{/other_user}",
"gists_url": "https://api.github.com/users/mukundm19/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mukundm19",
"id": 26772174,
"login": "mukundm19",
"node_id": "MDQ6VXNlcjI2NzcyMTc0",
"organizations_url": "https://api.github.com/users/mukundm19/orgs",
"received_events_url": "https://api.github.com/users/mukundm19/received_events",
"repos_url": "https://api.github.com/users/mukundm19/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mukundm19/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mukundm19/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mukundm19"
} | [] | closed | false | null | [] | null | 2 | 2019-04-21T18:41:25Z | 2019-04-21T19:19:48Z | 2019-04-21T18:53:51Z | NONE | null | - [ ] closes #20824
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Issue #20824 found that a fallback was occuring when df.Groupby().sum() was called with the skipna flag. This was occurring because the _cython_agg_general function was not accepting the argument, which has now been fixed. The fallback still occurs with strings in the df, however this is a deeper issue stemming from the _aggregate() call in groupby/ops.py (line 572).
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26176/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26176/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26176.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26176",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26176.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26176"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26177 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26177/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26177/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26177/events | https://github.com/pandas-dev/pandas/pull/26177 | 435,537,075 | MDExOlB1bGxSZXF1ZXN0MjcyMjMzOTky | 26,177 | CLN: Clean-up use of super() in instance methods. | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 9 | 2019-04-21T18:55:05Z | 2019-04-25T04:28:05Z | 2019-04-24T21:02:12Z | CONTRIBUTOR | null | - [x] xref #25725
Simplifies the use of simple uses of ``super`` by converting to use python3 idioms. This is a quite big PR, but only deals with converting ``super(MyClass, self)`` to ``super()`` so it's very simple.
In addition to the uses of ``super`` dealt with in this PR, there are some more advanced uses of ``super`` in the code base, e.g. in classmethods and using ``super`` to jump to a specific point in the MRO-chain. I'd like to tackle those in a seperate PR in order to keep the the current large PR very simple. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26177/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26177/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26177.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26177",
"merged_at": "2019-04-24T21:02:12Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26177.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26177"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26178 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26178/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26178/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26178/events | https://github.com/pandas-dev/pandas/pull/26178 | 435,537,954 | MDExOlB1bGxSZXF1ZXN0MjcyMjM0NTU3 | 26,178 | CLN: remove __metaclass__ from code base | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 2 | 2019-04-21T19:05:26Z | 2019-05-05T06:58:55Z | 2019-04-23T04:45:02Z | CONTRIBUTOR | null | - [x] xref #25725 & #26165
Removes uses of ``__metaclass__`` from the code base. After #26165 there was actually only one left.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26178/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26178/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26178.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26178",
"merged_at": "2019-04-23T04:45:02Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26178.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26178"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26179 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26179/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26179/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26179/events | https://github.com/pandas-dev/pandas/pull/26179 | 435,540,633 | MDExOlB1bGxSZXF1ZXN0MjcyMjM2MzM2 | 26,179 | BUG: Resolving fallback from skipna flag in groupby().sum() | {
"avatar_url": "https://avatars.githubusercontent.com/u/26772174?v=4",
"events_url": "https://api.github.com/users/mukundm19/events{/privacy}",
"followers_url": "https://api.github.com/users/mukundm19/followers",
"following_url": "https://api.github.com/users/mukundm19/following{/other_user}",
"gists_url": "https://api.github.com/users/mukundm19/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/mukundm19",
"id": 26772174,
"login": "mukundm19",
"node_id": "MDQ6VXNlcjI2NzcyMTc0",
"organizations_url": "https://api.github.com/users/mukundm19/orgs",
"received_events_url": "https://api.github.com/users/mukundm19/received_events",
"repos_url": "https://api.github.com/users/mukundm19/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/mukundm19/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/mukundm19/subscriptions",
"type": "User",
"url": "https://api.github.com/users/mukundm19"
} | [
{
"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 | [] | null | 4 | 2019-04-21T19:37:43Z | 2020-05-18T14:32:33Z | 2019-05-07T01:49:51Z | NONE | null | - [x] closes #20824
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
Issue #20824 found that a fallback was occuring when df.Groupby().sum() was called with the skipna flag. This was occurring because the _cython_agg_general function was not accepting the argument, which has now been fixed. The fallback still occurs with strings in the df, however this is a deeper issue stemming from the _aggregate() call in groupby/ops.py (line 572). | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26179/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26179/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26179.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26179",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26179.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26179"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26180 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26180/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26180/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26180/events | https://github.com/pandas-dev/pandas/pull/26180 | 435,541,101 | MDExOlB1bGxSZXF1ZXN0MjcyMjM2NjQ5 | 26,180 | DOC: satisfy codechecks | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 0 | 2019-04-21T19:42:50Z | 2019-04-21T23:28:49Z | 2019-04-21T23:28:49Z | 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/26180/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26180/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26180.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26180",
"merged_at": "2019-04-21T23:28:49Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26180.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26180"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/26181 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26181/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26181/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26181/events | https://github.com/pandas-dev/pandas/issues/26181 | 435,546,924 | MDU6SXNzdWU0MzU1NDY5MjQ= | 26,181 | pandas.rolling.apply skips calling function if window contains any NaN | {
"avatar_url": "https://avatars.githubusercontent.com/u/49845620?v=4",
"events_url": "https://api.github.com/users/AHG123/events{/privacy}",
"followers_url": "https://api.github.com/users/AHG123/followers",
"following_url": "https://api.github.com/users/AHG123/following{/other_user}",
"gists_url": "https://api.github.com/users/AHG123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/AHG123",
"id": 49845620,
"login": "AHG123",
"node_id": "MDQ6VXNlcjQ5ODQ1NjIw",
"organizations_url": "https://api.github.com/users/AHG123/orgs",
"received_events_url": "https://api.github.com/users/AHG123/received_events",
"repos_url": "https://api.github.com/users/AHG123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/AHG123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AHG123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/AHG123"
} | [
{
"color": "4E9A06",
"default": false,
"description": null,
"id": 76812,
"name": "Enhancement",
"node_id": "MDU6TGFiZWw3NjgxMg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Enhancement"
},
{
"color": "207de5",
"default": false,
"description": "Requires... | closed | false | null | [] | null | 14 | 2019-04-21T20:53:16Z | 2021-01-14T18:15:23Z | 2021-01-14T18:15:22Z | NONE | null | This issue has been raised several times, but I do not think has been adequately addressed.
The solution given is always min_periods, but that only includes the obvious issue where the NaN is at the beginning of the series. If there is any NaN then .apply will not call the function.
There should be a skipna=True option that works. Despite this question being asked in a dozen places, it has not been fixed.
I see that @jreback has closed this issue multiple times with a reference to min_periods. Again... this is NOT an adequate answer. (See the followup here https://github.com/pandas-dev/pandas/issues/19218 that was ignored once the issue was marked closed.)
There should simply be a skipna=True flag in the rolling window function. As-is, it will not call the function in .apply() if there are ANY NaNs at any point in the window. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26181/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26181/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26182 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26182/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26182/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26182/events | https://github.com/pandas-dev/pandas/issues/26182 | 435,618,702 | MDU6SXNzdWU0MzU2MTg3MDI= | 26,182 | groupby apply failed on dataframe with DatetimeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/9129006?v=4",
"events_url": "https://api.github.com/users/goldenbull/events{/privacy}",
"followers_url": "https://api.github.com/users/goldenbull/followers",
"following_url": "https://api.github.com/users/goldenbull/following{/other_user}",
"gists_url": "https://api.github.com/users/goldenbull/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/goldenbull",
"id": 9129006,
"login": "goldenbull",
"node_id": "MDQ6VXNlcjkxMjkwMDY=",
"organizations_url": "https://api.github.com/users/goldenbull/orgs",
"received_events_url": "https://api.github.com/users/goldenbull/received_events",
"repos_url": "https://api.github.com/users/goldenbull/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/goldenbull/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/goldenbull/subscriptions",
"type": "User",
"url": "https://api.github.com/users/goldenbull"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "729FCF",
"default": false,
"description": null,
... | 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"
} | 11 | 2019-04-22T06:40:17Z | 2020-10-02T22:59:01Z | 2020-10-02T22:59:01Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
# -*- coding: utf-8 -*-
import pandas as pd
def _do_calc_(_df):
df2 = _df.copy()
df2["vol_ma20"] = df2["volume"].rolling(20, min_periods=1).mean()
return df2
dbars = pd.read_csv("2019.dbar_ftridx.csv.gz",
index_col=False,
encoding="utf-8-sig",
parse_dates=["trade_day"])
dbars = dbars.set_index("trade_day", drop=False) # everything works fine if this line is commented
df = dbars.groupby("exchange").apply(_do_calc_)
print(len(df))
```
#### Problem description
here is the input data file:
[2019.dbar_ftridx.csv.gz](https://github.com/pandas-dev/pandas/files/3102450/2019.dbar_ftridx.csv.gz)
this piece of code runs well with pandas 0.23, when upgraded to 0.24.2, it reports error:
```
Traceback (most recent call last):
File "D:/test/groupby_bug.py", line 16, in <module>
df = dbars.groupby("exchange").apply(_do_calc_)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 701, in apply
return self._python_apply_general(f)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 712, in _python_apply_general
not_indexed_same=mutated or self.mutated)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby\generic.py", line 318, in _wrap_applied_output
not_indexed_same=not_indexed_same)
File "C:\Anaconda3\lib\site-packages\pandas\core\groupby\groupby.py", line 918, in _concat_objects
sort=False)
File "C:\Anaconda3\lib\site-packages\pandas\core\reshape\concat.py", line 228, in concat
copy=copy, sort=sort)
File "C:\Anaconda3\lib\site-packages\pandas\core\reshape\concat.py", line 292, in __init__
obj._consolidate(inplace=True)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 5156, in _consolidate
self._consolidate_inplace()
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 5138, in _consolidate_inplace
self._protect_consolidate(f)
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 5127, in _protect_consolidate
result = f()
File "C:\Anaconda3\lib\site-packages\pandas\core\generic.py", line 5136, in f
self._data = self._data.consolidate()
File "C:\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 922, in consolidate
bm = self.__class__(self.blocks, self.axes)
File "C:\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 114, in __init__
self._verify_integrity()
File "C:\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 311, in _verify_integrity
construction_error(tot_items, block.shape[1:], self.axes)
File "C:\Anaconda3\lib\site-packages\pandas\core\internals\managers.py", line 1691, in construction_error
passed, implied))
ValueError: Shape of passed values is (432, 27), indices imply (1080, 27)
```
If I do not call set_index() on the dataframe, it works fine. Seems there is something wrong with the DatetimeIndex?
I don't know if this error can be re-produced on your machine, I can re-produce the same error on all my machines.
#### Expected Output
4104
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
C:\Anaconda3\python.exe D:/test/groupby_bug.py
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 79 Stepping 1, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: 4.4.0
pip: 19.0.3
setuptools: 41.0.0
Cython: 0.29.7
numpy: 1.16.2
scipy: 1.2.1
pyarrow: None
xarray: None
IPython: 7.4.0
sphinx: 2.0.1
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: 1.2.1
tables: 3.5.1
numexpr: 2.6.9
feather: None
matplotlib: 3.0.3
openpyxl: 2.6.2
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: 1.1.6
lxml.etree: 4.3.3
bs4: 4.7.1
html5lib: 1.0.1
sqlalchemy: 1.3.3
pymysql: None
psycopg2: None
jinja2: 2.10.1
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26182/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26182/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26183 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26183/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26183/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26183/events | https://github.com/pandas-dev/pandas/pull/26183 | 435,710,486 | MDExOlB1bGxSZXF1ZXN0MjcyMzYwODI4 | 26,183 | BUG: Preserve sparse dtype when reindexing | {
"avatar_url": "https://avatars.githubusercontent.com/u/128956?v=4",
"events_url": "https://api.github.com/users/alex-hutton/events{/privacy}",
"followers_url": "https://api.github.com/users/alex-hutton/followers",
"following_url": "https://api.github.com/users/alex-hutton/following{/other_user}",
"gists_url": "https://api.github.com/users/alex-hutton/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/alex-hutton",
"id": 128956,
"login": "alex-hutton",
"node_id": "MDQ6VXNlcjEyODk1Ng==",
"organizations_url": "https://api.github.com/users/alex-hutton/orgs",
"received_events_url": "https://api.github.com/users/alex-hutton/received_events",
"repos_url": "https://api.github.com/users/alex-hutton/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/alex-hutton/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alex-hutton/subscriptions",
"type": "User",
"url": "https://api.github.com/users/alex-hutton"
} | [
{
"color": "e11d21",
"default": false,
"description": "Functionality that used to work in a prior pandas version",
"id": 32815646,
"name": "Regression",
"node_id": "MDU6TGFiZWwzMjgxNTY0Ng==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Regression"
},
{
"color": ... | closed | false | null | [] | null | 2 | 2019-04-22T12:31:10Z | 2019-06-08T20:26:54Z | 2019-06-08T20:26:54Z | NONE | null | - [ ] closes #26123.
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
Hi, I've been taking a look at this but I need to verify some of the surrounding functionality so that I prevent introducing more breakages.
In this test, https://github.com/alex-hutton/pandas/blob/preserve-sparse-dtype-26123/pandas/tests/sparse/test_combine_concat.py#L99-L110 , my interpretation is that its purpose is to verify that if two `SparseSeries` are concatenated, a `fill_value` set on either of those `SparseSeries` should be ignored in favour of the default `fill_value` of `NaN`.
Is my interpretation correct, and is this test correct? It seems odd that the the `fill_value` of the `SparseSeries` should be disregarded, but I am probably missing something. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26183/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26183/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26183.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26183",
"merged_at": null,
"patch_url": "https://github.com/pandas-dev/pandas/pull/26183.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26183"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26184 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26184/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26184/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26184/events | https://github.com/pandas-dev/pandas/issues/26184 | 435,773,937 | MDU6SXNzdWU0MzU3NzM5Mzc= | 26,184 | Creating an empty dataframe with columns names fails in python 3.7, works in python 3.6 | {
"avatar_url": "https://avatars.githubusercontent.com/u/494951?v=4",
"events_url": "https://api.github.com/users/Iwontbecreative/events{/privacy}",
"followers_url": "https://api.github.com/users/Iwontbecreative/followers",
"following_url": "https://api.github.com/users/Iwontbecreative/following{/other_user}",
"gists_url": "https://api.github.com/users/Iwontbecreative/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Iwontbecreative",
"id": 494951,
"login": "Iwontbecreative",
"node_id": "MDQ6VXNlcjQ5NDk1MQ==",
"organizations_url": "https://api.github.com/users/Iwontbecreative/orgs",
"received_events_url": "https://api.github.com/users/Iwontbecreative/received_events",
"repos_url": "https://api.github.com/users/Iwontbecreative/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Iwontbecreative/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Iwontbecreative/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Iwontbecreative"
} | [
{
"color": "207de5",
"default": false,
"description": "Clarification about behavior needed to assess issue",
"id": 307649777,
"name": "Needs Info",
"node_id": "MDU6TGFiZWwzMDc2NDk3Nzc=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Needs%20Info"
},
{
"color": "37... | closed | false | null | [] | null | 2 | 2019-04-22T15:42:28Z | 2019-04-22T16:00:31Z | 2019-04-22T16:00:31Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
data = []
pd.DataFrame(data, columns=['col'])
```
#### Problem description
The expected behaviour should be the 3.6 one on both cases. Failing that, it should be consistent for 3.6 and 3.7.
np version 1.15.2 ; pandas version 0.23.4
#### Expected Output
Expected: Empty dataframe with one col named 'col' in both cases.
Python 3.6: above
Python 3.7: `TypeError: int() argument must be a string, a bytes-like object or a number, not '_NoValueType'`
#### Output of ``pd.show_versions()``
<details>
[paste the output of ``pd.show_versions()`` here below this line]
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Darwin
OS-release: 17.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.23.4
pytest: 4.4.0
pip: 19.0.3
setuptools: 40.8.0
Cython: None
numpy: 1.16.2
scipy: 1.2.0
pyarrow: None
xarray: None
IPython: 7.3.0
sphinx: None
patsy: 0.5.1
dateutil: 2.8.0
pytz: 2019.1
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: None
xlrd: 1.2.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26184/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26184/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26185 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26185/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26185/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26185/events | https://github.com/pandas-dev/pandas/pull/26185 | 435,816,111 | MDExOlB1bGxSZXF1ZXN0MjcyNDQyODg5 | 26,185 | BUG: Plotting use FixedLocator | {
"avatar_url": "https://avatars.githubusercontent.com/u/49879400?v=4",
"events_url": "https://api.github.com/users/nrebena/events{/privacy}",
"followers_url": "https://api.github.com/users/nrebena/followers",
"following_url": "https://api.github.com/users/nrebena/following{/other_user}",
"gists_url": "https://api.github.com/users/nrebena/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nrebena",
"id": 49879400,
"login": "nrebena",
"node_id": "MDQ6VXNlcjQ5ODc5NDAw",
"organizations_url": "https://api.github.com/users/nrebena/orgs",
"received_events_url": "https://api.github.com/users/nrebena/received_events",
"repos_url": "https://api.github.com/users/nrebena/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nrebena/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nrebena/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nrebena"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 11 | 2019-04-22T17:46:51Z | 2019-05-01T14:00:04Z | 2019-04-30T12:59:54Z | CONTRIBUTOR | null | For string x values or multiindex, the axis locator is now set to a
FixedLocator for Line and Area plot. The ticklabel stay consistent
when scaling and zooming.
closes #7612
closes #15912
closes #22334
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26185/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26185/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26185.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26185",
"merged_at": "2019-04-30T12:59:53Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26185.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26185"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26186 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26186/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26186/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26186/events | https://github.com/pandas-dev/pandas/issues/26186 | 435,893,072 | MDU6SXNzdWU0MzU4OTMwNzI= | 26,186 | Inconsitent index for plot | {
"avatar_url": "https://avatars.githubusercontent.com/u/16624195?v=4",
"events_url": "https://api.github.com/users/Jeanselme/events{/privacy}",
"followers_url": "https://api.github.com/users/Jeanselme/followers",
"following_url": "https://api.github.com/users/Jeanselme/following{/other_user}",
"gists_url": "https://api.github.com/users/Jeanselme/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Jeanselme",
"id": 16624195,
"login": "Jeanselme",
"node_id": "MDQ6VXNlcjE2NjI0MTk1",
"organizations_url": "https://api.github.com/users/Jeanselme/orgs",
"received_events_url": "https://api.github.com/users/Jeanselme/received_events",
"repos_url": "https://api.github.com/users/Jeanselme/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Jeanselme/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Jeanselme/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Jeanselme"
} | [
{
"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,
... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2019-04-22T21:07:46Z | 2021-07-02T05:32:32Z | null | NONE | null | #### Code Sample
```python
import pandas as pd
import matplotlib.pyplot as plt
data = {"A":0, "B":3, "C":-4}
df = pd.DataFrame.from_dict(data, orient = "index", columns = ["Value"])
ax = df.plot.barh()
df = df.sort_values("Value") * - 2
df.plot.barh(ax = ax, color = "red")
plt.show()
```
#### Problem description
The second plot overwrites the first index even if it is not in the same order, producing incoherent figure where the ylabel does not match with the data displayed.
The current output (pandas 0.24.1) creates

instead of

I don't know if this is related to the way pandas handles index or matplotlib.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26186/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26186/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26187 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26187/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26187/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26187/events | https://github.com/pandas-dev/pandas/issues/26187 | 435,918,573 | MDU6SXNzdWU0MzU5MTg1NzM= | 26,187 | Doc Check Failures | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integration",
"id": 48070600,
"name": "CI",
"node_id": "MDU6TGFiZWw0ODA3MDYwMA==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/CI"
},
{
"color": "d93f0b",
"default": false,
"description": ... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 1 | 2019-04-22T22:29:34Z | 2019-04-23T12:10:53Z | 2019-04-23T12:10:36Z | MEMBER | null | This just started showing up in the CI failures today:
```sh
Traceback (most recent call last):
File "ci/../scripts/validate_docstrings.py", line 991, in <module>
args.ignore_deprecated))
File "ci/../scripts/validate_docstrings.py", line 891, in main
result = validate_all(prefix, ignore_deprecated)
File "ci/../scripts/validate_docstrings.py", line 845, in validate_all
doc_info = validate_one(func_name)
File "ci/../scripts/validate_docstrings.py", line 801, in validate_one
errs, wrns, examples_errs = get_validation_data(doc)
File "ci/../scripts/validate_docstrings.py", line 749, in get_validation_data
if not doc.see_also:
File "ci/../scripts/validate_docstrings.py", line 477, in see_also
in self.doc['See Also'])
File "ci/../scripts/validate_docstrings.py", line 476, in <genexpr>
for name, desc, _
ValueError: not enough values to unpack (expected 3, got 2)
```
I think it's an issue with upgrading to numpydoc 0.9 but will look in more detail and confirm | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26187/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26187/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26188 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26188/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26188/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26188/events | https://github.com/pandas-dev/pandas/pull/26188 | 435,920,490 | MDExOlB1bGxSZXF1ZXN0MjcyNTI2OTcw | 26,188 | Fixed code issue from compat with new numpydoc | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "3465A4",
"default": false,
"description": null,
"id": 134699,
"name": "Docs",
"node_id": "MDU6TGFiZWwxMzQ2OTk=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Docs"
},
{
"color": "a2bca7",
"default": false,
"description": "Continuous Integratio... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 5 | 2019-04-22T22:36:45Z | 2020-01-16T00:34:11Z | 2019-04-23T12:10:36Z | MEMBER | null | - [X] closes #26187
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26188/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26188/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26188.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26188",
"merged_at": "2019-04-23T12:10:36Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26188.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26188"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26189 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26189/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26189/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26189/events | https://github.com/pandas-dev/pandas/issues/26189 | 435,938,950 | MDU6SXNzdWU0MzU5Mzg5NTA= | 26,189 | BUG: incorrect usage of pchip for timedelta | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
} | [
{
"color": "e10c02",
"default": false,
"description": null,
"id": 76811,
"name": "Bug",
"node_id": "MDU6TGFiZWw3NjgxMQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Bug"
},
{
"color": "d7e102",
"default": false,
"description": "np.nan, pd.NaT, pd.NA, d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-04-22T23:53:24Z | 2019-04-28T16:11:15Z | 2019-04-28T16:11:15Z | CONTRIBUTOR | null | This just started breaking on scipy master:
https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=10858
xfailing in #26190
```
> /Users/jreback/pandas/pandas/tests/series/test_missing.py(1446)test_interpolate_timedelta_index()
-> result = df[0].interpolate(method=method, **kwargs)
(Pdb) n
> /Users/jreback/pandas/pandas/tests/series/test_missing.py(1447)test_interpolate_timedelta_index()
-> expected = pd.Series([0.0, 1.0, 2.0, 3.0], name=0, index=ind)
(Pdb) p result
0 days 00:00:00.000000 0.0
1 days 00:00:00.000000 1.0
2 days 00:00:00.000000 2.0
3 days 00:00:00.000000 3.0
Freq: D, Name: 0, dtype: float64
(Pdb) p df[0]
0 days 00:00:00.000000 0.0
1 days 00:00:00.000000 1.0
2 days 00:00:00.000000 NaN
3 days 00:00:00.000000 3.0
Freq: D, Name: 0, dtype: float64
```
I think we are passing invalid inputs
```
> /Users/jreback/pandas/pandas/core/missing.py(311)_interpolate_scipy_wrapper()
-> new_y = method(x, y, new_x, **kwargs)
(Pdb) p method
<function pchip_interpolate at 0x81bb9e9d8>
(Pdb) p x
array([ 1, 86400000000001, 259200000000001],
dtype='timedelta64[ns]')
(Pdb) p y
array([0., 1., 3.])
``` | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26189/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26189/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26190 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26190/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26190/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26190/events | https://github.com/pandas-dev/pandas/pull/26190 | 435,939,587 | MDExOlB1bGxSZXF1ZXN0MjcyNTQwOTU2 | 26,190 | xref #26189, xfail scipy interpolate test for pchip with timedelta | {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.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": "d7e102",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-04-22T23:56:31Z | 2019-04-23T00:39:35Z | 2019-04-23T00:39:35Z | CONTRIBUTOR | null | xref #26189 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26190/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26190/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26190.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26190",
"merged_at": "2019-04-23T00:39:35Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26190.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26190"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26191 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26191/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26191/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26191/events | https://github.com/pandas-dev/pandas/issues/26191 | 435,977,098 | MDU6SXNzdWU0MzU5NzcwOTg= | 26,191 | dropping non-existing entries - handling improvement | {
"avatar_url": "https://avatars.githubusercontent.com/u/42650045?v=4",
"events_url": "https://api.github.com/users/lobpcg/events{/privacy}",
"followers_url": "https://api.github.com/users/lobpcg/followers",
"following_url": "https://api.github.com/users/lobpcg/following{/other_user}",
"gists_url": "https://api.github.com/users/lobpcg/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/lobpcg",
"id": 42650045,
"login": "lobpcg",
"node_id": "MDQ6VXNlcjQyNjUwMDQ1",
"organizations_url": "https://api.github.com/users/lobpcg/orgs",
"received_events_url": "https://api.github.com/users/lobpcg/received_events",
"repos_url": "https://api.github.com/users/lobpcg/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/lobpcg/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lobpcg/subscriptions",
"type": "User",
"url": "https://api.github.com/users/lobpcg"
} | [
{
"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 | 2 | 2019-04-23T03:04:39Z | 2019-04-23T16:11:52Z | 2019-04-23T04:52:47Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
df = pd.DataFrame({'a': [1, 2]})
df.drop(4)
```
#### Problem description
Dropping non-existing entries results in error, like
```KeyError: '[4] not found in axis'```
#### Expected Output
An empty output or no action if inplace. Possibly a warning, but surely not an error.
What is wrong with trying to drop the entries that are already not present? Ghost-busting should be legal.
#### Output of ``pd.show_versions()``
<details>
pandas: 0.24.2
</details> | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26191/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26191/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26192 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26192/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26192/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26192/events | https://github.com/pandas-dev/pandas/issues/26192 | 436,047,837 | MDU6SXNzdWU0MzYwNDc4Mzc= | 26,192 | wrong data after calling func pd.to_numeric | {
"avatar_url": "https://avatars.githubusercontent.com/u/15643697?v=4",
"events_url": "https://api.github.com/users/rollingtee/events{/privacy}",
"followers_url": "https://api.github.com/users/rollingtee/followers",
"following_url": "https://api.github.com/users/rollingtee/following{/other_user}",
"gists_url": "https://api.github.com/users/rollingtee/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rollingtee",
"id": 15643697,
"login": "rollingtee",
"node_id": "MDQ6VXNlcjE1NjQzNjk3",
"organizations_url": "https://api.github.com/users/rollingtee/orgs",
"received_events_url": "https://api.github.com/users/rollingtee/received_events",
"repos_url": "https://api.github.com/users/rollingtee/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rollingtee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rollingtee/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rollingtee"
} | [
{
"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 | 6 | 2019-04-23T07:53:28Z | 2019-04-25T05:56:11Z | 2019-04-24T15:50:46Z | NONE | 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/26192/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26192/timeline | null | null | null | |
https://api.github.com/repos/pandas-dev/pandas/issues/26193 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26193/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26193/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26193/events | https://github.com/pandas-dev/pandas/pull/26193 | 436,051,159 | MDExOlB1bGxSZXF1ZXN0MjcyNjIyNzI3 | 26,193 | TST: Remove bare pytest.raises in some test files | {
"avatar_url": "https://avatars.githubusercontent.com/u/9273653?v=4",
"events_url": "https://api.github.com/users/gfyoung/events{/privacy}",
"followers_url": "https://api.github.com/users/gfyoung/followers",
"following_url": "https://api.github.com/users/gfyoung/following{/other_user}",
"gists_url": "https://api.github.com/users/gfyoung/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/gfyoung",
"id": 9273653,
"login": "gfyoung",
"node_id": "MDQ6VXNlcjkyNzM2NTM=",
"organizations_url": "https://api.github.com/users/gfyoung/orgs",
"received_events_url": "https://api.github.com/users/gfyoung/received_events",
"repos_url": "https://api.github.com/users/gfyoung/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/gfyoung/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/gfyoung/subscriptions",
"type": "User",
"url": "https://api.github.com/users/gfyoung"
} | [
{
"color": "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": "eb6420",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-04-23T08:02:07Z | 2019-04-24T03:43:50Z | 2019-04-23T12:24:18Z | MEMBER | null | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26193/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26193/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26193.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26193",
"merged_at": "2019-04-23T12:24:18Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26193.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26193"
} | |
https://api.github.com/repos/pandas-dev/pandas/issues/26194 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26194/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26194/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26194/events | https://github.com/pandas-dev/pandas/pull/26194 | 436,133,249 | MDExOlB1bGxSZXF1ZXN0MjcyNjg3NzA4 | 26,194 | Revert "DOC: temporary remove pyarrow example of reading subset columns (#18661) | {
"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": "parquet, feather",
"id": 685114413,
"name": "IO Parquet",
"node_id": "MDU6TGFiZWw2ODUxMTQ0MTM=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20Parquet"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-23T11:18:30Z | 2019-04-23T12:16:32Z | 2019-04-23T12:16:28Z | MEMBER | null | This reverts commit 695e89345a46c0cab06c479c83007f5adbb70ad5.
Closes https://github.com/pandas-dev/pandas/issues/18628 (reverts https://github.com/pandas-dev/pandas/pull/18661)
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26194/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26194/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26194.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26194",
"merged_at": "2019-04-23T12:16:27Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26194.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26194"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26195 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26195/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26195/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26195/events | https://github.com/pandas-dev/pandas/issues/26195 | 436,210,209 | MDU6SXNzdWU0MzYyMTAyMDk= | 26,195 | AWS_S3_HOST environment variable no longer available | {
"avatar_url": "https://avatars.githubusercontent.com/u/7143573?v=4",
"events_url": "https://api.github.com/users/jakobkogler/events{/privacy}",
"followers_url": "https://api.github.com/users/jakobkogler/followers",
"following_url": "https://api.github.com/users/jakobkogler/following{/other_user}",
"gists_url": "https://api.github.com/users/jakobkogler/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jakobkogler",
"id": 7143573,
"login": "jakobkogler",
"node_id": "MDQ6VXNlcjcxNDM1NzM=",
"organizations_url": "https://api.github.com/users/jakobkogler/orgs",
"received_events_url": "https://api.github.com/users/jakobkogler/received_events",
"repos_url": "https://api.github.com/users/jakobkogler/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jakobkogler/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jakobkogler/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jakobkogler"
} | [
{
"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": "e4a5f1",
"default": false,
"description": "Local or Cloud (AWS, ... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 4 | 2019-04-23T14:10:53Z | 2021-07-02T05:33:22Z | null | NONE | null | In the [What's New - Other enhancements](https://pandas.pydata.org/pandas-docs/version/0.21/whatsnew.html#whatsnew-0180-enhancements-other) section from the 18.0 release it says that you can define the environment variable `AWS_S3_HOST`.
Therefore, when setting this environment variable, together with `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY` I expected the following code to work.
```python
import pandas as pd
df = pd.DataFrame(dict(a=[1, 2, 3], b=[4, 5, 6]))
df.to_csv(fs.open('s3://bucket/key', mode='w'))
```
The script crashes with:
```
Exception ignored in: <bound method S3File.__del__ of <S3File bucket/key>>
Traceback (most recent call last):
File "/home/xxx/.local/share/virtualenvs/xxx/lib/python3.6/site-packages/s3fs/core.py", line 1518, in __del__
self.close()
File "/home/xxx/.local/share/virtualenvs/xxx/lib/python3.6/site-packages/s3fs/core.py", line 1496, in close
raise_from(IOError('Write failed: %s' % self.path), e)
File "<string>", line 3, in raise_from
OSError: Write failed: bucket/key
```
This is the exact same error as when I don't specify the variable `AWS_S3_HOST` at all.
I managed to get a working solution by directly interacting directly with `s3fs`:
```python
import os
import pandas as pd
import s3fs
fs = s3fs.S3FileSystem(client_kwargs={'endpoint_url': os.environ["AWS_S3_HOST"]})
df = pd.DataFrame(dict(a=[1, 2, 3], b=[4, 5, 6]))
df.to_csv(fs.open('s3://bucket/key', mode='w'))
```
Looks like this feature got (accidentally?) removed in `https://github.com/pandas-dev/pandas/commit/dc4b0708f36b971f71890bfdf830d9a5dc019c7b#diff-a37b395bed03f0404dec864a4529c97dL94`, when they switched from `boto` to `s3fs`.
Is it planned to support this environment variable again?
I'm sure that many companies, e.g. like the one I work for, hosts their own s3 server, e.g. with Minio, and don't use Amazon. | {
"+1": 2,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 2,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26195/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26195/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26196 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26196/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26196/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26196/events | https://github.com/pandas-dev/pandas/pull/26196 | 436,308,881 | MDExOlB1bGxSZXF1ZXN0MjcyODI3NTI1 | 26,196 | CLN: remove python2 file encodings | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-23T17:39:25Z | 2019-05-05T06:59:22Z | 2019-04-24T12:23:57Z | CONTRIBUTOR | null | - [x] xref #25725
Remove usage of ``# coding=utf-8`` pattern from code base. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26196/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26196/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26196.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26196",
"merged_at": "2019-04-24T12:23:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26196.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26196"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26197 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26197/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26197/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26197/events | https://github.com/pandas-dev/pandas/pull/26197 | 436,320,673 | MDExOlB1bGxSZXF1ZXN0MjcyODM3MTE5 | 26,197 | CLN: remove '# -*- coding: utf-8 -*-' pattern | {
"avatar_url": "https://avatars.githubusercontent.com/u/26364415?v=4",
"events_url": "https://api.github.com/users/topper-123/events{/privacy}",
"followers_url": "https://api.github.com/users/topper-123/followers",
"following_url": "https://api.github.com/users/topper-123/following{/other_user}",
"gists_url": "https://api.github.com/users/topper-123/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/topper-123",
"id": 26364415,
"login": "topper-123",
"node_id": "MDQ6VXNlcjI2MzY0NDE1",
"organizations_url": "https://api.github.com/users/topper-123/orgs",
"received_events_url": "https://api.github.com/users/topper-123/received_events",
"repos_url": "https://api.github.com/users/topper-123/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/topper-123/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/topper-123/subscriptions",
"type": "User",
"url": "https://api.github.com/users/topper-123"
} | [
{
"color": "207de5",
"default": false,
"description": null,
"id": 211029535,
"name": "Clean",
"node_id": "MDU6TGFiZWwyMTEwMjk1MzU=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Clean"
}
] | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 7 | 2019-04-23T18:08:47Z | 2019-05-01T20:03:21Z | 2019-04-28T15:51:08Z | CONTRIBUTOR | null | - [x] xref #25725 & #26196
Remove usage of ``-# -*- coding: utf-8 -*-`` pattern from code base.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26197/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26197/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26197.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26197",
"merged_at": "2019-04-28T15:51:08Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26197.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26197"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26198 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26198/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26198/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26198/events | https://github.com/pandas-dev/pandas/pull/26198 | 436,413,942 | MDExOlB1bGxSZXF1ZXN0MjcyOTEyMTYz | 26,198 | Remove Unused Functions from ujson | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "207de5",
"default": fa... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 6 | 2019-04-23T22:17:31Z | 2019-04-25T15:57:15Z | 2019-04-25T14:53:25Z | MEMBER | null | dump and load don't appear anywhere in the code base except for UltraJSON tests. Since they are part of the exposed API I figure makes just as much sense to remove | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26198/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26198/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26198.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26198",
"merged_at": "2019-04-25T14:53:25Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26198.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26198"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26199 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26199/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26199/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26199/events | https://github.com/pandas-dev/pandas/pull/26199 | 436,423,374 | MDExOlB1bGxSZXF1ZXN0MjcyOTE5Nzc0 | 26,199 | ujson Py2 compat removal | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "207de5",
"default": fa... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-23T22:52:59Z | 2019-04-25T15:57:29Z | 2019-04-24T21:00:57Z | MEMBER | null | There was a header file in the ujson source specifically meant to bridge compatibility between Py2 and Py3. With the Py2 support drop this could be removed and the source code simplified.
Most of these changes are simply verbatim, though there are probably a few follow ups on context to simplify further that could be made | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26199/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26199/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26199.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26199",
"merged_at": "2019-04-24T21:00:57Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26199.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26199"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26200 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26200/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26200/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26200/events | https://github.com/pandas-dev/pandas/issues/26200 | 436,425,802 | MDU6SXNzdWU0MzY0MjU4MDI= | 26,200 | CI Failures for test_string_na_nat_conversion | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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 | [] | null | 2 | 2019-04-23T23:01:58Z | 2019-04-24T19:54:42Z | 2019-04-24T19:54:42Z | MEMBER | null | These just started showing up in the build today:
```python
___________ TestToDatetimeMisc.test_string_na_nat_conversion[False] ____________
[gw0] linux -- Python 3.7.3 /home/vsts/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.indexes.datetimes.test_tools.TestToDatetimeMisc object at 0x7f38c92b73c8>
cache = False
@pytest.mark.parametrize('cache', [True, False])
def test_string_na_nat_conversion(self, cache):
# GH #999, #858
strings = np.array(['1/1/2000', '1/2/2000', np.nan,
'1/4/2000, 12:34:56'], dtype=object)
expected = np.empty(4, dtype='M8[ns]')
for i, val in enumerate(strings):
if isna(val):
expected[i] = iNaT
else:
expected[i] = parse(val)
result = tslib.array_to_datetime(strings)[0]
tm.assert_almost_equal(result, expected)
result2 = to_datetime(strings, cache=cache)
assert isinstance(result2, DatetimeIndex)
tm.assert_numpy_array_equal(result, result2.values)
malformed = np.array(['1/100/2000', np.nan], dtype=object)
# GH 10636, default is now 'raise'
msg = (r"\(u?'Unknown string format:', '1/100/2000'\)|"
"day is out of range for month")
with pytest.raises(ValueError, match=msg):
> to_datetime(malformed, errors='raise', cache=cache)
E AssertionError: Pattern '\(u?'Unknown string format:', '1/100/2000'\)|day is out of range for month' not found in 'Unknown string format: 1/100/2000'
```
Not sure what the root cause is. I figured should be good enough to relax the error message for the time being and not block CI for others.
@simonjayhawkins looks like you might have changed this test to add a more restrictive message so if you want to dive into further detail for a more comprehensive fix would certainly be 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/26200/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26200/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26201 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26201/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26201/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26201/events | https://github.com/pandas-dev/pandas/pull/26201 | 436,426,723 | MDExOlB1bGxSZXF1ZXN0MjcyOTIyMzE4 | 26,201 | Relaxed error message for failing test | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"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": "a2bca7",
"d... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-23T23:05:51Z | 2019-04-25T15:57:39Z | 2019-04-24T12:12:31Z | MEMBER | null | xref #26200 | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26201/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26201/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26201.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26201",
"merged_at": "2019-04-24T12:12:31Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26201.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26201"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26202 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26202/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26202/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26202/events | https://github.com/pandas-dev/pandas/issues/26202 | 436,554,635 | MDU6SXNzdWU0MzY1NTQ2MzU= | 26,202 | how to merge two data frames with different dataframe | {
"avatar_url": "https://avatars.githubusercontent.com/u/49529349?v=4",
"events_url": "https://api.github.com/users/rajeshrse/events{/privacy}",
"followers_url": "https://api.github.com/users/rajeshrse/followers",
"following_url": "https://api.github.com/users/rajeshrse/following{/other_user}",
"gists_url": "https://api.github.com/users/rajeshrse/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/rajeshrse",
"id": 49529349,
"login": "rajeshrse",
"node_id": "MDQ6VXNlcjQ5NTI5MzQ5",
"organizations_url": "https://api.github.com/users/rajeshrse/orgs",
"received_events_url": "https://api.github.com/users/rajeshrse/received_events",
"repos_url": "https://api.github.com/users/rajeshrse/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/rajeshrse/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/rajeshrse/subscriptions",
"type": "User",
"url": "https://api.github.com/users/rajeshrse"
} | [] | closed | false | null | [] | null | 1 | 2019-04-24T08:07:37Z | 2019-04-24T10:20:27Z | 2019-04-24T10:20:27Z | NONE | null | i have two data frames whose structure as per below. in need to fill value from one data frame to another on the basis of verification.
Data Frame1 =
id a b c c1 d d1 e e1 f
0 al al1 - 1 K 10 _ _ File1
1 al al2 - 1 _ _ _ _ File2
2 al al3 ma 1 P 1 L 100 File3
dataframe2 =
Column Column1 Column2
c cal ca
c1 cal1 ca1
d dal da
d1 dal1 da1
e eal ea
e1 eal1 ea1
Excepted output of dataframe 2 = it should be run on the basis of column F and create csv one by one with updated data like File1.csv and fill value only for file1 in csv
Column Column1 Column2 Value
c cal ca _
c1 cal1 ca1 1
d dal da K
d1 dal1 da1 10
e eal ea _
e1 eal1 ea1 _
dataframe3 =
Column1 Column2 Column Value Column1 Value
excepted output dataframe 3= for file1.csv , here file1.csv should updated in file1df3.csv with below output
Column1 Column2 Column Value Column1 Value
cal ca 1
dal da k 10
in dataframe 3, in we need to fill data from data frame 1 & data frame2. only those data should be filled in column1 column2 in which contains value in X1 column greater then 0.
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26202/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26202/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26203 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26203/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26203/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26203/events | https://github.com/pandas-dev/pandas/issues/26203 | 436,595,504 | MDU6SXNzdWU0MzY1OTU1MDQ= | 26,203 | read_excel na_values replacement after parse_dates | {
"avatar_url": "https://avatars.githubusercontent.com/u/3329124?v=4",
"events_url": "https://api.github.com/users/nylocx/events{/privacy}",
"followers_url": "https://api.github.com/users/nylocx/followers",
"following_url": "https://api.github.com/users/nylocx/following{/other_user}",
"gists_url": "https://api.github.com/users/nylocx/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/nylocx",
"id": 3329124,
"login": "nylocx",
"node_id": "MDQ6VXNlcjMzMjkxMjQ=",
"organizations_url": "https://api.github.com/users/nylocx/orgs",
"received_events_url": "https://api.github.com/users/nylocx/received_events",
"repos_url": "https://api.github.com/users/nylocx/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/nylocx/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nylocx/subscriptions",
"type": "User",
"url": "https://api.github.com/users/nylocx"
} | [
{
"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": "bfe5bf",
"default": false,
"description": "read_excel, to_excel",
... | open | false | null | [] | {
"closed_at": null,
"closed_issues": 786,
"created_at": "2015-01-13T10:53:19Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "Changes that would be nice to have in the next release. These issues are not blocking. They will be pushed to the next release if no one has time to fix them.",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/32",
"id": 933188,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32/labels",
"node_id": "MDk6TWlsZXN0b25lOTMzMTg4",
"number": 32,
"open_issues": 1053,
"state": "open",
"title": "Contributions Welcome",
"updated_at": "2021-11-21T00:50:06Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/32"
} | 3 | 2019-04-24T09:38:57Z | 2019-05-10T04:22:16Z | null | NONE | null | ```python
### Not working
pd.read_excel(
"test.xlsx",
na_values={"Test": ['#', 0]},
parse_dates=["Test"],
date_parser=lambda x: pd.to_datetime(x, format="%Y-%m-%d"),
)
### Working
pd.read_csv(
"test.txt",
na_values={"Test": ['#', 0]},
parse_dates=["Test"],
date_parser=lambda x: pd.to_datetime(x, format="%Y-%m-%d"),
)
```
read_excel behaves different from read_csv in replacing NA values and parsing dates.
Test case:
The test.txt and test.xlsx contain the same data, just one column with header "Test" and 5 entries where 0 and # both represent NA values.
```
Test
2012-10-01
0
2015-05-15
#
2017-09-09
```
The first one crashes while trying to parse a "#" character as date. | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26203/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26203/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26204 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26204/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26204/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26204/events | https://github.com/pandas-dev/pandas/pull/26204 | 436,597,764 | MDExOlB1bGxSZXF1ZXN0MjczMDUyNzQ2 | 26,204 | PERF: Cython version of Python _TIMEPAT regexp in parsing.pyx | {
"avatar_url": "https://avatars.githubusercontent.com/u/45976948?v=4",
"events_url": "https://api.github.com/users/anmyachev/events{/privacy}",
"followers_url": "https://api.github.com/users/anmyachev/followers",
"following_url": "https://api.github.com/users/anmyachev/following{/other_user}",
"gists_url": "https://api.github.com/users/anmyachev/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/anmyachev",
"id": 45976948,
"login": "anmyachev",
"node_id": "MDQ6VXNlcjQ1OTc2OTQ4",
"organizations_url": "https://api.github.com/users/anmyachev/orgs",
"received_events_url": "https://api.github.com/users/anmyachev/received_events",
"repos_url": "https://api.github.com/users/anmyachev/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/anmyachev/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/anmyachev/subscriptions",
"type": "User",
"url": "https://api.github.com/users/anmyachev"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "a10c02",
"default": false,
"description": "Memory or... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 8 | 2019-04-24T09:43:45Z | 2019-04-24T15:05:25Z | 2019-04-24T15:05:20Z | CONTRIBUTOR | null | - [x] closes #N/A
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
`asv continuous -f 1.05 origin/master HEAD -b ^io.csv.ReadCSVParseSpecialDate -a warmup_time=2 -a sample_time=2`:
master | patch | ratio | test_name
-|-|-|-
276±1ms| 262±2ms| 0.95| io.csv.ReadCSVParseSpecialDate.time_read_special_date('hm')
16.6±0.2ms| 14.2±0.08ms| 0.85| io.csv.ReadCSVParseSpecialDate.time_read_special_date('mdY')
42.7±0.9ms| 35.0±0.2ms | 0.82| io.csv.ReadCSVParseSpecialDate.time_read_special_date('mY')
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26204/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26204/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26204.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26204",
"merged_at": "2019-04-24T15:05:20Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26204.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26204"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26205 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26205/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26205/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26205/events | https://github.com/pandas-dev/pandas/issues/26205 | 436,671,073 | MDU6SXNzdWU0MzY2NzEwNzM= | 26,205 | `read_html` crash when table is empty | {
"avatar_url": "https://avatars.githubusercontent.com/u/34562536?v=4",
"events_url": "https://api.github.com/users/Frost-Lee/events{/privacy}",
"followers_url": "https://api.github.com/users/Frost-Lee/followers",
"following_url": "https://api.github.com/users/Frost-Lee/following{/other_user}",
"gists_url": "https://api.github.com/users/Frost-Lee/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/Frost-Lee",
"id": 34562536,
"login": "Frost-Lee",
"node_id": "MDQ6VXNlcjM0NTYyNTM2",
"organizations_url": "https://api.github.com/users/Frost-Lee/orgs",
"received_events_url": "https://api.github.com/users/Frost-Lee/received_events",
"repos_url": "https://api.github.com/users/Frost-Lee/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/Frost-Lee/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Frost-Lee/subscriptions",
"type": "User",
"url": "https://api.github.com/users/Frost-Lee"
} | [
{
"color": "0052cc",
"default": false,
"description": null,
"id": 34444536,
"name": "Usage Question",
"node_id": "MDU6TGFiZWwzNDQ0NDUzNg==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Usage%20Question"
},
{
"color": "006b75",
"default": false,
"descript... | closed | false | null | [] | {
"closed_at": null,
"closed_issues": 2361,
"created_at": "2015-02-26T19:29:05Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
},
"description": "A milestone for closed or open issues for which there is no action needed (eg not a bug, just a question / discussion, nothing to resolve, wontfix, etc).\r\n\r\n",
"due_on": null,
"html_url": "https://github.com/pandas-dev/pandas/milestone/33",
"id": 997544,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33/labels",
"node_id": "MDk6TWlsZXN0b25lOTk3NTQ0",
"number": 33,
"open_issues": 11,
"state": "open",
"title": "No action",
"updated_at": "2021-11-19T17:33:16Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/33"
} | 3 | 2019-04-24T12:35:16Z | 2019-04-25T15:29:36Z | 2019-04-25T15:29:36Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
foo = pd.read_html('<table><tbody><tr></tr></tbody></table>') # Crashed
print(foo)
```
#### Problem description
`pd.read_html` would crash if the input table is an empty table, as the sample code indicates. The crash output is as follows:
```
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-441-efc751c3c2c9> in <module>
----> 1 pd.read_html('<table><tbody><tr></tr></tbody></table>')
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/html.py in read_html(io, match, flavor, header, index_col, skiprows, attrs, parse_dates, tupleize_cols, thousands, encoding, decimal, converters, na_values, keep_default_na, displayed_only)
1092 decimal=decimal, converters=converters, na_values=na_values,
1093 keep_default_na=keep_default_na,
-> 1094 displayed_only=displayed_only)
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/io/html.py in _parse(flavor, io, match, attrs, encoding, displayed_only, **kwargs)
914 break
915 else:
--> 916 raise_with_traceback(retained)
917
918 ret = []
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pandas/compat/__init__.py in raise_with_traceback(exc, traceback)
418 if traceback == Ellipsis:
419 _, _, traceback = sys.exc_info()
--> 420 raise exc.with_traceback(traceback)
421 else:
422 # this version of raise is a syntax error in Python 3
ValueError: No tables found matching pattern '.+'
```
From instinct, even if the table might be empty, it is not supposed to crash `pd.read_html`, returning an empty data frame might be a better way.
#### Expected Output
```python
foo = pd.read_html('<table><tbody><tr></tr></tbody></table>')
print(foo) # Empty dataframe
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
pandas: 0.24.2
pytest: None
pip: 18.1
setuptools: 40.6.3
Cython: None
numpy: 1.14.5
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 7.1.1
sphinx: None
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: 3.4.4
numexpr: 2.6.9
feather: None
matplotlib: 3.0.1
openpyxl: None
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: None
lxml.etree: 4.2.5
bs4: 4.6.3
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details> | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26205/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26205/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26206 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26206/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26206/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26206/events | https://github.com/pandas-dev/pandas/issues/26206 | 436,849,646 | MDU6SXNzdWU0MzY4NDk2NDY= | 26,206 | REGR? no error anymore when converting out of bounds datetime64[non-ns] data | {
"avatar_url": "https://avatars.githubusercontent.com/u/1020496?v=4",
"events_url": "https://api.github.com/users/jorisvandenbossche/events{/privacy}",
"followers_url": "https://api.github.com/users/jorisvandenbossche/followers",
"following_url": "https://api.github.com/users/jorisvandenbossche/following{/other_user}",
"gists_url": "https://api.github.com/users/jorisvandenbossche/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jorisvandenbossche",
"id": 1020496,
"login": "jorisvandenbossche",
"node_id": "MDQ6VXNlcjEwMjA0OTY=",
"organizations_url": "https://api.github.com/users/jorisvandenbossche/orgs",
"received_events_url": "https://api.github.com/users/jorisvandenbossche/received_events",
"repos_url": "https://api.github.com/users/jorisvandenbossche/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jorisvandenbossche/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jorisvandenbossche"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
}
] | closed | false | null | [] | {
"closed_at": "2020-01-30T12:18:05Z",
"closed_issues": 2207,
"created_at": "2012-09-13T02:13:00Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/329591?v=4",
"events_url": "https://api.github.com/users/wesm/events{/privacy}",
"followers_url": "https://api.github.com/users/wesm/followers",
"following_url": "https://api.github.com/users/wesm/following{/other_user}",
"gists_url": "https://api.github.com/users/wesm/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/wesm",
"id": 329591,
"login": "wesm",
"node_id": "MDQ6VXNlcjMyOTU5MQ==",
"organizations_url": "https://api.github.com/users/wesm/orgs",
"received_events_url": "https://api.github.com/users/wesm/received_events",
"repos_url": "https://api.github.com/users/wesm/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/wesm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/wesm/subscriptions",
"type": "User",
"url": "https://api.github.com/users/wesm"
},
"description": "on-merge: backport to 1.0.x",
"due_on": "2020-02-01T08:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/16",
"id": 174211,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16/labels",
"node_id": "MDk6TWlsZXN0b25lMTc0MjEx",
"number": 16,
"open_issues": 0,
"state": "closed",
"title": "1.0.0",
"updated_at": "2020-01-30T12:18:05Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/16"
} | 7 | 2019-04-24T18:41:36Z | 2020-01-06T20:53:21Z | 2019-12-30T17:52:01Z | MEMBER | null | Didn't directly find a related issue, but on master / 0.24 / 0.23, we see:
```
In [1]: pd.Series(np.array(['2262-04-12'], dtype='datetime64[D]'))
Out[1]:
0 1677-09-21 00:25:26.290448384
dtype: datetime64[ns]
```
while on pandas 0.22.0:
```
In [1]: pd.Series(np.array(['2262-04-12'], dtype='datetime64[D]'))
---------------------------------------------------------------------------
OutOfBoundsDatetime Traceback (most recent call last)
<ipython-input-1-b3f7cbbf1054> in <module>()
----> 1 pd.Series(np.array(['2262-04-12'], dtype='datetime64[D]'))
~/miniconda3/envs/pandas022/lib/python3.6/site-packages/pandas/core/series.py in __init__(self, data, index, dtype, name, copy, fastpath)
264 raise_cast_failure=True)
265
--> 266 data = SingleBlockManager(data, index, fastpath=True)
267
268 generic.NDFrame.__init__(self, data, fastpath=True)
~/miniconda3/envs/pandas022/lib/python3.6/site-packages/pandas/core/internals.py in __init__(self, block, axis, do_integrity_check, fastpath)
4400 if not isinstance(block, Block):
4401 block = make_block(block, placement=slice(0, len(axis)), ndim=1,
-> 4402 fastpath=True)
4403
4404 self.blocks = [block]
~/miniconda3/envs/pandas022/lib/python3.6/site-packages/pandas/core/internals.py in make_block(values, placement, klass, ndim, dtype, fastpath)
2955 placement=placement, dtype=dtype)
2956
-> 2957 return klass(values, ndim=ndim, fastpath=fastpath, placement=placement)
2958
2959 # TODO: flexible with index=None and/or items=None
~/miniconda3/envs/pandas022/lib/python3.6/site-packages/pandas/core/internals.py in __init__(self, values, placement, fastpath, **kwargs)
2468 def __init__(self, values, placement, fastpath=False, **kwargs):
2469 if values.dtype != _NS_DTYPE:
-> 2470 values = tslib.cast_to_nanoseconds(values)
2471
2472 super(DatetimeBlock, self).__init__(values, fastpath=True,
pandas/_libs/tslib.pyx in pandas._libs.tslib.cast_to_nanoseconds()
pandas/_libs/tslib.pyx in pandas._libs.tslib._check_dts_bounds()
OutOfBoundsDatetime: Out of bounds nanosecond timestamp: 2262-04-12 00:00:00
In [2]: pd.__version__
Out[2]: '0.22.0'
```
cc @jbrockmendel any idea if this was changed on purpose or to what refactoring could have been the cause of this change?
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26206/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26206/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26207 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26207/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26207/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26207/events | https://github.com/pandas-dev/pandas/pull/26207 | 436,920,889 | MDExOlB1bGxSZXF1ZXN0MjczMzEwMzU1 | 26,207 | DOC: Fix misspelling in get_dummies docstring | {
"avatar_url": "https://avatars.githubusercontent.com/u/15787304?v=4",
"events_url": "https://api.github.com/users/max-kov/events{/privacy}",
"followers_url": "https://api.github.com/users/max-kov/followers",
"following_url": "https://api.github.com/users/max-kov/following{/other_user}",
"gists_url": "https://api.github.com/users/max-kov/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/max-kov",
"id": 15787304,
"login": "max-kov",
"node_id": "MDQ6VXNlcjE1Nzg3MzA0",
"organizations_url": "https://api.github.com/users/max-kov/orgs",
"received_events_url": "https://api.github.com/users/max-kov/received_events",
"repos_url": "https://api.github.com/users/max-kov/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/max-kov/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/max-kov/subscriptions",
"type": "User",
"url": "https://api.github.com/users/max-kov"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-24T21:44:03Z | 2019-04-24T22:27:22Z | 2019-04-24T22:27:14Z | CONTRIBUTOR | null | - [ ] closes #xxxx
- [ ] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 1,
"rocket": 0,
"total_count": 1,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26207/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26207/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26207.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26207",
"merged_at": "2019-04-24T22:27:14Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26207.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26207"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26208 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26208/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26208/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26208/events | https://github.com/pandas-dev/pandas/issues/26208 | 437,097,563 | MDU6SXNzdWU0MzcwOTc1NjM= | 26,208 | SeriesGroupBy.transform cannot handle empty series | {
"avatar_url": "https://avatars.githubusercontent.com/u/3169669?v=4",
"events_url": "https://api.github.com/users/HHest/events{/privacy}",
"followers_url": "https://api.github.com/users/HHest/followers",
"following_url": "https://api.github.com/users/HHest/following{/other_user}",
"gists_url": "https://api.github.com/users/HHest/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/HHest",
"id": 3169669,
"login": "HHest",
"node_id": "MDQ6VXNlcjMxNjk2Njk=",
"organizations_url": "https://api.github.com/users/HHest/orgs",
"received_events_url": "https://api.github.com/users/HHest/received_events",
"repos_url": "https://api.github.com/users/HHest/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/HHest/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/HHest/subscriptions",
"type": "User",
"url": "https://api.github.com/users/HHest"
} | [
{
"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": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 4 | 2019-04-25T09:27:53Z | 2019-05-15T13:01:28Z | 2019-05-15T13:01:28Z | CONTRIBUTOR | null | #### Code Sample, a copy-pastable example if possible
```python
d = pd.DataFrame({1: [], 2: []})
g = d.groupby(1)
g[2].transform(lambda x: x)
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\python37\lib\site-packages\pandas\core\groupby\generic.py", line 945, in transform
result = concat(results).sort_index()
File "C:\python37\lib\site-packages\pandas\core\reshape\concat.py", line 228, in concat
copy=copy, sort=sort)
File "C:\python37\lib\site-packages\pandas\core\reshape\concat.py", line 262, in __init__
raise ValueError('No objects to concatenate')
```
#### Problem description
Crashes on SeriesGroupby obj with zero length, which came from an empty dataframe. Would be nicer if pandas can handle this case without raising errors, by for example, just return an empty series. Thanks.
#### Expected Output
```
Series([], Name: 2, dtype: float64)
```
#### Output of ``pd.show_versions()``
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.7.3.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 142 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None
pandas: 0.24.2
pytest: 4.4.1
pip: 19.0.3
setuptools: 41.0.1
Cython: None
numpy: 1.15.4
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: 0.5.1
dateutil: 2.7.5
pytz: 2018.7
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 3.0.2
openpyxl: 2.5.12
xlrd: 1.2.0
xlwt: 1.3.0
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26208/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26208/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26209 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26209/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26209/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26209/events | https://github.com/pandas-dev/pandas/issues/26209 | 437,102,724 | MDU6SXNzdWU0MzcxMDI3MjQ= | 26,209 | reindex does not work for groupby series with DateTimeIndex | {
"avatar_url": "https://avatars.githubusercontent.com/u/20269505?v=4",
"events_url": "https://api.github.com/users/ptmminh/events{/privacy}",
"followers_url": "https://api.github.com/users/ptmminh/followers",
"following_url": "https://api.github.com/users/ptmminh/following{/other_user}",
"gists_url": "https://api.github.com/users/ptmminh/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/ptmminh",
"id": 20269505,
"login": "ptmminh",
"node_id": "MDQ6VXNlcjIwMjY5NTA1",
"organizations_url": "https://api.github.com/users/ptmminh/orgs",
"received_events_url": "https://api.github.com/users/ptmminh/received_events",
"repos_url": "https://api.github.com/users/ptmminh/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/ptmminh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ptmminh/subscriptions",
"type": "User",
"url": "https://api.github.com/users/ptmminh"
} | [
{
"color": "AFEEEE",
"default": false,
"description": null,
"id": 211840,
"name": "Timeseries",
"node_id": "MDU6TGFiZWwyMTE4NDA=",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/Timeseries"
},
{
"color": "729FCF",
"default": false,
"description": null,
... | closed | false | {
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}",
"gists_url": "https://api.github.com/users/CloseChoice/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/CloseChoice",
"id": 31857876,
"login": "CloseChoice",
"node_id": "MDQ6VXNlcjMxODU3ODc2",
"organizations_url": "https://api.github.com/users/CloseChoice/orgs",
"received_events_url": "https://api.github.com/users/CloseChoice/received_events",
"repos_url": "https://api.github.com/users/CloseChoice/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/CloseChoice/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/CloseChoice/subscriptions",
"type": "User",
"url": "https://api.github.com/users/CloseChoice"
} | [
{
"avatar_url": "https://avatars.githubusercontent.com/u/31857876?v=4",
"events_url": "https://api.github.com/users/CloseChoice/events{/privacy}",
"followers_url": "https://api.github.com/users/CloseChoice/followers",
"following_url": "https://api.github.com/users/CloseChoice/following{/other_user}"... | {
"closed_at": "2020-07-28T18:13:47Z",
"closed_issues": 2378,
"created_at": "2019-12-02T12:52:48Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2020-08-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/68",
"id": 4894670,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68/labels",
"node_id": "MDk6TWlsZXN0b25lNDg5NDY3MA==",
"number": 68,
"open_issues": 0,
"state": "closed",
"title": "1.1",
"updated_at": "2021-07-17T17:25:28Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/68"
} | 4 | 2019-04-25T09:38:57Z | 2020-04-25T22:05:11Z | 2020-04-25T22:05:11Z | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
import pandas as pd
import numpy as np
# generate a simple df with weekly DateTimeIndex, group and a value
df = pd.DataFrame({
'group':['Group1','Group2','Group3']*3,
'value':np.random.randint(100, 1000, size=9)},
index=pd.date_range('1991-10-2',periods=3, freq='W-MON').repeat(3)
)
# this works as expected
new_value = df.groupby('group')[['value']].apply(
lambda x: x.reindex(pd.date_range(x.index.min(), x.index.max(), freq='W-MON'), fill_value=0)
)
# this fails
new_value = df.groupby('group').value.apply(
lambda x: x.reindex(pd.date_range(x.index.min(), x.index.max(), freq='W-MON'), fill_value=0)
)
```
#### Problem description
We have a DF with a group and DateTimeIndex, we want to `reindex` the values per group to make sure all groups have all the appropriate weekly DateTimeIndex. This works as expected when there is a gap to be resolved by the `reindex`ing... However, it fails when there's no gap to be filled by `reindex`.
`ValueError: cannot reindex from a duplicate axis`
This issue is resolved by turning the corresponding Series into a DF by `[[]]` syntax.
#### Expected Output
The original Series.
#### Output of ``pd.show_versions()``
<details>
installed versions
------------------
commit: none
python: 3.6.8.final.0
python-bits: 64
os: linux
os-release: 4.4.0-43-microsoft
machine: x86_64
processor: x86_64
byteorder: little
lc_all: none
lang: en_us.utf-8
locale: en_us.utf-8
pandas: 0.24.2
pytest: 3.5.1
pip: 19.0.3
setuptools: 41.0.0
cython: 0.28.2
numpy: 1.14.3
scipy: 1.1.0
pyarrow: none
xarray: none
ipython: 6.4.0
sphinx: 1.7.4
patsy: 0.5.0
dateutil: 2.8.0
pytz: 2019.1
blosc: none
bottleneck: 1.2.1
tables: 3.4.3
numexpr: 2.6.5
feather: none
matplotlib: 2.2.2
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.4
lxml.etree: 4.2.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.7
pymysql: none
psycopg2: none
jinja2: 2.10
s3fs: none
fastparquet: none
pandas_gbq: none
pandas_datareader: none
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26209/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26209/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26210 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26210/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26210/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26210/events | https://github.com/pandas-dev/pandas/issues/26210 | 437,222,984 | MDU6SXNzdWU0MzcyMjI5ODQ= | 26,210 | BUG: Sorting MultiIndex with NaNs | {
"avatar_url": "https://avatars.githubusercontent.com/u/9717992?v=4",
"events_url": "https://api.github.com/users/eoincondron/events{/privacy}",
"followers_url": "https://api.github.com/users/eoincondron/followers",
"following_url": "https://api.github.com/users/eoincondron/following{/other_user}",
"gists_url": "https://api.github.com/users/eoincondron/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/eoincondron",
"id": 9717992,
"login": "eoincondron",
"node_id": "MDQ6VXNlcjk3MTc5OTI=",
"organizations_url": "https://api.github.com/users/eoincondron/orgs",
"received_events_url": "https://api.github.com/users/eoincondron/received_events",
"repos_url": "https://api.github.com/users/eoincondron/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/eoincondron/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/eoincondron/subscriptions",
"type": "User",
"url": "https://api.github.com/users/eoincondron"
} | [
{
"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... | open | false | null | [] | null | 5 | 2019-04-25T14:13:41Z | 2021-07-02T05:34:50Z | null | NONE | null | #### Code Sample, a copy-pastable example if possible
```python
>>> ix = pd.MultiIndex(levels=[['B', 'A'], ['x']], codes=[[-1, 0, 1], [0, 0, 0]],
... names=['symbol', 'date'])
>>> ix._sort_levels_monotonic()
MultiIndex(levels=[['A', 'B'], ['x']],
codes=[[0, 1, 0], [0, 0, 0]],
names=['symbol', 'date'])
# MultiIndex silently accepts Nan in codes when inside a NumPy array and cast to 0:
>>> pd.MultiIndex(levels=[['B', 'A'], ['x']], codes=[np.array([np.nan, 0, 1]), [0, 0, 0]],
... names=['symbol', 'date'])
MultiIndex(levels=[['B', 'A'], ['x']],
codes=[[0, 0, 1], [0, 0, 0]],
names=['symbol', 'date'])
```
#### Problem description
When sorting a `MultiIndex`, NaNs in any level which is not already sorted are replaced with the first non-null value in the sorted orders. Effectively, the `-1` values in the `codes` get replaced with `0`. I've tracked this to two separate parts. The first part is in this line in `MultiIndex._sort_levels_monotonic`:
level_codes = algos.take_1d(ri, level_codes)
The output has `np.nan` where the input had `-1`. This could be fixed by:
level_codes = algos.take_1d(ri, level_codes, fill_value=-1)
The second part, which also seems unexpected to me, is that `MultiIndex` silently accepts NaN in codes when inside a NumPy array and casts to 0 (see second part of example above).
In particular, this is inconsistent with the behaviour when we pass NaNs inside a `list` which throws an error:
```python
>>> pd.MultiIndex(levels=[['B', 'A'], ['x']], codes=[[np.nan, 0, 1], [0, 0, 0]])
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/dtc/conda_envs/condron/envs/pd24/lib/python3.6/site-packages/pandas/util/_decorators.py", line 188, in wrapper
return func(*args, **kwargs)
File "/opt/dtc/conda_envs/condron/envs/pd24/lib/python3.6/site-packages/pandas/core/indexes/multi.py", line 235, in __new__
result._set_codes(codes, copy=copy, validate=False)
File "/opt/dtc/conda_envs/condron/envs/pd24/lib/python3.6/site-packages/pandas/core/indexes/multi.py", line 683, in _set_codes
for lev, level_codes in zip(self.levels, codes))
File "/opt/dtc/conda_envs/condron/envs/pd24/lib/python3.6/site-packages/pandas/core/indexes/multi.py", line 683, in <genexpr>
for lev, level_codes in zip(self.levels, codes))
File "/opt/dtc/conda_envs/condron/envs/pd24/lib/python3.6/site-packages/pandas/core/indexes/frozen.py", line 192, in _ensure_frozen
array_like = coerce_indexer_dtype(array_like, categories)
File "/opt/dtc/conda_envs/condron/envs/pd24/lib/python3.6/site-packages/pandas/core/dtypes/cast.py", line 556, in coerce_indexer_dtype
return ensure_int8(indexer)
File "pandas/_libs/algos_common_helper.pxi", line 333, in pandas._libs.algos.ensure_int8
ValueError: cannot convert float NaN to integer
```
#### Expected Output
I think the expected output of `_sort_levels_monotonic` in this case would preserve the `-1` codes. Patching `_sort_levels_monotonic` with this fix I get:
```python
>>> s = pd.Series([1, 2, 3], ix)
>>> s.sort_index(na_position='first')
symbol date
NaN x 1
A x 3
B x 2
>>> s.sort_index(na_position='last')
symbol date
A x 3
B x 2
NaN x 1
```
Also, I would expect the following to throw the same `ValueError`
```python
>>> pd.MultiIndex(levels=[['B', 'A'], ['x']], codes=[np.array([np.nan, 0, 1]), [0, 0, 0]])
```
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.2.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.162-94.72-default
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_GB.UTF-8
LOCALE: en_GB.UTF-8
pandas: 0.24.2
pytest: None
pip: 9.0.1
setuptools: 36.4.0
Cython: None
numpy: 1.13.1
scipy: None
pyarrow: None
xarray: None
IPython: None
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2017.2
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: None
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml.etree: None
bs4: None
html5lib: None
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: None
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
</details>
| {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26210/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26210/timeline | null | null | null |
https://api.github.com/repos/pandas-dev/pandas/issues/26211 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26211/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26211/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26211/events | https://github.com/pandas-dev/pandas/pull/26211 | 437,306,912 | MDExOlB1bGxSZXF1ZXN0MjczNjEwMzY0 | 26,211 | Removed Unnecessary Compat Directives from ujson | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
},
{
"color": "207de5",
"default": fa... | closed | false | null | [] | {
"closed_at": "2019-07-19T00:34:29Z",
"closed_issues": 1289,
"created_at": "2018-10-23T02:34:15Z",
"creator": {
"avatar_url": "https://avatars.githubusercontent.com/u/953992?v=4",
"events_url": "https://api.github.com/users/jreback/events{/privacy}",
"followers_url": "https://api.github.com/users/jreback/followers",
"following_url": "https://api.github.com/users/jreback/following{/other_user}",
"gists_url": "https://api.github.com/users/jreback/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/jreback",
"id": 953992,
"login": "jreback",
"node_id": "MDQ6VXNlcjk1Mzk5Mg==",
"organizations_url": "https://api.github.com/users/jreback/orgs",
"received_events_url": "https://api.github.com/users/jreback/received_events",
"repos_url": "https://api.github.com/users/jreback/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/jreback/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jreback/subscriptions",
"type": "User",
"url": "https://api.github.com/users/jreback"
},
"description": "",
"due_on": "2019-07-01T07:00:00Z",
"html_url": "https://github.com/pandas-dev/pandas/milestone/61",
"id": 3759483,
"labels_url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61/labels",
"node_id": "MDk6TWlsZXN0b25lMzc1OTQ4Mw==",
"number": 61,
"open_issues": 0,
"state": "closed",
"title": "0.25.0",
"updated_at": "2020-01-02T15:10:40Z",
"url": "https://api.github.com/repos/pandas-dev/pandas/milestones/61"
} | 3 | 2019-04-25T17:09:15Z | 2020-01-16T00:34:11Z | 2019-04-26T00:45:12Z | MEMBER | null | Continuing cleanup of ujson source there are some preprocessor directives in there which are no longer valid given minimum Python and NumPy versions | {
"+1": 0,
"-1": 0,
"confused": 0,
"eyes": 0,
"heart": 0,
"hooray": 0,
"laugh": 0,
"rocket": 0,
"total_count": 0,
"url": "https://api.github.com/repos/pandas-dev/pandas/issues/26211/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26211/timeline | null | 0 | {
"diff_url": "https://github.com/pandas-dev/pandas/pull/26211.diff",
"html_url": "https://github.com/pandas-dev/pandas/pull/26211",
"merged_at": "2019-04-26T00:45:11Z",
"patch_url": "https://github.com/pandas-dev/pandas/pull/26211.patch",
"url": "https://api.github.com/repos/pandas-dev/pandas/pulls/26211"
} |
https://api.github.com/repos/pandas-dev/pandas/issues/26212 | https://api.github.com/repos/pandas-dev/pandas | https://api.github.com/repos/pandas-dev/pandas/issues/26212/labels{/name} | https://api.github.com/repos/pandas-dev/pandas/issues/26212/comments | https://api.github.com/repos/pandas-dev/pandas/issues/26212/events | https://github.com/pandas-dev/pandas/issues/26212 | 437,338,215 | MDU6SXNzdWU0MzczMzgyMTU= | 26,212 | Improve ujson test coverage or clean up dead code | {
"avatar_url": "https://avatars.githubusercontent.com/u/609873?v=4",
"events_url": "https://api.github.com/users/WillAyd/events{/privacy}",
"followers_url": "https://api.github.com/users/WillAyd/followers",
"following_url": "https://api.github.com/users/WillAyd/following{/other_user}",
"gists_url": "https://api.github.com/users/WillAyd/gists{/gist_id}",
"gravatar_id": "",
"html_url": "https://github.com/WillAyd",
"id": 609873,
"login": "WillAyd",
"node_id": "MDQ6VXNlcjYwOTg3Mw==",
"organizations_url": "https://api.github.com/users/WillAyd/orgs",
"received_events_url": "https://api.github.com/users/WillAyd/received_events",
"repos_url": "https://api.github.com/users/WillAyd/repos",
"site_admin": false,
"starred_url": "https://api.github.com/users/WillAyd/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/WillAyd/subscriptions",
"type": "User",
"url": "https://api.github.com/users/WillAyd"
} | [
{
"color": "207de5",
"default": false,
"description": "read_json, to_json, json_normalize",
"id": 49379259,
"name": "IO JSON",
"node_id": "MDU6TGFiZWw0OTM3OTI1OQ==",
"url": "https://api.github.com/repos/pandas-dev/pandas/labels/IO%20JSON"
}
] | closed | false | null | [] | null | 7 | 2019-04-25T18:31:14Z | 2019-09-05T14:52:58Z | 2019-09-05T14:52:58Z | MEMBER | null | I've been spending some time cleaning up the integration with ujson in our source code. After enabling some debugging directives and running the test suite I noticed that there were quite a few places in objToJSON.c which were not being hit. This can point to either dead code or a lack of test coverage, so these can be whittled down.
In my own repo I have a branch of this where each of the items are commented with `// not hit in tests` which you can see here:
https://github.com/WillAyd/pandas/blob/dead-json/pandas/_libs/src/ujson/python/objToJSON.c
Planning to go through these individually and see what we can do. Extra set of eyes would certainly be 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/26212/reactions"
} | https://api.github.com/repos/pandas-dev/pandas/issues/26212/timeline | null | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.